列车驾驶台加对应列车索引+生成继电器时加是否覆盖之前的采集驱动数据
This commit is contained in:
parent
e71ff9a5c7
commit
a337216236
@ -83,6 +83,7 @@
|
|||||||
:width="tccCanvasWidth"
|
:width="tccCanvasWidth"
|
||||||
:height="tccCanvasHeight"
|
:height="tccCanvasHeight"
|
||||||
@hide="tccHide"
|
@hide="tccHide"
|
||||||
|
:title="`列车${tccStore.tccId}`"
|
||||||
>
|
>
|
||||||
<div id="tcc-app-container" class="overflow-hidden"></div>
|
<div id="tcc-app-container" class="overflow-hidden"></div>
|
||||||
</draggable-dialog>
|
</draggable-dialog>
|
||||||
|
@ -197,6 +197,10 @@
|
|||||||
label="集中站"
|
label="集中站"
|
||||||
:rules="[(val) => val != '' || '集中站不能为空']"
|
:rules="[(val) => val != '' || '集中站不能为空']"
|
||||||
></q-select>
|
></q-select>
|
||||||
|
<q-toggle
|
||||||
|
v-model="generaterRelayLayout.generateCJQD"
|
||||||
|
label="是否覆盖采集驱动数据"
|
||||||
|
/>
|
||||||
<div class="q-gutter-sm q-pa-md row justify-center">
|
<div class="q-gutter-sm q-pa-md row justify-center">
|
||||||
<q-btn
|
<q-btn
|
||||||
label="确定"
|
label="确定"
|
||||||
@ -469,7 +473,8 @@ const generaterRelayLayoutDialog = ref(false);
|
|||||||
const generaterRelayLayout = ref<{
|
const generaterRelayLayout = ref<{
|
||||||
publishId: string;
|
publishId: string;
|
||||||
centralizedStation: number;
|
centralizedStation: number;
|
||||||
}>({ publishId: '', centralizedStation: 0 });
|
generateCJQD: boolean;
|
||||||
|
}>({ publishId: '', centralizedStation: 0, generateCJQD: true });
|
||||||
|
|
||||||
let publishIdOption = ref<{ label: string; value: number }[]>();
|
let publishIdOption = ref<{ label: string; value: number }[]>();
|
||||||
let centralizedStationsOption = ref<{ label: string; value: number }[]>([
|
let centralizedStationsOption = ref<{ label: string; value: number }[]>([
|
||||||
@ -827,7 +832,7 @@ function oneClickGeneraterRelayLayout() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (generaterRelayLayout.value.generateCJQD) {
|
||||||
//根据生成的组合类型列表生成采集列表
|
//根据生成的组合类型列表生成采集列表
|
||||||
const deviceRelateRelayList = loadDeviceRelateRelayList();
|
const deviceRelateRelayList = loadDeviceRelateRelayList();
|
||||||
const allCjData: relayCabinetGraphicData.CjData[] = [];
|
const allCjData: relayCabinetGraphicData.CjData[] = [];
|
||||||
@ -861,7 +866,9 @@ function oneClickGeneraterRelayLayout() {
|
|||||||
}[][] = [];
|
}[][] = [];
|
||||||
deviceRelateRelay.combinationtypes[0].refRelays.forEach(
|
deviceRelateRelay.combinationtypes[0].refRelays.forEach(
|
||||||
(relayId) => {
|
(relayId) => {
|
||||||
const code = generateRelays.find((g) => g.id == relayId)?.code;
|
const code = generateRelays.find(
|
||||||
|
(g) => g.id == relayId
|
||||||
|
)?.code;
|
||||||
if (code) {
|
if (code) {
|
||||||
refDeviceCodesAndPos.push(
|
refDeviceCodesAndPos.push(
|
||||||
[
|
[
|
||||||
@ -1001,6 +1008,7 @@ function oneClickGeneraterRelayLayout() {
|
|||||||
Math.ceil(allQdData.length / 32),
|
Math.ceil(allQdData.length / 32),
|
||||||
allQdData
|
allQdData
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
//生成继电器图并保存数据
|
//生成继电器图并保存数据
|
||||||
generateRelayLayout(generateRelays);
|
generateRelayLayout(generateRelays);
|
||||||
|
Loading…
Reference in New Issue
Block a user