123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- import { reactive, defineAsyncComponent } from 'vue';
- import echarts from '/@/utils/lib/echarts';
- import { useGlobSetting } from '/@/hooks/setting';
- 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 zhujiangOption = reactive({
- tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } },
- legend: {
- top: '10',
- icon: 'rect',
- data: ['注浆压力'],
- right: '10px',
- textStyle: { fontSize: 12, color: '#fff' },
- },
- grid: { x: 50, y: 50, x2: 12, y2: 40 },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- axisLine: { lineStyle: { color: '#57617B' } },
- axisLabel: { color: '#ffffffcc' },
- splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
- data: [],
- },
- yAxis: [
- {
- type: 'value',
- name: 'm³/h',
- max: 10,
- axisTick: {
- show: false,
- },
- axisLine: { lineStyle: { show: true, color: '#57617B' } },
- axisLabel: { margin: 10, fontSize: 12, color: '#ffffffcc' },
- splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
- },
- ],
- series: [
- {
- name: '注浆流量',
- type: 'line',
- smooth: true,
- lineStyle: { width: 2 },
- yAxisIndex: 0,
- areaStyle: {
- color: new echarts.graphic.LinearGradient(
- 0,
- 0,
- 0,
- 1,
- [
- {
- offset: 0,
- color: 'rgba(185,150,248,0.3)',
- },
- {
- offset: 0.8,
- color: 'rgba(185,150,248,0)',
- },
- ],
- false
- ),
- shadowColor: 'rgba(0, 0, 0, 0.1)',
- shadowBlur: 10,
- },
- data: [],
- },
- ],
- });
- export const yaliOption = reactive({
- tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } },
- legend: {
- top: '10',
- icon: 'rect',
- data: ['注浆压力'],
- right: '10px',
- textStyle: { fontSize: 12, color: '#fff' },
- },
- grid: { x: 50, y: 50, x2: 12, y2: 40 },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- axisLine: { lineStyle: { color: '#57617B' } },
- axisLabel: { color: '#ffffffcc' },
- splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
- data: [],
- },
- yAxis: [
- {
- type: 'value',
- name: 'm³/h',
- max: 10,
- axisTick: {
- show: false,
- },
- axisLine: { lineStyle: { show: true, color: '#57617B' } },
- axisLabel: { margin: 10, fontSize: 12, color: '#ffffffcc' },
- splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
- },
- ],
- series: [
- {
- name: '注浆压力',
- type: 'line',
- smooth: true,
- lineStyle: { width: 2 },
- yAxisIndex: 0,
- areaStyle: {
- color: new echarts.graphic.LinearGradient(
- 0,
- 0,
- 0,
- 1,
- [
- {
- offset: 0,
- color: 'rgba(3, 194, 236, 0.3)',
- },
- {
- offset: 0.8,
- color: 'rgba(3, 194, 236, 0)',
- },
- ],
- false
- ),
- shadowColor: 'rgba(0, 0, 0, 0.1)',
- shadowBlur: 10,
- },
- itemStyle: { color: '#03C2EC' },
- data: [],
- },
- ],
- });
- export const deviceMonitorList = [
- {
- title: '定量给料机',
- dataList: [
- {
- title: '带电',
- code: 'GLJdd',
- },
- {
- title: '运行',
- code: 'GLJyx',
- },
- {
- title: '故障',
- code: 'GLJgz',
- },
- ],
- },
- {
- title: '胶体制备机',
- dataList: [
- {
- title: '带电',
- code: 'JTdd',
- },
- {
- title: '运行',
- code: 'JTyx',
- },
- {
- title: '故障',
- code: 'JTgz',
- },
- ],
- },
- {
- title: '搅拌机',
- dataList: [
- {
- title: '带电',
- code: 'JBJdd',
- },
- {
- title: '运行',
- code: 'JBJyx',
- },
- {
- title: '故障',
- code: 'JBJgz',
- },
- ],
- },
- {
- title: '排污泵',
- dataList: [
- {
- title: '带电',
- code: 'PWBdd',
- },
- {
- title: '运行',
- code: 'PWByx',
- },
- {
- title: '故障',
- code: 'PWBgz',
- },
- ],
- },
- {
- title: '胶带运输机',
- dataList: [
- {
- title: '带电',
- code: 'JDdd',
- },
- {
- title: '运行',
- code: 'JDyx',
- },
- {
- title: '故障',
- code: 'JDgz',
- },
- ],
- },
- {
- title: '注水泵1',
- dataList: [
- {
- title: '带电',
- code: 'ZJSB1dd',
- },
- {
- title: '运行',
- code: 'ZJSB1yx',
- },
- {
- title: '故障',
- code: 'ZJSB1gz',
- },
- ],
- },
- {
- title: '注水泵2',
- dataList: [
- {
- title: '带电',
- code: 'ZJSB2dd',
- },
- {
- title: '运行',
- code: 'ZJSB2yx',
- },
- {
- title: '故障',
- code: 'ZJSB2gz',
- },
- ],
- },
- {
- title: '清水泵',
- dataList: [
- {
- title: '带电',
- code: 'QSBdd',
- },
- {
- title: '运行',
- code: 'QSByx',
- },
- {
- title: '故障',
- code: 'QSBgz',
- },
- ],
- },
- {
- title: '渣浆泵',
- dataList: [
- {
- title: '带电',
- code: 'ZJBdd',
- },
- {
- title: '运行',
- code: 'ZJByx',
- },
- {
- title: '故障',
- code: 'ZJBgz',
- },
- ],
- },
- ];
- export function getMonitorComponent() {
- const { sysOrgCode } = useGlobSetting();
- let groutHome;
- switch (sysOrgCode) {
- case 'sdmtjtjjmk': // 锦界
- groutHome = defineAsyncComponent(() => import('./components/groutHomeJj.vue'));
- return groutHome;
- case 'sdmtjtdltmkhjtj': // 活鸡兔井
- groutHome = defineAsyncComponent(() => import('./components/groutHomeHjt.vue'));
- return groutHome;
- default:
- groutHome = defineAsyncComponent(() => import('./components/groutHomeHjt.vue'));
- return groutHome;
- }
- }
|