|
|
|
@ -129,8 +129,8 @@
|
|
|
|
|
<script setup name='AlarmType' lang='ts'>
|
|
|
|
|
import { listAlarmType, getAlarmType, delAlarmType, addAlarmType, updateAlarmType } from '@/api/dms/alarmType';
|
|
|
|
|
import { AlarmTypeVO, AlarmTypeQuery, AlarmTypeForm } from '@/api/dms/alarmType/types';
|
|
|
|
|
import { getBaseDeviceCategoryList } from '@/api/mes/baseDeviceCategory';
|
|
|
|
|
import { getBaseDeviceTypeList } from '@/api/mes/baseDeviceType';
|
|
|
|
|
import { getBaseDeviceCategoryListInWMS } from '@/api/dms/baseDeviceCategory';
|
|
|
|
|
import { getBaseDeviceTypeListInWMS } from '@/api/dms/baseDeviceType';
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
const { dms_level_status } = toRefs<any>(proxy?.useDict('dms_level_status'));
|
|
|
|
@ -155,14 +155,14 @@ const dialog = reactive<DialogOption>({
|
|
|
|
|
/** 获取设备大类下拉框 */
|
|
|
|
|
const deviceCategoryList = ref([]);
|
|
|
|
|
const getBaseDeviceCategoryListSelect = async () => {
|
|
|
|
|
let res = await getBaseDeviceCategoryList(null);
|
|
|
|
|
let res = await getBaseDeviceCategoryListInWMS(null);
|
|
|
|
|
deviceCategoryList.value = res.data;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** 获取设备类型下拉框 */
|
|
|
|
|
const deviceTypeList = ref([]);
|
|
|
|
|
const getBaseDeviceTypeListSelect = async () => {
|
|
|
|
|
let res = await getBaseDeviceTypeList(null);
|
|
|
|
|
let res = await getBaseDeviceTypeListInWMS(null);
|
|
|
|
|
deviceTypeList.value = res.data;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|