设备管理 绑定问题

yangwl
A0010407 11 months ago
parent 2f93caa482
commit 989b88fcd7

@ -1453,25 +1453,23 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const equipmentId = row.equipmentId || this.ids; const equipmentId = row.equipmentId || this.ids;
getWorkCenterList().then((response) => { getWorkCenterList().then((response) => {
this.options1 = response.rows; this.options1 = response.rows;
}); });
this.queryAuxiliaryEquipmentParams.equipmentCategory = '0'; this.queryAuxiliaryEquipmentParams.equipmentCategory = '0';
listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => { listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => {
this.auxiliaryEquipmentLeftList = []; this.auxiliaryEquipmentLeftList = [];
this.auxiliaryEquipmentRightList = [];
for (let i in response.rows) { for (let i in response.rows) {
// 穿 // 穿
this.auxiliaryEquipmentLeftList.push({ this.auxiliaryEquipmentLeftList.push({
key: response.rows[i].equipmentCode, key: response.rows[i].equipmentCode,
label: response.rows[i].remark + response.rows[i].equipmentCode + response.rows[i].equipmentName, label: response.rows[i].equipmentCode + response.rows[i].equipmentName + response.rows[i].remark,
}); });
} }
for (let i in response.selected) {
this.auxiliaryEquipmentRightList.push(response.selected[i].key);
this.form.auxiliaryEquipmentRightData = this.auxiliaryEquipmentRightList;
}
}); });
getEquipment(equipmentId).then((response) => { getEquipment(equipmentId).then((response) => {
this.form = response.data; this.form = response.data;
this.rightList = []; this.rightList = [];

Loading…
Cancel
Save