| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489 |
- import { reactive, defineAsyncComponent } from 'vue';
- import { useGlobSetting } from '/@/hooks/setting';
- import { Interface } from 'readline';
- export const warningConfig = reactive({
- header: ['设备名称', '预警信息', '时间'],
- data: [
- ['火焰6', '严重报警', '03-05'],
- ['测点43', '一般预警', '03-05'],
- ['CO23', '一般预警', '03-05'],
- ['测点6', '超高预警', '03-05'],
- ['测点65', '超高预警', '03-05'],
- ['温度4', '一般预警', '03-05'],
- ['测点61', '一般预警', '03-05'],
- ['测点87', '一般信息', '03-05'],
- ],
- index: false,
- // columnWidth: [150, 80, 150, 150],
- headerBGC: '#3d9dd45d',
- oddRowBGC: '#009acd10',
- evenRowBGC: '#009acd05',
- align: ['center', 'center', 'center'],
- });
- // export const pumpMonitorData = [
- // {
- // title: '运行状态',
- // code: 'CentrifugalPump_PU_CBStatus',
- // type: 'sign',
- // },
- // {
- // title: '启动准备',
- // code: 'CentrifugalPump_PU_Ready',
- // type: 'sign',
- // },
- // {
- // title: '电压(V)',
- // code: 'CentrifugalPump_PU_SysVoltage',
- // type: '',
- // },
- // {
- // title: 'A相电流(A)',
- // code: 'CentrifugalPump_PU_Ia',
- // type: '',
- // },
- // {
- // title: 'B相电流(A)',
- // code: 'CentrifugalPump_PU_Ib',
- // type: '',
- // },
- // {
- // title: 'C相电流(A)',
- // code: 'CentrifugalPump_PU_Ic',
- // type: '',
- // },
- // ];
- export const pumpMonitorData = [
- {
- title: '断路器状态',
- code: 'Starter_CBStatus',
- type: 'sign',
- },
- {
- title: '合闸失败',
- code: 'Starter_CloseFail',
- type: 'warning',
- },
- {
- title: 'A相电流(A)',
- code: 'Starter_Ia',
- type: '',
- },
- {
- title: 'B相电流(A)',
- code: 'Starter_Ib',
- type: '',
- },
- {
- title: 'C相电流(A)',
- code: 'Starter_Ic',
- type: '',
- },
- {
- title: 'AB电压(V)',
- code: 'Starter_Uab',
- type: '',
- },
- {
- title: '健康信号',
- code: 'Starter_Ready',
- type: 'sign',
- },
- ];
- export const waterPumpData = [
- {
- title: '运行状态',
- code: 'WaterfloodPump_CBStatus',
- type: 'sign',
- },
- {
- title: '启动准备',
- code: 'WaterfloodPump_Ready',
- type: 'sign',
- },
- {
- title: '电压(V)',
- code: 'WaterfloodPump_SysVoltage',
- type: '',
- },
- ];
- export const dewateringPumpData = [
- {
- title: '运行状态',
- code: 'DewateringPump_CBStatus',
- type: 'sign',
- },
- {
- title: '启动准备',
- code: 'DewateringPump_Ready',
- type: 'sign',
- },
- {
- title: '电压(V)',
- code: 'DewateringPump_SysVoltage',
- type: '',
- },
- ];
- export const valveCtrlType = [
- {
- title: '进水阀',
- code: 'WaterInValve1',
- },
- {
- title: '排水阀',
- code: 'WaterOutValve2',
- },
- {
- title: '进气阀',
- code: 'AirInValve1',
- },
- {
- title: '排气阀',
- code: 'AirOutValve2',
- },
- ];
- export const valveCtrl = [
- {
- title: '开启',
- code: '_HMIOpen',
- },
- {
- title: '关闭',
- code: '_HMIClose',
- },
- {
- title: '停止',
- code: '_HMIStop',
- },
- {
- title: '复位',
- code: '_Reset',
- },
- ];
- export const stateWarningHeader = ['设备名称', '开限位', '关限位', '开输出', '关输出'];
- export const stateHeader = ['设备名称', '是否健康', '开失败', '关失败', '控制方式'];
- export const valveWarningState = [
- {
- title: '开限位',
- code: '_OpenLimit',
- defaultValue: '-',
- },
- {
- title: '关限位',
- code: '_CloseLimit',
- defaultValue: '-',
- },
- {
- title: '开输出',
- code: '_OnOutput',
- defaultValue: '-',
- },
- {
- title: '关输出',
- code: '_OffOutput',
- defaultValue: '-',
- },
- ];
- export const valveState = [
- {
- title: '是否健康',
- code: '_Healthy',
- defaultValue: '-',
- },
- {
- title: '开失败',
- code: '_OpenFail',
- defaultValue: '-',
- },
- {
- title: '关失败',
- code: '_CloseFail',
- defaultValue: '-',
- },
- {
- title: '控制方式',
- code: '_CtrlMode',
- defaultValue: '-',
- },
- ];
- export const pumpCtrlType = [
- {
- title: '瓦斯泵',
- code: 'CentrifugalPump',
- },
- {
- title: '排水泵',
- code: 'DewateringPump',
- },
- ];
- export const publicPumpCtrlType = [
- {
- title: '注水泵',
- code: 'WaterfloodPump',
- },
- ];
- export const PumpCtrlItems = [
- {
- title: '启动',
- code: '_SwitchOn',
- },
- {
- title: '停止',
- code: '_SwitchOff',
- },
- {
- title: '短路测试',
- code: '_HMIShortTest',
- },
- {
- title: '漏电测试',
- code: '_HMILeakageTest',
- },
- ];
- export const modelMonitor = [
- {
- title: '泵站输入管道内工混流量(m³/min)',
- code: 'mixedTraffic',
- },
- {
- title: '泵站内瓦斯(%CH₄)',
- code: 'gas2',
- },
- {
- title: '泵站输入管道内标况流量(m³/min)',
- code: 'standardTraffic',
- },
- {
- title: '泵站输入管道内瓦斯(%CH₄)',
- code: 'gas3',
- },
- {
- title: '泵站输入管道内工混累计(m³)',
- code: 'totalGasDrainage',
- },
- {
- title: '泵站管道输出瓦斯(%CH₄)',
- code: 'gas4',
- },
- {
- title: '泵站输入管道内一氧化碳(ppm)',
- code: 'coVal',
- },
- {
- title: '泵站管路出口30米处瓦斯(%CH₄)',
- code: 'gas1',
- },
- {
- title: '泵站内温度(℃)',
- code: 'temp',
- },
- {
- title: '泵站输入管道内温度(℃)',
- code: 'pipeTemp',
- },
- ];
- export const getModelMonitorTags = () => {
- const { sysOrgCode } = useGlobSetting();
- // const sysOrgCode = 'sdmtjtcctrk';
- if (sysOrgCode !== 'sdmtjtcctrk') {
- return [
- {
- domId: 'jsf1',
- title: '进水阀1#',
- code: 'CentrifugalPump1_WaterInValve1_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-5.26, 0.28, 0.6],
- },
- {
- domId: 'jsf2',
- title: '进水阀2#',
- code: 'CentrifugalPump2_WaterInValve1_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-8.75, 0.3, 0.6],
- },
- {
- domId: 'csf1',
- title: '出水阀1#',
- code: 'CentrifugalPump1_WaterOutValve2_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-5.74, 0.35, 0.27],
- },
- {
- domId: 'csf2',
- title: '出水阀2#',
- code: 'CentrifugalPump2_WaterOutValve2_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-9.42, 0.35, 0.3],
- },
- {
- domId: 'jqf1',
- title: '进气阀1#',
- code: 'CentrifugalPump1_AirInValve1_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-4.41, 1.28, 0.03],
- },
- {
- domId: 'jqf2',
- title: '进气阀2#',
- code: 'CentrifugalPump2_AirInValve1_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-7.7, 1.31, -0.14],
- },
- {
- domId: 'cqf1',
- title: '出气阀1#',
- code: 'CentrifugalPump1_AirOutValve2_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-6.2, 1.55, 0.06],
- },
- {
- domId: 'cqf2',
- title: '出气阀2#',
- code: 'CentrifugalPump2_AirOutValve2_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-9.58, 1.55, -0.13],
- },
- ];
- } else {
- return [
- {
- domId: 'jsf1',
- title: '进水阀1#',
- code: 'CentrifugalPump1_WaterInValve1_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-5.26, 0.28, 0.6],
- },
- {
- domId: 'jsf2',
- title: '进水阀2#',
- code: 'CentrifugalPump2_WaterInValve1_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-8.75, 0.3, 0.6],
- },
- {
- domId: 'csf1',
- title: '出水阀1#',
- code: 'CentrifugalPump1_WaterOutValve2_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-5.74, 0.35, 0.27],
- },
- {
- domId: 'csf2',
- title: '出水阀2#',
- code: 'CentrifugalPump2_WaterOutValve2_OpenLimit',
- type: 'sign',
- // value: '0',
- position: [-9.42, 0.35, 0.3],
- },
- {
- domId: 'jqf1',
- title: '进气阀1#开度',
- code: 'CentrifugalPump1_AirInValve1_OpenLimit',
- type: 'value',
- // value: '0',
- position: [-4.41, 1.28, 0.03],
- },
- {
- domId: 'jqf2',
- title: '进气阀2#开度',
- code: 'CentrifugalPump2_AirInValve1_OpenLimit',
- type: 'value',
- // value: '0',
- position: [-7.7, 1.31, -0.14],
- },
- {
- domId: 'cqf1',
- title: '出气阀1#开度',
- code: 'CentrifugalPump1_AirOutValve2_OpenLimit',
- type: 'value',
- // value: '0',
- position: [-6.2, 1.55, 0.06],
- },
- {
- domId: 'cqf2',
- title: '出气阀2#开度',
- code: 'CentrifugalPump2_AirOutValve2_OpenLimit',
- type: 'value',
- // value: '0',
- position: [-9.58, 1.55, -0.13],
- },
- ];
- }
- };
- export function getComponent() {
- const { sysOrgCode } = useGlobSetting();
- // const sysOrgCode = 'sdmtjtcctrk';
- let gasPumpHome;
- switch (sysOrgCode) {
- case 'sdmtjtbetmk': // 布尔台
- gasPumpHome = defineAsyncComponent(() => import('./components/gasPumpHome.vue'));
- return gasPumpHome;
- case 'sdmtjtcctrk': // 布尔台
- gasPumpHome = defineAsyncComponent(() => import('./components/gasPumpHomeCC.vue'));
- return gasPumpHome;
- default:
- gasPumpHome = defineAsyncComponent(() => import('./components/gasPumpHome.vue'));
- return gasPumpHome;
- }
- }
- export async function getMonitorData(deviceType) {
- const { sysOrgCode } = useGlobSetting();
- // const sysOrgCode = 'sdmtjtcctrk';
- switch (sysOrgCode) {
- case 'sdmtjtcctmk':
- return await import('./gasPump.dataCc');
- case 'sdmtjtcctrk':
- if (deviceType == 'pump_under') {
- return await import('./gasPump.dataCc2_2');
- } else if (deviceType == 'pump_under_31') {
- return await import('./gasPump.dataCc2_2');
- }
- default: //默认
- if (deviceType == 'pump_over') {
- return await import('./gasPump.dataCc2_1');
- } else if (deviceType == 'pump_under') {
- return await import('./gasPump.dataCc2_2');
- }
- }
- }
- interface deviceChildType {
- title: string;
- key: string[];
- childTitle: string[];
- }
- interface propertyListType {
- title: string;
- type: string;
- code: string;
- }
- export interface devicePropertyType {
- type: string;
- title: string;
- stateHeader: [];
- children: deviceChildType[];
- list: propertyListType[];
- }
|