|
@@ -217,7 +217,11 @@ const regionNameOk = () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
getGroupRegionsList();
|
|
getGroupRegionsList();
|
|
- getRegionsPointsList(gradeTwo.value, false);
|
|
|
|
|
|
+
|
|
|
|
+ if (gradeTwo.value) {
|
|
|
|
+ getRegionsPointsList(gradeTwo.value, false);
|
|
|
|
+ obtainRegionsPointsData(gradeTwo.value);
|
|
|
|
+ }
|
|
|
|
|
|
regionNameOpen.value = false;
|
|
regionNameOpen.value = false;
|
|
}
|
|
}
|
|
@@ -236,6 +240,7 @@ const regionNameDelete = () => {
|
|
|
|
|
|
if (gradeTwo.value) {
|
|
if (gradeTwo.value) {
|
|
getRegionsPointsList(gradeTwo.value, false);
|
|
getRegionsPointsList(gradeTwo.value, false);
|
|
|
|
+ obtainRegionsPointsData(gradeTwo.value);
|
|
}
|
|
}
|
|
|
|
|
|
regionNameOpen.value = false;
|
|
regionNameOpen.value = false;
|
|
@@ -363,8 +368,30 @@ const adddRunStatusDevice = (value: SelectValue, option: DefaultOptionType) => {
|
|
monitoringForm.value.runStatusParamCode = '';
|
|
monitoringForm.value.runStatusParamCode = '';
|
|
monitoringForm.value.runStatusConditionCode = '';
|
|
monitoringForm.value.runStatusConditionCode = '';
|
|
monitoringForm.value.runStatusConditionValue = '';
|
|
monitoringForm.value.runStatusConditionValue = '';
|
|
|
|
+ getDeviceListOptionsList(option.id, false, '');
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+const getDeviceListOptionsList = (id: number, show: boolean, runStatusParamCode: string) => {
|
|
handleRequest(async () => {
|
|
handleRequest(async () => {
|
|
- runDeviceParamsList.value = await getDeviceListOptions(option.id);
|
|
|
|
|
|
+ runDeviceParamsList.value = await getDeviceListOptions(id);
|
|
|
|
+
|
|
|
|
+ if (show) {
|
|
|
|
+ runStatusList.value = [];
|
|
|
|
+ runDeviceParamsList.value.forEach((item) => {
|
|
|
|
+ if (item.deviceParamCode === runStatusParamCode) {
|
|
|
|
+ inputType.value = item.type;
|
|
|
|
+
|
|
|
|
+ if (item.type === 1) {
|
|
|
|
+ item.candidates.forEach((item: string, index: number) => {
|
|
|
|
+ runStatusList.value.push({
|
|
|
|
+ id: index,
|
|
|
|
+ name: item,
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
@@ -468,8 +495,10 @@ const deleteMonitoringPoint = () => {
|
|
await deleteMonitorPoint(monitoringId.value);
|
|
await deleteMonitorPoint(monitoringId.value);
|
|
if (gradeTwo.value) {
|
|
if (gradeTwo.value) {
|
|
getRegionsPointsList(gradeTwo.value, false);
|
|
getRegionsPointsList(gradeTwo.value, false);
|
|
|
|
+ obtainRegionsPointsData(gradeTwo.value);
|
|
timeLineIndex.value = timeList.value.length - 1;
|
|
timeLineIndex.value = timeList.value.length - 1;
|
|
}
|
|
}
|
|
|
|
+
|
|
closeModal();
|
|
closeModal();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -602,6 +631,15 @@ const editorClick = (monitoringPointId: number) => {
|
|
if (monitoringForm.value.tempHumidityControlMode === '1') {
|
|
if (monitoringForm.value.tempHumidityControlMode === '1') {
|
|
getDeviceParamsList(outdoorDevId, HumitureType.FreshAir, false);
|
|
getDeviceParamsList(outdoorDevId, HumitureType.FreshAir, false);
|
|
}
|
|
}
|
|
|
|
+ if (monitoringForm.value.runStatusFlag !== 0) {
|
|
|
|
+ if (runStatusDevGroupId) {
|
|
|
|
+ getDevicesGroupList(runStatusDevGroupId, HumitureType.OperatingStatus, false);
|
|
|
|
+ }
|
|
|
|
+ if (runStatusDevId) {
|
|
|
|
+ getDeviceListOptionsList(runStatusDevId, true, runStatusParamCode);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
titleMonitoring.value = false;
|
|
titleMonitoring.value = false;
|
|
monitoringPointOpen.value = true;
|
|
monitoringPointOpen.value = true;
|
|
});
|
|
});
|
|
@@ -1416,7 +1454,7 @@ const copyAreaCanvas = () => {
|
|
<ARadio :value="1">{{ t('envMonitor.operationStatusDetermination') }}</ARadio>
|
|
<ARadio :value="1">{{ t('envMonitor.operationStatusDetermination') }}</ARadio>
|
|
</ARadioGroup>
|
|
</ARadioGroup>
|
|
</AFormItem>
|
|
</AFormItem>
|
|
- <AFlex v-show="monitoringForm.runStatusFlag === 0">
|
|
|
|
|
|
+ <AFlex v-if="monitoringForm.runStatusFlag === 0">
|
|
<AFormItem name="supplyReturnTempDiff">
|
|
<AFormItem name="supplyReturnTempDiff">
|
|
<AFlex align="center" class="spacing">
|
|
<AFlex align="center" class="spacing">
|
|
<AInputNumber
|
|
<AInputNumber
|
|
@@ -1442,7 +1480,7 @@ const copyAreaCanvas = () => {
|
|
</AFlex>
|
|
</AFlex>
|
|
</AFormItem>
|
|
</AFormItem>
|
|
</AFlex>
|
|
</AFlex>
|
|
- <AFlex justify="space-between" wrap="wrap" v-show="monitoringForm.runStatusFlag === 1">
|
|
|
|
|
|
+ <AFlex justify="space-between" wrap="wrap" v-else>
|
|
<AFormItem name="runStatusDevGroupId">
|
|
<AFormItem name="runStatusDevGroupId">
|
|
<ASelect
|
|
<ASelect
|
|
class="input-wdith"
|
|
class="input-wdith"
|