|
@@ -16,7 +16,7 @@
|
|
|
</el-header>
|
|
|
<el-main style="padding-top: 0px !important">
|
|
|
|
|
|
- <component :is="viewType" style="height: calc(100% - -10px);overflow: auto;" :tableData="tableData"
|
|
|
+ <component :is="viewType" style="height: calc(100% - -10px);overflow: auto;" :loading="loading" :tableData="tableData"
|
|
|
:patentNo="patentNo" :projectId="projectId" :reportType="reportType" :columnList="columnList"
|
|
|
@splitSelect="splitSelect" @isSave="isSave" :isEdit="(taskId && isResult) ? false : true"
|
|
|
:isResult="isResult" @changeResult="changeResult">
|
|
@@ -86,7 +86,8 @@ export default {
|
|
|
value: ['originalRecordVO', 'compareDescription'],
|
|
|
},
|
|
|
],
|
|
|
- field:['targetDescription','compareResult','compareDescription']
|
|
|
+ field:['targetDescription','compareResult','compareDescription'],
|
|
|
+ loading:false
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
@@ -257,6 +258,8 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message.error('保存失败')
|
|
|
})
|
|
|
} else if (this.taskId && (this.isResult == 1)) {//处理协同结果保存或查看协同结果
|
|
|
for (let i = 0; i < val.length; i++) {
|
|
@@ -276,6 +279,8 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message.error('保存失败')
|
|
|
})
|
|
|
} else {//拆分保存
|
|
|
for (let i = 0; i < val.length; i++) {
|
|
@@ -295,6 +300,8 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message.error('保存失败')
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
@@ -314,6 +321,8 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message.error('保存失败')
|
|
|
})
|
|
|
} else if (this.taskId && this.isResult == 1) {//处理协同结果保存或查看协同结果
|
|
|
for (let i = 0; i < val.length; i++) {
|
|
@@ -331,6 +340,8 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message.error('保存失败')
|
|
|
})
|
|
|
} else {//侵权报告拆分保存
|
|
|
for (let i = 0; i < val.length; i++) {
|
|
@@ -348,6 +359,8 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message.error('保存失败')
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -366,17 +379,24 @@ export default {
|
|
|
3: ['getFTOAssItResult', 'getFTOFinalResult', 'getFTOCompareRecord'],
|
|
|
4: ['getAllTortTaskResult', 'getTortFinalResult', 'getTortCompareRecord']
|
|
|
}
|
|
|
+ this.loading = true
|
|
|
if (this.taskId && this.isResult == 1) {//处理协同
|
|
|
this.$api[api[this.reportType][0]](params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.getInterface(res)
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.tableData = []
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
} else if (this.taskId && (this.isResult == 3|| this.isResult == 2)) {//确认协同结果,
|
|
|
this.$api[api[this.reportType][1]](params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.getInterface(res)
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.tableData = []
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
} else {//FTO对比结果
|
|
|
params = {
|
|
@@ -390,6 +410,9 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.getInterface(res)
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.tableData = []
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -414,6 +437,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.tableData = data
|
|
|
+ this.loading = false
|
|
|
}
|
|
|
},
|
|
|
hasOwn(item) {
|