部分bug
This commit is contained in:
@@ -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);
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
|
||||
Reference in New Issue
Block a user