| | |
| | | console.log(this.activeKey); |
| | | switch (this.activeKey) { |
| | | case 'ipcCodeSort': |
| | | |
| | | url = GetIpcClass |
| | | // params = [{ year: `${this.ICPYear}`,FieldName:'desc',ConditionalType:'1',FieldValue:this.parentCodeSearch}], |
| | | params = { "year": `${this.ICPYear}`, "json": JSON.stringify([{ FieldName: 'desc', ConditionalType: '1', FieldValue: this.parentCodeSearch }]) }, |
| | | // this.treeDimensions = { children: 'children', title: 'Desc', key: 'Code' } |
| | | |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value',valueshow:'valueshow' } |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'Code' } |
| | | break; |
| | | case 'cpcCodeSort': |
| | | |
| | | url = GetCpcClass |
| | | params = { "json": JSON.stringify([{ FieldName: 'desc', ConditionalType: '1', FieldValue: this.parentCodeSearch }]) }, |
| | | |
| | | // this.treeDimensions = { children: 'children', title: 'Desc', key: 'Code' } |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value',valueshow:'valueshow' } |
| | | |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'Code' } |
| | | // this.treeDimensions = { children: 'children', title: 'lable', key: 'value',valueshow:'valueshow' } |
| | | break; |
| | | case 'industrycode': |
| | | url = GetEcoindustryTree |
| | | params = { "json": JSON.stringify([{ FieldName: 'Name', ConditionalType: '1', FieldValue: this.parentCodeSearch }]) }, |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value',valueshow:'valueshow' } |
| | | // console.log(this.treeDimensions); |
| | | // this.treeDimensions = { children: 'children', title: 'lable', key: 'value',valueshow:'valueshow' } |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value' } |
| | | break; |
| | | case 'strategicIndustryCode': |
| | | url = GetStraindustryTree |
| | | params = { "json": JSON.stringify([{ FieldName: 'Name', ConditionalType: '1', FieldValue: this.parentCodeSearch }]) }, |
| | | |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value',valueshow:'valueshow' } |
| | | // this.treeDimensions = { children: 'children', title: 'lable', key: 'value',valueshow:'valueshow' } |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value' } |
| | | break; |
| | | case 'locarnoCodeSort': |
| | | url = GetLoccn |
| | | params = { "json": JSON.stringify([{ FieldName: 'desc', ConditionalType: '1', FieldValue: this.parentCodeSearch }]) }, |
| | | // this.treeDimensions = { children: 'children', title: 'Desc', key: 'Code' } |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value' ,valueshow:'valueshow'} |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value' } |
| | | // this.treeDimensions = { children: 'children', title: 'lable', key: 'value' ,valueshow:'valueshow'} |
| | | break; |
| | | } |
| | | this.treeLoading = true |
| | | url(params).then(res => { |
| | | this.treeData = this.formatTreeData(res.Data) |
| | | // console.log(this.treeData); |
| | | // if (url.toString().indexOf('GetCpcClass') > 0) { |
| | | // // this.treeData |
| | | // for (let i = 0; i < this.treeData.length; i++) { |
| | | // console.log(this.treeData[i]); |
| | | // this.treeData[i].title = `${this.treeData[i].value} ${this.treeData[i].lable}` |
| | | // for (let k = 0; k < this.treeData[i].children.length; k++) { |
| | | // this.treeData[i].children[k].title = `${this.treeData[i].children[k].value} ${this.treeData[i].children[k].lable}` |
| | | // } |
| | | // } |
| | | // } |
| | | // if (url.toString().indexOf('GetStraindustryTree') > 0) { |
| | | // // this.treeData |
| | | // for (let i = 0; i < this.treeData.length; i++) { |
| | | // console.log(this.treeData[i]); |
| | | // this.treeData[i].title = `${this.treeData[i].value} ${this.treeData[i].title}` |
| | | // for (let k = 0; k < this.treeData[i].children.length; k++) { |
| | | // this.treeData[i].children[k].title = `${this.treeData[i].children[k].value} ${this.treeData[i].children[k].title}` |
| | | // } |
| | | // } |
| | | // } |
| | | // if (url.toString().indexOf('GetLoccn') > 0) { |
| | | // // this.treeData |
| | | // for (let i = 0; i < this.treeData.length; i++) { |
| | | // console.log(this.treeData[i]); |
| | | // this.treeData[i].title = `${this.treeData[i].value} ${this.treeData[i].lable}` |
| | | // for (let k = 0; k < this.treeData[i].children.length; k++) { |
| | | // this.treeData[i].children[k].title = `${this.treeData[i].children[k].value} ${this.treeData[i].children[k].lable}` |
| | | // } |
| | | // } |
| | | // } |
| | | // if (url.toString().indexOf('GetEcoindustryTree') > 0) { |
| | | // console.log(1111); |
| | | // // this.treeData |
| | | // // for(let i=0;i<this.treeData.children.length;i++){ |
| | | // // console.log(this.treeData.children[i]); |
| | | // // this.treeData.children[i].label= `${this.treeData.children[i].value } ${ this.treeData.children[i].label }` |
| | | // // for(let k=0;k<this.treeData.children[i].children.length;k++){ |
| | | // // this.treeData.children[i].children[k].label= `${this.treeData.children[i].children[k].value } ${ this.treeData.children[i].children[k].label }` |
| | | // // } |
| | | // // } |
| | | // for (let i = 0; i < this.treeData.length; i++) { |
| | | // this.treeData[i].title = `${this.treeData[i].value} ${this.treeData[i].lable}` |
| | | // for (let k = 0; k < this.treeData[i].children.length; k++) { |
| | | // this.treeData[i].children[k].title = `${this.treeData[i].children[k].value} ${this.treeData[i].children[k].lable}` |
| | | // for (let j = 0; j < this.treeData[i].children[k].children.length; j++) { |
| | | // this.treeData[i].children[k].children[j].title = `${this.treeData[i].children[k].children[j].value} ${this.treeData[i].children[k].children[j].lable}` |
| | | // for (let q = 0; q < this.treeData[i].children[k].children[j].children.length; q++) { |
| | | // this.treeData[i].children[k].children[j].children[q].title = `${this.treeData[i].children[k].children[j].children[q].value} ${this.treeData[i].children[k].children[j].children[q].lable}` |
| | | |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | |
| | | console.log(this.treeData); |
| | | // } |
| | | this.treeLoading = false |
| | | }) |
| | | }, |
| | |
| | | case 'industrycode': |
| | | url = GetEcoindustryTree |
| | | this.treeDimensions = { children: 'children', title: 'lable', key: 'value' } |
| | | // console.log(this.treeDimensions); |
| | | break; |
| | | case 'strategicIndustryCode': |
| | | url = GetStraindustryTree |
| | |
| | | this.treeLoading = true |
| | | url(params).then(res => { |
| | | this.treeData = this.formatTreeData(res.Data) |
| | | // console.log(this.treeData); |
| | | if (url.toString().indexOf('GetStraindustryTree') > 0) { |
| | | // this.treeData |
| | | for (let i = 0; i < this.treeData.length; i++) { |
| | | console.log(this.treeData[i]); |
| | | this.treeData[i].title = `${this.treeData[i].value} ${this.treeData[i].title}` |
| | | for (let k = 0; k < this.treeData[i].children.length; k++) { |
| | | this.treeData[i].children[k].title = `${this.treeData[i].children[k].value} ${this.treeData[i].children[k].title}` |
| | | } |
| | | } |
| | | } |
| | | if (url.toString().indexOf('GetLoccn') > 0) { |
| | | // this.treeData |
| | | for (let i = 0; i < this.treeData.length; i++) { |
| | | console.log(this.treeData[i]); |
| | | this.treeData[i].title = `${this.treeData[i].value} ${this.treeData[i].lable}` |
| | | for (let k = 0; k < this.treeData[i].children.length; k++) { |
| | | this.treeData[i].children[k].title = `${this.treeData[i].children[k].value} ${this.treeData[i].children[k].lable}` |
| | | } |
| | | } |
| | | } |
| | | if (url.toString().indexOf('GetEcoindustryTree') > 0) { |
| | | console.log(1111); |
| | | |
| | | for (let i = 0; i < this.treeData.length; i++) { |
| | | this.treeData[i].title = `${this.treeData[i].value} ${this.treeData[i].lable}` |
| | | for (let k = 0; k < this.treeData[i].children.length; k++) { |
| | | this.treeData[i].children[k].title = `${this.treeData[i].children[k].value} ${this.treeData[i].children[k].lable}` |
| | | for (let j = 0; j < this.treeData[i].children[k].children.length; j++) { |
| | | this.treeData[i].children[k].children[j].title = `${this.treeData[i].children[k].children[j].value} ${this.treeData[i].children[k].children[j].lable}` |
| | | for (let q = 0; q < this.treeData[i].children[k].children[j].children.length; q++) { |
| | | this.treeData[i].children[k].children[j].children[q].title = `${this.treeData[i].children[k].children[j].children[q].value} ${this.treeData[i].children[k].children[j].children[q].lable}` |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | console.log(this.treeData); |
| | | } |
| | | this.treeLoading = false |
| | | }) |
| | | }, |
| | |
| | | let that = this |
| | | function flatten(list = []) { |
| | | list.forEach(item => { |
| | | |
| | | item.title=(that.activeKey==='strategicIndustryCode')?item.valueshow.split(' ')[1]: item.valueshow |
| | | // item.title= item.valueshow |
| | | // item.title=(that.activeKey==='strategicIndustryCode')?item.valueshow.split(' ')[1]: item.valueshow |
| | | item.title= item.valueshow |
| | | item.key = item[that.treeDimensions.key] |
| | | flatten(item.children); |
| | | |
| | | }); |
| | | |
| | | } |
| | | console.log(tempList); |
| | | tempList = JSON.parse(JSON.stringify(listData)) |
| | |
| | | url = GetCpcClassTree |
| | | } |
| | | this.copy=treeNode.dataRef.key |
| | | |
| | | url({ |
| | | // year: this.activeKey == 'cpcCodeSort' ? this.ICPYear : undefined, |
| | | year: this.activeKey == 'ipcCodeSort' ? this.ICPYear : undefined, |
| | | |
| | | parentCode: treeNode.dataRef.key |
| | | |
| | | }).then(res => { |
| | | // if(this.parentCodeSearch){ |
| | | // treeNode.dataRef.children = this.formatTreeData(res.Data,0) |
| | | // }else{ |
| | | treeNode.dataRef.children = this.formatTreeData(res.Data) |
| | | // } |
| | | |
| | | this.treeData = [...this.treeData]; |
| | | resolve(); |
| | | }) |
| | |
| | | </li> |
| | | </ul> |
| | | </section> |
| | | <section class="application"> |
| | | <!-- <section class="application"> |
| | | <div class="title">免费体验申请</div> |
| | | <ul> |
| | | <li> |
| | |
| | | margin: 10px auto -30px; |
| | | padding-left: 22px;">*如果您对我们系统有任何意见或者建议,请将信息发送至探数狗(镇江)信息科技有限公司邮箱tanshugou@139.com,我们将在第一时间联系您!</div> |
| | | <div class="request" @click="application()">申请开通免费账号</div> |
| | | </section> |
| | | </section> --> |
| | | </main> |
| | | </div> |
| | | </template> |
| | |
| | | this.$message.warning('输入内容不能为空'); |
| | | return |
| | | } |
| | | JSON.stringify(this.searchParams[this.currentTab]).replace('\n', ',').replace(';', ',').replace(' ', ',').split(',') |
| | | let num=0 |
| | | let arr=this.searchParams[this.currentTab].replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',') |
| | | // console.log(arr); |
| | | for(let i=0;i<arr.length;i++){ |
| | | if(arr[i]){ |
| | | num++ |
| | | } |
| | | } |
| | | console.log(num); |
| | | // console.log(this.searchParams[this.currentTab].replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',').length); |
| | | // JSON.stringify(this.searchParams[this.currentTab]).replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',').length |
| | | if (this.currentTab === 'assigneeList') { |
| | | console.log(JSON.stringify(this.searchParams[this.currentTab]).replace('\n', ',').replace(';', ',').replace(' ', ',').split(',').length); |
| | | if (JSON.stringify(this.searchParams[this.currentTab]).replace('\n', ',').replace(';', ',').replace(' ', ',').split(',').length > 2000) { |
| | | console.log(JSON.stringify(this.searchParams[this.currentTab]).replace('\n', ',').replace(';', ',').replace(' ', ',').split(',').length); |
| | | // console.log(JSON.stringify(this.searchParams[this.currentTab]).replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',').length); |
| | | if (num> 2000) { |
| | | // console.log(JSON.stringify(this.searchParams[this.currentTab]).replaceAll('\n', ',').replaceAll(';', ',').replaceAll(' ', ',').split(',').length); |
| | | this.$message.warning('输入字符数超过了 2000 上限'); |
| | | return |
| | | } |
| | | } else { |
| | | console.log(JSON.stringify(this.searchParams[this.currentTab]).replace('\n', ',').replace(';', ',').replace(' ', ',').split(',').length); |
| | | if (JSON.stringify(this.searchParams[this.currentTab]).replace('\n', ',').replace(';', ',').replace(' ', ',').split(',').length > 5000) { |
| | | // console.log(this.searchParams[this.currentTab].split('\n').join(',') ); |
| | | if (num > 5000) { |
| | | this.$message.warning('输入字符数超过了 5000 上限'); |
| | | return |
| | | } |
| | |
| | | import { GetCountryMain } from '../api/url_analyst.js' |
| | | import SeniorTranfer from '@/components/SeniorTranfer.vue'; |
| | | const options = { |
| | | keyWords: [{ code: 'title0|abstract0', name: '标题/摘要' }, { code: 'title0|abstract0|claim0', name: '标题/摘要/权利要求' }, { code: 'title0|abstract0|claim0|description0', name: '标题/摘要/权利要求/说明书' }, { code: 'title0', name: '标题' }, { code: 'abstract0', name: '摘要' }, { code: 'claim0', name: '权利要求' }, { code: 'description0', name: '说明书' }], |
| | | name: [{ code: 'assigneeHarmonizedName', name: '申请人' }, { code: 'inventorHarmonizedName', name: "发明人" }], |
| | | keyWords: [{ code: 'title0|abstract0|title1|abstract1', name: '标题/摘要' }, { code: 'title0|abstract0|title1|abstract1|claim0|claim1', name: '标题/摘要/权利要求' }, { code: 'title0|abstract0|description0|title1|abstract1|claim0|claim1', name: '标题/摘要/权利要求/说明书' }, { code: 'title0|title1', name: '标题' }, { code: 'abstract0|abstract1', name: '摘要' }, { code: 'claim0|claim1', name: '权利要求' }, { code: 'description0', name: '说明书' }], |
| | | name: [{ code: 'assigneeList', name: '申请人' }, { code: 'inventorList', name: "发明人" }], |
| | | address: [{ code: 'cnaddress', name: '申请人地址' }, { code: 'cnprovince', name: '中国申请人省份' }, { code: 'cncity', name: '中国申请人地市' }, { code: 'cncounty', name: '中国申请人区县' }, { code: 'assigneeCrossCountryCount', name: '申请人国别' }, { code: 'cncountry', name: '公开国别' }], |
| | | fenlei: [{ code: 'ipcCodeSort', name: 'IPC(国际分类)' }, { code: 'cpcCodeSort', name: 'CPC(合作专利分类)' }, { code: 'industrycode', name: '国民经济行业分类' }, { code: 'strategicIndustryCode', name: '战略性新兴产业分类' },{ code: 'locarnoCodeSort', name: '洛迦诺分类' }], |
| | | haoma: [{ code: 'publicationNumber', name: '公开号' }, { code: 'applicationNumber', name: '申请号' }, { code: 'pctNumber', name: 'PCT号' },], |
| | |
| | | form: { |
| | | keyWords: [ |
| | | { |
| | | select: 'title0|abstract0', |
| | | select: 'title0|abstract0|title1|abstract1', |
| | | text: '', |
| | | logic: 'AND', |
| | | value: '' |
| | |
| | | ], |
| | | name: [ |
| | | { |
| | | select: 'assigneeHarmonizedName', |
| | | select: 'assigneeList', |
| | | text: '', |
| | | logic: 'AND', |
| | | value: '' |
| | |
| | | field: item.select, |
| | | childFieldLevel: 0, |
| | | rule: key == "date" ? 'range' : item.select.indexOf('|') < 0 ? "or like" : 'or', |
| | | val:(item.select==='strategicIndustryCode'||item.select=== 'industrycode')&&item.text.length>0?((','+item.text).replaceAll(',',',|')).substring(1):item.text, |
| | | val:(item.select==='strategicIndustryCode'||item.select=== 'industrycode'||item.select=== 'cpcCodeSort')&&item.text.length>0?((','+item.text).replaceAll(',',',|')).substring(1):item.text, |
| | | // val:(item.select==='strategicIndustryCode'||item.select=== 'industrycode'||item.select==='cpcCodeSort')&&item.text.length>0?((','+item.text).replaceAll(',',',|')).substring(1):item.text, |
| | | } |
| | | if(obj.field==="locarnoCodeSort"){ |
| | | obj.val=(','+obj.val).replaceAll(',',',|').substring(1) |
| | | |
| | | } |
| | | console.log(obj); |
| | | if (key == 'date') { |
| | |
| | | val: checkedList.map(item => item.code || item.text).join(','), |
| | | childFieldLevel: 0, |
| | | } |
| | | |
| | | console.log(field); |
| | | if (field.indexOf('ipcList') > -1) { |
| | | obj.field = 'ipcListObject' |
| | | // obj.childFieldLevel=1 |
| | | // obj.val='B01' |
| | | } else if (field.indexOf('assigneeHarmonized') > -1) { |
| | | |
| | | obj.field = 'assigneeHarmonizedNameArray' |
| | | } else if (field.indexOf('inventorHarmonized') > -1) { |
| | | obj.field = 'inventorHarmonizedNameArray' |
| | |
| | | item.field = 'strategyIndustry' |
| | | } else if (field.indexOf('economyIndustry') > -1) { |
| | | obj.field = 'industrycode' |
| | | obj.val= (','+obj.val).replaceAll(',','|') |
| | | obj.rule='like' |
| | | // obj.val= (','+obj.val).replaceAll(',','|') |
| | | let arr = obj.val.split(',') |
| | | let str = '' |
| | | for (let i = 0; i < arr.length; i++) { |
| | | str += '|' + arr[i] + ',' |
| | | } |
| | | obj.val = str.substring(0, str.length - 1) |
| | | } |
| | | let val = item.val |
| | | let checkedCode = [] |