|
@@ -20,21 +20,21 @@
|
|
|
}}</el-button>
|
|
|
</el-button-group>
|
|
|
<div id="step4" class="margin-left_10">
|
|
|
- <el-dropdown size="small" v-if="$permission('/pcs/report/add')">
|
|
|
+ <el-dropdown size="small" v-if="$permission('/pcs/report/add')">
|
|
|
<el-button type="primary" size="small">
|
|
|
创建报告<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
|
- <el-dropdown-menu slot="dropdown" style="margin-top:0px" v-if="dictMessage.REPORT_TYPE && dictMessage.REPORT_TYPE.length>0">
|
|
|
+ <el-dropdown-menu slot="dropdown" style="margin-top:0px"
|
|
|
+ v-if="dictMessage.REPORT_TYPE && dictMessage.REPORT_TYPE.length > 0">
|
|
|
<!-- 遍历按钮 -->
|
|
|
- <el-dropdown-item
|
|
|
- v-for="item in dictMessage.REPORT_TYPE.filter(item => !['6'].includes(item.value))"
|
|
|
+ <el-dropdown-item v-for="item in dictMessage.REPORT_TYPE.filter(item => !['6'].includes(item.value))"
|
|
|
:key="item.label" @click.native="handleAnalyse(item.value)"
|
|
|
v-if="$permission('/pcs/report/add/' + item.permission)">{{ item.label }}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
<el-button type="primary" class="margin-left_10" size="small" @click="showField">显示栏位管理</el-button>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</el-header>
|
|
|
<el-main id="patent-list-container" class="main" v-loading="loading">
|
|
@@ -73,10 +73,10 @@ export default {
|
|
|
},
|
|
|
props: {
|
|
|
isOperate: '',
|
|
|
- matterId:{},
|
|
|
- scenarioId:{},
|
|
|
- eventName:'',
|
|
|
- eventId:'',
|
|
|
+ matterId: {},
|
|
|
+ scenarioId: {},
|
|
|
+ eventName: '',
|
|
|
+ eventId: '',
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -103,10 +103,10 @@ export default {
|
|
|
//检索条件
|
|
|
searchOption: {
|
|
|
name: localStorage.searchContent,
|
|
|
- reportType:localStorage.reportType? [localStorage.reportType]:'',
|
|
|
- scenarioNames:this.scenarioId,
|
|
|
- matterNames:this.matterId,
|
|
|
- eventNames:this.eventName
|
|
|
+ reportType: localStorage.reportType ? [localStorage.reportType] : '',
|
|
|
+ scenarioNames: this.scenarioId,
|
|
|
+ matterNames: this.matterId,
|
|
|
+ eventNames: this.eventName
|
|
|
},
|
|
|
//分组的值
|
|
|
groupingValue: '',
|
|
@@ -138,7 +138,7 @@ export default {
|
|
|
columnList: [],
|
|
|
// 子组件新增、编辑报告成功发送的字符串
|
|
|
handleMessage: '',
|
|
|
- showView:false,
|
|
|
+ showView: false,
|
|
|
};
|
|
|
},
|
|
|
watch: {},
|
|
@@ -191,15 +191,15 @@ export default {
|
|
|
return []
|
|
|
|
|
|
},
|
|
|
- scene(){
|
|
|
- var a = this.$store.state.dictMessage.scenario.map(item=>{
|
|
|
+ scene() {
|
|
|
+ var a = this.$store.state.dictMessage.scenario.map(item => {
|
|
|
return {
|
|
|
- label:item.name,
|
|
|
- value:item.id
|
|
|
+ label: item.name,
|
|
|
+ value: item.id
|
|
|
}
|
|
|
})
|
|
|
- var obj = this.searchFiled.find(item=>{return item.label == '应用场景'})
|
|
|
- if(obj){
|
|
|
+ var obj = this.searchFiled.find(item => { return item.label == '应用场景' })
|
|
|
+ if (obj) {
|
|
|
obj.options = a
|
|
|
}
|
|
|
return this.$store.state.dictMessage.scenario
|
|
@@ -271,22 +271,22 @@ export default {
|
|
|
this.handleSearchArray(obj)
|
|
|
}
|
|
|
})
|
|
|
- //为应用场景添加选项
|
|
|
- var obj = this.searchFiled.find(item=>{return item.label == '应用场景'})
|
|
|
- if(obj){
|
|
|
- obj.options = this.scene.map(item=>{
|
|
|
+ //为应用场景添加选项
|
|
|
+ var obj = this.searchFiled.find(item => { return item.label == '应用场景' })
|
|
|
+ if (obj) {
|
|
|
+ obj.options = this.scene.map(item => {
|
|
|
return {
|
|
|
- label:item.name,
|
|
|
- value:item.id
|
|
|
+ label: item.name,
|
|
|
+ value: item.id
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- var obj = this.searchFiled.find(item=>{return item.label == '调查类型'})
|
|
|
- if(obj){
|
|
|
- obj.options = this.matter.map(item=>{
|
|
|
+ var obj = this.searchFiled.find(item => { return item.label == '调查类型' })
|
|
|
+ if (obj) {
|
|
|
+ obj.options = this.matter.map(item => {
|
|
|
return {
|
|
|
- label:item.name,
|
|
|
- value:item.id
|
|
|
+ label: item.name,
|
|
|
+ value: item.id
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -298,7 +298,7 @@ export default {
|
|
|
handleSearchArray(obj) {
|
|
|
switch (obj.label) {
|
|
|
case '报告类型':
|
|
|
- if(this.dictMessage.REPORT_TYPE && this.dictMessage.REPORT_TYPE.length>0){
|
|
|
+ if (this.dictMessage.REPORT_TYPE && this.dictMessage.REPORT_TYPE.length > 0) {
|
|
|
let dict = this.dictMessage.REPORT_TYPE.filter(item => !['6'].includes(item.value))
|
|
|
obj.options = dict.map(item => {
|
|
|
return {
|
|
@@ -307,7 +307,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
break;
|
|
|
case '报告状态':
|
|
|
obj.options = [
|
|
@@ -377,8 +377,8 @@ export default {
|
|
|
searchQuery: this.$commonJS.objectToString(this.searchOption),//检索条件
|
|
|
orderDTOList: [
|
|
|
{
|
|
|
- orderBy:this.groupingValue,
|
|
|
- orderType:this.sort.orderType
|
|
|
+ orderBy: this.groupingValue,
|
|
|
+ orderType: this.sort.orderType
|
|
|
}
|
|
|
],//排序
|
|
|
groupBy: this.groupingValue,//分组信息
|
|
@@ -398,7 +398,7 @@ export default {
|
|
|
handleSort({ column, prop, order }) {
|
|
|
//如需要多个字段排序,则不需要清空
|
|
|
var params = {
|
|
|
- sort:this.sort,
|
|
|
+ sort: this.sort,
|
|
|
column,
|
|
|
prop,
|
|
|
order,
|
|
@@ -463,10 +463,10 @@ export default {
|
|
|
handleAnalyse(id) {
|
|
|
var form = {
|
|
|
reportType: id,
|
|
|
- eventId:this.eventId,
|
|
|
- eventName:this.eventName,
|
|
|
- matterId:this.matterId || [],
|
|
|
- scenarioId:this.scenarioId || [],
|
|
|
+ eventId: this.eventId,
|
|
|
+ eventName: this.eventName,
|
|
|
+ matterId: this.matterId || [],
|
|
|
+ scenarioId: this.scenarioId || [],
|
|
|
}
|
|
|
this.$refs.ReportForm.open(form)
|
|
|
},
|
|
@@ -512,7 +512,7 @@ export default {
|
|
|
window.open(routerReport3.href, '_blank');
|
|
|
break
|
|
|
case '9'://回避设计
|
|
|
- this.handleDetails(row)
|
|
|
+ this.handleDetails(row, '回避设计')
|
|
|
break;
|
|
|
case '10'://添加对比文件
|
|
|
this.addPatentList(row)
|
|
@@ -534,6 +534,19 @@ export default {
|
|
|
break
|
|
|
}
|
|
|
},
|
|
|
+ // 跳转回避设计或拆分特征
|
|
|
+ handleDetails(row, type) {
|
|
|
+ if (type == '回避设计') {
|
|
|
+ var router = this.$router.resolve({
|
|
|
+ path: "/avoid",
|
|
|
+ query: {
|
|
|
+ patentNo: row.patentNo,
|
|
|
+ reportId: row.reportId,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.open(router.href, '_blank');
|
|
|
+ }
|
|
|
+ },
|
|
|
// 删除
|
|
|
handleDelete(row, isLast) {
|
|
|
this.handleDeletes([row.id], isLast)
|
|
@@ -632,7 +645,7 @@ export default {
|
|
|
},
|
|
|
//清空信息
|
|
|
clearMessage() {
|
|
|
- this.$emit('submit',true)
|
|
|
+ this.$emit('submit', true)
|
|
|
this.$nextTick(() => {
|
|
|
this.handleMessage = ''
|
|
|
})
|