设备管理 绑定问题

yangwl
A0010407 10 months ago
parent 2f93caa482
commit 989b88fcd7

@ -1453,25 +1453,23 @@ export default {
handleUpdate(row) {
this.reset();
const equipmentId = row.equipmentId || this.ids;
getWorkCenterList().then((response) => {
this.options1 = response.rows;
});
this.queryAuxiliaryEquipmentParams.equipmentCategory = '0';
listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => {
this.auxiliaryEquipmentLeftList = [];
this.auxiliaryEquipmentRightList = [];
for (let i in response.rows) {
// 穿
this.auxiliaryEquipmentLeftList.push({
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) => {
this.form = response.data;
this.rightList = [];

Loading…
Cancel
Save