|
@@ -211,7 +211,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- edit(row,index) {
|
|
|
+ async edit(row,index) {
|
|
|
if (row.vVisible == false) {
|
|
|
// let data = {
|
|
|
|
|
@@ -233,16 +233,22 @@ export default {
|
|
|
row.patentNo = this.patent.publicNo
|
|
|
formData.append("jsons", JSON.stringify(row));
|
|
|
if (row.id) {
|
|
|
- this.$api.editInvalidRecord(formData).then(res => {
|
|
|
+ await this.$api.editInvalidRecord(formData).then(res => {
|
|
|
if (res.code==200) {
|
|
|
this.$message.success('修改成功')
|
|
|
+ row.fileList=[]
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+
|
|
|
this.getList2(row,index)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- this.$api.addInvalidRecord(formData).then(res => {
|
|
|
+ await this.$api.addInvalidRecord(formData).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
+ row.fileList=[]
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+
|
|
|
this.getList2(row,index)
|
|
|
}
|
|
|
})
|
|
@@ -260,7 +266,8 @@ export default {
|
|
|
if(!row.id){
|
|
|
this.$set(this.invalidData[index],'id',res.data.records[index].id)
|
|
|
}
|
|
|
- this.$set(this.invalidData[index],'reportFiles',res.data.records[index].reportFiles)
|
|
|
+ this.$set(this.invalidData[index], 'reportFiles', res.data.records[index].reportFiles)
|
|
|
+ this.total=res.data.total
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -317,7 +324,7 @@ export default {
|
|
|
for (let i = 0; i < res.data.records.length; i++){
|
|
|
res.data.records[i].vVisible=true
|
|
|
}
|
|
|
- this.total=res.data.records.length
|
|
|
+ this.total=res.data.total
|
|
|
this.invalidData=res.data.records
|
|
|
}
|
|
|
})
|