驱采列表调整

This commit is contained in:
joylink_zhaoerwei 2023-10-26 09:52:58 +08:00
parent 7688aa6b0d
commit a027d373f7
4 changed files with 22 additions and 4 deletions

View File

@ -54,7 +54,7 @@
<q-card-actions align="right"> <q-card-actions align="right">
<q-btn color="primary" label="确定" @click="setCellListConfig()" /> <q-btn color="primary" label="确定" @click="setCellListConfig()" />
<q-btn label="取消" v-close-popup /> <q-btn label="取消" @click="cancelSetCellListConfig()" />
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
@ -108,6 +108,16 @@ function setCellListConfig() {
creatCiCjList(setCellMessage.value.rows, setCellMessage.value.cols); creatCiCjList(setCellMessage.value.rows, setCellMessage.value.cols);
ciCjList = loadCiCjList(); ciCjList = loadCiCjList();
} }
function cancelSetCellListConfig() {
setCellDialog.value = false;
setCellMessage.value.rows = (
ciCjList as relayCabinetGraphicData.CiCj
).dsCount;
setCellMessage.value.cols = (
ciCjList as relayCabinetGraphicData.CiCj
).cjList.length;
}
</script> </script>
<style scoped> <style scoped>

View File

@ -54,7 +54,7 @@
<q-card-actions align="right"> <q-card-actions align="right">
<q-btn color="primary" label="确定" @click="setCellListConfig()" /> <q-btn color="primary" label="确定" @click="setCellListConfig()" />
<q-btn label="取消" v-close-popup /> <q-btn label="取消" @click="cancelSetCellListConfig()" />
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
@ -108,6 +108,16 @@ function setCellListConfig() {
creatCiQdList(setCellMessage.value.rows, setCellMessage.value.cols); creatCiQdList(setCellMessage.value.rows, setCellMessage.value.cols);
ciQdList = loadCiQdList(); ciQdList = loadCiQdList();
} }
function cancelSetCellListConfig() {
setCellDialog.value = false;
setCellMessage.value.rows = (
ciQdList as relayCabinetGraphicData.CiQd
).dsCount;
setCellMessage.value.cols = (
ciQdList as relayCabinetGraphicData.CiQd
).qdList.length;
}
</script> </script>
<style scoped> <style scoped>

View File

@ -152,7 +152,6 @@ async function onSubmit() {
cjDataSet.bitList.forEach((cjData, j) => { cjDataSet.bitList.forEach((cjData, j) => {
cjData.refRelays.forEach((refRelay) => { cjData.refRelays.forEach((refRelay) => {
map.set(refRelay.relayId, `${j + 1}-${i + 1}`); map.set(refRelay.relayId, `${j + 1}-${i + 1}`);
refRelay;
}); });
}); });
}); });

View File

@ -147,7 +147,6 @@ async function onSubmit() {
qdDataSet.bitList.forEach((qdData, j) => { qdDataSet.bitList.forEach((qdData, j) => {
qdData.refRelays.forEach((refRelay) => { qdData.refRelays.forEach((refRelay) => {
map.set(refRelay, `${j + 1}-${i + 1}`); map.set(refRelay, `${j + 1}-${i + 1}`);
refRelay;
}); });
}); });
}); });