diff --git a/src/api/base/orderManage.js b/src/api/base/orderManage.js index 732e13c7..00174a7d 100644 --- a/src/api/base/orderManage.js +++ b/src/api/base/orderManage.js @@ -34,6 +34,15 @@ export function workOrderList(query) { }) } +// 条件获得工单列表 +export function getFreeWOlist(query) { + return request({ + url: '/base/core-work-order/getFreeWOlist', + method: 'get', + params: query + }) +} + // 获得订单分页 export function getOrderPage(query) { return request({ diff --git a/src/api/equipment/base/config/config.js b/src/api/equipment/base/config/config.js index 71f73aa9..b1afbb25 100644 --- a/src/api/equipment/base/config/config.js +++ b/src/api/equipment/base/config/config.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2024-02-21 13:43:02 - * @LastEditTime: 2024-02-21 15:00:17 + * @LastEditTime: 2024-03-14 19:12:31 * @LastEditors: DY * @Description: */ @@ -33,3 +33,21 @@ export function listByParentId(query) { params: query }) } + +// 获得产线工段设备树形结构 +export function getTree(query) { + return request({ + url: '/base/core-factory/getTree', + method: 'get', + params: query + }) +} + +// 获得设备分组列表 +export function getgroupAllList(query) { + return request({ + url: '/base/equipment-group/listAll', + method: 'get', + params: query + }) +} diff --git a/src/views/base/coreAlarmLog/index.vue b/src/views/base/coreAlarmLog/index.vue index e9853140..23b46378 100644 --- a/src/views/base/coreAlarmLog/index.vue +++ b/src/views/base/coreAlarmLog/index.vue @@ -32,7 +32,7 @@ import { parseTime } from '../../core/mixins/code-filter'; import { getcoreAlarmLogPage } from '@/api/base/coreAlarmLog'; -import {DICT_TYPE, getDictDatas} from "@/utils/dict"; +import {DICT_TYPE, getDictDatas, publicFormatter } from "@/utils/dict"; const tableProps = [ { @@ -50,7 +50,8 @@ const tableProps = [ }, { prop: 'alarmGrade', - label: '报警级别' + label: '报警级别', + filter: publicFormatter(DICT_TYPE.EQU_ALARM_LEVEL) }, { prop: 'alarmReason', diff --git a/src/views/base/coreEquipment/components/EquipmentDrawer.vue b/src/views/base/coreEquipment/components/EquipmentDrawer.vue index 3c58a5c9..1cbcf25f 100644 --- a/src/views/base/coreEquipment/components/EquipmentDrawer.vue +++ b/src/views/base/coreEquipment/components/EquipmentDrawer.vue @@ -7,10 +7,11 @@