Commit e7308ea7 authored by “yiyousong”'s avatar “yiyousong”

fix:修改事项关联设备

parent 0710b0fc
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
: "", : "",
tableData: [], tableData: [],
pageSizes: [10, 20, 30, 40, 50, 100, 200], pageSizes: [10, 20, 30, 40, 50, 100, 200],
total: 10, total: 0,
current: 1, current: 1,
size: 10, size: 10,
dialogVisible: false, dialogVisible: false,
...@@ -223,7 +223,8 @@ export default { ...@@ -223,7 +223,8 @@ export default {
productName: "样表机", productName: "样表机",
}); });
this.loading = false; this.loading = false;
let { data } = res.data.data; let { data, total } = res.data.data;
this.total = total;
this.tableData = data; this.tableData = data;
this.$refs.multipleTable.bodyWrapper.scrollTop = 0; this.$refs.multipleTable.bodyWrapper.scrollTop = 0;
}, },
......
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
let { code, msg } = res.data; let { code, msg } = res.data;
if (code == 1) { if (code == 1) {
this.$message.success(msg); this.$message.success(msg);
this.getDeviceMatterList(); this.getDeviceMatterList(this.devInfo.id);
} }
}, },
// 删除设备事项 // 删除设备事项
...@@ -333,7 +333,7 @@ export default { ...@@ -333,7 +333,7 @@ export default {
let { code, msg } = res.data; let { code, msg } = res.data;
if (code == 1) { if (code == 1) {
this.$message.success(msg); this.$message.success(msg);
this.getDeviceMatterList(); this.getDeviceMatterList(this.devInfo.id);
} }
}) })
.catch(() => { .catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment