Commit 49f5cb9a authored by liwei's avatar liwei

修改了Ai工作站的一键启停bug

parent 9d241f58
......@@ -113,6 +113,7 @@ const saveStopStep = ref(-1);
const activeCloseStep = ref(-1);
const clientHeight = ref("500px");
let options = reactive([]);
const allOptions = reactive([]);
const transferId = ref(null);
const stationId = ref(null);
const limit = ref(0);
......@@ -383,6 +384,7 @@ function getSupplys() {
let chi = [];
supply.transferList.forEach(unit => {
chi.push({ value: unit.unitId, label: unit.unitName,stationId: unit.stationId});
allOptions.push({ value: unit.unitId, label: unit.unitName,stationId: unit.stationId})
});
c.push({ children: chi, label: supply.supplyName });
});
......@@ -571,7 +573,11 @@ const onValueChange = (newValue) => {
};
async function TransferOpen() {
stationId.value = options[0].children[0].children.find(item => item.value === transferId.value).stationId
console.log('allOptions=======:',allOptions)
console.log('options[0].children[0].children:',options[0].children[0].children)
console.log('options[1].children[0].children:',options[1].children[0].children)
// stationId.value = options[1].children[0].children.find(item => item.value === transferId.value).stationId
stationId.value = allOptions.find(item => item.value === transferId.value).stationId
// 清理定时任务
clearInterval(timerQuery);
timerQuery = null; // 清空定时器 ID
......
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