|
@@ -4,112 +4,109 @@
|
|
|
<el-aside width="200px">Aside</el-aside>
|
|
|
<el-container>
|
|
|
<el-header style="display:flex;justify-content:space-between">
|
|
|
- <div style="display:flex">
|
|
|
- <el-tooltip class="item" effect="dark" :content="(showLeft ? '隐藏' : '显示') + '左侧菜单'" placement="top">
|
|
|
- <i :class="showLeft ? 'el-icon-s-fold' : 'el-icon-s-unfold'" style="font-size: 25px;position: relative; top: 5px; color: #2f2f2f; cursor: pointer" @click="showLeft = !showLeft"></i>
|
|
|
- </el-tooltip>
|
|
|
- <mySearch :SearchFields="searchFiled" @search="search" :searchValue="searchOption"></mySearch>
|
|
|
- <el-popover placement="bottom" title="关键词高亮" width="320" trigger="click">
|
|
|
- <!-- <patent-keywords-highlight :project-id="projectId" /> -->
|
|
|
- <el-button slot="reference" size="small" type="primary" class="margin-right_10 margin-left_10" :disabled="!$permission('/workspace/common/highlight')">
|
|
|
- 高亮<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
- </el-button>
|
|
|
- </el-popover>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <el-button-group class="margin-left_10">
|
|
|
- <el-tooltip v-for="item in viewList" :key="item.value" class="item" effect="dark" :content="item.title" placement="top">
|
|
|
- <el-button @click="handleChangeView(item)" size="small" :type="viewSelected === item.value ? 'primary' : ''" >
|
|
|
- <i :class="item.btn" style="font-size: 12px !important;"></i>
|
|
|
- </el-button>
|
|
|
- </el-tooltip>
|
|
|
- </el-button-group>
|
|
|
- <el-dropdown trigger="click" split-button type="primary" size="small">
|
|
|
- <span @click="handleField" v-disabled="!($permission('/workspace/common/customField') && $r(projectId,[1,2]))">自定义栏位管理</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')">事 件</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="handleFieldManage">显示栏位管理</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="exportPDF">导出PDF首页</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="handleBatch" :disabled="!($permission('/workspace/folder/batchUploadSpecification') && $r(projectId,[1,2]))">批量上传说明书</el-dropdown-item>
|
|
|
- <el-dropdown-item>
|
|
|
- <el-dropdown trigger="hover" placement="right-start">
|
|
|
- <span>
|
|
|
- 导出专利<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
- </span>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item @click.native="handleExport(false)">当前全部</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="handleExport(true)">当前所选</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item>
|
|
|
- <el-dropdown trigger="hover" placement="right-start">
|
|
|
- <span>
|
|
|
- {{ familyObj[queryParams.family] }}<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
- </span>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item v-for="(item, key) in familyObj" :key="key" @click.native="onChangeFamily(key)">{{ item }}</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item :disabled="!$permission('/workspace/folder/merge')">
|
|
|
- <el-dropdown trigger="hover" placement="right-start">
|
|
|
- <span >
|
|
|
- 合并<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
- </span>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item @click.native="handleMerge2" :disabled="!($permission('/workspace/folder/merge/inventorMerge') && $r(projectId,[1,2]))">发明人</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="handleMerge" :disabled="!($permission('/workspace/folder/merge/applicationMerge') && $r(projectId,[1,2]))">申请人/权利人</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item v-if="$permission('/workspace/createReport')">
|
|
|
- <el-dropdown trigger="hover" placement="right-start">
|
|
|
- <span>
|
|
|
- 创建报告<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
- </span>
|
|
|
- <el-dropdown-menu slot="dropdown" style="margin-top:0px">
|
|
|
- <!-- 遍历按钮 -->
|
|
|
- <el-dropdown-item @click.native="handleAnalyses(3)" v-if="$permission('/workspace/createReport/FTO')">FTO调查</el-dropdown-item>
|
|
|
- </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>
|
|
|
+ <div style="display:flex">
|
|
|
+ <el-tooltip class="item" effect="dark" :content="(showLeft ? '隐藏' : '显示') + '左侧菜单'" placement="top">
|
|
|
+ <i :class="showLeft ? 'el-icon-s-fold' : 'el-icon-s-unfold'"
|
|
|
+ style="font-size: 25px;position: relative; top: 5px; color: #2f2f2f; cursor: pointer"
|
|
|
+ @click="showLeft = !showLeft"></i>
|
|
|
+ </el-tooltip>
|
|
|
+ <mySearch :SearchFields="searchFiled" @search="search" :searchValue="searchOption"></mySearch>
|
|
|
+ <el-popover placement="bottom" title="关键词高亮" width="320" trigger="click">
|
|
|
+ <!-- <patent-keywords-highlight :project-id="projectId" /> -->
|
|
|
+ <el-button slot="reference" size="small" type="primary" class="margin-right_10 margin-left_10"
|
|
|
+ :disabled="!$permission('/workspace/common/highlight')">
|
|
|
+ 高亮<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-button-group class="margin-left_10">
|
|
|
+ <el-tooltip v-for="item in viewList" :key="item.value" class="item" effect="dark" :content="item.title"
|
|
|
+ placement="top">
|
|
|
+ <el-button @click="handleChangeView(item)" size="small"
|
|
|
+ :type="viewSelected === item.value ? 'primary' : ''">
|
|
|
+ <i :class="item.btn" style="font-size: 12px !important;"></i>
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
+ </el-button-group>
|
|
|
+ <el-dropdown trigger="click" split-button type="primary" size="small">
|
|
|
+ <span @click="handleField"
|
|
|
+ v-disabled="!($permission('/workspace/common/customField') && $r(projectId, [1, 2]))">自定义栏位管理</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')">事
|
|
|
+ 件</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleFieldManage">显示栏位管理</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="exportPDF">导出PDF首页</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleBatch"
|
|
|
+ :disabled="!($permission('/workspace/folder/batchUploadSpecification') && $r(projectId, [1, 2]))">批量上传说明书</el-dropdown-item>
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-dropdown trigger="hover" placement="right-start">
|
|
|
+ <span>
|
|
|
+ 导出专利<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
+ </span>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item @click.native="handleExport(false)">当前全部</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleExport(true)">当前所选</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </div>
|
|
|
-
|
|
|
+ </el-dropdown>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-dropdown trigger="hover" placement="right-start">
|
|
|
+ <span>
|
|
|
+ {{ familyObj[queryParams.family] }}<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
+ </span>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item v-for="(item, key) in familyObj" :key="key" @click.native="onChangeFamily(key)">{{
|
|
|
+ item }}</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item :disabled="!$permission('/workspace/folder/merge')">
|
|
|
+ <el-dropdown trigger="hover" placement="right-start">
|
|
|
+ <span>
|
|
|
+ 合并<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
+ </span>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item @click.native="handleMerge2"
|
|
|
+ :disabled="!($permission('/workspace/folder/merge/inventorMerge') && $r(projectId, [1, 2]))">发明人</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleMerge"
|
|
|
+ :disabled="!($permission('/workspace/folder/merge/applicationMerge') && $r(projectId, [1, 2]))">申请人/权利人</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item v-if="$permission('/workspace/createReport')">
|
|
|
+ <el-dropdown trigger="hover" placement="right-start">
|
|
|
+ <span>
|
|
|
+ 创建报告<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
+ </span>
|
|
|
+ <el-dropdown-menu slot="dropdown" style="margin-top:0px">
|
|
|
+ <!-- 遍历按钮 -->
|
|
|
+ <el-dropdown-item @click.native="handleAnalyses(3)"
|
|
|
+ v-if="$permission('/workspace/createReport/FTO')">FTO调查</el-dropdown-item>
|
|
|
+ </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-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </div>
|
|
|
+
|
|
|
</el-header>
|
|
|
<el-main v-loading="loading">
|
|
|
- <div>
|
|
|
- <component
|
|
|
- ref="patentViewList"
|
|
|
- :is="viewSelected"
|
|
|
- @download="handleDownload"
|
|
|
- @change-read="handleChangeRead"
|
|
|
- @select-change="handleSelect"
|
|
|
- :projectId="projectId"
|
|
|
- :selected.sync="queryParams.selected"
|
|
|
- :patentNoList.sync="patentNoList"
|
|
|
- :view-field="customList"
|
|
|
- @index-setting="handleIndexSetting"
|
|
|
- @on-sort="handleSort"
|
|
|
- :queryParams="queryParams"
|
|
|
- ></component>
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ <component ref="patentViewList" :is="viewSelected" @download="handleDownload" @change-read="handleChangeRead"
|
|
|
+ :projectId="projectId" :selected.sync="queryParams.selected"
|
|
|
+ :patentNoList.sync="patentNoList" :column="customList" @index-setting="handleIndexSetting"
|
|
|
+ @on-sort="handleSort" :queryParams="queryParams" :tableData="tableData"></component>
|
|
|
+ </div>
|
|
|
</el-main>
|
|
|
<el-footer class="pagination">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :current-page.sync="queryParams.current"
|
|
|
- :page-sizes="sizeArr"
|
|
|
- :page-size.sync="queryParams.size"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- @size-change="getList"
|
|
|
- :total="total">
|
|
|
- </el-pagination>
|
|
|
+ <el-pagination background layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :current-page.sync="queryParams.current" :page-sizes="sizeArr" :page-size.sync="queryParams.size"
|
|
|
+ @current-change="handleCurrentChange" @size-change="getList" :total="total">
|
|
|
+ </el-pagination>
|
|
|
</el-footer>
|
|
|
</el-container>
|
|
|
</el-container>
|
|
@@ -120,9 +117,9 @@
|
|
|
|
|
|
<script>
|
|
|
import { downLoad2, getTreeDataList, getTreeLastChildren, getPatentCountry } from "@/utils"
|
|
|
- import FieldDrawer from '@/views/components/drawer/Field.vue'
|
|
|
+import FieldDrawer from '@/views/components/drawer/Field.vue'
|
|
|
// import PatentAbstractListView from './components/views/Abstract'
|
|
|
-import PatentTableListView from './components/views/Table'
|
|
|
+import PatentTableListView from './components/views/Table.vue'
|
|
|
// import PatentPictureListView from './components/views/Picture'
|
|
|
// import PatentPDFListView from './components/views/PDF.vue'
|
|
|
export default {
|
|
@@ -135,126 +132,147 @@ export default {
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- //是否隐藏左侧
|
|
|
- showLeft:false,
|
|
|
- //检索字段
|
|
|
- searchFiled: [
|
|
|
- {
|
|
|
- label: "项目名称",
|
|
|
- value: "name",
|
|
|
- type: 1,
|
|
|
- placeholder: "请输入项目名称",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "技术主题",
|
|
|
- value: "technicalTheme",
|
|
|
- type: 1,
|
|
|
- placeholder: "请输入技术主题",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "负责部门",
|
|
|
- value: "departmentId",
|
|
|
- type: 3,
|
|
|
- placeholder: "请选择负责部门",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "内部案卷",
|
|
|
- value: "innerFile",
|
|
|
- type: 1,
|
|
|
- placeholder: "请输入内部案卷",
|
|
|
- },
|
|
|
- ],
|
|
|
- //检索条件
|
|
|
- searchOption: {
|
|
|
- name: localStorage.searchContent,
|
|
|
+ //是否隐藏左侧
|
|
|
+ showLeft: false,
|
|
|
+ //检索字段
|
|
|
+ searchFiled: [
|
|
|
+ {
|
|
|
+ label: "项目名称",
|
|
|
+ value: "name",
|
|
|
+ type: 1,
|
|
|
+ placeholder: "请输入项目名称",
|
|
|
},
|
|
|
- //专利数据库ID
|
|
|
- projectId:0,
|
|
|
- //视图方式
|
|
|
- viewList: [
|
|
|
- {
|
|
|
- value: 'patent-table-list-view',
|
|
|
- title: '表格视图',
|
|
|
- btn: 'el-icon-tickets',
|
|
|
- },
|
|
|
- {
|
|
|
- value: 'patent-abstract-list-view',
|
|
|
- title: '摘要视图',
|
|
|
- btn: 'el-icon-news',
|
|
|
- },
|
|
|
- {
|
|
|
- value: 'patent-picture-list-view',
|
|
|
- title: '图片视图',
|
|
|
- btn: 'el-icon-picture-outline',
|
|
|
- },
|
|
|
- {
|
|
|
- value:'PatentPDFListView',
|
|
|
- title: 'PDF视图',
|
|
|
- btn: 'iconfont icon-pdf',
|
|
|
- }
|
|
|
- ],
|
|
|
- //选择的视图
|
|
|
- viewSelected:"patent-table-list-view",
|
|
|
- //显示栏位
|
|
|
- customList:[],
|
|
|
- //同族
|
|
|
- familyObj: {
|
|
|
- 0: '不区分同族',
|
|
|
- 1: '简单同族',
|
|
|
- 2: 'INPADOC同族',
|
|
|
- 3: '扩展同族',
|
|
|
+ {
|
|
|
+ label: "技术主题",
|
|
|
+ value: "technicalTheme",
|
|
|
+ type: 1,
|
|
|
+ placeholder: "请输入技术主题",
|
|
|
},
|
|
|
- //页大小
|
|
|
- sizeArr:[10, 20, 30, 40, 50, 100],
|
|
|
- //分页
|
|
|
- queryParams:{
|
|
|
- current:1,
|
|
|
- size:10
|
|
|
+ {
|
|
|
+ label: "负责部门",
|
|
|
+ value: "departmentId",
|
|
|
+ type: 3,
|
|
|
+ placeholder: "请选择负责部门",
|
|
|
},
|
|
|
- //总数
|
|
|
- total:0,
|
|
|
- //排序
|
|
|
- sort:[
|
|
|
- {
|
|
|
- "orderBy": "createTime",
|
|
|
- "orderType": 1
|
|
|
- }
|
|
|
- ],
|
|
|
- //选择的专利集合
|
|
|
- patentNoList:[],
|
|
|
- //加载
|
|
|
- loading:false,
|
|
|
+ {
|
|
|
+ label: "内部案卷",
|
|
|
+ value: "innerFile",
|
|
|
+ type: 1,
|
|
|
+ placeholder: "请输入内部案卷",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ //检索条件
|
|
|
+ searchOption: {
|
|
|
+ name: localStorage.searchContent,
|
|
|
+ },
|
|
|
+ //专利数据库ID
|
|
|
+ projectId: 0,
|
|
|
+ //视图方式
|
|
|
+ viewList: [
|
|
|
+ {
|
|
|
+ value: 'patent-table-list-view',
|
|
|
+ title: '表格视图',
|
|
|
+ btn: 'el-icon-tickets',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'patent-abstract-list-view',
|
|
|
+ title: '摘要视图',
|
|
|
+ btn: 'el-icon-news',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'patent-picture-list-view',
|
|
|
+ title: '图片视图',
|
|
|
+ btn: 'el-icon-picture-outline',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'PatentPDFListView',
|
|
|
+ title: 'PDF视图',
|
|
|
+ btn: 'iconfont icon-pdf',
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ //选择的视图
|
|
|
+ viewSelected: "patent-table-list-view",
|
|
|
+ //显示栏位
|
|
|
+ customList: [],
|
|
|
+ //同族
|
|
|
+ familyObj: {
|
|
|
+ 0: '不区分同族',
|
|
|
+ 1: '简单同族',
|
|
|
+ 2: 'INPADOC同族',
|
|
|
+ 3: '扩展同族',
|
|
|
+ },
|
|
|
+ //页大小
|
|
|
+ sizeArr: [10, 20, 30, 40, 50, 100],
|
|
|
+ //分页
|
|
|
+ queryParams: {
|
|
|
+ current: 1,
|
|
|
+ size: 10
|
|
|
+ },
|
|
|
+ //总数
|
|
|
+ total: 0,
|
|
|
+ //排序
|
|
|
+ sort: [
|
|
|
+ {
|
|
|
+ "orderBy": "createTime",
|
|
|
+ "orderType": 1
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ //选择的专利集合
|
|
|
+ patentNoList: [],
|
|
|
+ //加载
|
|
|
+ loading: false,
|
|
|
+ // 数据
|
|
|
+ tableData:[],
|
|
|
};
|
|
|
},
|
|
|
watch: {},
|
|
|
- computed: {},
|
|
|
- created() {},
|
|
|
+ computed: {
|
|
|
+ // 专题库id
|
|
|
+ id() {
|
|
|
+ return this.$route.query.id
|
|
|
+ },
|
|
|
+ },
|
|
|
+ created() { },
|
|
|
async mounted() {
|
|
|
- this.customList = await this.$commonJS.getCustomField('reportProject')
|
|
|
+ this.customList = await this.$commonJS.getCustomField('patent')
|
|
|
+ // 获取专利信息
|
|
|
+ this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
//检索
|
|
|
- search(val){
|
|
|
-
|
|
|
+ search(val) {
|
|
|
+
|
|
|
},
|
|
|
//切换视图
|
|
|
async handleChangeView(item) {
|
|
|
this.viewSelected = item.value
|
|
|
this.queryParams.current = 1
|
|
|
- if(this.viewSelected == 'PatentPDFListView'){
|
|
|
+ if (this.viewSelected == 'PatentPDFListView') {
|
|
|
return false
|
|
|
}
|
|
|
if (this.viewSelected === 'patent-picture-list-view') {
|
|
|
-
|
|
|
- this.$set(this.queryParams,'size',20)
|
|
|
+
|
|
|
+ this.$set(this.queryParams, 'size', 20)
|
|
|
} else {
|
|
|
this.queryParams.size = 10
|
|
|
}
|
|
|
this.getList()
|
|
|
},
|
|
|
//获取专利信息
|
|
|
- getList(){
|
|
|
-
|
|
|
+ getList() {
|
|
|
+ let params = {
|
|
|
+ ...this.queryParams,//分页信息
|
|
|
+ projectId:this.id,
|
|
|
+ }
|
|
|
+ this.$api.QueryPatent(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.tableData = res.data.data
|
|
|
+ this.total=res.data.total
|
|
|
+ }
|
|
|
+ }).catch(error => {
|
|
|
+ this.tableData = []
|
|
|
+ this.total = 0
|
|
|
+ })
|
|
|
},
|
|
|
//排序
|
|
|
handleSort(data) {
|
|
@@ -284,16 +302,16 @@ export default {
|
|
|
},
|
|
|
// 事件按钮
|
|
|
handleQuestion() {
|
|
|
- let a=this.$router.resolve({
|
|
|
+ let a = this.$router.resolve({
|
|
|
path: '/questionEvent',
|
|
|
query: {
|
|
|
- projectId:this.projectId
|
|
|
+ projectId: this.projectId
|
|
|
}
|
|
|
})
|
|
|
window.open(a.href, '_blank');
|
|
|
},
|
|
|
//PDF首页导出
|
|
|
- exportPDF(){
|
|
|
+ exportPDF() {
|
|
|
let params = JSON.parse(JSON.stringify(this.queryParams))
|
|
|
params.tree.map(tree => {
|
|
|
let field = params.field.filter(item => item.key === tree.key)
|
|
@@ -302,15 +320,15 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
params.tree = undefined
|
|
|
- this.$api.pdfFirstPage(params).then(response=>{
|
|
|
- if(response.code == 200){
|
|
|
+ this.$api.pdfFirstPage(params).then(response => {
|
|
|
+ if (response.code == 200) {
|
|
|
const router = this.$router.resolve({
|
|
|
path: '/taskList',
|
|
|
query: {
|
|
|
- projectId:this.projectId,
|
|
|
+ projectId: this.projectId,
|
|
|
}
|
|
|
})
|
|
|
- window.open(router.href,'_blank')
|
|
|
+ window.open(router.href, '_blank')
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -346,16 +364,16 @@ export default {
|
|
|
},
|
|
|
//创建FTO报告
|
|
|
handleAnalyses(id) {
|
|
|
- this.$api.getProject({id:this.projectId}).then(response=>{
|
|
|
+ this.$api.getProject({ id: this.projectId }).then(response => {
|
|
|
var form = {
|
|
|
- type:id,
|
|
|
- projectId:this.projectId,
|
|
|
- departmentId:response.data[0].departmentId,
|
|
|
- personId:response.data[0].personnelId,
|
|
|
- clientId:response.data[0].clientId,
|
|
|
- proTec:response.data[0].technicalTheme,
|
|
|
- scenarioList:response.data[0].scenarioList
|
|
|
- }
|
|
|
+ type: id,
|
|
|
+ projectId: this.projectId,
|
|
|
+ departmentId: response.data[0].departmentId,
|
|
|
+ personId: response.data[0].personnelId,
|
|
|
+ clientId: response.data[0].clientId,
|
|
|
+ proTec: response.data[0].technicalTheme,
|
|
|
+ scenarioList: response.data[0].scenarioList
|
|
|
+ }
|
|
|
this.$refs.ReportForm.open(form)
|
|
|
})
|
|
|
},
|
|
@@ -382,7 +400,7 @@ export default {
|
|
|
this.$alert('专利暂未上传说明书文档', '请求错误', {
|
|
|
confirmButtonText: '确定',
|
|
|
type: 'error',
|
|
|
- callback: action => {}
|
|
|
+ callback: action => { }
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -412,5 +430,4 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang="scss" scoped>
|
|
|
-</style>
|
|
|
+<style lang="scss" scoped></style>
|