| | |
| | | treeDimensions: { children: 'children', title: 'Desc', key: 'Code' }, |
| | | parentCodeSearch: '', |
| | | fitst: true, |
| | | copy:'1', |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | } |
| | | this.treeLoading = true |
| | | url(params).then(res => { |
| | | this.treeData = this.formatTreeData(res.Data,0) |
| | | this.treeData = this.formatTreeData(res.Data) |
| | | // console.log(this.treeData); |
| | | // if (url.toString().indexOf('GetCpcClass') > 0) { |
| | | // // this.treeData |
| | |
| | | } |
| | | this.treeLoading = true |
| | | url(params).then(res => { |
| | | this.treeData = this.formatTreeData(res.Data,1) |
| | | this.treeData = this.formatTreeData(res.Data) |
| | | // console.log(this.treeData); |
| | | if (url.toString().indexOf('GetStraindustryTree') > 0) { |
| | | // this.treeData |
| | |
| | | }) |
| | | }, |
| | | //统一格式 key title |
| | | formatTreeData(listData,search) { |
| | | formatTreeData(listData) { |
| | | // console.log(search); |
| | | let tempList = [] |
| | | let that = this |
| | | function flatten(list = []) { |
| | | list.forEach(item => { |
| | | if(search===1){ |
| | | item.title = that.activeKey === 'cpcCodeSort' || (that.activeKey === 'ipcCodeSort' && item.ParentCode) ? item.Code + " " + item[that.treeDimensions.title] : item[that.treeDimensions.title] |
| | | }else{ |
| | | item.title= item.valueshow |
| | | } |
| | | |
| | | // console.log(item,that.treeDimensions); |
| | | // item.valueshow = that.treeDimensions.valueshow |
| | | item.title= item.valueshow |
| | | item.key = item[that.treeDimensions.key] |
| | | flatten(item.children); |
| | | |
| | | }); |
| | | |
| | | } |
| | | tempList = JSON.parse(JSON.stringify(listData)) |
| | | flatten(tempList); |
| | | that.copy='' |
| | | return tempList |
| | | }, |
| | | transferChange(targetKeys) { |
| | |
| | | itemSelect(eventKey, !isChecked(checkedKeys, eventKey)); |
| | | }, |
| | | onLoadData(treeNode) { |
| | | // console.log(treeNode); |
| | | console.log(treeNode); |
| | | return new Promise(resolve => { |
| | | if (treeNode.dataRef.children) { |
| | | resolve(); |
| | |
| | | if (this.activeKey == 'cpcCodeSort') { |
| | | 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 => { |
| | | treeNode.dataRef.children = this.formatTreeData(res.Data) |
| | | // if(this.parentCodeSearch){ |
| | | // treeNode.dataRef.children = this.formatTreeData(res.Data,0) |
| | | // }else{ |
| | | treeNode.dataRef.children = this.formatTreeData(res.Data) |
| | | // } |
| | | |
| | | this.treeData = [...this.treeData]; |
| | | resolve(); |
| | | }) |
| | |
| | | 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: "发明人" }], |
| | | address: [{ code: 'address', name: '申请人地址' }, { code: 'province', name: '中国申请人省' }, { code: 'city', name: '中国申请人地市' }, { code: 'county', name: '中国申请人区县' }, { code: 'assigneeCrossCountryCount', name: '申请人国别' }, { code: 'country', name: '公开国别' }], |
| | | fenlei: [{ code: 'ipcCodeSort', name: 'IPC(国际分类)' }, { code: 'cpcCodeSort', name: 'CPC(合作专利分类)' }, { code: 'industrycn', name: '国民经济行业分类' }, { code: 'stratregicIndustry', name: '战略性新兴产业分类' },{ code: 'locarnoCodeSort', name: '洛迦诺分类' }], |
| | | fenlei: [{ code: 'ipcCodeSort', name: 'IPC(国际分类)' }, { code: 'cpcCodeSort', name: 'CPC(合作专利分类)' }, { code: 'industrycn', name: '国民经济行业分类' }, { code: 'strategicIndustryCode', name: '战略性新兴产业分类' },{ code: 'locarnoCodeSort', name: '洛迦诺分类' }], |
| | | haoma: [{ code: 'publicationNumber', name: '公开号' }, { code: 'applicationNumber', name: '申请号' }, { code: 'pctNumber', name: 'PCT号' },], |
| | | // {code:'',name:'优先权号'} |
| | | date: [{ code: 'publicationDate', name: '公开日' }, { code: 'filingDate', name: '申请日' }, { code: 'grantDate', name: '授权日' }, { code: 'priorityDate', name: '优先权日' }], |