部分bug

This commit is contained in:
helloDy
2023-11-24 19:01:25 +08:00
parent 8004c85c32
commit 9eea7e049a
14 changed files with 102 additions and 66 deletions

View File

@@ -310,7 +310,8 @@ export default {
handleClick(raw) {
if (raw.type === 'change') {
// 更换
this.addNew();
console.log(raw)
this.addNew(raw.data.sparePartId);
} else {}
},
getList() {
@@ -320,7 +321,7 @@ export default {
configId: this.dataForm.id,
}).then((response) => {
this.list = response.data;
this.listQuery.total = response.data.total;
this.listQuery.total = response.data.length;
});
},
getList1() {
@@ -334,10 +335,10 @@ export default {
});
},
// 新增 / 修改
addNew(id) {
addNew(sparePartId) {
this.addOrUpdateVisible = true;
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id);
this.$refs.addOrUpdate.init(sparePartId);
});
},
/** 导出按钮操作 */