forked from gzt/A8000
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
2.5 KiB
113 lines
2.5 KiB
import { EventReport } from '@/websocket/socket'
|
|
|
|
export * from './regular'
|
|
export * from './emergency'
|
|
export * from './history'
|
|
export * from './testTube'
|
|
export * from './user-manage'
|
|
export * from './idCard'
|
|
export * from './init'
|
|
export * from './settings/index'
|
|
export * from './running/index'
|
|
|
|
// mock
|
|
//@ts-ignore
|
|
export const reportText: EventReport = {
|
|
typeName: 'AppPromptEvent',
|
|
timestamp: 1736146671,
|
|
eventId: 'b040fd2e-1731-45ef-8f1c-d2768c18321f',
|
|
prompt: {
|
|
messageLevel: 'Warn',
|
|
title: '信息',
|
|
info: '测试消息',
|
|
detailInfoType: 'Text',
|
|
detailInfo: '一二三四五一二三四五一二三四五一二三四五一二三四五',
|
|
},
|
|
}
|
|
//@ts-ignore
|
|
export const reportForm: EventReport = {
|
|
typeName: 'AppPromptEvent',
|
|
timestamp: 1736146671,
|
|
eventId: 'b040fd2e-1731-45ef-8f1c-d2768c18321f',
|
|
prompt: {
|
|
messageLevel: 'Info',
|
|
title: '信息',
|
|
info: '板夹仓硬件异常',
|
|
detailInfoType: 'Forms',
|
|
detailInfo: [
|
|
{
|
|
name: '相关指令',
|
|
description: 'motorMoveTo',
|
|
},
|
|
{
|
|
name: '相关模块',
|
|
description: '板夹仓横向移动电机',
|
|
},
|
|
{
|
|
name: '详细错误',
|
|
description: '指令超时',
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
//@ts-ignore
|
|
export const reportTable: EventReport = {
|
|
typeName: 'AppPromptEvent',
|
|
timestamp: 1736146671,
|
|
eventId: 'b040fd2e-1731-45ef-8f1c-d2768c18321f',
|
|
prompt: {
|
|
messageLevel: 'Info',
|
|
title: '信息',
|
|
info: '耗材不足',
|
|
detailInfoType: 'Table',
|
|
detailInfo: {
|
|
header: ['耗材名称', '需求量', '使用量'],
|
|
types: ['String', 'String', 'String'],
|
|
vars: [
|
|
[
|
|
{
|
|
messageLevel: 'Info',
|
|
val: '小缓冲液',
|
|
},
|
|
{
|
|
messageLevel: 'Info',
|
|
val: '11',
|
|
},
|
|
{
|
|
messageLevel: 'Error',
|
|
val: '20',
|
|
},
|
|
],
|
|
[
|
|
{
|
|
messageLevel: 'Info',
|
|
val: '大瓶缓冲液',
|
|
},
|
|
{
|
|
messageLevel: 'Info',
|
|
val: '22',
|
|
},
|
|
{
|
|
messageLevel: 'Info',
|
|
val: '10',
|
|
},
|
|
],
|
|
[
|
|
{
|
|
messageLevel: 'Info',
|
|
val: '板夹',
|
|
},
|
|
{
|
|
messageLevel: 'Info',
|
|
val: '33',
|
|
},
|
|
{
|
|
messageLevel: 'Warn',
|
|
val: '33',
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
}
|