|
@@ -378,11 +378,11 @@ export default {
|
|
|
},
|
|
|
isVisible: {
|
|
|
get () {
|
|
|
+ // 清空数据
|
|
|
+ this.tableData = [];
|
|
|
return this.dialogVisible
|
|
|
},
|
|
|
set () {
|
|
|
- // 清空数据
|
|
|
- this.tableData = [];
|
|
|
this.close()
|
|
|
this.reset()
|
|
|
}
|
|
@@ -454,11 +454,14 @@ export default {
|
|
|
|
|
|
// 【新增-修改】弹出框,确定事件
|
|
|
editSuccess (arr) {
|
|
|
+ // 清除备注
|
|
|
+ arr.forEach(item => {
|
|
|
+ item.remark = "";
|
|
|
+ });
|
|
|
// 合并当前数组,和新增的数组
|
|
|
- let list = [...this.tableData, ...arr]
|
|
|
+ let list = [...this.tableData, ...arr];
|
|
|
// 去除数组中重复的数据
|
|
|
- this.tableData = arrReduce(list, "id")
|
|
|
- //
|
|
|
+ this.tableData = arrReduce(list, "id");
|
|
|
},
|
|
|
|
|
|
add () {
|