|
@@ -328,11 +328,31 @@ export default {
|
|
|
},
|
|
|
contactRefresh(e) {
|
|
|
this.editModel = false;
|
|
|
- const { index } = e;
|
|
|
+ const {
|
|
|
+ index,
|
|
|
+ contactor,
|
|
|
+ commobile,
|
|
|
+ position,
|
|
|
+ comdepart,
|
|
|
+ wxaccount,
|
|
|
+ qqaccount,
|
|
|
+ email,
|
|
|
+ id,
|
|
|
+ is_del,
|
|
|
+ } = e;
|
|
|
if (index + "" === "-1") {
|
|
|
this.tableData.push(e);
|
|
|
} else {
|
|
|
- this.tableData[parseInt(index)] = JSON.parse(JSON.stringify(e));
|
|
|
+ let findex = parseInt(index);
|
|
|
+ this.tableData[findex].contactor = contactor || "";
|
|
|
+ this.tableData[findex].commobile = commobile || "";
|
|
|
+ this.tableData[findex].position = position || "";
|
|
|
+ this.tableData[findex].comdepart = comdepart || "";
|
|
|
+ this.tableData[findex].wxaccount = wxaccount || "";
|
|
|
+ this.tableData[findex].qqaccount = qqaccount || "";
|
|
|
+ this.tableData[findex].email = email || "";
|
|
|
+ this.tableData[findex].id = id || "";
|
|
|
+ this.tableData[findex].is_del = is_del || "0";
|
|
|
}
|
|
|
},
|
|
|
async submitForm() {
|