add:设备告警修改流程对接
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import { dateUtil } from '/nerv-lib/util/date-util';
|
||||
import data from '../notificationManagementMock.json';
|
||||
import { http } from '/nerv-lib/util';
|
||||
import { equipmentAlarmApi } from '/@/api/alarmManagement/equipmentAlarm';
|
||||
|
||||
import { ref } from 'vue';
|
||||
const tableKeyMap = [
|
||||
{
|
||||
title: '序号',
|
||||
@@ -46,12 +42,10 @@ const tableKeyMap = [
|
||||
dataIndex: 'alarmRepetitions',
|
||||
},
|
||||
];
|
||||
const mockData = ref(data.listData);
|
||||
export const notificationtableConfig = (look: any, status: any) => {
|
||||
return {
|
||||
title: '告警记录',
|
||||
api: equipmentAlarmApi.getTableList,
|
||||
value: mockData.value,
|
||||
headerActions: [{}],
|
||||
scroll: { x: 2000 },
|
||||
columns: tableKeyMap,
|
||||
@@ -86,6 +80,7 @@ export const notificationtableConfig = (look: any, status: any) => {
|
||||
component: 'NsSelect',
|
||||
componentProps: {
|
||||
placeholder: '请选择告警优先级',
|
||||
allowClear: true,
|
||||
options: [
|
||||
{
|
||||
label: '紧急',
|
||||
@@ -108,6 +103,7 @@ export const notificationtableConfig = (look: any, status: any) => {
|
||||
component: 'NsSelect',
|
||||
componentProps: {
|
||||
placeholder: '请选择状态',
|
||||
allowClear: true,
|
||||
options: [
|
||||
{
|
||||
label: '待处理',
|
||||
@@ -137,6 +133,7 @@ export const notificationtableConfig = (look: any, status: any) => {
|
||||
label: '错误码',
|
||||
component: 'NsSelectApi',
|
||||
componentProps: {
|
||||
allowClear: true,
|
||||
placeholder: '请选择错误码',
|
||||
autoSelectFirst: false,
|
||||
api: equipmentAlarmApi.getCodeList,
|
||||
@@ -149,7 +146,8 @@ export const notificationtableConfig = (look: any, status: any) => {
|
||||
field: 'createTime',
|
||||
label: '数据日期',
|
||||
component: 'NsRangePicker',
|
||||
fieldMap: ['manufactureBeginDate', 'manufactureEndDate'],
|
||||
allowClear: true,
|
||||
fieldMap: ['startTime', 'endTime'],
|
||||
componentProps: {
|
||||
valueFormat: 'YYYY-MM-DD',
|
||||
placeholder: ['开始日期', '结束日期'],
|
||||
|
||||
Reference in New Issue
Block a user