|
|
@@ -1,280 +0,0 @@
|
|
|
-/* 全部已迁移模型 + 每个模型的手动动画状态按钮 */
|
|
|
-export interface DemoState {
|
|
|
- label: string;
|
|
|
- args: any[];
|
|
|
-}
|
|
|
-export interface DemoModel {
|
|
|
- id: string;
|
|
|
- label: string;
|
|
|
- comp: () => Promise<any>;
|
|
|
- states: DemoState[];
|
|
|
-}
|
|
|
-
|
|
|
-const gateStates: DemoState[] = [
|
|
|
- { label: '全开', args: [true, true, true] },
|
|
|
- { label: '全关', args: [false, false, false] },
|
|
|
- { label: '前门开', args: [true, false, false] },
|
|
|
- { label: '后门开', args: [false, false, true] },
|
|
|
-];
|
|
|
-const boolStates: DemoState[] = [
|
|
|
- { label: '全开', args: [true, true, true] },
|
|
|
- { label: '全关', args: [false, false, false] },
|
|
|
-];
|
|
|
-const progressStates = (field = 'frontArea', max = 90): DemoState[] =>
|
|
|
- [0, 25, 50, 75, 100].map((p) => ({ label: `${field} ${p}%`, args: [{ [field]: (max * p) / 100 }, max] }));
|
|
|
-const degreeStates = (max = 180): DemoState[] => [0, 45, 90, 135, 180].map((d) => ({ label: `开度 ${d}`, args: [{ OpenDegree: d }, max] }));
|
|
|
-const fanStates = (v: any = '1'): DemoState[] => [
|
|
|
- { label: '1号风机开', args: [{ Fan1StartStatus: v }] },
|
|
|
- { label: '2号风机开', args: [{ Fan2StartStatus: v }] },
|
|
|
- { label: '双机开', args: [{ Fan1StartStatus: v, Fan2StartStatus: v }] },
|
|
|
- { label: '全停', args: [{}] },
|
|
|
-];
|
|
|
-const mainFanStates: DemoState[] = [
|
|
|
- { label: '1号主扇开', args: [{ Fan1StartStatus: 1 }] },
|
|
|
- { label: '2号主扇开', args: [{ Fan2StartStatus: 1 }] },
|
|
|
- { label: '双机开', args: [{ Fan1StartStatus: 1, Fan2StartStatus: 1 }] },
|
|
|
- { label: '全停', args: [{}] },
|
|
|
-];
|
|
|
-const gasStates: DemoState[] = [
|
|
|
- { label: '泵1开', args: [{ pumps: { 1: true } }] },
|
|
|
- { label: '泵2开', args: [{ pumps: { 2: true } }] },
|
|
|
- { label: '双泵开', args: [{ pumps: { 1: true, 2: true } }] },
|
|
|
- { label: '全停', args: [{ pumps: {} }] },
|
|
|
- { label: '不传数据(保持)', args: [] },
|
|
|
-];
|
|
|
-const noopStates: DemoState[] = [{ label: '触发(无动画)', args: [] }];
|
|
|
-const scanStates: DemoState[] = [
|
|
|
- { label: '向下扫描', args: ['down'] },
|
|
|
- { label: '向上扫描', args: ['up'] },
|
|
|
- { label: '停止', args: [''] },
|
|
|
-];
|
|
|
-const junyaStates: DemoState[] = [
|
|
|
- { label: '门窗开', args: [{ windowOpen: true, airflowOpen: false }] },
|
|
|
- { label: '门窗关', args: [{ windowOpen: false, airflowOpen: false }] },
|
|
|
- { label: '风流开', args: [{ windowOpen: false, airflowOpen: true }] },
|
|
|
- { label: '门窗+风流开', args: [{ windowOpen: true, airflowOpen: true }] },
|
|
|
-];
|
|
|
-const zhijiangStates: DemoState[] = [
|
|
|
- { label: '开车', args: [{ running: true }] },
|
|
|
- { label: '停车', args: [{ running: false }] },
|
|
|
-];
|
|
|
-
|
|
|
-export const MODELS: DemoModel[] = [
|
|
|
- {
|
|
|
- id: 'gas-pump-2d',
|
|
|
- label: '瓦斯抽采泵站',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gasPumpMonitor/components/gasPumpSVG.vue'),
|
|
|
- states: gasStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-dual-2d',
|
|
|
- label: '双扇风门',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/gateDualSVG.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- { id: 'gate-2d', label: '风门', comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/gateSVG.vue'), states: gateStates },
|
|
|
- {
|
|
|
- id: 'gate-triple-2d',
|
|
|
- label: '风门三道',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/gateTripleSVG.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-xr-2d',
|
|
|
- label: '风门(斜巷)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/gateXrSVG.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-liang-lie-2d',
|
|
|
- label: '风门两列',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/gateLiangLieSVG.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-san-dao-shen-suo-2d',
|
|
|
- label: '风门三道伸缩',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/gateSanDaoShenSuoSVG.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-ye-ya-2d',
|
|
|
- label: '液压风门',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/GateYeYaSVG.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-shrink-2d',
|
|
|
- label: '风门收缩',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/GateShrinkSVG.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-dual-aio-2d',
|
|
|
- label: '风门(一体化)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/gateMonitor/components/gateDualAIO.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-ssl-2d',
|
|
|
- label: '风门(ssl)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/airDoor/components/gateSVG.ssl.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'gate-dual-ssl-2d',
|
|
|
- label: '双扇风门(ssl)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/airDoor/components/gateDualSVG.ssl.vue'),
|
|
|
- states: gateStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'fire-door-2d',
|
|
|
- label: '防火门',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/fireDoorMonitor/components/fireDoorSVG.vue'),
|
|
|
- states: boolStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'pai-dai-hang-2d',
|
|
|
- label: '皮带密闭门',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/fireDoorMonitor/components/pidaihangSVG.vue'),
|
|
|
- states: boolStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-small-2d',
|
|
|
- label: '小风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/SmallWindowSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-2d',
|
|
|
- label: '风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-da-liu-ta-2d',
|
|
|
- label: '大风窗(塔)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowDaLiuTaSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-dai-xiao-men-2d',
|
|
|
- label: '带小门风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowDaiXiaoMenSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-door-2d',
|
|
|
- label: '风窗门',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowDoorSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-door-blt-2d',
|
|
|
- label: '风窗门(blt)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowDoorBltSVG.vue'),
|
|
|
- states: noopStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-dual-2d',
|
|
|
- label: '双扇风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowDualSVG.vue'),
|
|
|
- states: degreeStates(90),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-dual-adjust-2d',
|
|
|
- label: '双扇可调风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowDualAdjustSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-dual-zd-2d',
|
|
|
- label: '双扇自动风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowDualZDSVG.vue'),
|
|
|
- states: degreeStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-liang-lie-bd-2d',
|
|
|
- label: '两列(bd)风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowLiangLieBDSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-triple-2d',
|
|
|
- label: '三扇风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowTripleSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-yi-lie-2d',
|
|
|
- label: '一列风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowYiLieSVG.vue'),
|
|
|
- states: progressStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'window-zd-2d',
|
|
|
- label: '自动风窗',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windowMonitor/components/windowZDSVG.vue'),
|
|
|
- states: degreeStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'fan-local-2d',
|
|
|
- label: '局部风机',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/fanLocalMonitor/components/fanLocalSVG.vue'),
|
|
|
- states: fanStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'fan-tunnel-2d',
|
|
|
- label: '风筒风机',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/fanLocalMonitor/components/fanTunnelSVG.vue'),
|
|
|
- states: fanStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'fan-tunnel-dual-2d',
|
|
|
- label: '双风筒风机',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/fanLocalMonitor/components/fanTunnelDualSVG.vue'),
|
|
|
- states: fanStates(),
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'main-fan-2d',
|
|
|
- label: '主扇',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/mainFanMonitor/components/mainFanSVG.vue'),
|
|
|
- states: mainFanStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'main-fan-sz-2d',
|
|
|
- label: '主扇(sz)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/mainFanMonitor/components/mainFanSZSVG.vue'),
|
|
|
- states: mainFanStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'main-fan-xj-2d',
|
|
|
- label: '主扇(xj)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/mainFanMonitor/components/mainFanXJSVG.vue'),
|
|
|
- states: mainFanStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'windrect-fixed-2d',
|
|
|
- label: '风向(固定)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windrectMonitor/components/fixedSVG.vue'),
|
|
|
- states: noopStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'windrect-scan-2d',
|
|
|
- label: '风向(扫描)',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/windrectMonitor/components/scanSVG.vue'),
|
|
|
- states: scanStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'junya-2d',
|
|
|
- label: '均压',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/balancePressMonitor/components/junyaSVG.vue'),
|
|
|
- states: junyaStates,
|
|
|
- },
|
|
|
- {
|
|
|
- id: 'zhijiang-2d',
|
|
|
- label: '制浆',
|
|
|
- comp: () => import('/@/views/vent/monitorManager/groutMonitor/components/zhijiangSVG.vue'),
|
|
|
- states: zhijiangStates,
|
|
|
- },
|
|
|
-];
|