Browse Source

fix:修改枚举

temp
zhaohy 4 months ago
parent
commit
1790db4595
  1. 4
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editConfigureEnergyAlarm.vue
  2. 10
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editeEnergyAlarm.vue
  3. 6
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue
  4. 10
      hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editeEquipmentAlarm.vue

4
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editConfigureEnergyAlarm.vue

@ -267,8 +267,8 @@
}; };
// //
const toggle = async (value: any, info: any) => { const toggle = async (value: any, info: any) => {
let menu = await getEnum({ params: { enumType: 'LogicEnum' } }); let enumData = await getEnum({ params: { enumType: 'LogicEnum' } });
logicEnum.value = menu.data; logicEnum.value = enumData.data;
// //
let energyType = await dict({ params: { dicKey: 'ENERGY_TYPE' } }); let energyType = await dict({ params: { dicKey: 'ENERGY_TYPE' } });
if (energyType.data.data) { if (energyType.data.data) {

10
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editeEnergyAlarm.vue

@ -163,7 +163,7 @@
monitorTimeUnit: [{ required: true, message: '请选择监测时长单位', trigger: 'change' }], monitorTimeUnit: [{ required: true, message: '请选择监测时长单位', trigger: 'change' }],
}; };
const getMenu = async () => { const getMenu = async () => {
let menu = await getAllEnum({ let enumData = await getAllEnum({
params: [ params: [
'PriorityEnum', 'PriorityEnum',
'MonitorFrequencyEnumm', 'MonitorFrequencyEnumm',
@ -171,10 +171,10 @@
'IntervalDurationUnitEnum', 'IntervalDurationUnitEnum',
], ],
}); });
PriorityEnum.value = menu.data.PriorityEnum; PriorityEnum.value = enumData.data.PriorityEnum;
MonitorFrequencyEnumm.value = menu.data.MonitorFrequencyEnumm; MonitorFrequencyEnumm.value = enumData.data.MonitorFrequencyEnumm;
AlarmFrequencyEnum.value = menu.data.AlarmFrequencyEnum; AlarmFrequencyEnum.value = enumData.data.AlarmFrequencyEnum;
intervalDurationUnitData.value = menu.data.IntervalDurationUnitEnum; intervalDurationUnitData.value = enumData.data.IntervalDurationUnitEnum;
}; };
const toggle = (value: any) => { const toggle = (value: any) => {
// //

6
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue

@ -292,9 +292,9 @@
return null; // null return null; // null
}; };
const getMenu = async () => { const getMenu = async () => {
let menu = await getAllEnum({ params: ['LogicEnum', 'ValueTypeEnum'] }); let enumData = await getAllEnum({ params: ['LogicEnum', 'ValueTypeEnum'] });
logicEnum.value = menu.data.LogicEnum; logicEnum.value = enumData.data.LogicEnum;
valueTypeEnum.value = menu.data.ValueTypeEnum; valueTypeEnum.value = enumData.data.ValueTypeEnum;
}; };
// //
const toggle = async (value: any, info: any) => { const toggle = async (value: any, info: any) => {

10
hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editeEquipmentAlarm.vue

@ -113,7 +113,7 @@
const IntervalDurationUnitEnum = ref([]); const IntervalDurationUnitEnum = ref([]);
const PriorityEnum = ref([]); const PriorityEnum = ref([]);
const getMenu = async () => { const getMenu = async () => {
let menu = await getAllEnum({ let enumData = await getAllEnum({
params: [ params: [
'PriorityEnum', 'PriorityEnum',
'MonitorTimeUnitEnum', 'MonitorTimeUnitEnum',
@ -121,10 +121,10 @@
'IntervalDurationUnitEnum', 'IntervalDurationUnitEnum',
], ],
}); });
PriorityEnum.value = menu.data.PriorityEnum; PriorityEnum.value = enumData.data.PriorityEnum;
MonitorTimeUnitEnum.value = menu.data.MonitorTimeUnitEnum; MonitorTimeUnitEnum.value = enumData.data.MonitorTimeUnitEnum;
AlarmFrequencyEnum.value = menu.data.AlarmFrequencyEnum; AlarmFrequencyEnum.value = enumData.data.AlarmFrequencyEnum;
IntervalDurationUnitEnum.value = menu.data.IntervalDurationUnitEnum; IntervalDurationUnitEnum.value = enumData.data.IntervalDurationUnitEnum;
}; };
const toggle = (value: any) => { const toggle = (value: any) => {
// //

Loading…
Cancel
Save