|
@@ -227,7 +227,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- edit(row,index) {
|
|
|
|
|
|
+ async edit(row,index) {
|
|
if (row.vVisible == false) {
|
|
if (row.vVisible == false) {
|
|
// let data = {
|
|
// let data = {
|
|
// id: row.id,
|
|
// id: row.id,
|
|
@@ -251,16 +251,20 @@ export default {
|
|
row.patentNo = this.patent.publicNo
|
|
row.patentNo = this.patent.publicNo
|
|
formData.append("jsons", JSON.stringify(row));
|
|
formData.append("jsons", JSON.stringify(row));
|
|
if (row.id) {
|
|
if (row.id) {
|
|
- this.$api.editLitigationHistory(formData).then(res => {
|
|
|
|
|
|
+ await this.$api.editLitigationHistory(formData).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success('修改成功')
|
|
this.$message.success('修改成功')
|
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
|
+ row.fileList=[]
|
|
this.getList2(row,index)
|
|
this.getList2(row,index)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- this.$api.addLitigationHistory(formData).then(res => {
|
|
|
|
|
|
+ await this.$api.addLitigationHistory(formData).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success('保存成功')
|
|
this.$message.success('保存成功')
|
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
|
+ row.fileList=[]
|
|
this.getList2(row,index)
|
|
this.getList2(row,index)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -278,6 +282,7 @@ export default {
|
|
this.$set(this.litigationData[index],'id',res.data.records[index].id)
|
|
this.$set(this.litigationData[index],'id',res.data.records[index].id)
|
|
}
|
|
}
|
|
this.$set(this.litigationData[index],'reportFiles',res.data.records[index].reportFiles)
|
|
this.$set(this.litigationData[index],'reportFiles',res.data.records[index].reportFiles)
|
|
|
|
+ this.total=res.data.total
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -333,7 +338,7 @@ export default {
|
|
for (let i = 0; i < res.data.records.length; i++){
|
|
for (let i = 0; i < res.data.records.length; i++){
|
|
res.data.records[i].vVisible=true
|
|
res.data.records[i].vVisible=true
|
|
}
|
|
}
|
|
- this.total=res.data.records.length
|
|
|
|
|
|
+ this.total=res.data.total
|
|
this.litigationData = res.data.records
|
|
this.litigationData = res.data.records
|
|
}
|
|
}
|
|
})
|
|
})
|