|
@@ -42,7 +42,7 @@
|
|
|
</el-tooltip>
|
|
|
</el-button-group>
|
|
|
<el-dropdown trigger="click" split-button type="primary" size="small">
|
|
|
- <span @click="handleFieldManage" >显示栏位管理</span>
|
|
|
+ <span @click="handleFieldManage">显示栏位管理</span>
|
|
|
<el-dropdown-menu slot="dropdown" class="text-align_center">
|
|
|
<el-dropdown-item @click.native="handleFile">报告文档</el-dropdown-item>
|
|
|
<!-- <el-dropdown-item @click.native="handleQuestion" v-if="$permission('/workspace/event')">事
|
|
@@ -97,8 +97,9 @@
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="handleAnalyse('custom')"
|
|
|
- :disabled="!($permission('/workspace/folder/analyticSystem/chartAnalysis') && $r(projectId, [1, 2, 4]))">图表分析</el-dropdown-item>
|
|
|
+ <!-- <el-dropdown-item @click.native="handleAnalyse('custom')"
|
|
|
+ :disabled="!($permission('/workspace/folder/analyticSystem/chartAnalysis') && $r(projectId, [1, 2, 4]))">图表分析</el-dropdown-item> -->
|
|
|
+ <el-dropdown-item @click.native="handleAnalyses">图表分析</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</div>
|
|
@@ -531,14 +532,60 @@ export default {
|
|
|
searchQuery: this.searchStr,
|
|
|
customFields: this.customFields
|
|
|
}
|
|
|
- let router=this.$router.resolve({
|
|
|
+ let router = this.$router.resolve({
|
|
|
path: '/exportPatent',
|
|
|
query: {
|
|
|
projectId: this.projectId,
|
|
|
- condition:JSON.stringify(obj)
|
|
|
+ condition: JSON.stringify(obj)
|
|
|
}
|
|
|
})
|
|
|
- window.open(router.href,'_blank')
|
|
|
+ window.open(router.href, '_blank')
|
|
|
+ },
|
|
|
+ //PDF首页导出
|
|
|
+ exportPDF() {
|
|
|
+ let params = {
|
|
|
+ projectId: this.projectId,
|
|
|
+ searchQuery: this.searchStr || '',//检索条件
|
|
|
+ customFields: this.customFields || [],//自定义字段的检索
|
|
|
+ }
|
|
|
+ this.$api.pdfFirstPage(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // let params = JSON.parse(JSON.stringify(this.queryParams))
|
|
|
+ // params.tree.map(tree => {
|
|
|
+ // let field = params.field.filter(item => item.key === tree.key)
|
|
|
+ // if (field.length === 0) {
|
|
|
+ // params.field.push(tree)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // params.tree = undefined
|
|
|
+ // this.$api.pdfFirstPage(params).then(response => {
|
|
|
+ // if (response.code == 200) {
|
|
|
+ // const router = this.$router.resolve({
|
|
|
+ // path: '/taskList',
|
|
|
+ // query: {
|
|
|
+ // projectId: this.projectId,
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // window.open(router.href, '_blank')
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ },
|
|
|
+ //图表分析
|
|
|
+ async handleAnalyses() {
|
|
|
+ // this.chartLoading = true
|
|
|
+ // const key = await this.saveSelectPatent(false)
|
|
|
+ // this.chartLoading = false
|
|
|
+ const router = this.$router.resolve({
|
|
|
+ path: '/customChart',
|
|
|
+ query: {
|
|
|
+ projectId: this.projectId,
|
|
|
+ // key: key
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.open(router.href, '_blank');
|
|
|
},
|
|
|
|
|
|
|
|
@@ -556,28 +603,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
- //PDF首页导出
|
|
|
- exportPDF() {
|
|
|
- let params = JSON.parse(JSON.stringify(this.queryParams))
|
|
|
- params.tree.map(tree => {
|
|
|
- let field = params.field.filter(item => item.key === tree.key)
|
|
|
- if (field.length === 0) {
|
|
|
- params.field.push(tree)
|
|
|
- }
|
|
|
- })
|
|
|
- params.tree = undefined
|
|
|
- this.$api.pdfFirstPage(params).then(response => {
|
|
|
- if (response.code == 200) {
|
|
|
- const router = this.$router.resolve({
|
|
|
- path: '/taskList',
|
|
|
- query: {
|
|
|
- projectId: this.projectId,
|
|
|
- }
|
|
|
- })
|
|
|
- window.open(router.href, '_blank')
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+
|
|
|
|
|
|
|
|
|
//合并申请人
|
|
@@ -589,20 +615,7 @@ export default {
|
|
|
this.$refs.patentInventorMergeDrawer.open(this.projectId)
|
|
|
},
|
|
|
|
|
|
- //图表分析
|
|
|
- async handleAnalyse(path) {
|
|
|
- this.chartLoading = true
|
|
|
- const key = await this.saveSelectPatent(false)
|
|
|
- this.chartLoading = false
|
|
|
- const router = this.$router.resolve({
|
|
|
- path: '/analyse/' + path,
|
|
|
- query: {
|
|
|
- id: this.projectId,
|
|
|
- key: key
|
|
|
- }
|
|
|
- })
|
|
|
- window.open(router.href, '_blank');
|
|
|
- },
|
|
|
+
|
|
|
//下载PDF
|
|
|
async handleDownload(patent) {
|
|
|
const { data } = await this.$api.getPatentInstructionList({ current: 1, size: 9999, patentNo: patent.patentNo })
|