inl-ui 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +430 -345
- package/dist/index.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +3 -3
- package/src/api/axios.ts +1 -1
- package/src/api/pss.ts +2 -2
- package/src/pageComponent/assets/styles/systemManager/index.less +1 -0
- package/src/pageComponent/components/CommonTree.tsx +2 -2
- package/src/pageComponent/components/EditPasswordForm.tsx +4 -4
- package/src/pageComponent/views/fileManager/fileManager.tsx +214 -216
- package/src/pageComponent/views/login/box.tsx +2 -2
- package/src/pageComponent/views/processDrawingConfiguration/editor/instanceSelector.tsx +1 -1
- package/src/pageComponent/views/productionPlanManager/components/Plan.tsx +66 -54
- package/src/pageComponent/views/productionPlanManager/dayPCPlan.tsx +5 -7
- package/src/pageComponent/views/productionPlanManager/daySCPlan.tsx +1 -3
- package/src/pageComponent/views/productionPlanManager/monthPCPlan.tsx +5 -7
- package/src/pageComponent/views/productionPlanManager/productionPlanConfig.tsx +2 -2
- package/src/pageComponent/views/productionPlanManager/yearPCPlan.tsx +6 -8
- package/src/pageComponent/views/pss/assets/less/NewOrder.less +11 -2
- package/src/pageComponent/views/pss/components/NewOrder.tsx +78 -52
- package/src/pageComponent/views/pss/components/table.tsx +7 -3
- package/src/pageComponent/views/pssRecord/index.tsx +5 -4
- package/src/pageComponent/views/systemManager/authManager/roleManager/index.tsx +75 -74
- package/src/pageComponent/views/systemManager/authManager/userManager/updateUserDialog.tsx +2 -2
- package/src/pageComponent/views/systemManager/orgManager/depManager/depTree.tsx +10 -4
- package/src/pageComponent/views/systemManager/orgManager/depManager/employeeTable.tsx +64 -63
- package/src/pageComponent/views/systemManager/orgManager/depManager/index.tsx +2 -1
- package/src/pageComponent/views/systemManager/orgManager/depManagerCorp/depTree.tsx +1 -1
- package/src/pageComponent/views/systemManager/orgManager/postManager/index.tsx +71 -70
- package/src/pageComponent/views/systemManager/personalSetting/index.tsx +2 -2
- package/src/pageComponent/views/video/rotation/rotation.tsx +1 -1
- package/src/pageComponent/views/workforceManager/workforcePlan/index.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, onUnmounted, createVNode, createTextVNode, reactive, watch, Fragment, resolveComponent, onBeforeUnmount, withDirectives, resolveDirective, computed, nextTick,
|
|
1
|
+
import { defineComponent, ref, onMounted, onUnmounted, createVNode, createTextVNode, reactive, watch, Fragment, resolveComponent, onBeforeUnmount, withDirectives, resolveDirective, computed, nextTick, isVNode, mergeProps, watchEffect, shallowRef, inject, provide, getCurrentInstance, onBeforeUpdate, vShow, withModifiers, h, unref } from 'vue';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import _, { isPlainObject, omit, cloneDeep, debounce, isEqual, isNil, isEmpty, isObject as isObject$4, intersection } from 'lodash';
|
|
4
|
-
import { Empty, message, Alert, Popconfirm, Button, Card, Modal, FormItem, SelectOption, Input, Select, Switch, InputNumber, Form,
|
|
4
|
+
import { Empty, message, Alert, Popconfirm, Button, Card, Modal, FormItem, SelectOption, Input, Select, Switch, InputNumber, Form, Row, Col, Table, Timeline, TimelineItem, Tabs, TabPane, RangePicker, Popover } from 'ant-design-vue';
|
|
5
5
|
import dayjs, { Dayjs } from 'dayjs';
|
|
6
6
|
import { getEngine, Chart } from '@antv/g2';
|
|
7
7
|
import { VideoCameraFilled, FullscreenOutlined, CloseOutlined, PlusOutlined, SearchOutlined, CloudUploadOutlined, CloudDownloadOutlined, PlusCircleOutlined, CopyOutlined, EditOutlined, DeleteOutlined, HolderOutlined, CheckOutlined, CaretUpOutlined, CaretRightOutlined, FullscreenExitOutlined, PlusSquareOutlined, FormOutlined, ArrowUpOutlined, ArrowDownOutlined, RightOutlined, LeftOutlined, PicLeftOutlined, InfoCircleFilled, InboxOutlined, UpOutlined, DownOutlined, FileExcelTwoTone, MinusCircleFilled, PlusCircleFilled, ApartmentOutlined, UserOutlined, MinusSquareOutlined, CaretDownOutlined, RedoOutlined, ExclamationCircleFilled, UploadOutlined, CloseCircleFilled, ExclamationCircleOutlined, MenuUnfoldOutlined, MenuFoldOutlined, BorderOutlined, FontSizeOutlined, BranchesOutlined, createFromIconfontCN } from '@ant-design/icons-vue';
|
|
@@ -17,7 +17,7 @@ import { ColorPicker } from 'vue-color-kit';
|
|
|
17
17
|
import 'vue-color-kit/dist/vue-color-kit.css';
|
|
18
18
|
import 'inl-card/dist/style.css';
|
|
19
19
|
|
|
20
|
-
var version$1="0.0.
|
|
20
|
+
var version$1="0.0.65";/*
|
|
21
21
|
* @Abstract: 摘要
|
|
22
22
|
* @Author: wang liang
|
|
23
23
|
* @Date: 2022-03-25 10:44:08
|
|
@@ -35,32 +35,32 @@ const currentArr=e=>{let arr=[];if(e&&typeof e==="string"){if(e.indexOf("&")>-1)
|
|
|
35
35
|
const listDataFun=(val,info,data=[])=>{let arr=[];if(typeof info==="string"){val.forEach(item=>{arr.push({code:`${info}__${item.code}`,datasource:item.datasource});});}else {val.forEach(item=>{info.forEach(n=>{arr.push({code:n.code.replaceAll("${item.code}",item.code),datasource:item.datasource});});});}arr=[...arr,...data];return arr;};const historyList=historyData=>{let arr=[];for(const key in historyData){arr=[...arr,...(historyData[key]?.map(item=>({...item,type:key}))||[])];}return arr;};const columns$b$1=[{title:"设备",key:"name",dataIndex:"name",align:"center",width:"30%",ellipsis:true},{title:"运行状态",key:"runningState",dataIndex:"runningState",align:"center",width:"21%"},{title:"当前进程",key:"currentProcess",dataIndex:"currentProcess",width:"22%",align:"center"},{title:"当前计时",key:"currentTime",dataIndex:"currentTime",width:"22%",align:"center"}];const info=[{code:"${item.code}__DEVICE_STATE"},{code:"${item.code}__CUR_PROCESS"},{code:"${item.code}__CUR_TIMER"}];const data=[{code:"2nd_flotation_tail_pressure_system__CUR_UNLOAD_COUNT",datasource:"DATAWAREHOURSE"},{code:"2nd_flotation_tail_pressure_system__SLIME",datasource:"DATAWAREHOURSE"}];const formatColor=val=>{switch(val){case"运行":return "#a0c86a";case"暂停":return "#e89e43";case"待机":return "#b9b9b8";case"故障":return "#cb3e3e";default:return "";}};const dataFun=val=>listDataFun(val,info,data);const props$T={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
36
36
|
};var tailCoalFilterPressCard=defineComponent({name:"tailCoalFilterPress",cname:"尾煤压滤",developer:"前端开发组",equipment:"PC",props:props$T,setup(_props,_ctx){// 自定义接口配置
|
|
37
37
|
setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
|
|
38
|
-
});const setNum=ref("");const plantNum=ref("");const list=ref([]);const http=async()=>{const res=await defaultApi({CURRENT_DATA:currentArr(dataFun(list.value)),HISTORY_DATA:[]},"TAIL_COAL_FILTER_PRESS");list.value=list.value.map(item=>({...item,runningState:res.data.current_DATA[`${item.code}__DEVICE_STATE`],currentProcess:res.data.current_DATA[`${item.code}__CUR_PROCESS`],currentTime:res.data.current_DATA[`${item.code}__CUR_TIMER`]}));setNum.value=res.data.current_DATA["2nd_flotation_tail_pressure_system__CUR_UNLOAD_COUNT"];plantNum.value=res.data.current_DATA["2nd_flotation_tail_pressure_system__SLIME"];height.value=document.getElementById("tailCoalFilterPress-list")?.clientHeight||0;};const height=ref(0);onMounted(()=>{for(let index=8053;index<=8060;index++){list.value.push({name:`${index}压滤机`,code:`${index}`,datasource:"DATAWAREHOURSE",runningState:"",currentProcess:"",currentTime:""});}http();});const timer=setInterval(async()=>{await http();},30000);onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard tailCoalFilterPress"},[createVNode("div",{"class":"tailCoalFilterPress-top"},[createVNode("div",null,[createVNode("span",null,[createTextVNode("\u5F53\u524D\u5378\u6599\u53F0\u6570\uFF1A")]),createVNode("span",{"class":"val"},[setNum.value])]),createVNode("div",null,[createVNode("span",null,[createTextVNode("\u603B\u677F\u6570\uFF1A")]),createVNode("span",{"class":"val"},[plantNum.value])])]),createVNode("div",{"class":"tailCoalFilterPress-list","id":"tailCoalFilterPress-list"},[createVNode("div",{"class":"tailCoalFilterPress-list-table"},[createVNode("div",{"class":"tailCoalFilterPress-list-table-header"},[createVNode("table",null,[createVNode("tr",null,[columns$b$1.map(item=>createVNode("th",null,[item.title]))])])]),createVNode("div",{"class":"tailCoalFilterPress-list-table-body"},[createVNode("table",null,[list.value.map(item=>createVNode("tr",null,[columns$b$1.map(val=>{if(val.key==="runningState"){return createVNode("td",{"style":`color: ${formatColor(item.runningState)}`},[item.runningState]);}if(val.dataIndex==="currentTime"){return createVNode("td",null,[Number(item.runningState)?`${Number(item.runningState).toFixed(0)}s`:"-"]);}return createVNode("td",null,[item[val.dataIndex]]);})]))])])])])]);}});const tabsList$
|
|
38
|
+
});const setNum=ref("");const plantNum=ref("");const list=ref([]);const http=async()=>{const res=await defaultApi({CURRENT_DATA:currentArr(dataFun(list.value)),HISTORY_DATA:[]},"TAIL_COAL_FILTER_PRESS");list.value=list.value.map(item=>({...item,runningState:res.data.current_DATA[`${item.code}__DEVICE_STATE`],currentProcess:res.data.current_DATA[`${item.code}__CUR_PROCESS`],currentTime:res.data.current_DATA[`${item.code}__CUR_TIMER`]}));setNum.value=res.data.current_DATA["2nd_flotation_tail_pressure_system__CUR_UNLOAD_COUNT"];plantNum.value=res.data.current_DATA["2nd_flotation_tail_pressure_system__SLIME"];height.value=document.getElementById("tailCoalFilterPress-list")?.clientHeight||0;};const height=ref(0);onMounted(()=>{for(let index=8053;index<=8060;index++){list.value.push({name:`${index}压滤机`,code:`${index}`,datasource:"DATAWAREHOURSE",runningState:"",currentProcess:"",currentTime:""});}http();});const timer=setInterval(async()=>{await http();},30000);onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard tailCoalFilterPress"},[createVNode("div",{"class":"tailCoalFilterPress-top"},[createVNode("div",null,[createVNode("span",null,[createTextVNode("\u5F53\u524D\u5378\u6599\u53F0\u6570\uFF1A")]),createVNode("span",{"class":"val"},[setNum.value])]),createVNode("div",null,[createVNode("span",null,[createTextVNode("\u603B\u677F\u6570\uFF1A")]),createVNode("span",{"class":"val"},[plantNum.value])])]),createVNode("div",{"class":"tailCoalFilterPress-list","id":"tailCoalFilterPress-list"},[createVNode("div",{"class":"tailCoalFilterPress-list-table"},[createVNode("div",{"class":"tailCoalFilterPress-list-table-header"},[createVNode("table",null,[createVNode("tr",null,[columns$b$1.map(item=>createVNode("th",null,[item.title]))])])]),createVNode("div",{"class":"tailCoalFilterPress-list-table-body"},[createVNode("table",null,[list.value.map(item=>createVNode("tr",null,[columns$b$1.map(val=>{if(val.key==="runningState"){return createVNode("td",{"style":`color: ${formatColor(item.runningState)}`},[item.runningState]);}if(val.dataIndex==="currentTime"){return createVNode("td",null,[Number(item.runningState)?`${Number(item.runningState).toFixed(0)}s`:"-"]);}return createVNode("td",null,[item[val.dataIndex]]);})]))])])])])]);}});const tabsList$5=[{name:"当天",id:"CURRENT_DAY"},{name:"近七天",id:"SEVEN_DAYS"}];const toChinese=function(val){let chin_list=["一","二","三","四","五","六","七","八","九","十"];//所有的数值对应的汉字
|
|
39
39
|
let sn=parseInt(val);if(sn<10){return chin_list[sn-1];}else if(sn<100){if(sn<20)return "十"+chin_list[sn%10-1];if(sn%10==0)return chin_list[Math.floor(sn/10)-1]+"十";else return chin_list[Math.floor(sn/10)-1]+"十"+chin_list[sn%10-1];}else if(sn===100)return "一百";};const alarmLevel=level=>{const textLevel=val=>{return `${toChinese(val)}级报警`;};switch(level){case 1:return {name:textLevel(1),color:"#EA5858"};case 2:return {name:textLevel(2),color:"#FF9214"};case 3:return {name:textLevel(3),color:"#FFC414"};case 4:return {name:textLevel(4),color:"#3E7EFF"};default:return {name:"-",color:""};}};const props$S={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
40
40
|
};var alarmStatistics=defineComponent({name:"alarmStatistics",cname:"报警统计",developer:"前端开发组",equipment:"PC",props:props$S,setup(_props,_ctx){// 自定义接口配置
|
|
41
41
|
setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
|
|
42
|
-
});const data=reactive({alertLevelStatistic:[],alertList:[]});ref(0);const http=async()=>{const res=await defaultApi({timeType:_props.tabId||"",status:"ALARMING"},"ALERT_COUNT");data.alertLevelStatistic=res.data.alertLevelStatistic||[];data.alertList=res.data.alertList||[];};watch(()=>_props.tabId,e=>{if(e){http();}},{immediate:true});const alarmStatisticsItem=item=>{return createVNode("div",null,[createVNode("div",{"class":"val","style":{color:alarmLevel(item.level).color}},[item.count]),createVNode("div",null,[alarmLevel(item.level).name])]);};const timer=setInterval(()=>{http();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$
|
|
42
|
+
});const data=reactive({alertLevelStatistic:[],alertList:[]});ref(0);const http=async()=>{const res=await defaultApi({timeType:_props.tabId||"",status:"ALARMING"},"ALERT_COUNT");data.alertLevelStatistic=res.data.alertLevelStatistic||[];data.alertList=res.data.alertList||[];};watch(()=>_props.tabId,e=>{if(e){http();}},{immediate:true});const alarmStatisticsItem=item=>{return createVNode("div",null,[createVNode("div",{"class":"val","style":{color:alarmLevel(item.level).color}},[item.count]),createVNode("div",null,[alarmLevel(item.level).name])]);};const timer=setInterval(()=>{http();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$5);});onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard alarmStatistics"},[createVNode("div",{"class":"alarmStatistics_top"},[data.alertLevelStatistic?.map(item=>createVNode("div",{"class":"alarmStatistics_top_item"},[alarmStatisticsItem(item)]))]),createVNode("div",{"class":"alarmStatistics_list","style":data.alertList?.length===0?"height:100%":""},[data.alertList?.length>0?createVNode(Fragment,null,[data.alertList?.map(item=>createVNode("div",{"class":"alarmStatistics_list_item"},[createVNode("div",{"class":"alarmStatistics_list_item_name","style":{borderColor:alarmLevel(item.level).color}},[createVNode("span",null,[item.name])]),createVNode("div",{"class":"alarmStatistics_list_item_time"},[dayjs(item.lastAlarmTime||item.firstAlarmTime).format("YYYY-MM-DD HH:mm:ss")])]))]):createVNode(resolveComponent("a-empty"),{"image":Empty.PRESENTED_IMAGE_SIMPLE},null)])]);}});const historyDataInfo$1={6021:[{code:"SYS_1F__CONCENTRATION"},{code:"6001__TURBIDNESS"},{code:"6002__TURBIDNESS"},{code:"6005__TURBIDNESS"}],6028:[{code:"SYS_2F__CONCENTRATION"},{code:"6003__TURBIDNESS"},{code:"6004__TURBIDNESS"}]};const tabsList$4=[{name:"6021",id:"6021"},{name:"6028",id:"6028"}];const chartFormat$a=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-4,-2)}:${`${item.time}`.slice(-2)}`,type:item.type,value:item.value?Number(Number(item.value).toFixed(1)):null,v:item.v?Number(Number(item.v).toFixed(1)):null}));};var initChart$c=(id,data,items,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.tooltip(false);chart.scale({time:{sync:true,nice:true},value:{min:0,sync:true,nice:true},v:{min:0,sync:true,nice:true}});chart.axis("v",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
|
|
43
43
|
}},title:{text:"g/l\n\n\n",style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.axis("value",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
|
|
44
44
|
}},title:{text:"NTU\n\n\n",style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.legend({custom:true,position:"bottom",items});chart.line().position("time*v").color("type",val=>{const item=items.find(n=>n.id===val);return item.marker.style.fill;});chart.line().position("time*value").color("type",val=>{const item=items.find(n=>n.id===val);return item.marker.style.fill;});chart.removeInteraction("legend-filter");chart.render();return chart;};const props$R={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
45
45
|
};var concentrateDosing=defineComponent({name:"concentrateDosing",cname:"浓缩加药",developer:"前端开发组",equipment:"PC",props:props$R,setup(_props,_ctx){let chart=reactive({});// 自定义接口配置
|
|
46
46
|
setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
|
|
47
|
-
});const info=reactive({current_DATA:{},history_DATA:{}});const showChart=ref(true);const http=async()=>{const res=await defaultApi({CURRENT_DATA:currentArr("3001/2__COAL_CAP?THINGMODEL"),HISTORY_DATA:historyArr(historyDataInfo$1[_props.tabId||""]||[],"hour",3)},"CONCENTRATE_DOSING");info.current_DATA=res.data.current_DATA;info.history_DATA=res.data.history_DATA;const height=document.getElementById("concentrateDosing_bottom")?.clientHeight;const infoNew={turbidness:[],concentrations:[]};const items=[];for(const key in info.history_DATA){if(key.indexOf("CONCENTRATION")>-1){infoNew.concentrations=info.history_DATA[key].map(item=>({time:item.time,type:key,v:item.value}));items.push({name:"入料浓度",value:key,id:key,unchecked:false,marker:{style:{symbol:"circle",fill:"#4F7CF7"}}});}else {infoNew.turbidness=[...infoNew.turbidness,...info.history_DATA[key].map(item=>({...item,type:key}))];const itemArr=key.split("__");const color=val=>{switch(val){case"6001":return "#E89E42";case"6003":return "#E89E42";case"6002":return "#7915F5";case"6004":return "#7915F5";case"6005":return "#80B436";default:return "";}};items.push({name:`${itemArr[0]}浊度`,value:key,id:key,unchecked:false,marker:{style:{symbol:"circle",fill:color(itemArr[0])}}});}}const list=[...infoNew.concentrations,...infoNew.turbidness];if(!chart[`chart${_props.tabId}`]||!showChart.value){showChart.value=true;chart[`chart${_props.tabId}`]=null;await nextTick();chart[`chart${_props.tabId}`]=initChart$
|
|
48
|
-
}},title:{text:text,style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.line().position("time*value");chart.point().position("time*value");chart.render();return chart;};const tabsList$
|
|
47
|
+
});const info=reactive({current_DATA:{},history_DATA:{}});const showChart=ref(true);const http=async()=>{const res=await defaultApi({CURRENT_DATA:currentArr("3001/2__COAL_CAP?THINGMODEL"),HISTORY_DATA:historyArr(historyDataInfo$1[_props.tabId||""]||[],"hour",3)},"CONCENTRATE_DOSING");info.current_DATA=res.data.current_DATA;info.history_DATA=res.data.history_DATA;const height=document.getElementById("concentrateDosing_bottom")?.clientHeight;const infoNew={turbidness:[],concentrations:[]};const items=[];for(const key in info.history_DATA){if(key.indexOf("CONCENTRATION")>-1){infoNew.concentrations=info.history_DATA[key].map(item=>({time:item.time,type:key,v:item.value}));items.push({name:"入料浓度",value:key,id:key,unchecked:false,marker:{style:{symbol:"circle",fill:"#4F7CF7"}}});}else {infoNew.turbidness=[...infoNew.turbidness,...info.history_DATA[key].map(item=>({...item,type:key}))];const itemArr=key.split("__");const color=val=>{switch(val){case"6001":return "#E89E42";case"6003":return "#E89E42";case"6002":return "#7915F5";case"6004":return "#7915F5";case"6005":return "#80B436";default:return "";}};items.push({name:`${itemArr[0]}浊度`,value:key,id:key,unchecked:false,marker:{style:{symbol:"circle",fill:color(itemArr[0])}}});}}const list=[...infoNew.concentrations,...infoNew.turbidness];if(!chart[`chart${_props.tabId}`]||!showChart.value){showChart.value=true;chart[`chart${_props.tabId}`]=null;await nextTick();chart[`chart${_props.tabId}`]=initChart$c(`${_props.tabId||"chart"}${_props.index}`,chartFormat$a(list),items,height);}else {chart[`chart${_props.tabId}`].legend({custom:true,position:"bottom",items:items});chart[`chart${_props.tabId}`].changeData(chartFormat$a(list));}};const getFlocculant=async()=>{const res=await getShiftId({depId:"385429676876763136",time:dayjs().format("YYYY-MM-DD HH:mm:ss")});const resp=await defaultApi({HISTORY_DATA:historyArr(`${_props.tabId}__FLOCCULANT_KG?${res.data}`,"shift",3,true)},"CONCENTRATE_DOSING");info.current_DATA[`${_props.tabId}__FLOCCULANT_KG`]=resp.data.history_DATA[`${_props.tabId}__FLOCCULANT_KG`][resp.data.history_DATA[`${_props.tabId}__FLOCCULANT_KG`].length-1]?.value||"-";};watch(()=>_props.tabId,async e=>{if(e){showChart.value=false;await http();getFlocculant();}},{immediate:true});const timer=setInterval(async()=>{await http();getFlocculant();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$4);});onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard concentrateDosing"},[createVNode("div",{"class":"concentrateDosing_top"},[createVNode("div",{"class":"concentrateDosing_top_property"},[createVNode("div",{"class":"concentrateDosing_top_name"},[createTextVNode("\u73ED\u52A0\u836F\u91CF\uFF1A")]),createVNode("div",{"style":{color:"#80B436",fontWeight:"bold"}},[createVNode("span",{"class":"concentrateDosing_top_val"},[Number(info.current_DATA[`${_props.tabId}__FLOCCULANT_KG`]).toFixed(2)==="NaN"?"-":Number(info.current_DATA[`${_props.tabId}__FLOCCULANT_KG`]).toFixed(2)]),createVNode("span",{"class":"concentrateDosing_top_unit"},[createTextVNode("kg")])])]),createVNode("div",{"class":"concentrateDosing_top_property"},[createVNode("div",{"class":"concentrateDosing_top_name"},[createTextVNode("\u539F\u7164\u5165\u6D17\u91CF\uFF1A")]),createVNode("div",{"style":{color:"#4F7CF7",fontWeight:"bold"}},[createVNode("span",{"class":"concentrateDosing_top_val"},[Number(info.current_DATA["3001/2__COAL_CAP"]).toFixed(1)==="NaN"?"-":Number(info.current_DATA["3001/2__COAL_CAP"]).toFixed(1)]),createVNode("span",{"class":"concentrateDosing_top_unit"},[createTextVNode("t/h")])])])]),createVNode("div",{"class":"concentrateDosing_bottom","id":"concentrateDosing_bottom"},[showChart.value?createVNode("div",{"id":`${_props.tabId||"chart"}${_props.index}`,"style":{height:"100%"}},null):null])]);}});var initChart$b=(id,data,text,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.tooltip(false);chart.scale({time:{range:[0,1]},value:{min:0,nice:true}});chart.axis("value",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
|
|
48
|
+
}},title:{text:text,style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.line().position("time*value");chart.point().position("time*value");chart.render();return chart;};const tabsList$3=[{name:"电耗",id:"system_mt__ELECTRIC_PERRAW"},{name:"介耗",id:"system_mt__SHALLOW_MEDIUM_PERRAW"},{name:"水耗",id:"system_mt__WATER_PERRAW"},{name:"风耗",id:"system_mt__BLOWING_RATE_PERRAW"},{name:"浓缩药耗",id:"system_mt__FLOCCULANT_PERRAW"},{name:"浮选药耗",id:"system_mt__FROTHERS_PERRAW&system_mt_COLLECTOR_PERRAW"}];const chartFormat$9=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}`,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const props$Q={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
49
49
|
};var energyConsumption=defineComponent({name:"energyConsumption",cname:"能源消耗",developer:"前端开发组",equipment:"PC",props:props$Q,setup(_props,_ctx){let chart;// 自定义接口配置
|
|
50
50
|
setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
|
|
51
|
-
});const info=reactive({current_DATA:{},history_DATA:{}});const http=async()=>{const res=await defaultApi({CURRENT_DATA:[],HISTORY_DATA:historyArr(_props.tabId,"week")||[]},"ENERGY_CONSUME");info.current_DATA=res.data.current_DATA;info.history_DATA=res.data.history_DATA;const height=document.getElementById("energyConsumption")?.clientHeight;if(!chart){chart=initChart$
|
|
52
|
-
}},title:{text:text(_props.tabId),style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.changeData(chartFormat$9(historyList(info.history_DATA)));}};const text=val=>{switch(val){case"system_mt__SHALLOW_MEDIUM_PERRAW":return "kg/t\n\n\n";case"system_mt__ELECTRIC_PERRAW":return "kWh/t\n\n\n";case"system_mt__WATER_PERRAW":return "m³/t\n\n\n";case"system_mt__BLOWING_RATE_PERRAW":return "m³/t\n\n\n";case"system_mt__FLOCCULANT_PERRAW":return "g/t\n\n\n";case"system_mt__FROTHERS_PERRAW&system_mt_COLLECTOR_PERRAW":return "g/t\n\n\n";}};watch(()=>_props.tabId,async e=>{if(e){await http();}},{immediate:true});const timer=setInterval(async()=>{await http();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$
|
|
51
|
+
});const info=reactive({current_DATA:{},history_DATA:{}});const http=async()=>{const res=await defaultApi({CURRENT_DATA:[],HISTORY_DATA:historyArr(_props.tabId,"week")||[]},"ENERGY_CONSUME");info.current_DATA=res.data.current_DATA;info.history_DATA=res.data.history_DATA;const height=document.getElementById("energyConsumption")?.clientHeight;if(!chart){chart=initChart$b(`${_props.tabId||"chart"}${_props.index}`,chartFormat$9(historyList(info.history_DATA)),text(_props.tabId),height);}else {chart.axis("value",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
|
|
52
|
+
}},title:{text:text(_props.tabId),style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.changeData(chartFormat$9(historyList(info.history_DATA)));}};const text=val=>{switch(val){case"system_mt__SHALLOW_MEDIUM_PERRAW":return "kg/t\n\n\n";case"system_mt__ELECTRIC_PERRAW":return "kWh/t\n\n\n";case"system_mt__WATER_PERRAW":return "m³/t\n\n\n";case"system_mt__BLOWING_RATE_PERRAW":return "m³/t\n\n\n";case"system_mt__FLOCCULANT_PERRAW":return "g/t\n\n\n";case"system_mt__FROTHERS_PERRAW&system_mt_COLLECTOR_PERRAW":return "g/t\n\n\n";}};watch(()=>_props.tabId,async e=>{if(e){await http();}},{immediate:true});const timer=setInterval(async()=>{await http();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$3);});onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard energyConsumption","id":"energyConsumption"},[createVNode("div",{"id":`${_props.tabId||"chart"}${_props.index}`,"style":{height:"100%"}},null)]);}});const historyDataInfo=[{code:"DENSITY_SET"},{code:"DENSITY"}];const currentDataInfo=[{name:"设定密度",unit:"g/cm³",color:"#82CC73",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"当前密度",unit:"g/cm³",color:"#587BEF",code:"DENSITY",datasource:"THINGMODEL"}];const tabsList$2=[{name:"主洗一",id:"heavy_medium_cyclone_system1"},{name:"主洗二",id:"heavy_medium_cyclone_system2"},{name:"主洗三",id:"heavy_medium_cyclone_system3"}];const chartFormat$8=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const color=["#82CC73","#587BEF"];var initChart$a=(id,data,text,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.tooltip(false);chart.legend(false);chart.scale({time:{range:[0,1]},value:{min:0}});chart.area().adjust("stack").position("time*value").color("type",color);chart.line().adjust("stack").position("time*value").color("type",color);chart.render();return chart;};const props$P={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
53
53
|
};var intellectDensityControl=defineComponent({name:"intellectDensityControl",cname:"智能密控",developer:"前端开发组",equipment:"PC",props:props$P,setup(_props,_ctx){let chart;// 自定义接口配置
|
|
54
54
|
setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
|
|
55
|
-
});const info=reactive({current_DATA:{},history_DATA:{}});const getCode=val=>{switch(val){case"heavy_medium_cyclone_system1":return "3104";case"heavy_medium_cyclone_system2":return "3204";case"heavy_medium_cyclone_system3":return "3304";default:return "";}};const http=async()=>{const res=await defaultApi({CURRENT_DATA:currentArr(listDataFun(currentDataInfo,getCode(_props.tabId||""),[{code:`${_props.tabId}__INPUT_COAL`,datasource:"THINGMODEL"}])),HISTORY_DATA:historyArr(listDataFun(historyDataInfo,getCode(_props.tabId||"")),"day")},"INTELLECT_DENSITY_CONTROL");info.current_DATA=res.data.current_DATA;info.history_DATA=res.data.history_DATA;document.getElementById("intellectDensityControl_bottom")?.clientHeight;if(!chart){chart=initChart$9(`${_props.tabId||"chart"}${_props.index}`,chartFormat$8(historyList(info.history_DATA)));}else {chart.changeData(chartFormat$8(historyList(info.history_DATA)));}};watch(()=>_props.tabId,async e=>{if(e){await http();}},{immediate:true});const timer=setInterval(async()=>{await http();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList);});onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard intellectDensityControl"},[createVNode("div",{"class":"intellectDensityControl_top"},[createVNode("div",{"class":"intellectDensityControl_top_left"},[createVNode("div",{"class":"intellectDensityControl_top_left_name"},[createTextVNode("\u7164\u79CD\uFF1A")]),createVNode("div",null,[createVNode("span",{"class":"intellectDensityControl_top_left_val"},[createTextVNode("\u9ED8\u8BA4\u7164\u79CD")])])]),createVNode("div",{"class":"intellectDensityControl_top_right"},null)]),createVNode("div",{"class":"intellectDensityControl_bottom","id":"intellectDensityControl_bottom"},[createVNode("div",{"class":"intellectDensityControl_bottom_left"},[currentDataInfo.map(item=>createVNode("div",{"class":"intellectDensityControl_bottom_left_item"},[createVNode("div",{"class":"intellectDensityControl_bottom_left_item_name"},[item.name,item.unit]),createVNode("div",null,[createVNode("span",{"class":"intellectDensityControl_bottom_left_item_val","style":{color:item.color}},[Number(info.current_DATA[`${getCode(_props.tabId)}__${item.code}`]).toFixed(3)==="NaN"?"-":Number(info.current_DATA[`${getCode(_props.tabId)}__${item.code}`]).toFixed(3)])])]))]),createVNode("div",{"class":"intellectDensityControl_bottom_right"},[createVNode("div",{"id":`${_props.tabId||"chart"}${_props.index}`,"style":{height:"100%"}},null)])])]);}});const defaultCard=[tailCoalFilterPressCard,alarmStatistics,concentrateDosing,energyConsumption,intellectDensityControl];const valData=[{name:"瞬时量",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"月累计",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"}];const stateData$4=[{name:"101A给料机",functionState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},code:"101A__RUNS&101A__FAULT_ALARM",valueType:"BOOL"},{name:"101B给料机",functionState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},code:"101B__RUNS&101B__FAULT_ALARM",valueType:"BOOL"},{name:"101C给料机",functionState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},code:"101C__RUNS&101C__FAULT_ALARM",valueType:"BOOL"}];const statisticsData$4=[{name:"102A皮带",code:"102A__RUNS?BOOL&102A__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},info:{infoList:[{name:"瞬时量",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"班累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"月累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}},{name:"102B皮带",code:"102B__RUNS?BOOL&102B__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},info:{infoList:[{name:"瞬时量",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"班累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"月累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}}];const chartFormat$7=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const stateFilter$5=(val,code)=>{if(code.indexOf("&")>-1){const codes=code.split("&");if(val[codes[1]]){return "faultState";}else {if(val[codes[0]]){return "functionState";}else {return "overhaulState";}}}return "overhaulState";};var valDom=defineComponent({setup(props,ctx){return ()=>createVNode("div",{"class":"oreInflowOfTheWholePlant-top-val"},[valData.map(item=>createVNode("div",{"class":"oreInflowOfTheWholePlant-top-val-item"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-top-val-item-label"},[item.name,createTextVNode("("),item.unit,createTextVNode(")")]),createVNode("div",{"class":"oreInflowOfTheWholePlant-top-val-item-value"},null)]))]);}});var stateDom$1=defineComponent({setup(props,ctx){const info=reactive({currentData:{},historyDATA:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(stateData$4)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state"},[stateData$4.map(item=>createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state-item"},[createVNode("img",{"src":item[stateFilter$5(info.currentData,item.code)].img,"alt":""},null),createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state-item-info"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state-item-info-name"},[item.name]),createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state-item-info-text","style":{color:item[stateFilter$5(info.currentData,item.code)].color,borderColor:item[stateFilter$5(info.currentData,item.code)].color,background:item[stateFilter$5(info.currentData,item.code)].background}},[item[stateFilter$5(info.currentData,item.code)].text])])]))]);}});var initChart$8=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale({year:{range:[0,1]},value:{min:0,nice:true}});chart.tooltip(false);chart.line().position("year*value");chart.render();return chart;};const props$O={item:{type:Object,default:{}},index:Number};var statisticsDom$5=defineComponent({props:props$O,setup(props,ctx){let chart;const infoState=reactive({currentData:{},historyData:{}});const getState=async()=>{const res=await defaultApi({currentData:currentArr(props.item.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;infoState.currentData=currentData;}};onMounted(async()=>{await getState();const height=document.getElementById(`oreInflowOfTheWholePlant_chart_${props.index}`)?.clientHeight;if(!chart){chart=initChart$8(`oreInflowOfTheWholePlantChart${props.index}`,chartFormat$7(historyList(infoState.historyData)),height);}else {chart.changeData(chartFormat$7(historyList(infoState.historyData)));}});return ()=>createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-header"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-header-info"},[createVNode("i",{"class":"rectangle"},null),createVNode("span",{"class":"oreInflowOfTheWholePlant-bottom-statistics-header-info-name"},[props.item.name]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-header-info-text","style":{color:props.item[stateFilter$5(infoState.currentData,props.item.code)].color,borderColor:props.item[stateFilter$5(infoState.currentData,props.item.code)].color,background:props.item[stateFilter$5(infoState.currentData,props.item.code)].background}},[props.item[stateFilter$5(infoState.currentData,props.item.code)].text])])]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-left"},[props.item.info.infoList.map(item=>createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-left-item"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-left-item-label"},[item.name,createTextVNode("("),item.unit,createTextVNode(")")]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-left-item-value"},[createTextVNode("1111")])]))]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-right","id":`oreInflowOfTheWholePlant_chart_${props.index}`},[createVNode("div",{"id":`oreInflowOfTheWholePlantChart${props.index}`},null)])])]);}});// 初始化接口配置
|
|
55
|
+
});const info=reactive({current_DATA:{},history_DATA:{}});const getCode=val=>{switch(val){case"heavy_medium_cyclone_system1":return "3104";case"heavy_medium_cyclone_system2":return "3204";case"heavy_medium_cyclone_system3":return "3304";default:return "";}};const http=async()=>{const res=await defaultApi({CURRENT_DATA:currentArr(listDataFun(currentDataInfo,getCode(_props.tabId||""),[{code:`${_props.tabId}__INPUT_COAL`,datasource:"THINGMODEL"}])),HISTORY_DATA:historyArr(listDataFun(historyDataInfo,getCode(_props.tabId||"")),"day")},"INTELLECT_DENSITY_CONTROL");info.current_DATA=res.data.current_DATA;info.history_DATA=res.data.history_DATA;document.getElementById("intellectDensityControl_bottom")?.clientHeight;if(!chart){chart=initChart$a(`${_props.tabId||"chart"}${_props.index}`,chartFormat$8(historyList(info.history_DATA)));}else {chart.changeData(chartFormat$8(historyList(info.history_DATA)));}};watch(()=>_props.tabId,async e=>{if(e){await http();}},{immediate:true});const timer=setInterval(async()=>{await http();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$2);});onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard intellectDensityControl"},[createVNode("div",{"class":"intellectDensityControl_top"},[createVNode("div",{"class":"intellectDensityControl_top_left"},[createVNode("div",{"class":"intellectDensityControl_top_left_name"},[createTextVNode("\u7164\u79CD\uFF1A")]),createVNode("div",null,[createVNode("span",{"class":"intellectDensityControl_top_left_val"},[createTextVNode("\u9ED8\u8BA4\u7164\u79CD")])])]),createVNode("div",{"class":"intellectDensityControl_top_right"},null)]),createVNode("div",{"class":"intellectDensityControl_bottom","id":"intellectDensityControl_bottom"},[createVNode("div",{"class":"intellectDensityControl_bottom_left"},[currentDataInfo.map(item=>createVNode("div",{"class":"intellectDensityControl_bottom_left_item"},[createVNode("div",{"class":"intellectDensityControl_bottom_left_item_name"},[item.name,item.unit]),createVNode("div",null,[createVNode("span",{"class":"intellectDensityControl_bottom_left_item_val","style":{color:item.color}},[Number(info.current_DATA[`${getCode(_props.tabId)}__${item.code}`]).toFixed(3)==="NaN"?"-":Number(info.current_DATA[`${getCode(_props.tabId)}__${item.code}`]).toFixed(3)])])]))]),createVNode("div",{"class":"intellectDensityControl_bottom_right"},[createVNode("div",{"id":`${_props.tabId||"chart"}${_props.index}`,"style":{height:"100%"}},null)])])]);}});const defaultCard=[tailCoalFilterPressCard,alarmStatistics,concentrateDosing,energyConsumption,intellectDensityControl];const valData=[{name:"瞬时量",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"月累计",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"}];const stateData$4=[{name:"101A给料机",functionState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},code:"101A__RUNS&101A__FAULT_ALARM",valueType:"BOOL"},{name:"101B给料机",functionState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},code:"101B__RUNS&101B__FAULT_ALARM",valueType:"BOOL"},{name:"101C给料机",functionState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/vibratingCoalFeeder_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},code:"101C__RUNS&101C__FAULT_ALARM",valueType:"BOOL"}];const statisticsData$4=[{name:"102A皮带",code:"102A__RUNS?BOOL&102A__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},info:{infoList:[{name:"瞬时量",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"班累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"月累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}},{name:"102B皮带",code:"102B__RUNS?BOOL&102B__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},info:{infoList:[{name:"瞬时量",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"班累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"月累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}}];const chartFormat$7=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const stateFilter$5=(val,code)=>{if(code.indexOf("&")>-1){const codes=code.split("&");if(val[codes[1]]){return "faultState";}else {if(val[codes[0]]){return "functionState";}else {return "overhaulState";}}}return "overhaulState";};var valDom=defineComponent({setup(props,ctx){return ()=>createVNode("div",{"class":"oreInflowOfTheWholePlant-top-val"},[valData.map(item=>createVNode("div",{"class":"oreInflowOfTheWholePlant-top-val-item"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-top-val-item-label"},[item.name,createTextVNode("("),item.unit,createTextVNode(")")]),createVNode("div",{"class":"oreInflowOfTheWholePlant-top-val-item-value"},null)]))]);}});var stateDom$1=defineComponent({setup(props,ctx){const info=reactive({currentData:{},historyDATA:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(stateData$4)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state"},[stateData$4.map(item=>createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state-item"},[createVNode("img",{"src":item[stateFilter$5(info.currentData,item.code)].img,"alt":""},null),createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state-item-info"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state-item-info-name"},[item.name]),createVNode("div",{"class":"oreInflowOfTheWholePlant-top-state-item-info-text","style":{color:item[stateFilter$5(info.currentData,item.code)].color,borderColor:item[stateFilter$5(info.currentData,item.code)].color,background:item[stateFilter$5(info.currentData,item.code)].background}},[item[stateFilter$5(info.currentData,item.code)].text])])]))]);}});var initChart$9=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale({year:{range:[0,1]},value:{min:0,nice:true}});chart.tooltip(false);chart.line().position("year*value");chart.render();return chart;};const props$O={item:{type:Object,default:{}},index:Number};var statisticsDom$5=defineComponent({props:props$O,setup(props,ctx){let chart;const infoState=reactive({currentData:{},historyData:{}});const getState=async()=>{const res=await defaultApi({currentData:currentArr(props.item.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;infoState.currentData=currentData;}};onMounted(async()=>{await getState();const height=document.getElementById(`oreInflowOfTheWholePlant_chart_${props.index}`)?.clientHeight;if(!chart){chart=initChart$9(`oreInflowOfTheWholePlantChart${props.index}`,chartFormat$7(historyList(infoState.historyData)),height);}else {chart.changeData(chartFormat$7(historyList(infoState.historyData)));}});return ()=>createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-header"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-header-info"},[createVNode("i",{"class":"rectangle"},null),createVNode("span",{"class":"oreInflowOfTheWholePlant-bottom-statistics-header-info-name"},[props.item.name]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-header-info-text","style":{color:props.item[stateFilter$5(infoState.currentData,props.item.code)].color,borderColor:props.item[stateFilter$5(infoState.currentData,props.item.code)].color,background:props.item[stateFilter$5(infoState.currentData,props.item.code)].background}},[props.item[stateFilter$5(infoState.currentData,props.item.code)].text])])]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-left"},[props.item.info.infoList.map(item=>createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-left-item"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-left-item-label"},[item.name,createTextVNode("("),item.unit,createTextVNode(")")]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-left-item-value"},[createTextVNode("1111")])]))]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom-statistics-body-right","id":`oreInflowOfTheWholePlant_chart_${props.index}`},[createVNode("div",{"id":`oreInflowOfTheWholePlantChart${props.index}`},null)])])]);}});// 初始化接口配置
|
|
56
56
|
getInstance$1({serverName:"card/v1",timeout:30});// 自定义接口配置
|
|
57
57
|
const setInstance$f=({serverName="card/v1",prefix="/api/",timeout=30})=>{getInstance$1({prefix,serverName,timeout});};const props$N={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
58
58
|
};var oreInflowOfTheWholePlant=defineComponent({name:"oreInflowOfTheWholePlant",cname:"全厂入矿量",developer:"前端开发组",equipment:"PC",props:props$N,components:{valDom,stateDom:stateDom$1,statisticsDom:statisticsDom$5},setup(props,ctx){// 自定义接口配置
|
|
59
59
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
60
|
-
});return ()=>createVNode("div",{"class":"bigScreenCard oreInflowOfTheWholePlant"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-top"},[createVNode(valDom,null,null),createVNode(stateDom$1,null,null)]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom"},[statisticsData$4.map((item,index)=>createVNode(statisticsDom$5,{"item":item,"index":index},null))])]);}});const statisticsData$3=[{name:"入磨量",code:"",info:{infoList:[{name:"瞬时量",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"品味",unit:"%",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}},{name:"精矿量",code:"",info:{infoList:[{name:"瞬时量",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"品味",unit:"%",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}},{name:"尾煤量",code:"",info:{infoList:[{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"品味",unit:"%",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"产率",unit:"%",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}}];const chartFormat$6=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};var initChart$
|
|
60
|
+
});return ()=>createVNode("div",{"class":"bigScreenCard oreInflowOfTheWholePlant"},[createVNode("div",{"class":"oreInflowOfTheWholePlant-top"},[createVNode(valDom,null,null),createVNode(stateDom$1,null,null)]),createVNode("div",{"class":"oreInflowOfTheWholePlant-bottom"},[statisticsData$4.map((item,index)=>createVNode(statisticsDom$5,{"item":item,"index":index},null))])]);}});const statisticsData$3=[{name:"入磨量",code:"",info:{infoList:[{name:"瞬时量",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"品味",unit:"%",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}},{name:"精矿量",code:"",info:{infoList:[{name:"瞬时量",unit:"t/h",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"品味",unit:"%",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}},{name:"尾煤量",code:"",info:{infoList:[{name:"日累计",unit:"t",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"品味",unit:"%",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"产率",unit:"%",code:"DENSITY_SET",datasource:"THINGMODEL"}],code:""}}];const chartFormat$6=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};var initChart$8=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale({year:{range:[0,1]},value:{min:0,nice:true}});chart.tooltip(false);chart.line().position("year*value");chart.point().position("year*value");chart.render();return chart;};const props$M={item:{type:Object,default:{}},index:Number};var statisticsDom$4=defineComponent({props:props$M,setup(props,ctx){let chart;const info=reactive({current_DATA:{},history_DATA:{}});onMounted(()=>{const height=document.getElementById(`productionOutputOfTheWholePlant_chart_${props.index}`)?.clientHeight;if(!chart){chart=initChart$8(`productionOutputOfTheWholePlantChart${props.index}`,chartFormat$6(historyList(info.history_DATA)),height);}else {chart.changeData(chartFormat$6(historyList(info.history_DATA)));}});return ()=>createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics"},[createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics-header"},[createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics-header-info"},[createVNode("i",{"class":"rectangle"},null),createVNode("span",{"class":"productionOutputOfTheWholePlant-statistics-header-info-name"},[props.item.name])])]),createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics-body"},[createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics-body-left"},[props.item.info.infoList.map(item=>createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics-body-left-item"},[createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics-body-left-item-label"},[item.name,createTextVNode("("),item.unit,createTextVNode(")")]),createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics-body-left-item-value"},[createTextVNode("1111")])]))]),createVNode("div",{"class":"productionOutputOfTheWholePlant-statistics-body-right","id":`productionOutputOfTheWholePlant_chart_${props.index}`},[createVNode("div",{"id":`productionOutputOfTheWholePlantChart${props.index}`},null)])])]);}});const props$L={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
61
61
|
};var productionOutputOfTheWholePlant=defineComponent({name:"productionOutputOfTheWholePlant",cname:"全厂生产产量",developer:"前端开发组",equipment:"PC",props:props$L,components:{statisticsDom:statisticsDom$4},setup(props,ctx){// 自定义接口配置
|
|
62
62
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
63
|
-
});return ()=>createVNode("div",{"class":"bigScreenCard productionOutputOfTheWholePlant"},[statisticsData$3.map((item,index)=>createVNode(statisticsDom$4,{"item":item,"index":index},null))]);}});const props$K={item:{type:Object,default:{}},index:Number};var progressDom=defineComponent({props:props$K,setup(props,ctx){reactive({current_DATA:{},history_DATA:{}});const width=ref(0);onMounted(()=>{width.value=document.getElementById(`productionQualityOfTheWholePlant_progress_${props.index}`)?.clientWidth||0;
|
|
63
|
+
});return ()=>createVNode("div",{"class":"bigScreenCard productionOutputOfTheWholePlant"},[statisticsData$3.map((item,index)=>createVNode(statisticsDom$4,{"item":item,"index":index},null))]);}});const props$K={item:{type:Object,default:{}},index:Number};var progressDom=defineComponent({props:props$K,setup(props,ctx){reactive({current_DATA:{},history_DATA:{}});const width=ref(0);onMounted(()=>{width.value=document.getElementById(`productionQualityOfTheWholePlant_progress_${props.index}`)?.clientWidth||0;});return ()=>createVNode("div",{"class":"productionQualityOfTheWholePlant-bottom-statistics-body-progress","id":`productionQualityOfTheWholePlant_progress_${props.index}`},[createVNode(resolveComponent("a-progress"),{"type":"circle","percent":75,"width":width.value-20,"trailColor":"#101F4E","strokeColor":"#1CEFFF","strokeWidth":3},{format:percent=>createVNode("span",{"style":{color:"#1CEFFF"}},[percent])}),createVNode("div",{"style":{textAlign:"center",marginTop:"5px"}},[props.item.name])]);}});const props$J={item:{type:Object,default:{}},index:Number};var statisticsDom$3=defineComponent({props:props$J,components:{progressDom},setup(props,ctx){reactive({current_DATA:{},history_DATA:{}});onMounted(()=>{});return ()=>createVNode("div",{"class":"productionQualityOfTheWholePlant-bottom-statistics"},[createVNode("div",{"class":"productionQualityOfTheWholePlant-bottom-statistics-header"},[createVNode("div",{"class":"productionQualityOfTheWholePlant-bottom-statistics-header-info"},[createVNode("i",{"class":"rectangle"},null),createVNode("span",{"class":"productionQualityOfTheWholePlant-bottom-statistics-header-info-name"},[props.item.name])])]),createVNode("div",{"class":"productionQualityOfTheWholePlant-bottom-statistics-body"},[props.item.infoList.map((item,index)=>createVNode(progressDom,{"item":item,"index":index},null))])]);}});const topData$3={name:"平均质量分布",code:""};const statisticsData$2=[{name:"A系统",code:"",infoList:[{name:"精矿品位",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"细度",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"水分",code:"DENSITY_SET",datasource:"THINGMODEL"}]},{name:"B系统",code:"",infoList:[{name:"精矿品位",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"细度",code:"DENSITY_SET",datasource:"THINGMODEL"},{name:"水分",code:"DENSITY_SET",datasource:"THINGMODEL"}]}];const chartFormat$5=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};var initChart$7=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale("score",{min:0,nice:true});chart.coordinate("polar",{radius:0.8});chart.tooltip(false);chart.legend(false);chart.axis("item",{line:null,tickLine:null,grid:{line:{style:{lineDash:null}}}});chart.axis("score",{line:null,tickLine:null,grid:{line:{type:"line",style:{lineDash:null}}}});chart.line().position("item*score");chart.area().position("item*score");chart.render();return chart;};const props$I={item:{type:Object,default:{}}};var topDom$4=defineComponent({props:props$I,setup(props,ctx){let chart;const info=reactive({current_DATA:{},history_DATA:{}});onMounted(()=>{const height=document.getElementById(`productionQualityOfTheWholePlant_chart`)?.clientHeight;if(!chart){chart=initChart$7(`productionQualityOfTheWholePlantChart`,chartFormat$5(historyList(info.history_DATA)),height);}else {chart.changeData(chartFormat$5(historyList(info.history_DATA)));}});return ()=>createVNode("div",{"class":"productionQualityOfTheWholePlant-top-statistics"},[createVNode("div",{"class":"productionQualityOfTheWholePlant-top-statistics-header"},[createVNode("div",{"class":"productionQualityOfTheWholePlant-top-statistics-header-info"},[createVNode("i",{"class":"rectangle"},null),createVNode("span",{"class":"productionQualityOfTheWholePlant-top-statistics-header-info-name"},[props.item.name])])]),createVNode("div",{"class":"productionQualityOfTheWholePlant-top-statistics-body","id":"productionQualityOfTheWholePlant_chart"},[createVNode("div",{"id":"productionQualityOfTheWholePlantChart"},null)])]);}});const props$H={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
64
64
|
};var productionQualityOfTheWholePlant=defineComponent({name:"productionQualityOfTheWholePlant",cname:"全厂生产质量",developer:"前端开发组",equipment:"PC",props:props$H,components:{statisticsDom:statisticsDom$3,topDom:topDom$4},setup(props,ctx){// 自定义接口配置
|
|
65
65
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
66
66
|
});// const http=async()=>{
|
|
@@ -72,10 +72,10 @@ setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.tim
|
|
|
72
72
|
});return ()=>createVNode("div",{"class":"bigScreenCard strongMagneticSeparationSystemAB"},[createVNode("div",{"class":"strongMagneticSeparationSystemAB-top"},[topData$2.map(item=>createVNode(topDom$3,{"item":item},null))]),createVNode("div",{"class":"strongMagneticSeparationSystemAB-center"},[centerData$1.map(item=>createVNode(weakMagneticSeparationSystemDom,{"item":item},null))]),createVNode("div",{"class":"strongMagneticSeparationSystemAB-bottom"},[createVNode(pumpValueDom,null,null),bottomData$2.map((item,index)=>createVNode(pumpValueDom,{"item":item},null))])]);}});const topData$1=[{name:"310C梯度磁选机",code:"310C__RUNS?BOOL&310C__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_green.png"},faultState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_red.png"},overhaulState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_grey.png"}},{name:"310D梯度磁选机",code:"310D__RUNS?BOOL&310D__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_green.png"},faultState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_red.png"},overhaulState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_grey.png"}},{name:"311C梯度磁选机",code:"311C__RUNS?BOOL&311C__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_green.png"},faultState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_red.png"},overhaulState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_grey.png"}},{name:"311D梯度磁选机",code:"311D__RUNS?BOOL&311D__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_green.png"},faultState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_red.png"},overhaulState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_grey.png"}}];const centerData=[{name:"304CD弱磁尾煤池",code:"304CD-1__LEVEL_PROPORTION?FLT",img:"/micro-assets/bigScreen/tailingPit.png"},{name:"307CD弱磁精矿池",code:"307CD-1__LEVEL_PROPORTION?FLT",img:"/micro-assets/bigScreen/tailingPit.png"}];const bottomData$1=[{name1:"305CD",name2:"尾煤泵",code:"305CD__SPEED?FLT&305CD__CURRENT?FLT",img:"/micro-assets/bigScreen/base.png"},{name1:"306CD",name2:"尾煤泵",code:"306CD__SPEED?FLT&306CD__CURRENT?FLT",img:"/micro-assets/bigScreen/base.png"},{name1:"308CD",name2:"精矿泵",code:"308CD__SPEED?FLT&308CD__CURRENT?FLT",img:"/micro-assets/bigScreen/base.png"},{name1:"309CD",name2:"精矿泵",code:"309CD__SPEED?FLT&309CD__CURRENT?FLT",img:"/micro-assets/bigScreen/base.png"}];const stateFilter$3=(val,code)=>{if(code.indexOf("&")>-1){const codes=code.split("&");if(val[codes[1]]){return "faultState";}else {if(val[codes[0]]){return "functionState";}else {return "overhaulState";}}}return "overhaulState";};const props$C$1={item:{type:Object,default:{}}};var topDom$2=defineComponent({props:props$C$1,setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(props.item.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"strongMagneticSeparationSystemCD-top-state"},[createVNode("img",{"src":props.item[stateFilter$3(info.currentData,props.item.code)].img,"alt":""},null),createVNode("div",null,[props.item.name])]);}});const props$B$1={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
73
73
|
};var strongMagneticSeparationSystemCD=defineComponent({name:"strongMagneticSeparationSystemCD",cname:"强磁分选系统CD",developer:"前端开发组",equipment:"PC",props:props$B$1,components:{topDom:topDom$2,weakMagneticSeparationSystemDom,pumpValueDom},setup(props,ctx){// 自定义接口配置
|
|
74
74
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
75
|
-
});return ()=>createVNode("div",{"class":"bigScreenCard strongMagneticSeparationSystemCD"},[createVNode("div",{"class":"strongMagneticSeparationSystemCD-top"},[topData$1.map(item=>createVNode(topDom$2,{"item":item},null))]),createVNode("div",{"class":"strongMagneticSeparationSystemCD-center"},[centerData.map(item=>createVNode(weakMagneticSeparationSystemDom,{"item":item},null))]),createVNode("div",{"class":"strongMagneticSeparationSystemCD-bottom"},[createVNode(pumpValueDom,null,null),bottomData$1.map((item,index)=>createVNode(pumpValueDom,{"item":item},null))])]);}});const topData=[{name1:"517入料泵",name2:"521压缩机",code:"",functionState:{img:"/micro-assets/bigScreen/feedPump_green.png"},faultState:{img:"/micro-assets/bigScreen/feedPump_red.png"},overhaulState:{img:"/micro-assets/bigScreen/feedPump_grey.png"}},{name1:"518入料泵",name2:"522压缩机",code:"",functionState:{img:"/micro-assets/bigScreen/feedPump_green.png"},faultState:{img:"/micro-assets/bigScreen/feedPump_red.png"},overhaulState:{img:"/micro-assets/bigScreen/feedPump_grey.png"}},{name1:"519入料泵",name2:"523压缩机",code:"",functionState:{img:"/micro-assets/bigScreen/feedPump_green.png"},faultState:{img:"/micro-assets/bigScreen/feedPump_red.png"},overhaulState:{img:"/micro-assets/bigScreen/feedPump_grey.png"}},{name1:"520入料泵",name2:"524压缩机",code:"",functionState:{img:"/micro-assets/bigScreen/feedPump_green.png"},faultState:{img:"/micro-assets/bigScreen/feedPump_red.png"},overhaulState:{img:"/micro-assets/bigScreen/feedPump_grey.png"}}];const bottomData=[{name:"515-1矿浆搅拌槽",code:"515-1__LEVEL_PROPORTION?FLT"},{name:"516-1矿浆搅拌槽",code:"516-1__LEVEL_PROPORTION?FLT"}];const chartFormat$4=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};var initChart$
|
|
75
|
+
});return ()=>createVNode("div",{"class":"bigScreenCard strongMagneticSeparationSystemCD"},[createVNode("div",{"class":"strongMagneticSeparationSystemCD-top"},[topData$1.map(item=>createVNode(topDom$2,{"item":item},null))]),createVNode("div",{"class":"strongMagneticSeparationSystemCD-center"},[centerData.map(item=>createVNode(weakMagneticSeparationSystemDom,{"item":item},null))]),createVNode("div",{"class":"strongMagneticSeparationSystemCD-bottom"},[createVNode(pumpValueDom,null,null),bottomData$1.map((item,index)=>createVNode(pumpValueDom,{"item":item},null))])]);}});const topData=[{name1:"517入料泵",name2:"521压缩机",code:"",functionState:{img:"/micro-assets/bigScreen/feedPump_green.png"},faultState:{img:"/micro-assets/bigScreen/feedPump_red.png"},overhaulState:{img:"/micro-assets/bigScreen/feedPump_grey.png"}},{name1:"518入料泵",name2:"522压缩机",code:"",functionState:{img:"/micro-assets/bigScreen/feedPump_green.png"},faultState:{img:"/micro-assets/bigScreen/feedPump_red.png"},overhaulState:{img:"/micro-assets/bigScreen/feedPump_grey.png"}},{name1:"519入料泵",name2:"523压缩机",code:"",functionState:{img:"/micro-assets/bigScreen/feedPump_green.png"},faultState:{img:"/micro-assets/bigScreen/feedPump_red.png"},overhaulState:{img:"/micro-assets/bigScreen/feedPump_grey.png"}},{name1:"520入料泵",name2:"524压缩机",code:"",functionState:{img:"/micro-assets/bigScreen/feedPump_green.png"},faultState:{img:"/micro-assets/bigScreen/feedPump_red.png"},overhaulState:{img:"/micro-assets/bigScreen/feedPump_grey.png"}}];const bottomData=[{name:"515-1矿浆搅拌槽",code:"515-1__LEVEL_PROPORTION?FLT"},{name:"516-1矿浆搅拌槽",code:"516-1__LEVEL_PROPORTION?FLT"}];const chartFormat$4=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};var initChart$6=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale({year:{range:[0,1]},value:{min:0,nice:true}});chart.tooltip(false);chart.line().position("year*value");chart.render();return chart;};const props$A$1={item:{type:Object,default:{}},index:Number};var topDom$1=defineComponent({props:props$A$1,setup(props,ctx){let chart;const info=reactive({currentData:{},historyData:{}});onMounted(()=>{const height=document.getElementById(`tailCoalDewateringSystem_chart_${props.index}`)?.clientHeight;if(!chart){chart=initChart$6(`tailCoalDewateringSystemChart${props.index}`,chartFormat$4(historyList(info.history_DATA)),height);}else {chart.changeData(chartFormat$4(historyList(info.history_DATA)));}});return ()=>createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics"},[createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics-left"},[createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics-left-top"},[props.item.name1]),createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics-left-center"},[createVNode("img",{"src":props.item["faultState"].img,"alt":""},null)]),createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics-left-bottom"},[props.item.name2])]),createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics-right"},[createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics-right-top"},[createTextVNode("\u7535\u6D41"),createVNode("span",null,[createTextVNode("65")]),createTextVNode("A")]),createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics-right-center","id":`tailCoalDewateringSystem_chart_${props.index}`},[createVNode("div",{"id":`tailCoalDewateringSystemChart${props.index}`,"style":{width:"100%"}},null)]),createVNode("div",{"class":"tailCoalDewateringSystem-top-statistics-right-bottom"},[createTextVNode("\u677F\u6570"),createVNode("span",null,[createTextVNode("65")])])])]);}});const props$z$1={item:{type:Object}};var grooveDom=defineComponent({props:props$z$1,setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(props.item?.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"groove"},[createVNode("div",{"class":"groove-title"},[props.item?.name]),createVNode("div",{"class":"groove-body"},[createVNode("div",{"class":"groove-body-left"},[createTextVNode("\u6DB2\u4F4D"),createVNode("span",null,[info.currentData[props.item?.code]||0]),createTextVNode("M")]),createVNode("div",{"class":"groove-body-right"},[createVNode("img",{"src":"/micro-assets/bigScreen/tailingPit.png","alt":""},null)])])]);}});const props$y$1={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
76
76
|
};var tailCoalDewateringSystem=defineComponent({name:"tailCoalDewateringSystem",cname:"尾煤脱水系统",developer:"前端开发组",equipment:"PC",props:props$y$1,components:{topDom:topDom$1,grooveDom},setup(props,ctx){// 自定义接口配置
|
|
77
77
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
78
|
-
});return ()=>createVNode("div",{"class":"bigScreenCard tailCoalDewateringSystem"},[createVNode("div",{"class":"tailCoalDewateringSystem-top"},[topData.map((item,index)=>createVNode(topDom$1,{"item":item,"index":index},null))]),createVNode("div",{"class":"tailCoalDewateringSystem-bottom"},[bottomData.map((item,index)=>createVNode("div",{"class":"tailCoalDewateringSystem-bottom-item"},[createVNode(grooveDom,{"item":item},null)]))])]);}});const statisticsData$1=[{name:"PM2.5",code:"SY__PM25?FLT",unit:"μm/m³",info:{code:""}},{name:"PM10",code:"SY__PM10?FLT",unit:"μm/m³",info:{code:""}},{name:"TSP",code:"SY__TSP?FLT",unit:"μm/m³",info:{code:""}},{name:"噪声",code:"SY__NOISE?FLT",unit:"dB",info:{code:""}},{name:"湿度",code:"SY__HUMIDITY?FLT",unit:"%",info:{code:""}},{name:"温度",code:"SY__TEMP?FLT",unit:"℃",info:{code:""}}];const chartFormat$3=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};var initChart$
|
|
78
|
+
});return ()=>createVNode("div",{"class":"bigScreenCard tailCoalDewateringSystem"},[createVNode("div",{"class":"tailCoalDewateringSystem-top"},[topData.map((item,index)=>createVNode(topDom$1,{"item":item,"index":index},null))]),createVNode("div",{"class":"tailCoalDewateringSystem-bottom"},[bottomData.map((item,index)=>createVNode("div",{"class":"tailCoalDewateringSystem-bottom-item"},[createVNode(grooveDom,{"item":item},null)]))])]);}});const statisticsData$1=[{name:"PM2.5",code:"SY__PM25?FLT",unit:"μm/m³",info:{code:""}},{name:"PM10",code:"SY__PM10?FLT",unit:"μm/m³",info:{code:""}},{name:"TSP",code:"SY__TSP?FLT",unit:"μm/m³",info:{code:""}},{name:"噪声",code:"SY__NOISE?FLT",unit:"dB",info:{code:""}},{name:"湿度",code:"SY__HUMIDITY?FLT",unit:"%",info:{code:""}},{name:"温度",code:"SY__TEMP?FLT",unit:"℃",info:{code:""}}];const chartFormat$3=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};var initChart$5=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale({year:{range:[0,1]},value:{min:0,nice:true}});chart.tooltip(false);chart.line().position("year*value");chart.render();return chart;};const props$x$1={item:{type:Object,default:{}},index:Number};var statisticsDom$2=defineComponent({props:props$x$1,setup(props,ctx){let chart;const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(props.item.code),historyData:{DAY:{pointInfos:currentArr(props.item.code)}}},"POINT_DATA");if(res.data){const{currentData,historyData}=res.data;info.currentData=currentData;info.historyData=historyData.DAY;}};onMounted(async()=>{const height=document.getElementById(`environmentalMonitoring_chart_${props.index}`)?.clientHeight;await http();if(!chart){chart=initChart$5(`environmentalMonitoringChart${props.index}`,chartFormat$3(historyList(info.historyData)),height);}else {chart.changeData(chartFormat$3(historyList(info.historyData)));}});return ()=>createVNode("div",{"class":"environmentalMonitoring-statistics"},[createVNode("div",{"class":"environmentalMonitoring-statistics-header"},[createVNode("div",{"class":"environmentalMonitoring-statistics-header-info"},[createVNode("i",{"class":"rectangle"},null),createVNode("span",{"class":"environmentalMonitoring-statistics-header-info-name"},[props.item.name,createTextVNode("("),props.item.unit,createTextVNode(")")]),createVNode("div",{"class":"environmentalMonitoring-statistics-header-info-text"},[info.currentData[props.item.code]||0])])]),createVNode("div",{"class":"environmentalMonitoring-statistics-body","id":`environmentalMonitoring_chart_${props.index}`},[createVNode("div",{"id":`environmentalMonitoringChart${props.index}`},null)])]);}});const props$w$1={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
79
79
|
};var environmentalMonitoring=defineComponent({name:"environmentalMonitoring",cname:"环境监测",developer:"前端开发组",equipment:"PC",props:props$w$1,components:{statisticsDom:statisticsDom$2},setup(props,ctx){// 自定义接口配置
|
|
80
80
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
81
81
|
});return ()=>createVNode("div",{"class":"bigScreenCard environmentalMonitoring"},[statisticsData$1.map((item,index)=>createVNode(statisticsDom$2,{"item":item,"index":index},null))]);}});const props$v$1={item:{type:Object,default:[]}};var stateTitleDom=defineComponent({props:props$v$1,setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const infoElectric=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(props.item.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};const getElectric=async()=>{const res=await defaultApi({currentData:currentArr(props.item.electric.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;infoElectric.currentData=currentData;}};const stateFilter=(val,code)=>{if(code.indexOf("&")>-1){const codes=code.split("&");if(val[codes[1]]){return "faultState";}else {if(val[codes[0]]){return "functionState";}else {return "overhaulState";}}}return "overhaulState";};onMounted(async()=>{http();if(props.item.electric){getElectric();}});return ()=>createVNode("div",{"class":"stateBox"},[createVNode("div",{"class":"stateTitle"},[createVNode("span",{"class":"spotBox","style":{background:props.item[stateFilter(info.currentData,props.item.code)].color}},[createVNode("i",{"class":"spot","style":{background:props.item[stateFilter(info.currentData,props.item.code)].color}},null)]),createVNode("span",null,[props.item.name])]),props.item.electric?createVNode("div",{"class":"electricValue"},[createTextVNode("\u7535\u6D41"),createVNode("span",null,[infoElectric.currentData[props.item.electric.code]||0]),createTextVNode("A")]):null]);}});const stateData$3=[{name:"301A磁选机",code:"301A__RUNS?BOOL&301A__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},nameList:[{name:"302A圆筒筛",code:"302A__RUNS?BOOL&302A__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]},{name:"301B磁选机",code:"301B__RUNS?BOOL&301B__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},nameList:[{name:"302B圆筒筛",code:"302B__RUNS?BOOL&302B__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]},{name:"301C磁选机",code:"301C__RUNS?BOOL&301C__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/cleanCoalMagneticSeparator_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},nameList:[{name:"302C圆筒筛",code:"302C__RUNS?BOOL&302C__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"303C圆筒筛",code:"303C__RUNS?BOOL&303C__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]}];const stateFilter$2=(val,code)=>{if(code.indexOf("&")>-1){const codes=code.split("&");if(val[codes[1]]){return "faultState";}else {if(val[codes[0]]){return "functionState";}else {return "overhaulState";}}}return "overhaulState";};const props$u$1={item:{type:Object,default:{}}};var stateDom=defineComponent({props:props$u$1,components:{stateTitleDom},setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(props.item.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"auxiliarySystem-state"},[createVNode("div",{"class":"auxiliarySystem-state-name"},[props.item.name]),createVNode("img",{"src":props.item[stateFilter$2(info.currentData,props.item.code)].img,"alt":""},null),createVNode("div",{"class":"auxiliarySystem-state-stateInfo","style":{color:props.item[stateFilter$2(info.currentData,props.item.code)].color,borderColor:props.item[stateFilter$2(info.currentData,props.item.code)].color,background:props.item[stateFilter$2(info.currentData,props.item.code)].background}},[props.item[stateFilter$2(info.currentData,props.item.code)].text]),props.item.nameList.map(item=>createVNode(stateTitleDom,{"item":item},null))]);}});const props$t$1={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
@@ -84,10 +84,10 @@ setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.tim
|
|
|
84
84
|
});return ()=>createVNode("div",{"class":"bigScreenCard auxiliarySystem"},[stateData$3.map(item=>createVNode(stateDom,{"item":item},null))]);}});const stateData$2=[{name:"601强磁精矿池",code:"",img:"/micro-assets/bigScreen/tailingPit.png"},{name:"605强磁精矿池",code:"",img:"/micro-assets/bigScreen/tailingPit.png"},{name:"613强磁精矿池",code:"",img:"/micro-assets/bigScreen/tailingPit.png"},{name:"615强磁精矿池",code:"",img:"/micro-assets/bigScreen/tailingPit.png"}];const props$s$1={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
85
85
|
};var weakMagneticSeparationSystem=defineComponent({name:"weakMagneticSeparationSystem",cname:"辅助系统",developer:"前端开发组",equipment:"PC",props:props$s$1,components:{weakMagneticSeparationSystemDom},setup(props,ctx){// 自定义接口配置
|
|
86
86
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
87
|
-
});return ()=>createVNode("div",{"class":"weakMagneticSeparationSystem"},[stateData$2.map(item=>createVNode(weakMagneticSeparationSystemDom,{"item":item},null))]);}});const props$r$1={item:{type:Object,default:{}}};var topDom=defineComponent({props:props$r$1,components:{stateTitleDom,weakMagneticSeparationSystemDom},setup(props,ctx){return ()=>createVNode("div",{"class":"tailingsClassificationSystem-top-item"},[createVNode(weakMagneticSeparationSystemDom,{"item":props.item},null),createVNode("div",null,[props.item.pumpList.map(item=>createVNode(stateTitleDom,{"item":item},null))])]);}});const stateData$1=[{name:"501-1强磁尾煤池",code:"501-1__LEVEL_PROPORTION?FLT",img:"/micro-assets/bigScreen/tailingPit.png",pumpList:[{name:"502尾煤泵",code:"502__RUNS?BOOL&502__FAULT_ALARM?BOOL",electric:{code:"502__CURRENT?FLT"},functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"503尾煤泵",code:"503__RUNS?BOOL&503__FAULT_ALARM?BOOL",electric:{code:"503__CURRENT?FLT"},functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]},{name:"504-1尾煤浓缩入料池",code:"504-1__LEVEL_PROPORTION?FLT",img:"/micro-assets/bigScreen/tailingPit.png",pumpList:[{name:"505分级入料泵",code:"505__RUNS?BOOL&505__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"506分级入料泵",code:"506__RUNS?BOOL&506__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]},{name:"509-1尾煤浓缩入料箱",code:"509-1__LEVEL_PROPORTION?FLT",img:"/micro-assets/bigScreen/tailingPit.png",pumpList:[{name:"510深锥入料泵",code:"510__RUNS?BOOL&510__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"511深锥入料泵",code:"511__RUNS?BOOL&511__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]}];const deepConeThickener={name:"512深锥浓缩机",code:"512__RUNS?BOOL&512__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/thickener_green.png",color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/thickener_red.png",color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/thickener_grey.png",color:"#9095A2",background:"rgba(144,149,162,0.2)"},pumpList:[{name:"513深锥入料泵",code:"513__RUNS?BOOL&513__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"514深锥入料泵",code:"514__RUNS?BOOL&514__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]};const pressureChart=[{name:"旋转压力",unit:"KPa",code:"",valueType:"FLT"},{name:"提耙压力",unit:"KPa",code:"",valueType:"FLT"}];const chartFormat$2=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const stateFilter$1=(val,code)=>{if(code.indexOf("&")>-1){const codes=code.split("&");if(val[codes[1]]){return "faultState";}else {if(val[codes[0]]){return "functionState";}else {return "overhaulState";}}}return "overhaulState";};const props$q$1={item:Object,default:{}};var deepConeThickenerDom=defineComponent({props:props$q$1,components:{stateTitleDom},setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(deepConeThickener.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"tailingsClassificationSystem-bottom-deepConeThickener"},[createVNode("div",null,[deepConeThickener.name]),createVNode("img",{"src":deepConeThickener[stateFilter$1(info.currentData,deepConeThickener.code)].img,"alt":""},null),deepConeThickener.pumpList.map(item=>createVNode(stateTitleDom,{"item":item},null))]);}});var initChart$
|
|
87
|
+
});return ()=>createVNode("div",{"class":"weakMagneticSeparationSystem"},[stateData$2.map(item=>createVNode(weakMagneticSeparationSystemDom,{"item":item},null))]);}});const props$r$1={item:{type:Object,default:{}}};var topDom=defineComponent({props:props$r$1,components:{stateTitleDom,weakMagneticSeparationSystemDom},setup(props,ctx){return ()=>createVNode("div",{"class":"tailingsClassificationSystem-top-item"},[createVNode(weakMagneticSeparationSystemDom,{"item":props.item},null),createVNode("div",null,[props.item.pumpList.map(item=>createVNode(stateTitleDom,{"item":item},null))])]);}});const stateData$1=[{name:"501-1强磁尾煤池",code:"501-1__LEVEL_PROPORTION?FLT",img:"/micro-assets/bigScreen/tailingPit.png",pumpList:[{name:"502尾煤泵",code:"502__RUNS?BOOL&502__FAULT_ALARM?BOOL",electric:{code:"502__CURRENT?FLT"},functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"503尾煤泵",code:"503__RUNS?BOOL&503__FAULT_ALARM?BOOL",electric:{code:"503__CURRENT?FLT"},functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]},{name:"504-1尾煤浓缩入料池",code:"504-1__LEVEL_PROPORTION?FLT",img:"/micro-assets/bigScreen/tailingPit.png",pumpList:[{name:"505分级入料泵",code:"505__RUNS?BOOL&505__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"506分级入料泵",code:"506__RUNS?BOOL&506__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]},{name:"509-1尾煤浓缩入料箱",code:"509-1__LEVEL_PROPORTION?FLT",img:"/micro-assets/bigScreen/tailingPit.png",pumpList:[{name:"510深锥入料泵",code:"510__RUNS?BOOL&510__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"511深锥入料泵",code:"511__RUNS?BOOL&511__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]}];const deepConeThickener={name:"512深锥浓缩机",code:"512__RUNS?BOOL&512__FAULT_ALARM?BOOL",functionState:{img:"/micro-assets/bigScreen/thickener_green.png",color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/thickener_red.png",color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/thickener_grey.png",color:"#9095A2",background:"rgba(144,149,162,0.2)"},pumpList:[{name:"513深锥入料泵",code:"513__RUNS?BOOL&513__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}},{name:"514深锥入料泵",code:"514__RUNS?BOOL&514__FAULT_ALARM?BOOL",functionState:{color:"#22CC83",background:"rgba(34,204,131,0.2)"},faultState:{color:"#EA5858",background:"rgba(234,88,88,0.2)"},overhaulState:{color:"#9095A2",background:"rgba(144,149,162,0.2)"}}]};const pressureChart=[{name:"旋转压力",unit:"KPa",code:"",valueType:"FLT"},{name:"提耙压力",unit:"KPa",code:"",valueType:"FLT"}];const chartFormat$2=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const stateFilter$1=(val,code)=>{if(code.indexOf("&")>-1){const codes=code.split("&");if(val[codes[1]]){return "faultState";}else {if(val[codes[0]]){return "functionState";}else {return "overhaulState";}}}return "overhaulState";};const props$q$1={item:Object,default:{}};var deepConeThickenerDom=defineComponent({props:props$q$1,components:{stateTitleDom},setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(deepConeThickener.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"tailingsClassificationSystem-bottom-deepConeThickener"},[createVNode("div",null,[deepConeThickener.name]),createVNode("img",{"src":deepConeThickener[stateFilter$1(info.currentData,deepConeThickener.code)].img,"alt":""},null),deepConeThickener.pumpList.map(item=>createVNode(stateTitleDom,{"item":item},null))]);}});var initChart$4=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale({year:{range:[0,1]},value:{min:0,nice:true}});chart.tooltip(false);chart.area().position("year*value");chart.line().position("year*value");chart.render();return chart;};var electricDom=defineComponent({setup(props,ctx){let chart;const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(""),historyData:{DAY:{pointInfos:currentArr("")}}},"POINT_DATA");if(res.data){const{currentData,historyData}=res.data;info.currentData=currentData;info.historyData=historyData.DAY;}};onMounted(async()=>{const height=document.getElementById(`tailingsClassificationSystemElectric_chart`)?.clientHeight;await http();if(!chart){chart=initChart$4(`tailingsClassificationSystemElectricChart`,chartFormat$2(historyList(info.historyData)),height);}else {chart.changeData(chartFormat$2(historyList(info.historyData)));}});return ()=>createVNode("div",{"class":"tailingsClassificationSystem-bottom-electric"},[createVNode("div",{"class":"tailingsClassificationSystem-bottom-electric-top"},[createTextVNode("\u7535\u6D41(A) "),createVNode("span",null,[createTextVNode("50")])]),createVNode("div",{"class":"tailingsClassificationSystem-bottom-electric-bottom","id":"tailingsClassificationSystemElectric_chart"},[createVNode("div",{"id":"tailingsClassificationSystemElectricChart"},null)])]);}});var initChart$3=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale("year",{type:"linear",tickInterval:50});chart.scale("value",{nice:true});chart.tooltip(false);chart.area().adjust("stack").position("year*value").color("country");chart.line().adjust("stack").position("year*value").color("country");chart.render();return chart;};var pressureDom=defineComponent({setup(props,ctx){let chart;const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(pressureChart),historyData:{DAY:{pointInfos:currentArr(pressureChart)}}},"POINT_DATA");if(res.data){const{currentData,historyData}=res.data;info.currentData=currentData;info.historyData=historyData.DAY;}};onMounted(async()=>{const height=document.getElementById(`tailingsClassificationSystemPressure_chart`)?.clientHeight;await http();if(!chart){chart=initChart$3(`tailingsClassificationSystemPressureChart`,chartFormat$2(historyList(info.historyData)),height);}else {chart.changeData(chartFormat$2(historyList(info.historyData)));}});return ()=>createVNode("div",{"class":"tailingsClassificationSystem-bottom-pressure"},[createVNode("div",{"class":"tailingsClassificationSystem-bottom-pressure-top"},[pressureChart.map(item=>createVNode("div",{"class":"tailingsClassificationSystem-bottom-pressure-top-item"},[item.name,createTextVNode("("),item.unit,createTextVNode(") "),createVNode("span",null,[createTextVNode("50")])]))]),createVNode("div",{"class":"tailingsClassificationSystem-bottom-pressure-bottom","id":"tailingsClassificationSystemPressure_chart"},[createVNode("div",{"id":"tailingsClassificationSystemPressureChart"},null)])]);}});var bottomDom=defineComponent({components:{deepConeThickenerDom,electricDom,pressureDom},setup(props,ctx){return ()=>createVNode("div",{"class":"tailingsClassificationSystem-bottom"},[createVNode(deepConeThickenerDom,null,null),createVNode(electricDom,null,null),createVNode(pressureDom,null,null)]);}});const props$p$1={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
88
88
|
};var tailingsClassificationSystem=defineComponent({name:"tailingsClassificationSystem",cname:"尾煤分级系统",developer:"前端开发组",equipment:"PC",props:props$p$1,components:{topDom,bottomDom},setup(props,ctx){// 自定义接口配置
|
|
89
89
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
90
|
-
});return ()=>createVNode("div",{"class":"bigScreenCard tailingsClassificationSystem"},[createVNode("div",{"class":"tailingsClassificationSystem-top"},[stateData$1.map(item=>createVNode(topDom,{"item":item},null))]),createVNode(bottomDom,null,null)]);}});const props$o$1={item:{type:Object,default:{}},index:Number};var grindingSystemInfoItemDom=defineComponent({props:props$o$1,setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(props.item?.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"grindingSystem-top-item-statistics-body-right-item"},[createVNode("div",{"class":"grindingSystem-top-item-statistics-body-right-item-label"},[props.item.label]),createVNode("div",{"style":{display:"flex",alignItems:"flex-end",flex:"1"}},[createVNode("div",{"class":"grindingSystem-top-item-statistics-body-right-item-value"},[info.currentData[props.item?.code]||0]),createVNode("div",{"class":"grindingSystem-top-item-statistics-body-right-item-unit"},[props.item.unit])])]);}});var initChart$
|
|
90
|
+
});return ()=>createVNode("div",{"class":"bigScreenCard tailingsClassificationSystem"},[createVNode("div",{"class":"tailingsClassificationSystem-top"},[stateData$1.map(item=>createVNode(topDom,{"item":item},null))]),createVNode(bottomDom,null,null)]);}});const props$o$1={item:{type:Object,default:{}},index:Number};var grindingSystemInfoItemDom=defineComponent({props:props$o$1,setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(props.item?.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"grindingSystem-top-item-statistics-body-right-item"},[createVNode("div",{"class":"grindingSystem-top-item-statistics-body-right-item-label"},[props.item.label]),createVNode("div",{"style":{display:"flex",alignItems:"flex-end",flex:"1"}},[createVNode("div",{"class":"grindingSystem-top-item-statistics-body-right-item-value"},[info.currentData[props.item?.code]||0]),createVNode("div",{"class":"grindingSystem-top-item-statistics-body-right-item-unit"},[props.item.unit])])]);}});var initChart$2=(id,data,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale({year:{range:[0,1]},value:{min:0,nice:true}});chart.tooltip(false);chart.line().position("year*value");chart.render();return chart;};const stateData=[[{name:"201A球磨机",code:"",label:"瞬时入磨量",unit:"t/hs",functionState:{img:"/micro-assets/bigScreen/ballMill_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/ballMill_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/ballMill_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},state:{code:"201A__RUNS?BOOL"},infoList:[{code:"201A__TIME_RUNS",valueType:"FLT",label:"运行时长",unit:"h"},{code:"201A__CURRENT_A",valueType:"FLT",label:"A组电流",unit:"A"},{code:"201A__ELECTRIC",valueType:"FLT",label:"耗电量",unit:"kw.h"},{code:"201A__CURRENT_C",valueType:"FLT",label:"C组电流",unit:"A"},{code:"201A__VOLTAGE?",valueType:"FLT",label:"控制电压",unit:"V"},{code:"",valueType:"FLT",label:"电网电压",unit:"V"}]},{name:"205A旋流器",code:"205A__PRESS?FLT",label:"入口压力",unit:"MPa",functionState:{img:"/micro-assets/bigScreen/cycloneGroup_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/cycloneGroup_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/cycloneGroup_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},state:{code:""},chart:{code:""}}],[{name:"201B球磨机",code:"",label:"",unit:"",functionState:{img:"/micro-assets/bigScreen/ballMill_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/ballMill_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/ballMill_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},state:{code:"201B__RUNS?BOOL"},infoList:[{code:"201B__TIME_RUNS",valueType:"FLT",label:"运行时长",unit:"h"},{code:"201B__CURRENT_A",valueType:"FLT",label:"A组电流",unit:"A"},{code:"201B__ELECTRIC",valueType:"FLT",label:"耗电量",unit:"kw.h"},{code:"201B__CURRENT_C",valueType:"FLT",label:"C组电流",unit:"A"},{code:"201B__VOLTAGE?",valueType:"FLT",label:"控制电压",unit:"V"},{code:"",valueType:"FLT",label:"电网电压",unit:"V"}]},{name:"205B旋流器",code:"205B__PRESS?FLT",label:"入口压力",unit:"MPa",functionState:{img:"/micro-assets/bigScreen/cycloneGroup_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/cycloneGroup_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/cycloneGroup_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},state:{code:""},chart:{code:""}}],[{name:"201C球磨机",code:"",label:"瞬时入磨量",unit:"t/hs",functionState:{img:"/micro-assets/bigScreen/ballMill_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/ballMill_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/ballMill_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},state:{code:"201C__RUNS?BOOL"},infoList:[{code:"201C__TIME_RUNS",valueType:"FLT",label:"运行时长",unit:"h"},{code:"201C__CURRENT_A",valueType:"FLT",label:"A组电流",unit:"A"},{code:"201C__ELECTRIC",valueType:"FLT",label:"耗电量",unit:"kw.h"},{code:"201C__CURRENT_C",valueType:"FLT",label:"C组电流",unit:"A"},{code:"201C__VOLTAGE?",valueType:"FLT",label:"控制电压",unit:"V"},{code:"",valueType:"FLT",label:"电网电压",unit:"V"}]},{name:"205C旋流器",code:"205C__PRESS?FLT",label:"入口压力",unit:"MPa",functionState:{img:"/micro-assets/bigScreen/cycloneGroup_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/cycloneGroup_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/cycloneGroup_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},state:{code:""},chart:{code:""}}]];const chartFormat$1=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const props$n$1={item:{type:Object,default:{}},index:String};var grindingSystemItemDom=defineComponent({props:props$n$1,components:{grindingSystemInfoItemDom},setup(props,ctx){let chart;const info=reactive({currentData:{},historyData:{}});const infoState=reactive({currentData:{},historyData:{}});const getValue=async()=>{const res=await defaultApi({currentData:currentArr(props.item?.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};const getState=async()=>{const res=await defaultApi({currentData:currentArr((props.item?.state).code)},"POINT_DATA");const{currentData}=res.data;infoState.currentData=currentData;};onMounted(async()=>{await getValue();await getState();if(props.item.chart){const height=document.getElementById(`grindingSystem_chart_${props.index}`)?.clientHeight;if(!chart){chart=initChart$2(`grindingSystemChart${props.index}`,chartFormat$1(historyList(info.history_DATA)),height);}else {chart.changeData(chartFormat$1(historyList(info.history_DATA)));}}});return ()=>createVNode("div",{"class":"grindingSystem-top-item-statistics"},[createVNode("div",{"class":"grindingSystem-top-item-statistics-header"},[createVNode("div",{"class":"grindingSystem-top-item-statistics-header-left"},[createVNode("i",{"class":"rectangle"},null),createVNode("span",{"class":"grindingSystem-top-item-statistics-header-left-label"},[props.item.name])]),props.item.label?createVNode("div",{"class":"grindingSystem-top-item-statistics-header-right"},[createVNode("span",{"class":"grindingSystem-top-item-statistics-header-right-label","style":{color:props.item.chart?"#31DBFF":"#389AFF"}},[props.item.label,props.item.unit]),createVNode("span",{"class":"grindingSystem-top-item-statistics-header-right-value","style":{color:props.item.chart?"#31DBFF":"#389AFF",textShadow:`0px 0px 13px ${props.item.chart?"#31DBFF":"#389AFF"}`}},[createTextVNode("1234")])]):null]),createVNode("div",{"class":"grindingSystem-top-item-statistics-body","id":`grindingSystem_chart_${props.index}`},[createVNode("div",{"class":"grindingSystem-top-item-statistics-body-left"},[createVNode("img",{"src":props.item.faultState.img,"alt":""},null),createVNode("div",null,[createVNode("span",{"class":"grindingSystem-top-item-statistics-body-left-text","style":{color:props.item.faultState.color,borderColor:props.item.faultState.color,background:props.item.faultState.background}},[props.item.faultState.text])])]),createVNode("div",{"class":["grindingSystem-top-item-statistics-body-right",props.item.chart?"":"flexWrap"]},[props.item.infoList?props.item.infoList.map(val=>createVNode(grindingSystemInfoItemDom,{"item":val},null)):createVNode("div",{"id":`grindingSystemChart${props.index}`},null)])])]);}});const props$m$1={item:{type:Array,default:[]},index:String};var statisticsDom$1=defineComponent({props:props$m$1,components:{grindingSystemItemDom},setup(props,ctx){return ()=>createVNode("div",{"class":"grindingSystem-top-item"},[props.item.map((item,index)=>createVNode(grindingSystemItemDom,{"item":item,"index":`${props.index}${index}`},null))]);}});const props$l$1={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
91
91
|
};var grindingSystem=defineComponent({name:"grindingSystem",cname:"磨矿系统",developer:"前端开发组",equipment:"PC",props:props$l$1,components:{statisticsDom:statisticsDom$1},setup(props,ctx){// 自定义接口配置
|
|
92
92
|
setInstance$f({prefix:props.prefix,serverName:props.serverName,timeout:props.timeout// 超时时长
|
|
93
93
|
});return ()=>createVNode("div",{"class":"bigScreenCard grindingSystem"},[createVNode("div",{"class":"grindingSystem-top"},[stateData.map((item,index)=>createVNode(statisticsDom$1,{"item":item,"index":`${index}`},null))])]);}});const numericalValueData=[{name:"精矿瞬时量",unit:"t/h",code:""},{name:"班累计",unit:"t",code:""},{name:"日累计",unit:"t",code:""},{name:"月累计",unit:"t",code:""}];const statisticsData=[{name:"411过滤机",code:"",functionState:{img:"/micro-assets/bigScreen/filter_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/filter_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/filter_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},mainMotor:{code:""},mixingMotor:{code:""}},{name:"412过滤机",code:"",functionState:{img:"/micro-assets/bigScreen/filter_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/filter_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/filter_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},mainMotor:{code:""},mixingMotor:{code:""}},{name:"413过滤机",code:"",functionState:{img:"/micro-assets/bigScreen/filter_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/filter_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/filter_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},mainMotor:{code:""},mixingMotor:{code:""}},{name:"414过滤机",code:"",functionState:{img:"/micro-assets/bigScreen/filter_green.png",color:"#22CC83",text:"运行良好",background:"rgba(34,204,131,0.2)"},faultState:{img:"/micro-assets/bigScreen/filter_red.png",color:"#EA5858",text:"故障停机",background:"rgba(234,88,88,0.2)"},overhaulState:{img:"/micro-assets/bigScreen/filter_grey.png",color:"#9095A2",text:"停机检修",background:"rgba(144,149,162,0.2)"},mainMotor:{code:""},mixingMotor:{code:""}}];const pumpValueData=[{name1:"305CD",name2:"尾煤泵",code:"305CD__SPEED?FLT&305CD__CURRENT?FLT",img:"/micro-assets/bigScreen/base.png"},{name1:"306CD",name2:"尾煤泵",code:"306CD__SPEED?FLT&306CD__CURRENT?FLT",img:"/micro-assets/bigScreen/base.png"},{name1:"308CD",name2:"精矿泵",code:"308CD__SPEED?FLT&308CD__CURRENT?FLT",img:"/micro-assets/bigScreen/base.png"},{name1:"309CD",name2:"精矿泵",code:"309CD__SPEED?FLT&309CD__CURRENT?FLT",img:"/micro-assets/bigScreen/base.png"}];const bottomLeftData=[{name1:"",name2:"402精矿泵",code:"305CD__SPEED?FLT&305CD__CURRENT?FLT"},{name1:"",name2:"403精矿泵",code:"306CD__SPEED?FLT&306CD__CURRENT?FLT"}];const grooveData={name:"515-1矿浆搅拌槽",code:"515-1__LEVEL_PROPORTION?FLT"};const chartFormat=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}:00`,type:item.type,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const stateFilter=(val,code)=>{if(code.indexOf("&")>-1){const codes=code.split("&");if(val[codes[1]]){return "faultState";}else {if(val[codes[0]]){return "functionState";}else {return "overhaulState";}}}return "overhaulState";};const props$k$1={item:{type:Object,default:{}}};var numericalValueDom=defineComponent({props:props$k$1,components:{stateTitleDom},setup(props,ctx){const info=reactive({currentData:{},historyData:{}});const http=async()=>{const res=await defaultApi({currentData:currentArr(props.item.code)},"POINT_DATA");if(res.data){const{currentData}=res.data;info.currentData=currentData;}};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"concentrateDewateringSystem-numericalValue"},[numericalValueData.map(item=>createVNode("div",{"class":"concentrateDewateringSystem-numericalValue-item"},[createVNode("div",{"class":"concentrateDewateringSystem-numericalValue-item-label"},[item.name,createTextVNode("("),item.unit,createTextVNode(")")]),createVNode("div",{"class":"concentrateDewateringSystem-numericalValue-item-value"},[createTextVNode("1234")])]))]);}});var chartInit=(id,data,color,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.scale({year:{range:[0,1]},value:{min:0,nice:true}});chart.tooltip(false);chart.area().position("year*value").color(color);chart.line().position("year*value").color(color);chart.render();return chart;};const props$j$1={item:{type:Object,default:{}},index:String};var statisticsDom=defineComponent({props:props$j$1,setup(props,ctx){let mainMotorChart;let mixingMotorChart;const info=reactive({currentData:{},historyData:{}});const mainMotorInfo=reactive({currentData:{},historyData:{}});const mixingMotorInfo=reactive({currentData:{},historyData:{}});onMounted(()=>{const height=document.getElementById(`concentrateDewateringSystem_chart_${props.index}`)?.clientHeight;if(!mainMotorChart){mainMotorChart=chartInit(`concentrateDewateringSystemMainMotorChart${props.index}`,chartFormat(historyList(mainMotorInfo.historyData)),"#dbe0ea",height);}else {mainMotorChart.changeData(chartFormat(historyList(mainMotorInfo.historyData)));}if(!mixingMotorChart){mixingMotorChart=chartInit(`concentrateDewateringSystemMixingMotorChart${props.index}`,chartFormat(historyList(mixingMotorInfo.historyData)),"#31dbff",height);}else {mixingMotorChart.changeData(chartFormat(historyList(mixingMotorInfo.historyData)));}});return ()=>createVNode("div",{"class":"concentrateDewateringSystem-statistics-item","id":`concentrateDewateringSystem_chart_${props.index}`},[createVNode("div",{"class":"concentrateDewateringSystem-statistics-item-state"},[createVNode("div",null,[props.item.name]),createVNode("img",{"src":props.item[stateFilter(info.currentData,props.item.code)].img,"alt":""},null),createVNode("div",{"class":"concentrateDewateringSystem-statistics-item-state-stateInfo"},[createVNode("span",{"style":{color:props.item[stateFilter(info.currentData,props.item.code)].color,borderColor:props.item[stateFilter(info.currentData,props.item.code)].color,background:props.item[stateFilter(info.currentData,props.item.code)].background}},[props.item[stateFilter(info.currentData,props.item.code)].text])])]),createVNode("div",{"class":"concentrateDewateringSystem-statistics-item-mainMotor"},[createVNode("div",{"class":"concentrateDewateringSystem-statistics-item-mainMotor-top"},[createTextVNode("\u4E3B\u7535\u673A\u9891\u7387(Hz) "),createVNode("span",null,[createTextVNode("50")])]),createVNode("div",{"class":"concentrateDewateringSystem-statistics-item-mainMotor-bottom"},[createVNode("div",{"id":`concentrateDewateringSystemMainMotorChart${props.index}`},null)])]),createVNode("div",{"class":"concentrateDewateringSystem-statistics-item-mixingMotor"},[createVNode("div",{"class":"concentrateDewateringSystem-statistics-item-mixingMotor-top"},[createTextVNode("\u6405\u62CC\u7535\u673A\u9891\u7387(Hz) "),createVNode("span",null,[createTextVNode("50")])]),createVNode("div",{"class":"concentrateDewateringSystem-statistics-item-mixingMotor-bottom"},[createVNode("div",{"id":`concentrateDewateringSystemMixingMotorChart${props.index}`},null)])])]);}});const props$i$1={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
|
|
@@ -106,25 +106,18 @@ if(scrollElHeight>=scrollEl.scrollHeight){return;}if(!hover&&scrollEl.scrollTop+
|
|
|
106
106
|
*/function useInterval(fn,duration=3000,immediate=true){const timer=setInterval(fn,duration);immediate&&fn();return function stopInterval(){clearInterval(timer);};}const columns$a$1=[{title:"配电室",dataIndex:"name"},{title:"温度 ℃",dataIndex:"temperature",align:"right"},{title:"湿度 %",dataIndex:"humidity",align:"right"},{title:"门开",align:"right",customRender({record}){return createVNode("div",{"class":["door",{"door-open":record.open}]},[record.open?"开":"关"]);}}];/**
|
|
107
107
|
* 远程配电室
|
|
108
108
|
*/const RemoteSwitchhouse=defineComponent({name:"remoteSwitchhouse",cname:"远程配电室",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
109
|
-
},setup(){const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"remoteSwitchhouse"});list.value=data.rows;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"remote-switchhouse"},[withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns$a$1,"scroll":{y:300},"dataSource":list.value},null),[[resolveDirective("autoScroll")]])]);}});const mock$y={"rows|10":[{name:"@cword(4)","temperature|16-30":1,"humidity|20-50":1,"open|1":true}]};const Substation=defineComponent({name:"substation",cname:"35KV变电室",developer:"前端开发组",equipment:"PC",directives:{autoScroll},setup(){const columns=[{title:"变电器名称",dataIndex:"name",align:"left",width:100},{title:"la",dataIndex:"la",align:"right"},{title:"Uab",dataIndex:"Uab",align:"right"},{title:"P",dataIndex:"P",align:"right"},{title:"Q",dataIndex:"Q",align:"right"}];const form=reactive({tableData:[],overhaul:0,function:0,hotStandby:0,coldStandby:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"substation"});form.tableData=data.rows;form.overhaul=data.overhaul;form.function=data.function;form.hotStandby=data.hotStandby;form.coldStandby=data.coldStandby;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u68C0\u4FEE")]),createVNode("div",{"class":"number white"},[form.overhaul])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u8FD0\u884C")]),createVNode("div",{"class":"number green"},[form.function])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u70ED\u5907\u7528")]),createVNode("div",{"class":"number orange"},[form.hotStandby])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u51B7\u5907\u7528")]),createVNode("div",{"class":"number blue"},[form.coldStandby])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns,"dataSource":form.tableData,"scroll":{y:200}},{bodyCell:({column,record})=>{if(column.dataIndex==="name"){if(record.state){return createVNode("div",null,[createVNode("span",{"class":"blue"},[createTextVNode("\u25CF")]),createVNode("span",null,[createTextVNode(" "),record.name])]);}else {return createVNode("div",null,[createVNode("span",{"class":"orange"},[createTextVNode("\u25CF")]),createVNode("span",null,[createTextVNode(" "),record.name])]);}}}}),[[resolveDirective("autoScroll")]])]);}});const mock$x={"rows|10":[{name:"@cword(3)","la|16-30":1,"Uab|20-50":1,"P|100-500":1,"Q|100-500":1,state:"@boolean"}],"overhaul|1-10":1,"function|1-10":1,"hotStandby|1-10":1,"coldStandby|1-10":1};const alarmInfo=defineComponent({name:"alarmInfo",cname:"报警信息",developer:"前端开发组",equipment:"PC",directives:{autoScroll},setup(){const columns=[{title:"故障名称",dataIndex:"name",align:"left"},{title:"故障等级",dataIndex:"level",align:"left"},{title:"故障时间",dataIndex:"failureTime",align:"left"},{title:"故障诊断",dataIndex:"faultDiagnosis",align:"right"}];const form=reactive({tableData:[{name:"right",level:"一级",Uab:444,P:444,Q:444,state:"run"},{name:"right",level:"二级",Uab:444,P:444,Q:444,state:"stop"},{name:"right",level:"二级",Uab:444,P:444,Q:444,state:"stop"},{name:"right",level:"二级",Uab:444,P:444,Q:444,state:"stop"}],level1:0,level2:0,level3:0,level4:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"alarmInfo"});form.tableData=data.rows;form.level1=data.level1;form.level2=data.level2;form.level3=data.level3;form.level4=data.level4;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E00\u7EA7\u62A5\u8B66")]),createVNode("div",{"class":"number red"},[form.level1])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E8C\u7EA7\u62A5\u8B66")]),createVNode("div",{"class":"number orange"},[form.level2])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E09\u7EA7\u62A5\u8B66")]),createVNode("div",{"class":"number yellow"},[form.level3])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u56DB\u7EA7\u62A5\u8B66")]),createVNode("div",{"class":"number blue"},[form.level4])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns,"dataSource":form.tableData,"scroll":{y:150}},{bodyCell:({column,record})=>{if(column.dataIndex==="level"){return createVNode("div",{"class":`alarm alarm${record.level}`},null);}if(column.dataIndex==="faultDiagnosis"){return record.faultDiagnosis?"已处理":"未处理";}}}),[[resolveDirective("autoScroll")]])]);}});const mock$w={"rows|5":[{name:"@ctitle()","level|1-4":1,failureTime:"@date(yyyy-MM-dd HH:mm)",faultDiagnosis:"@boolean"}],"level1|1-20":1,"level2|1-20":1,"level3|1-20":1,"level4|1-20":1};const hiddenTrouble=defineComponent({name:"hiddenTrouble",cname:"隐患分析",developer:"前端开发组",equipment:"PC",directives:{autoScroll},setup(){const columns=[{title:"区域",dataIndex:"region",align:"center",width:100},{title:"设备名称",dataIndex:"name",align:"center"},{title:"上报人",dataIndex:"reportPerson",align:"center"},{title:"隐患内容",dataIndex:"content",align:"center"},{title:"处理情况",dataIndex:"handling",align:"center"}];const form=reactive({tableData:[],escalation:0,unhandled:0,processed:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"hiddenTrouble"});form.tableData=data.rows;form.escalation=data.escalation;form.unhandled=data.unhandled;form.processed=data.processed;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E0A\u62A5\u9690\u60A3")]),createVNode("div",{"class":"number red"},[form.escalation])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u672A\u5904\u7406")]),createVNode("div",{"class":"number orange"},[form.unhandled])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u5DF2\u5904\u7406")]),createVNode("div",{"class":"number blue"},[form.processed])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns,"dataSource":form.tableData,"scroll":{y:200}},{bodyCell:({column,record})=>{if(column.dataIndex==="handling"){if(record.handling){return createVNode("div",{"class":"blue"},[createTextVNode("\u5DF2\u5904\u7406")]);}else {return createVNode("div",{"class":"orange"},[createTextVNode("\u672A\u5904\u7406")]);}}}}),[[resolveDirective("autoScroll")]])]);}});const mock$v={"escalation|1-10":1,"unhandled|1-10":1,"processed|1-10":1,"rows|10":[{region:"@cword(1)区",name:"@cword(4)",reportPerson:"@cname",content:"@ctitle",handling:"@boolean"}]};const remoteElectricity=defineComponent({name:"remoteElectricity",cname:"远程停送电",developer:"前端开发组",equipment:"PC",directives:{autoScroll},setup(){const columns=[{title:"设备",dataIndex:"name",align:"left"},{title:"申请人",dataIndex:"applicant",align:"right"},{title:"停电时间",dataIndex:"outageTime",align:"right"},{title:"送电时间",dataIndex:"powerTransmissionTime",align:"right"},{title:"调度验收",dataIndex:"dispatchingAcceptance",align:"right"}];const form=reactive({tableData:[],powerFailure:0,powerTransmission:0,temporary:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"remoteElectricity"});form.tableData=data.rows;form.powerFailure=data.powerFailure;form.powerTransmission=data.powerTransmission;form.temporary=data.temporary;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4ECA\u65E5\u505C\u7535")]),createVNode("div",{"class":"number red"},[form.powerFailure])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4ECA\u65E5\u9001\u7535")]),createVNode("div",{"class":"number blue"},[form.powerTransmission])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u8D85\u65F6\u505C\u7535")]),createVNode("div",{"class":"number orange"},[form.temporary])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns,"dataSource":form.tableData,"scroll":{y:150}},{bodyCell:({column,record})=>{if(column.dataIndex==="dispatchingAcceptance"){if(record.dispatchingAcceptance){return createVNode("div",{"class":"blue"},[createTextVNode("\u5DF2\u9A8C\u6536")]);}else {return createVNode("div",{"class":"orange"},[createTextVNode("\u672A\u9A8C\u6536")]);}}}}),[[resolveDirective("autoScroll")]])]);}});const mock$u={"rows|10":[{name:"@cword(3)",applicant:"@cname",outageTime:"@time(HH:mm:ss)",powerTransmissionTime:"@time(HH:mm:ss)",dispatchingAcceptance:"@boolean"}],"powerFailure|1-100":1,"powerTransmission|1-100":1,"temporary|1-100":1};const columns$9$1={fault:[{title:"故障名称",dataIndex:"name"},{title:"故障等级",dataIndex:"level"},{title:"故障时间",dataIndex:"time"},{title:"故障诊断",dataIndex:"state",align:"right"}],alarm:[{title:"报警名称",dataIndex:"name"},{title:"报警等级",dataIndex:"level"},{title:"报警时间",dataIndex:"time"},{title:"报警状态",dataIndex:"state",align:"right"}]};const deviceList=[{key:1,title:"故障上报",code:"fault"},{key:2,title:"设备报警",code:"alarm"}];/**
|
|
109
|
+
},setup(){const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"remoteSwitchhouse"});list.value=data.rows;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"remote-switchhouse"},[withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns$a$1,"scroll":{y:300},"dataSource":list.value},null),[[resolveDirective("autoScroll")]])]);}});const mock$A={"rows|10":[{name:"@cword(4)","temperature|16-30":1,"humidity|20-50":1,"open|1":true}]};const Substation=defineComponent({name:"substation",cname:"35KV变电室",developer:"前端开发组",equipment:"PC",directives:{autoScroll},setup(){const columns=[{title:"变电器名称",dataIndex:"name",align:"left",width:100},{title:"la",dataIndex:"la",align:"right"},{title:"Uab",dataIndex:"Uab",align:"right"},{title:"P",dataIndex:"P",align:"right"},{title:"Q",dataIndex:"Q",align:"right"}];const form=reactive({tableData:[],overhaul:0,function:0,hotStandby:0,coldStandby:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"substation"});form.tableData=data.rows;form.overhaul=data.overhaul;form.function=data.function;form.hotStandby=data.hotStandby;form.coldStandby=data.coldStandby;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u68C0\u4FEE")]),createVNode("div",{"class":"number white"},[form.overhaul])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u8FD0\u884C")]),createVNode("div",{"class":"number green"},[form.function])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u70ED\u5907\u7528")]),createVNode("div",{"class":"number orange"},[form.hotStandby])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u51B7\u5907\u7528")]),createVNode("div",{"class":"number blue"},[form.coldStandby])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns,"dataSource":form.tableData,"scroll":{y:200}},{bodyCell:({column,record})=>{if(column.dataIndex==="name"){if(record.state){return createVNode("div",null,[createVNode("span",{"class":"blue"},[createTextVNode("\u25CF")]),createVNode("span",null,[createTextVNode(" "),record.name])]);}else {return createVNode("div",null,[createVNode("span",{"class":"orange"},[createTextVNode("\u25CF")]),createVNode("span",null,[createTextVNode(" "),record.name])]);}}}}),[[resolveDirective("autoScroll")]])]);}});const mock$z={"rows|10":[{name:"@cword(3)","la|16-30":1,"Uab|20-50":1,"P|100-500":1,"Q|100-500":1,state:"@boolean"}],"overhaul|1-10":1,"function|1-10":1,"hotStandby|1-10":1,"coldStandby|1-10":1};const alarmInfo=defineComponent({name:"alarmInfo",cname:"报警信息",developer:"前端开发组",equipment:"PC",directives:{autoScroll},setup(){const columns=[{title:"故障名称",dataIndex:"name",align:"left"},{title:"故障等级",dataIndex:"level",align:"left"},{title:"故障时间",dataIndex:"failureTime",align:"left"},{title:"故障诊断",dataIndex:"faultDiagnosis",align:"right"}];const form=reactive({tableData:[{name:"right",level:"一级",Uab:444,P:444,Q:444,state:"run"},{name:"right",level:"二级",Uab:444,P:444,Q:444,state:"stop"},{name:"right",level:"二级",Uab:444,P:444,Q:444,state:"stop"},{name:"right",level:"二级",Uab:444,P:444,Q:444,state:"stop"}],level1:0,level2:0,level3:0,level4:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"alarmInfo"});form.tableData=data.rows;form.level1=data.level1;form.level2=data.level2;form.level3=data.level3;form.level4=data.level4;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E00\u7EA7\u62A5\u8B66")]),createVNode("div",{"class":"number red"},[form.level1])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E8C\u7EA7\u62A5\u8B66")]),createVNode("div",{"class":"number orange"},[form.level2])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E09\u7EA7\u62A5\u8B66")]),createVNode("div",{"class":"number yellow"},[form.level3])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u56DB\u7EA7\u62A5\u8B66")]),createVNode("div",{"class":"number blue"},[form.level4])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns,"dataSource":form.tableData,"scroll":{y:150}},{bodyCell:({column,record})=>{if(column.dataIndex==="level"){return createVNode("div",{"class":`alarm alarm${record.level}`},null);}if(column.dataIndex==="faultDiagnosis"){return record.faultDiagnosis?"已处理":"未处理";}}}),[[resolveDirective("autoScroll")]])]);}});const mock$y={"rows|5":[{name:"@ctitle()","level|1-4":1,failureTime:"@date(yyyy-MM-dd HH:mm)",faultDiagnosis:"@boolean"}],"level1|1-20":1,"level2|1-20":1,"level3|1-20":1,"level4|1-20":1};const hiddenTrouble=defineComponent({name:"hiddenTrouble",cname:"隐患分析",developer:"前端开发组",equipment:"PC",directives:{autoScroll},setup(){const columns=[{title:"区域",dataIndex:"region",align:"center",width:100},{title:"设备名称",dataIndex:"name",align:"center"},{title:"上报人",dataIndex:"reportPerson",align:"center"},{title:"隐患内容",dataIndex:"content",align:"center"},{title:"处理情况",dataIndex:"handling",align:"center"}];const form=reactive({tableData:[],escalation:0,unhandled:0,processed:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"hiddenTrouble"});form.tableData=data.rows;form.escalation=data.escalation;form.unhandled=data.unhandled;form.processed=data.processed;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E0A\u62A5\u9690\u60A3")]),createVNode("div",{"class":"number red"},[form.escalation])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u672A\u5904\u7406")]),createVNode("div",{"class":"number orange"},[form.unhandled])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u5DF2\u5904\u7406")]),createVNode("div",{"class":"number blue"},[form.processed])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns,"dataSource":form.tableData,"scroll":{y:200}},{bodyCell:({column,record})=>{if(column.dataIndex==="handling"){if(record.handling){return createVNode("div",{"class":"blue"},[createTextVNode("\u5DF2\u5904\u7406")]);}else {return createVNode("div",{"class":"orange"},[createTextVNode("\u672A\u5904\u7406")]);}}}}),[[resolveDirective("autoScroll")]])]);}});const mock$x={"escalation|1-10":1,"unhandled|1-10":1,"processed|1-10":1,"rows|10":[{region:"@cword(1)区",name:"@cword(4)",reportPerson:"@cname",content:"@ctitle",handling:"@boolean"}]};const remoteElectricity=defineComponent({name:"remoteElectricity",cname:"远程停送电",developer:"前端开发组",equipment:"PC",directives:{autoScroll},setup(){const columns=[{title:"设备",dataIndex:"name",align:"left"},{title:"申请人",dataIndex:"applicant",align:"right"},{title:"停电时间",dataIndex:"outageTime",align:"right"},{title:"送电时间",dataIndex:"powerTransmissionTime",align:"right"},{title:"调度验收",dataIndex:"dispatchingAcceptance",align:"right"}];const form=reactive({tableData:[],powerFailure:0,powerTransmission:0,temporary:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"remoteElectricity"});form.tableData=data.rows;form.powerFailure=data.powerFailure;form.powerTransmission=data.powerTransmission;form.temporary=data.temporary;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4ECA\u65E5\u505C\u7535")]),createVNode("div",{"class":"number red"},[form.powerFailure])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u4ECA\u65E5\u9001\u7535")]),createVNode("div",{"class":"number blue"},[form.powerTransmission])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u8D85\u65F6\u505C\u7535")]),createVNode("div",{"class":"number orange"},[form.temporary])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns,"dataSource":form.tableData,"scroll":{y:150}},{bodyCell:({column,record})=>{if(column.dataIndex==="dispatchingAcceptance"){if(record.dispatchingAcceptance){return createVNode("div",{"class":"blue"},[createTextVNode("\u5DF2\u9A8C\u6536")]);}else {return createVNode("div",{"class":"orange"},[createTextVNode("\u672A\u9A8C\u6536")]);}}}}),[[resolveDirective("autoScroll")]])]);}});const mock$w={"rows|10":[{name:"@cword(3)",applicant:"@cname",outageTime:"@time(HH:mm:ss)",powerTransmissionTime:"@time(HH:mm:ss)",dispatchingAcceptance:"@boolean"}],"powerFailure|1-100":1,"powerTransmission|1-100":1,"temporary|1-100":1};const columns$9$1={fault:[{title:"故障名称",dataIndex:"name"},{title:"故障等级",dataIndex:"level"},{title:"故障时间",dataIndex:"time"},{title:"故障诊断",dataIndex:"state",align:"right"}],alarm:[{title:"报警名称",dataIndex:"name"},{title:"报警等级",dataIndex:"level"},{title:"报警时间",dataIndex:"time"},{title:"报警状态",dataIndex:"state",align:"right"}]};const deviceList=[{key:1,title:"故障上报",code:"fault"},{key:2,title:"设备报警",code:"alarm"}];/**
|
|
110
110
|
* 故障判断
|
|
111
111
|
*/const FaultJudgment=defineComponent({name:"faultJudgment",cname:"故障判断",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
112
|
-
},setup(){const form=ref({fault:[],alarm:[]});const activeIndex=ref(0);const activeDevice=computed(()=>deviceList[activeIndex.value]);const handleSelectDevice=index=>{if(deviceList[index]){activeIndex.value=index;}};const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"faultJudgment"});form.value=data;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"fault-judgment"},[createVNode("div",{"class":"statistic-container"},[deviceList.map((item,index)=>createVNode("div",{"key":item.key,"class":["statistic-item",item.key===activeDevice.value?.key&&"active"],"onClick":()=>handleSelectDevice(index)},[item.title,createTextVNode(" "),form.value[item.code].filter(n=>n.state).length,createTextVNode("/"),form.value[item.code].length]))]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns$9$1[activeDevice.value.code],"scroll":{y:250},"dataSource":form.value[activeDevice.value.code]},{bodyCell:({column,record})=>{if(column.dataIndex==="level"){return createVNode("div",{"class":`level level${record.level}`},null);}if(column.dataIndex==="state"){return record.state?createVNode("div",null,[activeIndex.value===0?"已处理":"已消警"]):createVNode("div",{"style":{color:"#FF9214"}},[activeIndex.value===0?"未处理":"未消警"]);}}}),[[resolveDirective("autoScroll")]])]);}});const mock$
|
|
112
|
+
},setup(){const form=ref({fault:[],alarm:[]});const activeIndex=ref(0);const activeDevice=computed(()=>deviceList[activeIndex.value]);const handleSelectDevice=index=>{if(deviceList[index]){activeIndex.value=index;}};const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"faultJudgment"});form.value=data;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"fault-judgment"},[createVNode("div",{"class":"statistic-container"},[deviceList.map((item,index)=>createVNode("div",{"key":item.key,"class":["statistic-item",item.key===activeDevice.value?.key&&"active"],"onClick":()=>handleSelectDevice(index)},[item.title,createTextVNode(" "),form.value[item.code].filter(n=>n.state).length,createTextVNode("/"),form.value[item.code].length]))]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns$9$1[activeDevice.value.code],"scroll":{y:250},"dataSource":form.value[activeDevice.value.code]},{bodyCell:({column,record})=>{if(column.dataIndex==="level"){return createVNode("div",{"class":`level level${record.level}`},null);}if(column.dataIndex==="state"){return record.state?createVNode("div",null,[activeIndex.value===0?"已处理":"已消警"]):createVNode("div",{"style":{color:"#FF9214"}},[activeIndex.value===0?"未处理":"未消警"]);}}}),[[resolveDirective("autoScroll")]])]);}});const mock$v={"fault|24":[{name:"@ctitle","level|1-4":1,time:"@date(yyyy-MM-dd HH:mm)",state:"@boolean"}],"alarm|24":[{name:"@ctitle","level|1-4":1,time:"@date(yyyy-MM-dd HH:mm)",state:"@boolean"}]};/**
|
|
113
113
|
* 重点设备检测
|
|
114
114
|
*/const KeyEquipmentTesting=defineComponent({name:"keyEquipmentTesting",cname:"重点设备检测",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
115
|
-
},setup(){const activeIndex=ref(0);const activeDevice=computed(()=>deviceList.value[activeIndex.value]);const deviceList=ref([{key:1,title:"给煤机",code:"coalFeeder",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/98/988f3e91d15566d8742c5634eab1676aad2a16ad_full.jpg"},{key:2,title:"离心机",code:"centrifuge",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/11/114394a2c78be2488fd7611ccbc3a6fec191364e_full.jpg"},{key:3,title:"浮选机",code:"flotationMachine",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/d2/d28bce867fbbf5b31f6e75b89966923ed90cdb4f_full.jpg"},{key:4,title:"浓缩机",code:"thickener",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/19/19d297d18f5199bb9d3ed54f3f3f8a3774887737_full.jpg"}]);const form=ref({});const handleSelectDevice=index=>{if(deviceList.value[index]){activeIndex.value=index;}};const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"keyEquipmentTesting"});form.value=data.deviceObj;deviceList.value=data.deviceList;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"key-equipment-testing"},[createVNode("div",{"class":"divice-select"},[createVNode(resolveComponent("double-left-outlined"),{"onClick":()=>handleSelectDevice(activeIndex.value-1)},null),createVNode("div",{"class":"device-list"},[deviceList.value.map((item,index)=>createVNode("div",{"key":item.key,"class":["device-item",item.key===activeDevice.value?.key&&"active"],"onClick":()=>handleSelectDevice(index)},[item.title]))]),createVNode(resolveComponent("double-right-outlined"),{"onClick":()=>handleSelectDevice(activeIndex.value+1)},null)]),createVNode("div",{"class":"bottom-container"},[createVNode("div",{"class":"device-image-box"},[createVNode("img",{"src":activeDevice.value.img,"alt":""},null)]),createVNode("div",{"class":"table"},[createVNode("div",{"class":"header"},[createVNode("div",{"class":"cell name"},[createTextVNode("\u8BBE\u5907\u540D\u79F0")]),createVNode("div",{"class":"cell temperture"},[createTextVNode("\u6E29\u5EA6(\u2103)")]),createVNode("div",{"class":"cell amplitude"},[createTextVNode("\u632F\u5E45(mm)")]),createVNode("div",{"class":"cell electric"},[createTextVNode("\u7535\u6D41(A)")])]),createVNode("div",{"class":"body"},[form.value[activeDevice.value.code]?.map(item=>createVNode("div",{"class":"column"},[createVNode("div",{"class":"cell name"},[item.name]),createVNode("div",{"class":`cell temperture ${item.temperture>item.fault?"fault":""}`},[item.temperture]),createVNode("div",{"class":"cell amplitude"},[item.amplitude]),createVNode("div",{"class":"cell electric"},[item.electric])]))])])])]);}});const mock$
|
|
115
|
+
},setup(){const activeIndex=ref(0);const activeDevice=computed(()=>deviceList.value[activeIndex.value]);const deviceList=ref([{key:1,title:"给煤机",code:"coalFeeder",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/98/988f3e91d15566d8742c5634eab1676aad2a16ad_full.jpg"},{key:2,title:"离心机",code:"centrifuge",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/11/114394a2c78be2488fd7611ccbc3a6fec191364e_full.jpg"},{key:3,title:"浮选机",code:"flotationMachine",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/d2/d28bce867fbbf5b31f6e75b89966923ed90cdb4f_full.jpg"},{key:4,title:"浓缩机",code:"thickener",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/19/19d297d18f5199bb9d3ed54f3f3f8a3774887737_full.jpg"}]);const form=ref({});const handleSelectDevice=index=>{if(deviceList.value[index]){activeIndex.value=index;}};const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"keyEquipmentTesting"});form.value=data.deviceObj;deviceList.value=data.deviceList;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"key-equipment-testing"},[createVNode("div",{"class":"divice-select"},[createVNode(resolveComponent("double-left-outlined"),{"onClick":()=>handleSelectDevice(activeIndex.value-1)},null),createVNode("div",{"class":"device-list"},[deviceList.value.map((item,index)=>createVNode("div",{"key":item.key,"class":["device-item",item.key===activeDevice.value?.key&&"active"],"onClick":()=>handleSelectDevice(index)},[item.title]))]),createVNode(resolveComponent("double-right-outlined"),{"onClick":()=>handleSelectDevice(activeIndex.value+1)},null)]),createVNode("div",{"class":"bottom-container"},[createVNode("div",{"class":"device-image-box"},[createVNode("img",{"src":activeDevice.value.img,"alt":""},null)]),createVNode("div",{"class":"table"},[createVNode("div",{"class":"header"},[createVNode("div",{"class":"cell name"},[createTextVNode("\u8BBE\u5907\u540D\u79F0")]),createVNode("div",{"class":"cell temperture"},[createTextVNode("\u6E29\u5EA6(\u2103)")]),createVNode("div",{"class":"cell amplitude"},[createTextVNode("\u632F\u5E45(mm)")]),createVNode("div",{"class":"cell electric"},[createTextVNode("\u7535\u6D41(A)")])]),createVNode("div",{"class":"body"},[form.value[activeDevice.value.code]?.map(item=>createVNode("div",{"class":"column"},[createVNode("div",{"class":"cell name"},[item.name]),createVNode("div",{"class":`cell temperture ${item.temperture>item.fault?"fault":""}`},[item.temperture]),createVNode("div",{"class":"cell amplitude"},[item.amplitude]),createVNode("div",{"class":"cell electric"},[item.electric])]))])])])]);}});const mock$u={deviceObj:{"coalFeeder|12":[{"name|1000-5000":1,"fault|30-50":1,"temperture|30-50.1":1,"amplitude|1-5.1":1,"electric|100-500":1}],"centrifuge|12":[{"name|1000-5000":1,"fault|30-50":1,"temperture|30-50.1":1,"amplitude|1-5.1":1,"electric|100-500":1}],"flotationMachine|12":[{"name|1000-5000":1,"fault|30-50":1,"temperture|30-50.1":1,"amplitude|1-5.1":1,"electric|100-500":1}],"thickener|12":[{"name|1000-5000":1,"fault|30-50":1,"temperture|30-50.1":1,"amplitude|1-5.1":1,"electric|100-500":1}]},deviceList:[{key:1,title:"给煤机",code:"coalFeeder",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/98/988f3e91d15566d8742c5634eab1676aad2a16ad_full.jpg"},{key:2,title:"离心机",code:"centrifuge",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/11/114394a2c78be2488fd7611ccbc3a6fec191364e_full.jpg"},{key:3,title:"浮选机",code:"flotationMachine",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/d2/d28bce867fbbf5b31f6e75b89966923ed90cdb4f_full.jpg"},{key:4,title:"浓缩机",code:"thickener",img:"https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/19/19d297d18f5199bb9d3ed54f3f3f8a3774887737_full.jpg"}]};const columns$8$1=[{title:"区域",dataIndex:"region"},{title:"检修计划",dataIndex:"maintenancePlan"},{title:"计划检修时间",dataIndex:"maintenancePlanTime"},{title:"完成情况",dataIndex:"completion",align:"center"}];/**
|
|
116
116
|
* 运维信息
|
|
117
117
|
*/const OpsInfo=defineComponent({name:"opsInfo",cname:"运维信息",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
118
|
-
},setup(){const form=reactive({monthlyActualCompletion:{value:0,total:0},quarterlyPlan:{value:0,total:0},annualPlan:{value:0,total:0},tableData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"opsInfo"});form.tableData=data.rows;form.monthlyActualCompletion=data.monthlyActualCompletion;form.quarterlyPlan=data.quarterlyPlan;form.annualPlan=data.annualPlan;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"ops-info statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u6708\u5EA6\u5B9E\u9645\u5B8C\u6210\u91CF")]),createVNode("div",{"class":"number"},[createVNode("span",{"class":"value"},[form.monthlyActualCompletion.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.monthlyActualCompletion.total])])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u5B63\u5EA6\u8BA1\u5212")]),createVNode("div",{"class":"number"},[createVNode("span",{"class":"value"},[form.quarterlyPlan.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.quarterlyPlan.total])])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u5E74\u5EA6\u8BA1\u5212")]),createVNode("div",{"class":"number"},[createVNode("span",{"class":"value"},[form.annualPlan.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.annualPlan.total])])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"scroll":{y:230},"columns":columns$8$1,"dataSource":form.tableData},{bodyCell:({column,record})=>{if(column.dataIndex==="completion"){return record.completion?createVNode("div",null,[createTextVNode("\u5DF2\u5B8C\u6210")]):createVNode("div",{"style":{color:"#FF9214"}},[createTextVNode("\u672A\u5B8C\u6210")]);}}}),[[resolveDirective("autoScroll")]])]);}});const mock$
|
|
119
|
-
* 卡片右上角的标签
|
|
120
|
-
*/const CardTabs=defineComponent({emits:["change"],props:{list:{type:Array,default:()=>[]}},setup(props,{emit}){const activeCode=ref();watch(activeCode,val=>emit("change",val));const handleSelect=item=>activeCode.value=item.code;watch(()=>props.list,val=>{if(val.length){if(!activeCode.value){activeCode.value=val[0].code;}if(!props.list.some(item=>item.code===activeCode.value)){activeCode.value=props.list[0].code;}}},{immediate:true});return ()=>createVNode("div",{"class":"card-tabs"},[props.list.map(item=>createVNode("div",{"class":["tab-item",{active:activeCode.value&&item.code===activeCode.value}],"onClick":()=>handleSelect(item)},[item.name]))]);}});/**
|
|
121
|
-
*
|
|
122
|
-
* @param emit emit 需要包含renderTool
|
|
123
|
-
* @param tabList
|
|
124
|
-
* @returns
|
|
125
|
-
*/function useCardTab(emit,tabList){const tabCode=ref();const handleTabChange=tab=>{tabCode.value=tab;};emit("renderTool",()=>h(CardTabs,{list:tabList,onChange:handleTabChange}));return tabCode;}const tabs$3=[{name:"当日",code:"day"},{name:"当月",code:"month"}];/**
|
|
118
|
+
},setup(){const form=reactive({monthlyActualCompletion:{value:0,total:0},quarterlyPlan:{value:0,total:0},annualPlan:{value:0,total:0},tableData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"opsInfo"});form.tableData=data.rows;form.monthlyActualCompletion=data.monthlyActualCompletion;form.quarterlyPlan=data.quarterlyPlan;form.annualPlan=data.annualPlan;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"ops-info statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u6708\u5EA6\u5B9E\u9645\u5B8C\u6210\u91CF")]),createVNode("div",{"class":"number"},[createVNode("span",{"class":"value"},[form.monthlyActualCompletion.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.monthlyActualCompletion.total])])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u5B63\u5EA6\u8BA1\u5212")]),createVNode("div",{"class":"number"},[createVNode("span",{"class":"value"},[form.quarterlyPlan.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.quarterlyPlan.total])])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u5E74\u5EA6\u8BA1\u5212")]),createVNode("div",{"class":"number"},[createVNode("span",{"class":"value"},[form.annualPlan.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.annualPlan.total])])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"scroll":{y:230},"columns":columns$8$1,"dataSource":form.tableData},{bodyCell:({column,record})=>{if(column.dataIndex==="completion"){return record.completion?createVNode("div",null,[createTextVNode("\u5DF2\u5B8C\u6210")]):createVNode("div",{"style":{color:"#FF9214"}},[createTextVNode("\u672A\u5B8C\u6210")]);}}}),[[resolveDirective("autoScroll")]])]);}});const mock$t={monthlyActualCompletion:{"value|100-1000":1,"total|1000-2000":1},quarterlyPlan:{"value|100-1000":1,"total|1000-2000":1},annualPlan:{"value|100-1000":1,"total|1000-2000":1},"rows|10":[{region:"@cword(1)区","maintenancePlan|1000-5000":1,maintenancePlanTime:"@date(yyyy-MM-dd HH:mm)",completion:"@boolean"}]};const tabs$3=[{name:"当日",id:"day"},{name:"当月",id:"month"}];/**
|
|
126
119
|
* 洗选系统处理量
|
|
127
|
-
*/const WashingSystemHandleQuantity=defineComponent({name:"washingSystemHandleQuantity",cname:"洗选系统处理量",developer:"前端开发组",equipment:"PC",directives:{autoScroll},emits:["
|
|
120
|
+
*/const WashingSystemHandleQuantity=defineComponent({name:"washingSystemHandleQuantity",cname:"洗选系统处理量",developer:"前端开发组",equipment:"PC",directives:{autoScroll},emits:["getTabs"],props:{prefix:String,serverName:String,timeout:Number,tabId:String},setup(props,{emit}){ref([]);const form=ref({day:[],month:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"washingSystemHandleQuantity"});form.value=data;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);onMounted(()=>{emit("getTabs",tabs$3);});return ()=>createVNode("div",{"class":"washing-system-handle-quantity"},[withDirectives(createVNode("div",{"class":"list"},[form.value[props.tabId||""]?.map(item=>createVNode("div",{"class":"row"},[createVNode("div",{"class":"left sys-name"},[item.name]),createVNode("div",{"class":"middle"},[item.middle,createTextVNode("t/h")]),createVNode("div",{"class":"right"},[item.right,createTextVNode("t")])]))]),[[resolveDirective("autoScroll"),null,void 0,{self:true}]])]);}});const mock$s={"day|10":[{name:"@cword(3)","middle|100-1000":1,"right|1000-10000":1}],"month|10":[{name:"@cword(3)","middle|100-1000":1,"right|1000-10000":1}]};/**
|
|
128
121
|
* 自动滚动容器 目前只有向左滚动
|
|
129
122
|
*/const ScrollContainer=defineComponent({name:"ScrollContainer",props:{// 自动开始滚动
|
|
130
123
|
autoStart:{type:Boolean,default:true},// 速度 大于0 小于10
|
|
@@ -136,34 +129,34 @@ const startScroll=()=>{isScrolling.value=true;const timeout=20-props.speed;timer
|
|
|
136
129
|
const stopScroll=()=>{clearInterval(timer);timer=null;};onMounted(()=>{props.autoStart&&startScroll();});onUnmounted(stopScroll);expose({startScroll,stopScroll});return ()=>createVNode("div",{"class":"scroll-container","style":{height:containerHeight.value},"ref":containerRef,"onMouseover":()=>isScrolling.value=false,"onMouseleave":()=>isScrolling.value=true},[createVNode("div",{"class":"scroll-inner","ref":innerRef},[slots.default?.()])]);}});const columns$7$1=[{title:"系统",dataIndex:"system"},{title:"当前状态",dataIndex:"currentState"},{title:"生产时间",dataIndex:"productionTime"},{title:"检修时间",dataIndex:"repairTime"},{title:"煤种",dataIndex:"varietyCoal"},{title:"配洗方案",dataIndex:"washingScheme"},{title:"计划入仓",dataIndex:"plannedWarehousing"},{title:"瞬时量(t/h)",dataIndex:"instantaneousQuantity"},{title:"日累计量(t/h)",dataIndex:"dailyAccumulatedMeasurement"}];/**
|
|
137
130
|
* 系统运行状态 滚动横幅+表格
|
|
138
131
|
*/const SystemRunStatus=defineComponent({name:"systemRunStatus",cname:"系统运行状态",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
139
|
-
},setup(){const message=ref("洗煤压滤系统影响时间总计893分钟,考核时间6514分钟。洗煤压滤系统影响时间总计893分钟,考核时间6514分钟。洗煤压滤系统影响时间总计893分钟,考核时间6514分钟。洗煤压滤系统影响时间总计893分钟,考核时间6514分钟。");const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"systemRunStatus"});list.value=data.rows;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"system-run-status"},[createVNode("div",{"class":"message-box"},[createVNode("div",{"class":"msg-img"},[createVNode("img",{"src":"/micro-assets/card/laba.png","alt":""},null)]),createVNode(ScrollContainer,{"style":{flex:"1"}},{default:()=>[createVNode("span",{"class":"message"},[message.value])]})]),createVNode(resolveComponent("a-table"),{"class":"dark-table2 striped","pagination":false,"columns":columns$7$1,"dataSource":list.value},null)]);}});const mock$
|
|
132
|
+
},setup(){const message=ref("洗煤压滤系统影响时间总计893分钟,考核时间6514分钟。洗煤压滤系统影响时间总计893分钟,考核时间6514分钟。洗煤压滤系统影响时间总计893分钟,考核时间6514分钟。洗煤压滤系统影响时间总计893分钟,考核时间6514分钟。");const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"systemRunStatus"});list.value=data.rows;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"system-run-status"},[createVNode("div",{"class":"message-box"},[createVNode("div",{"class":"msg-img"},[createVNode("img",{"src":"/micro-assets/card/laba.png","alt":""},null)]),createVNode(ScrollContainer,{"style":{flex:"1"}},{default:()=>[createVNode("span",{"class":"message"},[message.value])]})]),createVNode(resolveComponent("a-table"),{"class":"dark-table2 striped","pagination":false,"columns":columns$7$1,"dataSource":list.value},null)]);}});const mock$r={"rows|10":[{system:"@cword(3)","currentState|boolean":1,productionTime:"@date(yyyy-MM-dd HH:mm:ss)",repairTime:"@date(yyyy-MM-dd HH:mm:ss)",varietyCoal:"@cword(2)",washingScheme:"@cword(3)",plannedWarehousing:"@cword(3)","instantaneousQuantity|10-1000":1,"dailyAccumulatedMeasurement|1000-5000":1}]};// 来煤
|
|
140
133
|
const columnsIn=[{title:"后续来煤地点",dataIndex:"place"},{title:"时间",dataIndex:"time"},{title:"后续来煤量(t)",dataIndex:"coalQuantity"},{title:"区域",dataIndex:"region"},{title:"计划入仓",dataIndex:"plannedWarehousing"}];// 外运
|
|
141
134
|
const columnsOut=[{title:"销货商",dataIndex:"seller"},{title:"具体时间",dataIndex:"time"},{title:"车数",dataIndex:"numberOfCars"},{title:"外运量(t)",dataIndex:"outboundVolume"},{title:"区域",dataIndex:"region"},{title:"计划出仓",dataIndex:"plannedExit"}];/**
|
|
142
135
|
* 后续来煤和销货列表
|
|
143
136
|
*/const SendInOutCoalList=defineComponent({name:"sendInOutCoalList",cname:"后续来煤和销货列表",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
144
|
-
},setup(){const form=reactive({tableDataIn:[],tableDataOut:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"sendInOutCoalList"});form.tableDataIn=data.tableDataIn;form.tableDataOut=data.tableDataOut;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"send-in-out-coal-list flex"},[withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table2 striped","style":{flex:1},"pagination":false,"scroll":{y:160},"columns":columnsIn,"dataSource":form.tableDataIn},null),[[resolveDirective("autoScroll")]]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table2 striped","style":{flex:1,marginLeft:"26px"},"pagination":false,"scroll":{y:160},"columns":columnsOut,"dataSource":form.tableDataOut},null),[[resolveDirective("autoScroll")]])]);}});const mock$
|
|
137
|
+
},setup(){const form=reactive({tableDataIn:[],tableDataOut:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"sendInOutCoalList"});form.tableDataIn=data.tableDataIn;form.tableDataOut=data.tableDataOut;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"send-in-out-coal-list flex"},[withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table2 striped","style":{flex:1},"pagination":false,"scroll":{y:160},"columns":columnsIn,"dataSource":form.tableDataIn},null),[[resolveDirective("autoScroll")]]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table2 striped","style":{flex:1,marginLeft:"26px"},"pagination":false,"scroll":{y:160},"columns":columnsOut,"dataSource":form.tableDataOut},null),[[resolveDirective("autoScroll")]])]);}});const mock$q={"tableDataIn|10":[{place:"@cname",time:"@date(yyyy-MM-dd HH:mm:ss)","coalQuantity|500-1000":1,region:"@cword('东西',1)区",plannedWarehousing:"#@natural(1,5)"}],"tableDataOut|10":[{seller:"@cname",time:"@date(yyyy-MM-dd HH:mm:ss)","numberOfCars|0-50":1,"outboundVolume|1000-5000":1,region:"@cword('东西',1)区",plannedExit:"#@natural(1,5)"}]};const columns$6$1=[{title:"设备名称",dataIndex:"name"},{title:"来源",dataIndex:"source"},{title:"内容",dataIndex:"content"},{title:"报告时间",dataIndex:"reportingTime"}];/**
|
|
145
138
|
* 智能巡检
|
|
146
139
|
*/const SmartInspection=defineComponent({name:"smartInspection",cname:"智能巡检",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
147
|
-
},setup(){const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"smartInspection"});list.value=data.rows;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"smart-inspection"},[withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table3","pagination":false,"columns":columns$6$1,"scroll":{y:80},"dataSource":list.value,"rowClassName":(record,index)=>index%2&&"active"},null),[[resolveDirective("autoScroll")]])]);}});const mock$
|
|
140
|
+
},setup(){const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"smartInspection"});list.value=data.rows;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"smart-inspection"},[withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table3","pagination":false,"columns":columns$6$1,"scroll":{y:80},"dataSource":list.value,"rowClassName":(record,index)=>index%2&&"active"},null),[[resolveDirective("autoScroll")]])]);}});const mock$p={"rows|3":[{name:"@cword(4)",source:"@cword(2)",content:"@ctitle",reportingTime:"@date(yyyy-MM-dd HH:mm:ss)"}]};const columns$5$1=[{title:"变电器名称",dataIndex:"name"},{title:"la",dataIndex:"la"},{title:"Uab",dataIndex:"Uab"},{title:"P",dataIndex:"P"},{title:"Q",dataIndex:"Q"}];/**
|
|
148
141
|
* 配电监控
|
|
149
142
|
*/const ElectricMonitor=defineComponent({name:"electricMonitor",cname:"配电监控",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
150
|
-
},setup(){const form=reactive({tableData:[],overhaul:0,function:0,hotStandby:0,coldStandby:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"electricMonitor"});form.tableData=data.rows;form.overhaul=data.overhaul;form.function=data.function;form.hotStandby=data.hotStandby;form.coldStandby=data.coldStandby;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"electric-monitor statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u68C0\u4FEE")]),createVNode("div",{"class":"number"},[form.overhaul])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u8FD0\u884C")]),createVNode("div",{"class":"number green"},[form.function])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u70ED\u5907\u7528")]),createVNode("div",{"class":"number orange"},[form.hotStandby])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u70ED\u5907\u7528")]),createVNode("div",{"class":"number blue"},[form.coldStandby])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns$5$1,"scroll":{y:150},"dataSource":form.tableData},null),[[resolveDirective("autoScroll")]])]);}});const mock$
|
|
143
|
+
},setup(){const form=reactive({tableData:[],overhaul:0,function:0,hotStandby:0,coldStandby:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"electricMonitor"});form.tableData=data.rows;form.overhaul=data.overhaul;form.function=data.function;form.hotStandby=data.hotStandby;form.coldStandby=data.coldStandby;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"electric-monitor statisticsAndList"},[createVNode("div",{"class":"statistics flex"},[createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u68C0\u4FEE")]),createVNode("div",{"class":"number"},[form.overhaul])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u8FD0\u884C")]),createVNode("div",{"class":"number green"},[form.function])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u70ED\u5907\u7528")]),createVNode("div",{"class":"number orange"},[form.hotStandby])]),createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[createTextVNode("\u70ED\u5907\u7528")]),createVNode("div",{"class":"number blue"},[form.coldStandby])])]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table","pagination":false,"columns":columns$5$1,"scroll":{y:150},"dataSource":form.tableData},null),[[resolveDirective("autoScroll")]])]);}});const mock$o={"rows|10":[{name:"@cword(4)","la|16-30":1,"Uab|20-50":1,"P|100-500":1,"Q|100-500":1}],"overhaul|1-10":1,"function|1-10":1,"hotStandby|1-10":1,"coldStandby|1-10":1};const columns$4$1=[{title:" 设备名称",dataIndex:"name"},{title:"来源",dataIndex:"source"},{title:"内容",dataIndex:"content"},{title:"报告时间",dataIndex:"reportingTime"}];const Item$7=({name,value,total,color})=>createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[name]),createVNode("div",{"class":"content"},[createVNode("span",{"class":["value",color]},[value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[total])])]);/**
|
|
151
144
|
* 故障、报警、隐患
|
|
152
145
|
*/const AlarmFaultDanger=defineComponent({name:"alarmFaultDanger",cname:"故障、报警、隐患",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
153
|
-
},setup(){const form=reactive({tableData:[],alarmEquipment:{value:0,total:0},reportHiddenDanger:{value:0,total:0},reportFault:{value:0,total:0}});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"alarmFaultDanger"});form.tableData=data.rows;form.alarmEquipment=data.alarmEquipment;form.reportHiddenDanger=data.reportHiddenDanger;form.reportFault=data.reportFault;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"alarm-fault-danger"},[createVNode("div",{"class":"statistics-container"},[createVNode(Item$7,{"name":"报警设备","color":"red","value":form.alarmEquipment.value,"total":form.alarmEquipment.total},null),createVNode(Item$7,{"name":"上报隐患","color":"blue","value":form.reportHiddenDanger.value,"total":form.reportHiddenDanger.total},null),createVNode(Item$7,{"name":"上报故障","color":"yellow","value":form.reportFault.value,"total":form.reportFault.total},null)]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"table dark-table3","pagination":false,"columns":columns$4$1,"scroll":{y:200},"dataSource":form.tableData},null),[[resolveDirective("autoScroll")]])]);}});const mock$
|
|
146
|
+
},setup(){const form=reactive({tableData:[],alarmEquipment:{value:0,total:0},reportHiddenDanger:{value:0,total:0},reportFault:{value:0,total:0}});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"alarmFaultDanger"});form.tableData=data.rows;form.alarmEquipment=data.alarmEquipment;form.reportHiddenDanger=data.reportHiddenDanger;form.reportFault=data.reportFault;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"alarm-fault-danger"},[createVNode("div",{"class":"statistics-container"},[createVNode(Item$7,{"name":"报警设备","color":"red","value":form.alarmEquipment.value,"total":form.alarmEquipment.total},null),createVNode(Item$7,{"name":"上报隐患","color":"blue","value":form.reportHiddenDanger.value,"total":form.reportHiddenDanger.total},null),createVNode(Item$7,{"name":"上报故障","color":"yellow","value":form.reportFault.value,"total":form.reportFault.total},null)]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"table dark-table3","pagination":false,"columns":columns$4$1,"scroll":{y:200},"dataSource":form.tableData},null),[[resolveDirective("autoScroll")]])]);}});const mock$n={alarmEquipment:{"total|25-50":1,"value|1-25":1},reportHiddenDanger:{"total|25-50":1,"value|1-25":1},reportFault:{"total|25-50":1,"value|1-25":1},"rows|3":[{name:"@cword(4)",source:"@cword(2)",content:"@ctitle",reportingTime:"@date(yyyy-MM-dd HH:mm:ss)"}]};const prefix$2="inl-card";const installCom=(component,name)=>{component.install=app=>{app.component(`${prefix$2}-${name}`,component);};return component;};const screen$1={// 退出全屏
|
|
154
147
|
exitFullscreen(id){const dom=document.getElementById(id);dom.addEventListener("click",event=>{if(document.fullscreenElement===dom){document.exitFullscreen();}event.preventDefault();});},// 进入全屏
|
|
155
148
|
requestFullscreen(id){const dom=document.getElementById(id);dom.requestFullscreen();}};const formatMoney=(number,decimals=0,decPoint=".",thousandsSep=",")=>{number=(number+"").replace(/[^0-9+-Ee.]/g,"");let n=!isFinite(+number)?0:+number;let prec=!isFinite(+decimals)?0:Math.abs(decimals);let sep=typeof thousandsSep==="undefined"?",":thousandsSep;let dec=typeof decPoint==="undefined"?".":decPoint;let s;let toFixedFix=function(n,prec){let k=Math.pow(10,prec);return ""+Math.ceil(n*k)/k;};s=(prec?toFixedFix(n,prec):""+Math.round(n)).split(".");let re=/(-?\d+)(\d{3})/;while(re.test(s[0])){s[0]=s[0].replace(re,"$1"+sep+"$2");}if((s[1]||"").length<prec){s[1]=s[1]||"";s[1]+=new Array(prec-s[1].length+1).join("0");}return s.join(dec);};const columns$3$1=[{title:"车号",dataIndex:"licenseNumber"},{title:"重量(t)",dataIndex:"weight"},{title:"起止点",dataIndex:"startingAndEndingPoints"},{title:"运输状态",dataIndex:"transportationStatus"}];const status=value=>{switch(value){case 0:return "待发货";case 1:return "运输中";case 2:return "已送达";default:return "--";}};const Item$6=({name,value})=>{return createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[name]),createVNode("div",{"class":"value"},[value])]);};/**
|
|
156
149
|
* 物流信息
|
|
157
150
|
*/const LogisticsInfo=defineComponent({name:"logisticsInfo",cname:"物流信息",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
158
|
-
},setup(){const form=reactive({rows:[],totalTransportation:0,coalFromMine:0,cleanCoalOutwardTransportation:0,exportOfByProducts:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"logisticsInfo"});form.rows=data.rows;form.totalTransportation=data.totalTransportation;form.coalFromMine=data.coalFromMine;form.cleanCoalOutwardTransportation=data.cleanCoalOutwardTransportation;form.exportOfByProducts=data.exportOfByProducts;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"logistics-info"},[createVNode("div",{"class":"statistics-container"},[createVNode(Item$6,{"name":"本月运输总量(t)","value":formatMoney(form.totalTransportation)},null),createVNode(Item$6,{"name":"矿上来煤(t)","value":form.coalFromMine},null),createVNode(Item$6,{"name":"精煤外运(t)","value":form.cleanCoalOutwardTransportation},null),createVNode(Item$6,{"name":"副产品外运(t)","value":form.exportOfByProducts},null)]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table3","pagination":false,"columns":columns$3$1,"scroll":{y:200},"dataSource":form.rows,"rowClassName":(reocrd,index)=>!reocrd.transportationStatus&&"active"},{bodyCell:({column,record})=>{if(column.dataIndex==="transportationStatus"){return status(record.transportationStatus);}}}),[[resolveDirective("autoScroll")]])]);}});const mock$
|
|
151
|
+
},setup(){const form=reactive({rows:[],totalTransportation:0,coalFromMine:0,cleanCoalOutwardTransportation:0,exportOfByProducts:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"logisticsInfo"});form.rows=data.rows;form.totalTransportation=data.totalTransportation;form.coalFromMine=data.coalFromMine;form.cleanCoalOutwardTransportation=data.cleanCoalOutwardTransportation;form.exportOfByProducts=data.exportOfByProducts;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"logistics-info"},[createVNode("div",{"class":"statistics-container"},[createVNode(Item$6,{"name":"本月运输总量(t)","value":formatMoney(form.totalTransportation)},null),createVNode(Item$6,{"name":"矿上来煤(t)","value":form.coalFromMine},null),createVNode(Item$6,{"name":"精煤外运(t)","value":form.cleanCoalOutwardTransportation},null),createVNode(Item$6,{"name":"副产品外运(t)","value":form.exportOfByProducts},null)]),withDirectives(createVNode(resolveComponent("a-table"),{"class":"dark-table3","pagination":false,"columns":columns$3$1,"scroll":{y:200},"dataSource":form.rows,"rowClassName":(reocrd,index)=>!reocrd.transportationStatus&&"active"},{bodyCell:({column,record})=>{if(column.dataIndex==="transportationStatus"){return status(record.transportationStatus);}}}),[[resolveDirective("autoScroll")]])]);}});const mock$m={"rows|10":[{licenseNumber:/[A-Z]\d{5,7}/,"weight|100-1000":1,startingAndEndingPoints:"@city(true) - @city(true)","transportationStatus|0-2":1}],"totalTransportation|100000-1000000":1,"coalFromMine|300000-3000000":1,"cleanCoalOutwardTransportation|80000-800000":1,"exportOfByProducts|100000-1000000":1};/**
|
|
159
152
|
* 大宗物资消耗
|
|
160
153
|
*/const CommodityConsume=defineComponent({name:"commodityConsume",cname:"大宗物资消耗",developer:"前端开发组",equipment:"PC",directives:{autoScroll},props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
161
|
-
},setup(){const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"commodityConsume"});list.value=data.rows;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>withDirectives(createVNode("div",{"class":"commodity-consume"},[list.value.map(item=>createVNode(Fragment,null,[createVNode("div",{"class":"row"},[createVNode("div",{"class":"name"},[item.name]),createVNode("div",{"class":"value"},[item.value]),createVNode("div",{"class":"unit"},[item.unit])]),item.children.map(val=>createVNode("div",{"class":"row sub-row"},[createVNode("div",{"class":"name"},[val.name]),createVNode("div",{"class":"value"},[val.value]),createVNode("div",{"class":"unit"},[val.unit])]))]))]),[[resolveDirective("autoScroll"),null,void 0,{self:true}]]);}});const mock$
|
|
154
|
+
},setup(){const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"commodityConsume"});list.value=data.rows;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>withDirectives(createVNode("div",{"class":"commodity-consume"},[list.value.map(item=>createVNode(Fragment,null,[createVNode("div",{"class":"row"},[createVNode("div",{"class":"name"},[item.name]),createVNode("div",{"class":"value"},[item.value]),createVNode("div",{"class":"unit"},[item.unit])]),item.children.map(val=>createVNode("div",{"class":"row sub-row"},[createVNode("div",{"class":"name"},[val.name]),createVNode("div",{"class":"value"},[val.value]),createVNode("div",{"class":"unit"},[val.unit])]))]))]),[[resolveDirective("autoScroll"),null,void 0,{self:true}]]);}});const mock$l={"rows|10":[{"value|1000000-10000000.1-2":1,name:"全厂生产资料费",unit:"万元","children|2-5":[{name:"选煤厂生产资料费","value|200000-2000000.1-2":1,unit:"万元"}]}]};const dataList$1=[RemoteSwitchhouse,Substation,alarmInfo,hiddenTrouble,remoteElectricity,FaultJudgment,KeyEquipmentTesting,OpsInfo,WashingSystemHandleQuantity,SystemRunStatus,SendInOutCoalList,SmartInspection,ElectricMonitor,AlarmFaultDanger,LogisticsInfo,CommodityConsume];/**
|
|
162
155
|
* 统计
|
|
163
156
|
*/const StatisticsItem=defineComponent({props:{title:{type:String,required:true},planValue:{type:Number,required:true},realValue:{type:Number,required:true},titleColor:{type:String,required:true},progressColor:{type:[String,Object],required:true}},setup(props){const percent=computed(()=>props.planValue!==0?Math.floor(props.realValue/props.planValue*100):0);const formatPercent=()=>createVNode("div",{"class":"percent"},[createVNode("span",{"class":"percent-value"},[percent.value]),createVNode("span",{"class":"unit"},[createTextVNode("%")])]);return ()=>createVNode("div",{"class":"statistics-item"},[createVNode("div",{"class":"left"},[createVNode(resolveComponent("a-progress"),{"type":"circle","strokeLinecap":"square","width":110,"strokeWidth":10,"strokeColor":props.progressColor,"trailColor":"rgba(56, 154, 255, 0.1)","percent":percent.value,"format":formatPercent},null)]),createVNode("div",{"class":"right"},[createVNode("div",{"class":"title","style":{color:props.titleColor}},[props.title]),createVNode("div",{"class":"statistics"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"label"},[createTextVNode("\u8BA1\u5212\u91CF(t)")]),createVNode("div",{"class":"value"},[props.planValue])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"label"},[createTextVNode("\u5B9E\u9645\u91CF(t)")]),createVNode("div",{"class":"value"},[props.realValue])])])])]);}});/**
|
|
164
157
|
* 生产计划
|
|
165
158
|
*/const ProductionPlan=defineComponent({name:"productionPlan",cname:"生产计划",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
166
|
-
},setup(){const form=reactive({annualSelection:{planValue:0,realValue:0},monthlySelectionAmount:{planValue:0,realValue:0},dailySelection:{planValue:0,realValue:0},realTimeEnrollment:0,cleanCoalYield:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionPlan"});form.annualSelection=data.annualSelection;form.monthlySelectionAmount=data.monthlySelectionAmount;form.dailySelection=data.dailySelection;form.realTimeEnrollment=data.realTimeEnrollment;form.cleanCoalYield=data.cleanCoalYield;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"production-plan"},[createVNode(StatisticsItem,{"key":"year","title":"年入选量","titleColor":"#3b74c3","progressColor":{"0%":"#389AFF","100%":"#165CA9"},"planValue":form.annualSelection.planValue,"realValue":form.annualSelection.realValue},null),createVNode(StatisticsItem,{"key":"month","title":"月入选量","titleColor":"#56abba","progressColor":{"0%":"#08A5B1","100%":"#4DF3FF"},"planValue":form.monthlySelectionAmount.planValue,"realValue":form.monthlySelectionAmount.realValue},null),createVNode(StatisticsItem,{"key":"day","title":"日入选量","titleColor":"#3b74c3","progressColor":{"0%":"#F9B873","100%":"#D4AE3D"},"planValue":form.dailySelection.planValue,"realValue":form.dailySelection.realValue},null),createVNode("div",{"class":"statistics-item"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"title"},[createTextVNode("\u5B9E\u65F6\u5165\u9009\u91CF")]),createVNode("div",{"class":"value-container"},[createVNode("div",{"class":"value"},[form.realTimeEnrollment]),createVNode("div",{"class":"unit"},[createTextVNode("t/h")])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"title"},[createTextVNode("\u7CBE\u7164\u4EA7\u7387")]),createVNode("div",{"class":"value-container"},[createVNode("div",{"class":"value"},[form.cleanCoalYield]),createVNode("div",{"class":"unit"},[createTextVNode("%")])])])])]);}});const mock$
|
|
159
|
+
},setup(){const form=reactive({annualSelection:{planValue:0,realValue:0},monthlySelectionAmount:{planValue:0,realValue:0},dailySelection:{planValue:0,realValue:0},realTimeEnrollment:0,cleanCoalYield:0});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionPlan"});form.annualSelection=data.annualSelection;form.monthlySelectionAmount=data.monthlySelectionAmount;form.dailySelection=data.dailySelection;form.realTimeEnrollment=data.realTimeEnrollment;form.cleanCoalYield=data.cleanCoalYield;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"production-plan"},[createVNode(StatisticsItem,{"key":"year","title":"年入选量","titleColor":"#3b74c3","progressColor":{"0%":"#389AFF","100%":"#165CA9"},"planValue":form.annualSelection.planValue,"realValue":form.annualSelection.realValue},null),createVNode(StatisticsItem,{"key":"month","title":"月入选量","titleColor":"#56abba","progressColor":{"0%":"#08A5B1","100%":"#4DF3FF"},"planValue":form.monthlySelectionAmount.planValue,"realValue":form.monthlySelectionAmount.realValue},null),createVNode(StatisticsItem,{"key":"day","title":"日入选量","titleColor":"#3b74c3","progressColor":{"0%":"#F9B873","100%":"#D4AE3D"},"planValue":form.dailySelection.planValue,"realValue":form.dailySelection.realValue},null),createVNode("div",{"class":"statistics-item"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"title"},[createTextVNode("\u5B9E\u65F6\u5165\u9009\u91CF")]),createVNode("div",{"class":"value-container"},[createVNode("div",{"class":"value"},[form.realTimeEnrollment]),createVNode("div",{"class":"unit"},[createTextVNode("t/h")])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"title"},[createTextVNode("\u7CBE\u7164\u4EA7\u7387")]),createVNode("div",{"class":"value-container"},[createVNode("div",{"class":"value"},[form.cleanCoalYield]),createVNode("div",{"class":"unit"},[createTextVNode("%")])])])])]);}});const mock$k={annualSelection:{"planValue|1000-10000":1,"realValue|1000-10000":1},monthlySelectionAmount:{"planValue|1000-10000":1,"realValue|1000-10000":1},dailySelection:{"planValue|1000-10000":1,"realValue|1000-10000":1},"realTimeEnrollment|1000-10000":1,"cleanCoalYield|1-100":1};// const data = [
|
|
167
160
|
// { name: "临涣", value: 10, percent: 10 },
|
|
168
161
|
// { name: "杨柳", value: 30, percent: 30 },
|
|
169
162
|
// { name: "许瞳", value: 25, percent: 25 },
|
|
@@ -172,18 +165,17 @@ requestFullscreen(id){const dom=document.getElementById(id);dom.requestFullscree
|
|
|
172
165
|
// { name: "邹庄", value: 20, percent: 20 },
|
|
173
166
|
// { name: "袁一", value: 10, percent: 10 },
|
|
174
167
|
// ];
|
|
175
|
-
const tabs$2=[{name:"当日",
|
|
168
|
+
const tabs$2=[{name:"当日",id:"day"},{name:"当月",id:"month"}];/**
|
|
176
169
|
* 入洗原煤量
|
|
177
|
-
*/const WashingRawCoalQuantity=defineComponent({name:"washingRawCoalQuantity",cname:"入洗原煤量",developer:"前端开发组",equipment:"PC",emits:["
|
|
178
|
-
}
|
|
179
|
-
}});chartIns.value.axis("name",{tickLine:null,line:null,label:{style:{fill:"#fff",fontSize:19}}});chartIns.value.axis("value",{grid:{line:{style:{stroke:"rgba(242, 243, 248, 0.04)"}}},label:{style:{fill:"rgba(255, 255, 255, 0.5)",fontSize:23}},title:{text:"单位:万吨",position:"end",spacing:-35,autoRotate:false,style:{fill:"rgba(255, 255, 255, 0.4)",fontSize:23,y:10}}});chartIns.value.axis("percent",{grid:null,label:{style:{fill:"rgba(255, 255, 255, 0.5)",fontSize:23}},title:{text:"单位:%",position:"end",spacing:-50,autoRotate:false,style:{fill:"rgba(255, 255, 255, 0.4)",fontSize:23,y:10}}});chartIns.value.legend({position:"bottom",custom:true,itemName:{style:{fill:"#fff",fontSize:19}},items:[{name:"灰分",value:"value",marker:{symbol:"square",style:{fill:"#30DDFF"}}},{name:"进度",value:"percent",marker:{symbol:"square",style:{fill:"#2C6FFF"}}},{name:"目标",value:"",marker:{symbol:"square",style:{fill:"l(90) 0:rgba(71, 87, 108, 0.5) 1:#fff"}}}]});chartIns.value.tooltip({showCrosshairs:true,shared:true});chartIns.value.interval().position("name*value").color("#4FAAEB").style({cfg:{fill:"l(90) 0:#389AFF 1:#07143A00"}});chartIns.value.line().position("name*percent").color("#30DDFF");chartIns.value.render();};const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"washingRawCoalQuantity"});dataList.value=data.rows;};watch(()=>dataList.value,e=>{if(e&&e.length>0){if(!chartIns.value){initChart(e);}else {chartIns.value.changeData(e);}}},{immediate:true,deep:true});const stopInterval=useInterval(getData,5000);onBeforeUnmount(()=>{chartIns.value?.destroy();stopInterval();});return ()=>createVNode("div",{"class":"washing-raw-coal-quantity"},[createVNode("div",{"class":"chart","style":{height:"100%"},"ref":chartRef},null)]);}});const mock$h={"rows|5":[{name:"@cname","value|10-50":1,"percent|1-100":1}]};/**
|
|
170
|
+
*/const WashingRawCoalQuantity=defineComponent({name:"washingRawCoalQuantity",cname:"入洗原煤量",developer:"前端开发组",equipment:"PC",emits:["getTabs"],props:{prefix:String,serverName:String,timeout:Number,tabId:String},setup(props,{emit}){const chartRef=ref();let chartIns;const form=ref({day:[],month:[]});const initChart=data=>{chartIns=new Chart({container:chartRef.value,autoFit:true,renderer:"svg",theme:{maxColumnWidth:10},appendPadding:[20,0,20]});chartIns.data(data);chartIns.scale({name:{},value:{alias:"灰分",min:0,nice:true},percent:{alias:"进度",nice:true,min:0// max: 100,
|
|
171
|
+
}});chartIns.axis("name",{tickLine:null,line:null,label:{style:{fill:"#fff",fontSize:19}}});chartIns.axis("value",{grid:{line:{style:{stroke:"rgba(242, 243, 248, 0.04)"}}},label:{style:{fill:"rgba(255, 255, 255, 0.5)",fontSize:23}},title:{text:"单位:万吨",position:"end",spacing:-35,autoRotate:false,style:{fill:"rgba(255, 255, 255, 0.4)",fontSize:23,y:10}}});chartIns.axis("percent",{grid:null,label:{style:{fill:"rgba(255, 255, 255, 0.5)",fontSize:23}},title:{text:"单位:%",position:"end",spacing:-50,autoRotate:false,style:{fill:"rgba(255, 255, 255, 0.4)",fontSize:23,y:10}}});chartIns.legend({position:"bottom",custom:true,itemName:{style:{fill:"#fff",fontSize:19}},items:[{name:"灰分",value:"value",marker:{symbol:"square",style:{fill:"#30DDFF"}}},{name:"进度",value:"percent",marker:{symbol:"square",style:{fill:"#2C6FFF"}}},{name:"目标",value:"",marker:{symbol:"square",style:{fill:"l(90) 0:rgba(71, 87, 108, 0.5) 1:#fff"}}}]});chartIns.tooltip({showCrosshairs:true,shared:true});chartIns.interval().position("name*value").color("#4FAAEB").style({cfg:{fill:"l(90) 0:#389AFF 1:#07143A00"}});chartIns.line().position("name*percent").color("#30DDFF");chartIns.render();};const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"washingRawCoalQuantity"});form.value=data;};watch(()=>[form.value,props.tabId],e=>{if(form.value&&props.tabId){if(form.value[props.tabId].length>0){if(!chartIns){initChart(form.value[props.tabId]);}else {chartIns.changeData(form.value[props.tabId]);}}}},{immediate:true,deep:true});const stopInterval=useInterval(getData,5000);onBeforeUnmount(()=>{chartIns?.destroy();stopInterval();});onMounted(()=>{emit("getTabs",tabs$2);});return ()=>createVNode("div",{"class":"washing-raw-coal-quantity"},[createVNode("div",{"class":"chart","style":{height:"100%"},"ref":chartRef},null)]);}});const mock$j={"day|5":[{name:"@cname","value|10-50":1,"percent|1-100":1}],"month|5":[{name:"@cname","value|10-50":1,"percent|1-100":1}]};/**
|
|
180
172
|
* 卡片头(小) 左侧带橙色点
|
|
181
173
|
*/const CardHeaderSmall=defineComponent({emits:["tabChange"],props:{title:{type:String},tabList:{type:Array}},setup(props,{emit,slots}){const activeTab=ref(props.tabList?.[0]?.id);const handleSwitchTab=index=>{const id=props.tabList[index].id;if(id!==activeTab.value){emit("tabChange",props.tabList[index]);activeTab.value=id;}};return ()=>createVNode("div",{"class":"card-header-small"},[createVNode("div",{"class":"title"},[props.title]),createVNode("div",{"class":"right"},[props.tabList?createVNode("div",{"class":"tab-container"},[props.tabList.map((item,index)=>createVNode("div",{"class":["tab-item",activeTab.value===item.id&&"active"],"key":item.id,"onClick":()=>handleSwitchTab(index)},[item.name]))]):slots.extra?.()])]);}});const tabs$1=[{id:"day",name:"日"},{id:"month",name:"月"}];/**
|
|
182
174
|
* 原煤调入
|
|
183
175
|
*/const RawCoalSendIn=defineComponent({name:"rawCoalSendIn",cname:"原煤调入",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
184
|
-
},setup(){const chartRef=ref();const chartIns=ref();const form=reactive({chartData:{day:[],month:[]},dayTransfer:{value:0,total:0},monthTransfer:{value:0,total:0}});const activeKey=ref("day");const initChart=data=>{chartIns.value=new Chart({container:chartRef.value,autoFit:true,height:500,renderer:"svg",theme:{maxColumnWidth:12}});chartIns.value.data(data);chartIns.value.coordinate().transpose();chartIns.value.scale("value",{});chartIns.value.axis("title",{line:null,tickLine:null,label:{style:{fill:"#fff",fontSize:19}}});chartIns.value.axis("value",{grid:null,label:null});chartIns.value.legend({position:"bottom",itemName:{style:{fill:"#fff",fontSize:19}}});chartIns.value.tooltip({shared:true,showMarkers:false,customItems:items=>{return items.map(item=>{let value=Number(item.value);if(value<0){value=-value;}return {...item,value:`${value}`};});}});chartIns.value.interval().adjust("stack").position("title*value").color("type",["#2C6FFF","#1ACAD7","l(270) 0:#FFC42D 100:#FF9214"]).style("value",(xVal,yVal)=>{if(xVal<0){return {shadowColor:"#0a1233",shadowOffsetX:6,shadowBlur:6};}return {};});chartIns.value.render();};watch(()=>form.chartData,e=>{if(e&&form.chartData[activeKey.value].length>0){if(!chartIns.value){initChart(form.chartData[activeKey.value]);}else {chartIns.value.changeData(form.chartData[activeKey.value]);}}},{immediate:true,deep:true});const tabChange=value=>{activeKey.value=value.id;if(form.chartData&&form.chartData[activeKey.value].length>0){if(!chartIns.value){initChart(form.chartData[activeKey.value]);}else {chartIns.value.changeData(form.chartData[activeKey.value]);}}};const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"rawCoalSendIn"});form.chartData=data.chartData;form.dayTransfer=data.dayTransfer;form.monthTransfer=data.monthTransfer;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(()=>{chartIns.value?.destroy();stopInterval();});return ()=>createVNode("div",{"class":"raw-coal-send-in"},[createVNode("div",{"class":"statistics"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u5F53\u65E5\u8C03\u5165(\u5428)")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.dayTransfer.value]),createVNode("div",{"class":"total"},[form.dayTransfer.total])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u6708\u8C03\u5165\u7D2F\u8BA1(\u5428)")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.monthTransfer.value]),createVNode("div",{"class":"total"},[form.monthTransfer.total])])])]),createVNode("div",{"class":"chart-container"},[createVNode(CardHeaderSmall,{"title":"矿别统计","tabList":tabs$1,"onTabChange":tabChange},null),createVNode("div",{"class":"chart","ref":chartRef},null)])]);}});const mock$
|
|
176
|
+
},setup(){const chartRef=ref();const chartIns=ref();const form=reactive({chartData:{day:[],month:[]},dayTransfer:{value:0,total:0},monthTransfer:{value:0,total:0}});const activeKey=ref("day");const initChart=data=>{chartIns.value=new Chart({container:chartRef.value,autoFit:true,height:500,renderer:"svg",theme:{maxColumnWidth:12}});chartIns.value.data(data);chartIns.value.coordinate().transpose();chartIns.value.scale("value",{});chartIns.value.axis("title",{line:null,tickLine:null,label:{style:{fill:"#fff",fontSize:19}}});chartIns.value.axis("value",{grid:null,label:null});chartIns.value.legend({position:"bottom",itemName:{style:{fill:"#fff",fontSize:19}}});chartIns.value.tooltip({shared:true,showMarkers:false,customItems:items=>{return items.map(item=>{let value=Number(item.value);if(value<0){value=-value;}return {...item,value:`${value}`};});}});chartIns.value.interval().adjust("stack").position("title*value").color("type",["#2C6FFF","#1ACAD7","l(270) 0:#FFC42D 100:#FF9214"]).style("value",(xVal,yVal)=>{if(xVal<0){return {shadowColor:"#0a1233",shadowOffsetX:6,shadowBlur:6};}return {};});chartIns.value.render();};watch(()=>form.chartData,e=>{if(e&&form.chartData[activeKey.value].length>0){if(!chartIns.value){initChart(form.chartData[activeKey.value]);}else {chartIns.value.changeData(form.chartData[activeKey.value]);}}},{immediate:true,deep:true});const tabChange=value=>{activeKey.value=value.id;if(form.chartData&&form.chartData[activeKey.value].length>0){if(!chartIns.value){initChart(form.chartData[activeKey.value]);}else {chartIns.value.changeData(form.chartData[activeKey.value]);}}};const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"rawCoalSendIn"});form.chartData=data.chartData;form.dayTransfer=data.dayTransfer;form.monthTransfer=data.monthTransfer;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(()=>{chartIns.value?.destroy();stopInterval();});return ()=>createVNode("div",{"class":"raw-coal-send-in"},[createVNode("div",{"class":"statistics"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u5F53\u65E5\u8C03\u5165(\u5428)")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.dayTransfer.value]),createVNode("div",{"class":"total"},[form.dayTransfer.total])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u6708\u8C03\u5165\u7D2F\u8BA1(\u5428)")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.monthTransfer.value]),createVNode("div",{"class":"total"},[form.monthTransfer.total])])])]),createVNode("div",{"class":"chart-container"},[createVNode(CardHeaderSmall,{"title":"矿别统计","tabList":tabs$1,"onTabChange":tabChange},null),createVNode("div",{"class":"chart","ref":chartRef},null)])]);}});const mock$i={chartData:{day:[{title:"临涣焦",type:"东区","value|10-50":1},{title:"临涣焦",type:"西区","value|10-50":1},{title:"临涣焦",type:"车数",value:"@integer(-20,0)"},{title:"青东",type:"东区","value|10-50":1},{title:"青东",type:"西区","value|10-50":1},{title:"青东",type:"车数",value:"@integer(-20,0)"},{title:"孙瞳",type:"东区","value|10-50":1},{title:"孙瞳",type:"西区","value|10-50":1},{title:"孙瞳",type:"车数",value:"@integer(-20,0)"},{title:"杨柳",type:"东区","value|10-50":1},{title:"杨柳",type:"西区","value|10-50":1},{title:"杨柳",type:"车数",value:"@integer(-20,0)"},{title:"邹庄",type:"东区","value|10-50":1},{title:"邹庄",type:"西区","value|10-50":1},{title:"邹庄",type:"车数",value:"@integer(-20,0)"},{title:"袁一8",type:"西区","value|10-50":1},{title:"袁一8",type:"东区","value|10-50":1},{title:"袁一8",type:"车数",value:"@integer(-20,0)"},{title:"青东东",type:"西区","value|10-50":1},{title:"青东东",type:"东区","value|10-50":1},{title:"青东东",type:"车数",value:"@integer(-20,0)"},{title:"芦岭",type:"西区","value|10-50":1},{title:"芦岭",type:"东区","value|10-50":1},{title:"芦岭",type:"车数",value:"@integer(-20,0)"},{title:"许瞳",type:"西区","value|10-50":1},{title:"许瞳",type:"东区","value|10-50":1},{title:"许瞳",type:"车数",value:"@integer(-20,0)"},{title:"童亭",type:"西区","value|10-50":1},{title:"童亭",type:"东区","value|10-50":1},{title:"童亭",type:"车数",value:"@integer(-20,0)"},{title:"袁一10",type:"西区","value|10-50":1},{title:"袁一10",type:"东区","value|10-50":1},{title:"袁一10",type:"车数",value:"@integer(-20,0)"}],month:[{title:"临涣焦",type:"东区","value|10-50":1},{title:"临涣焦",type:"西区","value|10-50":1},{title:"临涣焦",type:"车数",value:"@integer(-20,0)"},{title:"青东",type:"东区","value|10-50":1},{title:"青东",type:"西区","value|10-50":1},{title:"青东",type:"车数",value:"@integer(-20,0)"},{title:"孙瞳",type:"东区","value|10-50":1},{title:"孙瞳",type:"西区","value|10-50":1},{title:"孙瞳",type:"车数",value:"@integer(-20,0)"},{title:"杨柳",type:"东区","value|10-50":1},{title:"杨柳",type:"西区","value|10-50":1},{title:"杨柳",type:"车数",value:"@integer(-20,0)"},{title:"邹庄",type:"东区","value|10-50":1},{title:"邹庄",type:"西区","value|10-50":1},{title:"邹庄",type:"车数",value:"@integer(-20,0)"},{title:"袁一8",type:"西区","value|10-50":1},{title:"袁一8",type:"东区","value|10-50":1},{title:"袁一8",type:"车数",value:"@integer(-20,0)"},{title:"青东东",type:"西区","value|10-50":1},{title:"青东东",type:"东区","value|10-50":1},{title:"青东东",type:"车数",value:"@integer(-20,0)"},{title:"芦岭",type:"西区","value|10-50":1},{title:"芦岭",type:"东区","value|10-50":1},{title:"芦岭",type:"车数",value:"@integer(-20,0)"},{title:"许瞳",type:"西区","value|10-50":1},{title:"许瞳",type:"东区","value|10-50":1},{title:"许瞳",type:"车数",value:"@integer(-20,0)"},{title:"童亭",type:"西区","value|10-50":1},{title:"童亭",type:"东区","value|10-50":1},{title:"童亭",type:"车数",value:"@integer(-20,0)"},{title:"袁一10",type:"西区","value|10-50":1},{title:"袁一10",type:"东区","value|10-50":1},{title:"袁一10",type:"车数",value:"@integer(-20,0)"}]},dayTransfer:{"value|100-300":1,"total|300-400":1},monthTransfer:{"value|1000-3000":1,"total|3000-4000":1}};const initChart$1=(chartId,data)=>{const chart=new Chart({container:chartId,height:120,width:460,autoFit:true,renderer:"svg",theme:{maxColumnWidth:10},appendPadding:[0,20,20]});chart.data(data);chart.scale({name:{},value:{alias:"灰分",min:0,nice:true},percent:{alias:"进度",nice:true}});chart.axis("name",{tickLine:null,line:null,label:{style:{fill:"#fff"}}});chart.axis("value",{grid:{line:{style:{stroke:"rgba(242, 243, 248, 0.04)"}}}// label: false,
|
|
185
177
|
// title: false,
|
|
186
|
-
});chart.legend(false);chart.tooltip({showCrosshairs:true,shared:true});chart.interval().position("name*value").color("#4FAAEB").style({cfg:{fill:"l(90) 0:#389AFF 1:#07143A00"}});chart.interaction("active-region");chart.render();return chart;};const warehouseStorage=defineComponent({name:"warehouseStorage",cname:"仓位存储",developer:"前端开发组",equipment:"PC",setup(props,context){const chartInstances=ref([]);const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"warehouseStorage"});list.value=data.rows;};const chartRendering=()=>{list.value.forEach((item,index)=>{if(!chartInstances.value[index]){chartInstances.value.push({chartInstance:initChart$
|
|
178
|
+
});chart.legend(false);chart.tooltip({showCrosshairs:true,shared:true});chart.interval().position("name*value").color("#4FAAEB").style({cfg:{fill:"l(90) 0:#389AFF 1:#07143A00"}});chart.interaction("active-region");chart.render();return chart;};const warehouseStorage=defineComponent({name:"warehouseStorage",cname:"仓位存储",developer:"前端开发组",equipment:"PC",setup(props,context){const chartInstances=ref([]);const list=ref([]);const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"warehouseStorage"});list.value=data.rows;};const chartRendering=()=>{list.value.forEach((item,index)=>{if(!chartInstances.value[index]){chartInstances.value.push({chartInstance:initChart$1(`chartId${index+1}`,item.chartData)});}else {chartInstances.value[index].chartInstance.changeData(item.chartData);}});};const stopInterval=useInterval(async()=>{await getData();chartRendering();},5000);onBeforeUnmount(stopInterval);const slotInfo=val=>{return {extra:()=>{return createVNode("div",{"class":"chartHeader flex"},[createVNode("div",{"class":"value"},[val.value]),createVNode("div",{"class":"all"},[createTextVNode("/ "),val.total,createTextVNode(" "),val.unit])]);}};};return ()=>createVNode("div",{"class":"storageChart"},[list.value.map((item,index)=>createVNode(Fragment,null,[createVNode(CardHeaderSmall,{"title":item.title},slotInfo(item)),createVNode("div",{"class":"chart","id":`chartId${index+1}`},null)]))]);}});const mock$h={rows:[{title:"东区原煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"东区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"西区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"西区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]}]};// const tempData = [
|
|
187
179
|
// {
|
|
188
180
|
// name: "东区1#",
|
|
189
181
|
// value: 2000,
|
|
@@ -245,10 +237,9 @@ const props$g$1={data:Array};/**
|
|
|
245
237
|
* 煤种生产量统计
|
|
246
238
|
*/const CoalRankYield=defineComponent({props:props$g$1,setup(props,ctx){const chartRef=ref();const chartIns=ref();const initChart=data=>{chartIns.value=new Chart({container:chartRef.value,autoFit:true,renderer:"svg",appendPadding:[20,0,0,0],theme:{maxColumnWidth:18}});chartIns.value.data(data);chartIns.value.scale({value:{min:0}});chartIns.value.axis("value",{tickLine:null,grid:{line:{style:{stroke:"rgba(242, 243, 248, 0.14)"}}},label:{style:{fontSize:18,fill:"rgba(255, 255, 255, 0.5)"}},title:{text:"单位:t",position:"end",autoRotate:false,offset:30,style:{y:10,fontSize:18,fill:"rgba(255, 255, 255, 0.5)"}}});chartIns.value.axis("name",{tickLine:null,label:{style:{fontSize:18,fill:"rgba(255, 255, 255, 0.5)"}},line:{style:{stroke:"rgba(242, 243, 248, 0.14)"}}});chartIns.value.legend(false);chartIns.value.tooltip({showTitle:false});chartIns.value.interval().position("name*value").color("name",colorList).style({radius:[4,4,0,0]});// chartIns.value.
|
|
247
239
|
chartIns.value.render();};watch(()=>props.data,e=>{if(e&&e.length>0){if(!chartIns.value){initChart(e);}else {chartIns.value.changeData(e);}}},{immediate:true,deep:true});// onMounted(initChart);
|
|
248
|
-
onBeforeUnmount(()=>chartIns.value?.destroy());return ()=>createVNode("div",{"class":"coalRank-yield"},[createVNode(CardHeaderSmall,{"title":"煤种生产量统计"},null),createVNode("div",{"ref":chartRef},null)]);}});/**
|
|
240
|
+
onBeforeUnmount(()=>chartIns.value?.destroy());return ()=>createVNode("div",{"class":"coalRank-yield"},[createVNode(CardHeaderSmall,{"title":"煤种生产量统计"},null),createVNode("div",{"ref":chartRef},null)]);}});const tabsList$1=[{name:"当日",id:"day"},{name:"当月",id:"month"}];/**
|
|
249
241
|
* 生产统计
|
|
250
|
-
*/const ProductionStatistics=defineComponent({name:"productionStatistics",cname:"生产统计",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number
|
|
251
|
-
},setup(){const form=reactive({systemYieldData:[],coalRankYieldData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionStatistics"});form.systemYieldData=data.systemYieldData;form.coalRankYieldData=data.coalRankYieldData;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"production-statistics"},[createVNode(SystemYield,{"data":form.systemYieldData},null),createVNode(CoalRankYield,{"data":form.coalRankYieldData},null)]);}});/**
|
|
242
|
+
*/const ProductionStatistics=defineComponent({name:"productionStatistics",cname:"生产统计",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number,tabId:String},setup(_props,_ctx){const form=reactive({systemYieldData:[],coalRankYieldData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionStatistics"});form.systemYieldData=data.systemYieldData;form.coalRankYieldData=data.coalRankYieldData;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);onMounted(()=>{_ctx.emit("getTabs",tabsList$1);});return ()=>createVNode("div",{"class":"production-statistics"},[createVNode(SystemYield,{"data":form.systemYieldData[_props.tabId||""]},null),createVNode(CoalRankYield,{"data":form.coalRankYieldData[_props.tabId||""]},null)]);}});/**
|
|
252
243
|
* 计划统计信息
|
|
253
244
|
*/const PlanItem=defineComponent({props:{name:{type:String,required:true},value:{type:Number,required:true},percent:{type:Number,default:0}},setup(props){return ()=>createVNode("div",{"class":"plan-item"},[createVNode("div",{"class":"left"},[createVNode("div",{"class":"name"},[props.name]),createVNode("div",{"class":"value"},[props.value])]),createVNode(resolveComponent("a-progress"),{"type":"circle","strokeLinecap":"square","stroke-color":{"0%":"#5EF0FF","100%":"#2C6FFF"// "100%": "#5EF0FF",
|
|
254
245
|
},"strokeWidth":8,"trailColor":"transparent","width":58,"percent":props.percent,"format":percent=>createVNode("div",{"class":"value-container"},[createVNode("span",{"class":"value"},[percent]),createVNode("span",{"class":"unit"},[createTextVNode("%")])])},null)]);}});// const tempData = [
|
|
@@ -290,9 +281,11 @@ const props$e$1={data:Array};/**
|
|
|
290
281
|
onBeforeUnmount(()=>chartIns.value?.destroy());return ()=>createVNode("div",{"class":"histogram-chart","ref":chartRef},null);}});/**
|
|
291
282
|
* 生产评价2 上方圆环进度条 下方条形图、柱状图
|
|
292
283
|
*/const ProductionPlan2=defineComponent({name:"productionPlan2",cname:"生产评价2",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
293
|
-
},setup(){const form=reactive({annualPlan:{rawCoal:{value:0,percentage:0},cleanCoal:{value:0,percentage:0}},monthlyPlan:{rawCoal:{value:0,percentage:0},cleanCoal:{value:0,percentage:0}},monthlyTransferIn:{value:0,total:0},dayTransferIn:{value:0,total:0},barData:[],histogramData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionPlan2"});form.annualPlan=data.annualPlan;form.monthlyPlan=data.monthlyPlan;form.monthlyTransferIn=data.monthlyTransferIn;form.dayTransferIn=data.dayTransferIn;form.barData=data.barData;form.histogramData=data.histogramData;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"production-plan2"},[createVNode("div",{"class":"plan"},[createVNode("div",{"class":"plan-container"},[createVNode("div",{"class":"plan-title"},[createTextVNode("\u5E74\u8BA1\u5212")]),createVNode("div",{"class":"plan-list"},[createVNode(PlanItem,{"name":"原煤(万吨)","value":form.annualPlan.rawCoal.value,"percent":form.annualPlan.rawCoal.percentage},null),createVNode(PlanItem,{"name":"精煤(万吨)","value":form.annualPlan.cleanCoal.value,"percent":form.annualPlan.cleanCoal.percentage},null)])]),createVNode("div",{"class":"plan-container"},[createVNode("div",{"class":"plan-title"},[createTextVNode("\u6708\u8BA1\u5212")]),createVNode("div",{"class":"plan-list"},[createVNode(PlanItem,{"name":"原煤(万吨)","value":form.monthlyPlan.rawCoal.value,"percent":form.monthlyPlan.rawCoal.percentage},null),createVNode(PlanItem,{"name":"精煤(万吨)","value":form.monthlyPlan.cleanCoal.value,"percent":form.monthlyPlan.cleanCoal.percentage},null)])])]),createVNode("div",{"class":"bottom-container"},[createVNode("div",{"class":"left"},[createVNode(CardHeaderSmall,{"title":"原煤调入量排序"},null),createVNode(BarChart$1,{"data":form.barData},null)]),createVNode("div",{"class":"right"},[createVNode("div",{"class":"statistics-container"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u6708\u8C03\u5165(\u5428)")]),createVNode("div",{"class":"content"},[createVNode("span",{"class":"value"},[form.monthlyTransferIn.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.monthlyTransferIn.total]),createVNode("span",{"class":"total"},[createTextVNode("t")])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u5F53\u65E5\u8C03\u5165(\u5428)")]),createVNode("div",{"class":"content"},[createVNode("span",{"class":"value"},[form.dayTransferIn.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.dayTransferIn.total]),createVNode("span",{"class":"total"},[createTextVNode("t")])])])]),createVNode(HistogramChart,{"data":form.histogramData},null)])])]);}});const mock$e={annualPlan:{rawCoal:{"value|0-100000000":1,"percentage|0-100":1},cleanCoal:{"value|0-100000000":1,"percentage|0-100":1}},monthlyPlan:{rawCoal:{"value|0-2000000":1,"percentage|0-100":1},cleanCoal:{"value|0-2000000":1,"percentage|0-100":1}},monthlyTransferIn:{"value|0-1000000":1,"total|1000000-2000000":1},dayTransferIn:{"value|0-50000":1,"total|50000-100000":1},barData:[{name:"许瞳",type:"东区","value|1-100":1},{name:"许瞳",type:"西区","value|1-100":1},{name:"杨柳",type:"东区","value|1-100":1},{name:"杨柳",type:"西区","value|1-100":1},{name:"青东",type:"东区","value|1-100":1},{name:"青东",type:"西区","value|1-100":1},{name:"临焦",type:"东区","value|1-100":1},{name:"临焦",type:"西区","value|1-100":1},{name:"青东东",type:"东区","value|1-100":1},{name:"青东东",type:"西区","value|1-100":1},{name:"袁一10",type:"东区","value|1-100":1},{name:"袁一10",type:"西区","value|1-100":1},{name:"袁一11",type:"东区","value|1-100":1},{name:"袁一11",type:"西区","value|1-100":1},{name:"袁一12",type:"东区","value|1-100":1},{name:"袁一12",type:"西区","value|1-100":1},{name:"袁一13",type:"东区","value|1-100":1},{name:"袁一13",type:"西区","value|1-100":1},{name:"袁一14",type:"东区","value|1-100":1},{name:"袁一14",type:"西区","value|1-100":1},{name:"袁一15",type:"东区","value|1-100":1},{name:"袁一15",type:"西区","value|1-100":1}],histogramData:[{name:"普肥","value|1000-10000":1},{name:"低肥","value|1000-10000":1},{name:"焦肥","value|1000-10000":1},{name:"1/3肥","value|1000-10000":1}]};const chart=[ProductionPlan,WashingRawCoalQuantity,RawCoalSendIn,warehouseStorage,ProductionStatistics,ProductionPlan2];const props$d$1={name:String,id:String,activeKey:String};var tabsItem=defineComponent({props:props$d$1,setup(_props,_context){const classes=ref("tab_item");const activeKey=ref("");watch(()=>_props.activeKey,e=>{if(e){activeKey.value=e;}classes.value=activeKey?.value===_props.id?"tab_item tab_item_active":"tab_item";},{immediate:true});return ()=>createVNode("div",{"class":classes.value},[_props.name]);}});const props$c$1={tabs:{type:Array},activeKey:{type:String}};var tabs$4=defineComponent({components:{tabsItem},props:props$c$1,emits:["update:activeKey","change"],setup(_props,_context){const activeKey=ref("");watch(()=>_props.activeKey,e=>{activeKey.value=`${e}`;},{immediate:true});return ()=>createVNode("div",{"class":"tab"},[_props.tabs?.map(item=>createVNode(tabsItem,{"activeKey":activeKey.value,"onUpdate:activeKey":$event=>activeKey.value=$event,"name":item.name,"id":item.id,"onClick":()=>{activeKey.value=item.id;_context.emit("update:activeKey",item.id);_context.emit("change",item);}},null))]);}});function _isSlot$1$1(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}const props$b$1={componentName:{type:String,default:"demoCard",required:true},titleName:{type:String,default:"默认卡片",required:true},tabList:{type:Array},params:{type:Object,default:{}},showHeader:{type:Boolean,default:true},index:{type:Number,default:-1},theme:{type:String,default:"light"},iframeUrl:String};var CardBoxOld=defineComponent({components:{tabs: tabs$4},props:props$b$1,setup(_props,_ctx){const componentName=resolveComponent(`${prefix$2}-${_props.componentName}`);const activeKey=ref("");const tabList=ref([]);watch(()=>_props.tabList,e=>{if(e){tabList.value=e||[];if(tabList.value.length>0){activeKey.value=tabList.value[0].id;}}},{immediate:true,deep:true});return ()=>{let _slot;return createVNode("div",{"class":prefix$2+"_box "+prefix$2+"_box_"+_props.theme},[_props.showHeader?createVNode("div",{"class":prefix$2+"_box-header"},[createVNode("div",{"class":prefix$2+"_box-header-title"},[_props.theme==="dark"?createVNode("img",{"src":"/micro-assets/bigScreen/diamond.png"},null):null,createVNode("span",null,[_props.titleName])]),tabList.value&&tabList.value.length>0?createVNode(resolveComponent("a-tabs"),{"activeKey":activeKey.value,"onUpdate:activeKey":$event=>activeKey.value=$event,"tab-position":"top","size":"small","tabBarGutter":15},_isSlot$1$1(_slot=tabList.value.map(item=>createVNode(resolveComponent("a-tab-pane"),{"key":item.id,"tab":item.name},null)))?_slot:{default:()=>[_slot]}):null]):null,createVNode("div",{"class":prefix$2+"_box-body"},[_props.iframeUrl?createVNode("iframe",{"src":_props.iframeUrl,"frameborder":"0","style":{width:"100%",height:"100%"}},null):createVNode(componentName,{"tabId":activeKey.value,"workShopType":_props.params?.workShopType,"cardCode":_props.params?.cardCode,"prefix":_props.params?.prefix,"serverName":_props.params?.serverName,"timeout":_props.params?.timeout,"index":_props.index,"onGetTabs":data=>{tabList.value=data;activeKey.value=data[0].id;}},null)])]);};}});function _isSlot$15(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}const props$a$1={componentName:{type:String,default:"demoCard",required:true},titleName:{type:String,default:"默认卡片",required:true},tabList:{type:Array},params:{type:Object,default:{}},showHeader:{type:Boolean,default:true},index:{type:Number,default:-1},theme:{type:String,default:"light"},iframeUrl:String};var CardBoxV2=defineComponent({components:{tabs: tabs$4},props:props$a$1,setup(_props,_ctx){const componentName=resolveComponent(`${prefix$2}-${_props.componentName}`);const activeKey=ref("");const tabList=ref([]);const renderTool=ref(()=>{});watch(()=>_props.tabList,e=>{if(e){tabList.value=e||[];if(tabList.value.length>0){activeKey.value=tabList.value[0].id;}}},{immediate:true,deep:true});return ()=>{let _slot;return createVNode("div",{"class":"boxV2 "+prefix$2+"_box "+prefix$2+"_box_"+_props.theme},[_props.showHeader?createVNode("div",{"class":prefix$2+"_box-header"},[createVNode("div",{"class":prefix$2+"_box-header-title"},[_props.theme==="dark"?createVNode("img",{"src":"/micro-assets/bigScreen/diamond.png"},null):null,createVNode("span",null,[componentName.cname])]),_ctx.slots.headerTool?_ctx.slots.headerTool():null,renderTool.value(),tabList.value&&tabList.value.length>0?createVNode(resolveComponent("a-tabs"),{"activeKey":activeKey.value,"onUpdate:activeKey":$event=>activeKey.value=$event,"tab-position":"top","size":"small","tabBarGutter":15},_isSlot$15(_slot=tabList.value.map(item=>createVNode(resolveComponent("a-tab-pane"),{"key":item.id,"tab":item.name},null)))?_slot:{default:()=>[_slot]}):null]):null,createVNode("div",{"class":`${prefix$2}_box-body cardBody ${_props.params?.noPadding==="true"?"noPadding":""}`},[_props.iframeUrl?createVNode("iframe",{"src":_props.iframeUrl,"frameborder":"0","style":{width:"100%",height:"100%"}},null):createVNode(componentName,{"tabId":activeKey.value,"workShopType":_props.params?.workShopType,"cardCode":_props.params?.cardCode,"prefix":_props.params?.prefix,"serverName":_props.params?.serverName,"timeout":_props.params?.timeout,"index":_props.index,"onGetTabs":data=>{tabList.value=data;activeKey.value=data[0].id;}},null)])]);};}});const props$9$1={componentName:{type:String,default:"default",required:true},titleName:{type:String,default:"默认卡片",required:true},tabList:{type:Array},params:{type:Object,default:{}},showHeader:{type:Boolean,default:true},index:{type:Number,default:-1},theme:{type:String,default:"light"},renderStyle:{type:String,default:"Old"},iframeUrl:String};var CardBox=defineComponent({components:{tabs: tabs$4,CardBoxOld,CardBoxV2},props:props$9$1,setup(_props,_ctx){const componentName=resolveComponent(`CardBox${_props.renderStyle}`);return ()=>createVNode("div",{"style":{width:"100%",height:"100%"}},[createVNode(componentName,_props,null)]);}});const storageInfo$2=defineComponent({name:"storageInfo",cname:"仓储信息",developer:"前端开发组",equipment:"PC",components:{CardBox},props:{params:{type:Object,default:{}}},setup(prop,context){const diaData=reactive({showDia:false,noPadding:"true"});const storageData=ref([{name:"原煤仓",value:"33"},{name:"产品仓",value:"334"}]);// simple or detail
|
|
284
|
+
},setup(){const form=reactive({annualPlan:{rawCoal:{value:0,percentage:0},cleanCoal:{value:0,percentage:0}},monthlyPlan:{rawCoal:{value:0,percentage:0},cleanCoal:{value:0,percentage:0}},monthlyTransferIn:{value:0,total:0},dayTransferIn:{value:0,total:0},barData:[],histogramData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionPlan2"});form.annualPlan=data.annualPlan;form.monthlyPlan=data.monthlyPlan;form.monthlyTransferIn=data.monthlyTransferIn;form.dayTransferIn=data.dayTransferIn;form.barData=data.barData;form.histogramData=data.histogramData;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"production-plan2"},[createVNode("div",{"class":"plan"},[createVNode("div",{"class":"plan-container"},[createVNode("div",{"class":"plan-title"},[createTextVNode("\u5E74\u8BA1\u5212")]),createVNode("div",{"class":"plan-list"},[createVNode(PlanItem,{"name":"原煤(万吨)","value":form.annualPlan.rawCoal.value,"percent":form.annualPlan.rawCoal.percentage},null),createVNode(PlanItem,{"name":"精煤(万吨)","value":form.annualPlan.cleanCoal.value,"percent":form.annualPlan.cleanCoal.percentage},null)])]),createVNode("div",{"class":"plan-container"},[createVNode("div",{"class":"plan-title"},[createTextVNode("\u6708\u8BA1\u5212")]),createVNode("div",{"class":"plan-list"},[createVNode(PlanItem,{"name":"原煤(万吨)","value":form.monthlyPlan.rawCoal.value,"percent":form.monthlyPlan.rawCoal.percentage},null),createVNode(PlanItem,{"name":"精煤(万吨)","value":form.monthlyPlan.cleanCoal.value,"percent":form.monthlyPlan.cleanCoal.percentage},null)])])]),createVNode("div",{"class":"bottom-container"},[createVNode("div",{"class":"left"},[createVNode(CardHeaderSmall,{"title":"原煤调入量排序"},null),createVNode(BarChart$1,{"data":form.barData},null)]),createVNode("div",{"class":"right"},[createVNode("div",{"class":"statistics-container"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u6708\u8C03\u5165(\u5428)")]),createVNode("div",{"class":"content"},[createVNode("span",{"class":"value"},[form.monthlyTransferIn.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.monthlyTransferIn.total]),createVNode("span",{"class":"total"},[createTextVNode("t")])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u5F53\u65E5\u8C03\u5165(\u5428)")]),createVNode("div",{"class":"content"},[createVNode("span",{"class":"value"},[form.dayTransferIn.value]),createVNode("span",{"class":"total"},[createTextVNode("/")]),createVNode("span",{"class":"total"},[form.dayTransferIn.total]),createVNode("span",{"class":"total"},[createTextVNode("t")])])])]),createVNode(HistogramChart,{"data":form.histogramData},null)])])]);}});const mock$g={annualPlan:{rawCoal:{"value|0-100000000":1,"percentage|0-100":1},cleanCoal:{"value|0-100000000":1,"percentage|0-100":1}},monthlyPlan:{rawCoal:{"value|0-2000000":1,"percentage|0-100":1},cleanCoal:{"value|0-2000000":1,"percentage|0-100":1}},monthlyTransferIn:{"value|0-1000000":1,"total|1000000-2000000":1},dayTransferIn:{"value|0-50000":1,"total|50000-100000":1},barData:[{name:"许瞳",type:"东区","value|1-100":1},{name:"许瞳",type:"西区","value|1-100":1},{name:"杨柳",type:"东区","value|1-100":1},{name:"杨柳",type:"西区","value|1-100":1},{name:"青东",type:"东区","value|1-100":1},{name:"青东",type:"西区","value|1-100":1},{name:"临焦",type:"东区","value|1-100":1},{name:"临焦",type:"西区","value|1-100":1},{name:"青东东",type:"东区","value|1-100":1},{name:"青东东",type:"西区","value|1-100":1},{name:"袁一10",type:"东区","value|1-100":1},{name:"袁一10",type:"西区","value|1-100":1},{name:"袁一11",type:"东区","value|1-100":1},{name:"袁一11",type:"西区","value|1-100":1},{name:"袁一12",type:"东区","value|1-100":1},{name:"袁一12",type:"西区","value|1-100":1},{name:"袁一13",type:"东区","value|1-100":1},{name:"袁一13",type:"西区","value|1-100":1},{name:"袁一14",type:"东区","value|1-100":1},{name:"袁一14",type:"西区","value|1-100":1},{name:"袁一15",type:"东区","value|1-100":1},{name:"袁一15",type:"西区","value|1-100":1}],histogramData:[{name:"普肥","value|1000-10000":1},{name:"低肥","value|1000-10000":1},{name:"焦肥","value|1000-10000":1},{name:"1/3肥","value|1000-10000":1}]};const chart=[ProductionPlan,WashingRawCoalQuantity,RawCoalSendIn,warehouseStorage,ProductionStatistics,ProductionPlan2];const props$d$1={name:String,id:String,activeKey:String};var tabsItem=defineComponent({props:props$d$1,setup(_props,_context){const classes=ref("tab_item");const activeKey=ref("");watch(()=>_props.activeKey,e=>{if(e){activeKey.value=e;}classes.value=activeKey?.value===_props.id?"tab_item tab_item_active":"tab_item";},{immediate:true});return ()=>createVNode("div",{"class":classes.value},[_props.name]);}});const props$c$1={tabs:{type:Array},activeKey:{type:String}};var tabs$4=defineComponent({components:{tabsItem},props:props$c$1,emits:["update:activeKey","change"],setup(_props,_context){const activeKey=ref("");watch(()=>_props.activeKey,e=>{activeKey.value=`${e}`;},{immediate:true});return ()=>createVNode("div",{"class":"tab"},[_props.tabs?.map(item=>createVNode(tabsItem,{"activeKey":activeKey.value,"onUpdate:activeKey":$event=>activeKey.value=$event,"name":item.name,"id":item.id,"onClick":()=>{activeKey.value=item.id;_context.emit("update:activeKey",item.id);_context.emit("change",item);}},null))]);}});function _isSlot$1$1(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}const props$b$1={componentName:{type:String,default:"demoCard",required:true},titleName:{type:String,default:"默认卡片",required:true},tabList:{type:Array},params:{type:Object,default:{}},showHeader:{type:Boolean,default:true},index:{type:Number,default:-1},theme:{type:String,default:"light"},iframeUrl:String};var CardBoxOld=defineComponent({components:{tabs: tabs$4},props:props$b$1,setup(_props,_ctx){const componentName=resolveComponent(`${prefix$2}-${_props.componentName}`);const activeKey=ref("");const tabList=ref([]);watch(()=>_props.tabList,e=>{if(e){tabList.value=e||[];if(tabList.value.length>0){activeKey.value=tabList.value[0].id;}}},{immediate:true,deep:true});return ()=>{let _slot;return createVNode("div",{"class":prefix$2+"_box "+prefix$2+"_box_"+_props.theme},[_props.showHeader?createVNode("div",{"class":prefix$2+"_box-header"},[createVNode("div",{"class":prefix$2+"_box-header-title"},[_props.theme==="dark"?createVNode("img",{"src":"/micro-assets/bigScreen/diamond.png"},null):null,createVNode("span",null,[_props.titleName])]),tabList.value&&tabList.value.length>0?createVNode(resolveComponent("a-tabs"),{"activeKey":activeKey.value,"onUpdate:activeKey":$event=>activeKey.value=$event,"tab-position":"top","size":"small","tabBarGutter":15},_isSlot$1$1(_slot=tabList.value.map(item=>createVNode(resolveComponent("a-tab-pane"),{"key":item.id,"tab":item.name},null)))?_slot:{default:()=>[_slot]}):null]):null,createVNode("div",{"class":prefix$2+"_box-body"},[_props.iframeUrl?createVNode("iframe",{"src":_props.iframeUrl,"frameborder":"0","style":{width:"100%",height:"100%"}},null):createVNode(componentName,{"tabId":activeKey.value,"workShopType":_props.params?.workShopType,"cardCode":_props.params?.cardCode,"prefix":_props.params?.prefix,"serverName":_props.params?.serverName,"timeout":_props.params?.timeout,"index":_props.index,"onGetTabs":data=>{tabList.value=data;activeKey.value=data[0].id;}},null)])]);};}});function _isSlot$15(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}const props$a$1={componentName:{type:String,default:"demoCard",required:true},titleName:{type:String,default:"默认卡片",required:true},tabList:{type:Array},params:{type:Object,default:{}},showHeader:{type:Boolean,default:true},index:{type:Number,default:-1},theme:{type:String,default:"light"},iframeUrl:String};var CardBoxV2=defineComponent({components:{tabs: tabs$4},props:props$a$1,setup(_props,_ctx){const componentName=resolveComponent(`${prefix$2}-${_props.componentName}`);const activeKey=ref("");const tabList=ref([]);const renderTool=ref(()=>{});watch(()=>_props.tabList,e=>{if(e){tabList.value=e||[];if(tabList.value.length>0){activeKey.value=tabList.value[0].id;}}},{immediate:true,deep:true});return ()=>{let _slot;return createVNode("div",{"class":"boxV2 "+prefix$2+"_box "+prefix$2+"_box_"+_props.theme},[_props.showHeader?createVNode("div",{"class":prefix$2+"_box-header"},[createVNode("div",{"class":prefix$2+"_box-header-title"},[_props.theme==="dark"?createVNode("img",{"src":"/micro-assets/bigScreen/diamond.png","alt":""},null):null,createVNode("span",null,[componentName.cname])]),_ctx.slots.headerTool?_ctx.slots.headerTool():null,renderTool.value(),tabList.value&&tabList.value.length>0?createVNode(resolveComponent("a-tabs"),{"activeKey":activeKey.value,"onUpdate:activeKey":$event=>activeKey.value=$event,"tab-position":"top","size":"small","tabBarGutter":15},_isSlot$15(_slot=tabList.value.map(item=>createVNode(resolveComponent("a-tab-pane"),{"key":item.id,"tab":item.name},null)))?_slot:{default:()=>[_slot]}):null]):null,createVNode("div",{"class":`${prefix$2}_box-body cardBody ${_props.params?.noPadding==="true"?"noPadding":""}`},[_props.iframeUrl?createVNode("iframe",{"src":_props.iframeUrl,"frameborder":"0","style":{width:"100%",height:"100%"}},null):createVNode(componentName,{"tabId":activeKey.value,"workShopType":_props.params?.workShopType,"cardCode":_props.params?.cardCode,"prefix":_props.params?.prefix,"serverName":_props.params?.serverName,"timeout":_props.params?.timeout,"index":_props.index,"onRenderTool":val=>{renderTool.value=val;},"onGetTabs":data=>{tabList.value=data;activeKey.value=data[0].id;}},null)])]);};}});const props$9$1={componentName:{type:String,default:"default",required:true},titleName:{type:String,default:"默认卡片",required:true},tabList:{type:Array},params:{type:Object,default:{}},showHeader:{type:Boolean,default:true},index:{type:Number,default:-1},theme:{type:String,default:"light"},renderStyle:{type:String,default:"Old"},iframeUrl:String};var CardBox=defineComponent({components:{tabs: tabs$4,CardBoxOld,CardBoxV2},props:props$9$1,setup(_props,_ctx){const componentName=resolveComponent(`CardBox${_props.renderStyle}`);return ()=>createVNode("div",{"style":{width:"100%",height:"100%"}},[createVNode(componentName,_props,null)]);}});const storageInfo$2=defineComponent({name:"storageInfo",cname:"仓储信息",developer:"前端开发组",equipment:"PC",components:{CardBox},props:{params:{type:Object,default:{}}},setup(prop,context){const diaData=reactive({showDia:false,noPadding:"true"});const storageData=ref([{name:"原煤仓",value:"33"},{name:"产品仓",value:"334"}]);// simple or detail
|
|
294
285
|
const diaType=ref("simple");const getData=async()=>{const res=await instance$1$1.post("/getCardData",{card:"storageInfo"});storageData.value=res.data;};onMounted(async()=>{diaType.value=prop.params.local;});const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);const openDia=()=>{diaData.showDia=true;};const renderTool=()=>{return createVNode("div",{"class":"btn blue","onClick":()=>{openDia();}},[createTextVNode("\u8BE6\u60C5")]);};context.emit("renderTool",renderTool);// 弹窗
|
|
295
|
-
const renderDia=()=>{return createVNode("div",{"class":"storageDia"},[createVNode(CardBox,{"theme":"dark","titleName":"仓位存储","componentName":diaType.value==="detail"?"storageDia":"storageDiaSimple","params":diaData,"renderStyle":"V2"},null)]);};return ()=>createVNode("div",{"class":"storageInfo flex"},[diaData.showDia?renderDia():"",storageData.value.map(storage=>{return createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[storage.name]),createVNode("div",{"class":"value flex"},[createVNode("div",{"class":"number"},[storage.value]),createVNode("div",{"class":"unit"},[createTextVNode("t")])])]);})]);}});const mock$
|
|
286
|
+
const renderDia=()=>{return createVNode("div",{"class":"storageDia"},[createVNode(CardBox,{"theme":"dark","titleName":"仓位存储","componentName":diaType.value==="detail"?"storageDia":"storageDiaSimple","params":diaData,"renderStyle":"V2"},null)]);};return ()=>createVNode("div",{"class":"storageInfo flex"},[diaData.showDia?renderDia():"",storageData.value.map(storage=>{return createVNode("div",{"class":"ele"},[createVNode("div",{"class":"name"},[storage.name]),createVNode("div",{"class":"value flex"},[createVNode("div",{"class":"number"},[storage.value]),createVNode("div",{"class":"unit"},[createTextVNode("t")])])]);})]);}});const mock$f=[{name:"原煤仓","value|0-8000":1},{name:"产品仓","value|0-8000":1}];const initChart$d=(chartId,data)=>{const chart=new Chart({container:chartId,height:120,width:460,autoFit:true,renderer:"svg",theme:{maxColumnWidth:10},appendPadding:[0,20,20]});chart.data(data);chart.scale({name:{},value:{alias:"灰分",min:0,nice:true},percent:{alias:"进度",nice:true}});chart.axis("name",{tickLine:null,line:null,label:{style:{fill:"#fff"}}});chart.axis("value",{grid:{line:{style:{stroke:"rgba(242, 243, 248, 0.04)"}}}// label: false,
|
|
287
|
+
// title: false,
|
|
288
|
+
});chart.legend(false);chart.tooltip({showCrosshairs:true,shared:true});chart.interval().position("name*value").color("#4FAAEB").style({cfg:{fill:"l(90) 0:#389AFF 1:#07143A00"}});chart.interaction("active-region");chart.render();return chart;};const storageInfo$1=defineComponent({name:"storageDiaSimple",cname:"仓储弹窗",developer:"前端开发组",equipment:"PC",props:{params:{type:Object,default:{}}},setup(props,context){const chartInstances=ref([]);const list=ref([]);reactive({showDia:false});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"storageDiaSimple"});list.value=data.rows;};const chartRendering=()=>{list.value.forEach((item,index)=>{if(!chartInstances.value[index]){chartInstances.value.push({chartInstance:initChart$d(`chartId${index+1}`,item.chartData)});}else {chartInstances.value[index].chartInstance.changeData(item.chartData);}});};const stopInterval=useInterval(async()=>{await getData();chartRendering();},5000);onBeforeUnmount(stopInterval);const renderTool=()=>{return createVNode("div",{"class":"btn blue","onClick":()=>{props.params.showDia=false;}},[createTextVNode("\xD7")]);};context.emit("renderTool",renderTool);return ()=>createVNode("div",{"class":"storageChart simple"},[list.value.map((item,index)=>createVNode(Fragment,null,[createVNode(CardHeaderSmall,{"title":item.title},null),createVNode("div",{"class":"chart","id":`chartId${index+1}`},null)]))]);}});const mock$e={rows:[{title:"东区原煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"东区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"西区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"西区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]}]};const storageInfo=defineComponent({name:"storageDia",cname:"仓储弹窗",developer:"前端开发组",equipment:"PC",props:{params:{type:Object,default:{}}},setup(props,context){const chartInstances=ref([]);const list=ref([]);reactive({showDia:false});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"storageDia"});list.value=data.rows;};const chartRendering=()=>{list.value.forEach((item,index)=>{if(!chartInstances.value[index]){chartInstances.value.push({chartInstance:initChart$d(`chartId${index+1}`,item.chartData)});}else {chartInstances.value[index].chartInstance.changeData(item.chartData);}});};const stopInterval=useInterval(async()=>{await getData();chartRendering();},5000);onBeforeUnmount(stopInterval);const renderTool=()=>{return createVNode("div",{"class":"btn blue","onClick":()=>{props.params.showDia=false;}},[createTextVNode("\xD7")]);};context.emit("renderTool",renderTool);return ()=>createVNode("div",{"class":"storageChart"},[list.value.map((item,index)=>createVNode(Fragment,null,[createVNode(CardHeaderSmall,{"title":item.title},null),createVNode("div",{"class":"chart","id":`chartId${index+1}`},null)]))]);}});const mock$d={rows:[{title:"东区原煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"东区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"西区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]},{title:"西区精煤","total|5000-10000":1,"value|1000-5000":1,unit:"t",chartData:[{name:"临涣","value|10-50":1,"percent|1-100":1},{name:"杨柳","value|10-50":1,"percent|1-100":1},{name:"许瞳","value|10-50":1,"percent|1-100":1},{name:"孙瞳","value|10-50":1,"percent|1-100":1},{name:"青东","value|10-50":1,"percent|1-100":1},{name:"邹庄","value|10-50":1,"percent|1-100":1},{name:"袁一","value|10-50":1,"percent|1-100":1}]}]};const columns$2$1=[{title:"排名",customRender({index}){const rank=index+1;return createVNode("div",{"class":`rank rank${rank}`},[rank]);}},{title:"煤种",dataIndex:"varietyCoal"},{title:"外运量",dataIndex:"outboundTraffic"},{title:"焦化量",dataIndex:"cokingQuantity"},{title:"灰分(%)",dataIndex:"ashContent"},{title:"水分%",dataIndex:"waterContent"}];/**
|
|
296
289
|
* 精煤
|
|
297
290
|
*/const CleanCoal=defineComponent({props:{tabList:{type:Array,required:true},data:{type:Object}},setup(props,ctx){const chartRef=ref();const chartIns=ref();const activeKey=ref("day");const form=ref();const initChart=data=>{chartIns.value=new Chart({container:chartRef.value,autoFit:true,height:240,appendPadding:[20,0,10,40],renderer:"svg",theme:{maxColumnWidth:17}});chartIns.value.data(data);chartIns.value.scale("value",{nice:true});chartIns.value.axis("label",{label:{style:{fill:"rgba(255, 255, 255, 0.5)",fontSize:22}},line:{style:{stroke:"rgba(242, 243, 248, 0.14)",lineHeight:1}},tickLine:null});chartIns.value.axis("value",{title:{text:"单位:t",position:"end",autoRotate:false,spacing:-20,style:{fill:"rgba(255, 255, 255, 0.4)",fontSize:22,x:50,y:10}},label:{style:{fill:"rgba(255, 255, 255, 0.5)",fontSize:22}},grid:{line:{style:{stroke:"rgba(242, 243, 248, 0.14)",lineHeight:1}}}});chartIns.value.tooltip({showMarkers:false});chartIns.value.legend(false);chartIns.value.interaction("active-region");chartIns.value.interval().position("label*value").color("label",["l(270) 0:#00000000 100:#5CABFF","l(270) 0:#00000000 100:#FFD85C","l(270) 0:#00000000 100:#F54D59","l(270) 0:#00000000 100:#3A4AB0"]).style({radius:[4,4,0,0]});chartIns.value.render();};const tabChange=val=>{activeKey.value=val.id;if(!chartIns.value){initChart(form.value?.chartData[activeKey.value]);}else {chartIns.value.changeData(form.value?.chartData[activeKey.value]);}};watch(()=>props.data,e=>{if(e){form.value=e;if(form.value){if(!chartIns.value){initChart(form.value.chartData[activeKey.value]);}else {chartIns.value.changeData(form.value.chartData[activeKey.value]);}}}},{immediate:true,deep:true});onBeforeUnmount(()=>chartIns.value?.destroy());return ()=>createVNode("div",{"class":"clean-coal"},[createVNode(CardHeaderSmall,{"title":"精煤","tabList":props.tabList,"onTabChange":tabChange},null),createVNode("div",{"class":"chart-container"},[createVNode("div",{"ref":chartRef},null)]),createVNode(resolveComponent("a-table"),{"class":"dark-table2 striped","pagination":false,"columns":columns$2$1,"dataSource":form.value?.tableData[activeKey.value].list},{bodyCell:({column,record})=>{if(column.dataIndex==="varietyCoal"){return createVNode("span",{"style":{color:"#1CEFFF"}},[record.varietyCoal]);}},summary:()=>createVNode(resolveComponent("a-table-summary-row"),null,{default:()=>[createVNode(resolveComponent("a-table-summary-cell"),null,{default:()=>[createTextVNode("\u5408\u8BA1")]}),createVNode(resolveComponent("a-table-summary-cell"),null,null),createVNode(resolveComponent("a-table-summary-cell"),null,{default:()=>[form.value?.tableData[activeKey.value].total.outboundTraffic]}),createVNode(resolveComponent("a-table-summary-cell"),null,{default:()=>[form.value?.tableData[activeKey.value].total.cokingQuantity]}),createVNode(resolveComponent("a-table-summary-cell"),null,{default:()=>[form.value?.tableData[activeKey.value].total.ashContent]}),createVNode(resolveComponent("a-table-summary-cell"),null,{default:()=>[form.value?.tableData[activeKey.value].total.waterContent]})]})})]);}});const columns$1$1=[{title:"煤种",dataIndex:"varietyCoal"},{title:"电厂",dataIndex:"powerPlant"},{title:"汽运",dataIndex:"carTransport"},{title:"灰分",dataIndex:"ashContent"},{title:"水分",dataIndex:"waterContent"}];/**
|
|
298
291
|
* 煤泥
|
|
@@ -1087,17 +1080,17 @@ onUnmounted(()=>{stopPlay();stopV(`videoPlayer${timer}${_prop.index||0}`);clearI
|
|
|
1087
1080
|
};var demoCard=defineComponent({name:"demoCard",cname:"默认卡片",developer:"前端开发组",equipment:"PC",props:props$5$1,setup(_props,_ctx){// 自定义接口配置
|
|
1088
1081
|
setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
|
|
1089
1082
|
});const http=async()=>{await defaultApi({CURRENT_DATA:[{code:"flow_monitor_air2__FLOW",datasource:"DATAWAREHOURSE"}],HISTORY_DATA:[{code:"flow_monitor_air1__FLOW",startTime:2022,endTime:2023,timeType:"YEAR",shiftId:"0"}]},"TAIL_COAL_FILTER_PRESS");};onMounted(()=>{http();});return ()=>createVNode("div",{"class":"default"},[createTextVNode("111")]);}});const cards=[...defaultCard,...bigScreenCard,...dataList$1,...chart,...cardList$1,videos,demoCard];const props$4$1={layout:{type:String,default:"pc"},row:{type:Number,default:4},col:{type:Number,default:5},cards:{type:Array,default:[{name:"默认卡片",componentName:"default",row:"1/1",col:"3/1",params:{workShopType:"index",cardCode:"",prefix:"/api/",serverName:"card/v1",timeout:30// 超时时间 单位:s
|
|
1090
|
-
},tabs:[{name:"tab1",id:"1"},{name:"tab2",id:"2"}]},{name:"生产情况",componentName:"production",params:{workShopType:"index"},row:"1/2",col:"1/1"},{name:"气象站环境数据",componentName:"meteorological",params:{workShopType:"index"},row:"3/1",col:"1/1"},{name:"能源消耗",componentName:"energy",params:{workShopType:"Preparation",cardCode:"EnergyHierarchy"},row:"1/1",col:"5/1",tabs:[{name:"药耗",id:"0"},{name:"介耗",id:"1"},{name:"水耗",id:"2"},{name:"电耗",id:"3"}]},{name:"生产时长",componentName:"productionTime",row:"2/1",col:"5/1",params:{workShopType:"index"},tabs:[{name:"天",id:"DAY"},{name:"月",id:"MONTH"}]},{name:"安全监测",componentName:"safe",params:{workShopType:"index"}},{name:"报警信息",componentName:"alarm",params:{workShopType:"index"},row:"1/2",col:"4/1"}]}};var Layout=defineComponent({props:props$4$1,setup(prop,ctx){const classname=prefix$2+"_layout";const row=1/prop.row*100+"%";const col=1/prop.col*100+"%";const layoutStyle={gridTemplateColumns:`repeat(${prop.col}, ${col})`,gridTemplateRows:`repeat(${prop.row}, ${row})`};return ()=>createVNode("div",{"class":[classname,`${classname}_${prop.layout}`],"style":layoutStyle},[prop.cards.map(item=>{let com=createVNode(resolveComponent("inl-card-box"),{"componentName":item.componentName,"tabList":item.tabs,"titleName":item.name},null);if(item.col&&item.row){const rows=item.row.split("/");const cols=item.col.split("/");const rowStart=rows[0];const rowEnd=`span ${rows[1]}`;const colStart=cols[0];const colEnd=`span ${cols[1]}`;const gridArea=`${rowStart} / ${colStart} / ${rowEnd} / ${colEnd}`;com=createVNode(resolveComponent("inl-card-box"),{"style":{gridArea},"componentName":item.componentName,"tabList":item.tabs,"titleName":item.name,"params":item.params},null);}return com;})]);}});const props$3$1={row:{type:Number},col:{type:Number},len:{type:Number,default:0}};var draw=defineComponent({props:props$3$1,setup(prop,ctx){const state=ref(false);const start=ref({col:0,row:0});const end=ref({col:0,row:0});const classname=prefix$2+"_layout_editor_preview";const finishDraw=cb=>{state.value=false;if(cb&&typeof cb==="function"){cb();}};const resetStartEnd=()=>{nextTick(()=>{start.value={col:0,row:0};end.value={col:0,row:0};});};const computedCR=(i,type)=>{const index=i+1;const col=index%prop.col?index%prop.col:prop.col;const row=Math.ceil(index/prop.col);if(type==="s"){start.value={col,row};}else {end.value={col,row};let[startRow,endRow]=start.value.row<=end.value.row?[start.value.row,end.value.row]:[end.value.row,start.value.row];let[startCol,endCol]=start.value.col<=end.value.col?[start.value.col,end.value.col]:[end.value.col,start.value.col];const gridArea=`${startRow} / ${startCol} / ${endRow+1} / ${endCol+1}`;ctx.emit("drawEnd",{gridArea});resetStartEnd();}};const grids=()=>{const elms=[];for(let i=0;i<prop.len;i++){elms.push(createVNode("div",{"class":classname+"_griditem","onMousedown":e=>{state.value=true;computedCR(i,"s");},"onMouseup":e=>{finishDraw(()=>{computedCR(i,"e");});}},null));}return elms;};return ()=>createVNode("div",{"onMousemove":e=>{if(state.value);},"onMouseleave":()=>{if(state.value){finishDraw(()=>{message.error("因鼠标离开了绘制区域,绘制强制结束.");resetStartEnd();});}}},[grids()]);}});const props$2$1={row:{type:Number,default:5},col:{type:Number,default:5},colgap:{type:Number,default:5},rowgap:{type:Number,default:5},domArr:{type:Array,default:[]},isEditor:{type:Boolean,default:true},preview:{type:Boolean,default:false},layoutType:{type:String}};var GridPreview=defineComponent({emits:["addChild","addCard","remove"],props:props$2$1,components:{draw},setup(prop,ctx){const classname=prefix$2+"_layout_editor_preview";const classnameOpt=classname+"_opt";const classnameBox=classname+"_box";const layoutStyle=computed(()=>{return {display:"grid",gap:`${prop.rowgap}px ${prop.colgap}px`,gridTemplateColumns:`repeat(${prop.col}, 1fr)`,gridTemplateRows:`repeat(${prop.row}, 1fr)`};});return ()=>createVNode("div",{"class":classname},[!prop.isEditor?"":createVNode(draw,{"class":`${classnameBox} ${prop.preview?"show":""}`,"style":layoutStyle.value,"len":prop.col*prop.row,"row":prop.row,"col":prop.col,"onDrawEnd":gridArea=>{ctx.emit("addChild",gridArea);}},null),createVNode("div",{"id":classnameOpt,"class":`${classnameOpt} ${prop.preview?"show":""}`,"style":layoutStyle.value},[prop.domArr.map((item,index)=>{const renderBox=item=>{if(item.componentInfo){let parameter={};try{parameter=JSON.parse(item.componentInfo.parameter??"{}")??{};}catch(e){console.log(e);}return createVNode(resolveComponent("inl-card-box"),mergeProps({"componentName":item.componentInfo.name,"titleName":item.componentInfo.cname},parameter),null);}};return createVNode("div",{"style":{gridArea:item.gridArea},"class":`${classnameOpt}_area`},[renderBox(item),prop.isEditor?createVNode(Fragment,null,[createVNode(CloseOutlined,{"onClick":()=>{ctx.emit("remove",index);}},null),prop.preview?"":// 加号
|
|
1083
|
+
},tabs:[{name:"tab1",id:"1"},{name:"tab2",id:"2"}]},{name:"生产情况",componentName:"production",params:{workShopType:"index"},row:"1/2",col:"1/1"},{name:"气象站环境数据",componentName:"meteorological",params:{workShopType:"index"},row:"3/1",col:"1/1"},{name:"能源消耗",componentName:"energy",params:{workShopType:"Preparation",cardCode:"EnergyHierarchy"},row:"1/1",col:"5/1",tabs:[{name:"药耗",id:"0"},{name:"介耗",id:"1"},{name:"水耗",id:"2"},{name:"电耗",id:"3"}]},{name:"生产时长",componentName:"productionTime",row:"2/1",col:"5/1",params:{workShopType:"index"},tabs:[{name:"天",id:"DAY"},{name:"月",id:"MONTH"}]},{name:"安全监测",componentName:"safe",params:{workShopType:"index"}},{name:"报警信息",componentName:"alarm",params:{workShopType:"index"},row:"1/2",col:"4/1"}]}};var Layout=defineComponent({props:props$4$1,setup(prop,ctx){const classname=prefix$2+"_layout";const row=1/prop.row*100+"%";const col=1/prop.col*100+"%";const layoutStyle={gridTemplateColumns:`repeat(${prop.col}, ${col})`,gridTemplateRows:`repeat(${prop.row}, ${row})`};return ()=>createVNode("div",{"class":[classname,`${classname}_${prop.layout}`],"style":layoutStyle},[prop.cards.map(item=>{let com=createVNode(resolveComponent("inl-card-box"),{"componentName":item.componentName,"tabList":item.tabs,"titleName":item.name},null);if(item.col&&item.row){const rows=item.row.split("/");const cols=item.col.split("/");const rowStart=rows[0];const rowEnd=`span ${rows[1]}`;const colStart=cols[0];const colEnd=`span ${cols[1]}`;const gridArea=`${rowStart} / ${colStart} / ${rowEnd} / ${colEnd}`;com=createVNode(resolveComponent("inl-card-box"),{"style":{gridArea},"componentName":item.componentName,"tabList":item.tabs,"titleName":item.name,"params":item.params},null);}return com;})]);}});const props$3$1={row:{type:Number},col:{type:Number},len:{type:Number,default:0}};var draw=defineComponent({props:props$3$1,setup(prop,ctx){const state=ref(false);const start=ref({col:0,row:0});const end=ref({col:0,row:0});const classname=prefix$2+"_layout_editor_preview";const finishDraw=cb=>{state.value=false;if(cb&&typeof cb==="function"){cb();}};const resetStartEnd=()=>{nextTick(()=>{start.value={col:0,row:0};end.value={col:0,row:0};});};const computedCR=(i,type)=>{const index=i+1;const col=index%prop.col?index%prop.col:prop.col;const row=Math.ceil(index/prop.col);if(type==="s"){start.value={col,row};}else {end.value={col,row};let[startRow,endRow]=start.value.row<=end.value.row?[start.value.row,end.value.row]:[end.value.row,start.value.row];let[startCol,endCol]=start.value.col<=end.value.col?[start.value.col,end.value.col]:[end.value.col,start.value.col];const gridArea=`${startRow} / ${startCol} / ${endRow+1} / ${endCol+1}`;ctx.emit("drawEnd",{gridArea});resetStartEnd();}};const grids=()=>{const elms=[];for(let i=0;i<prop.len;i++){elms.push(createVNode("div",{"class":classname+"_griditem","onMousedown":e=>{state.value=true;computedCR(i,"s");},"onMouseup":e=>{finishDraw(()=>{computedCR(i,"e");});}},null));}return elms;};return ()=>createVNode("div",{"onMousemove":e=>{if(state.value);},"onMouseleave":()=>{if(state.value){finishDraw(()=>{message.error("因鼠标离开了绘制区域,绘制强制结束.",10);resetStartEnd();});}}},[grids()]);}});const props$2$1={row:{type:Number,default:5},col:{type:Number,default:5},colgap:{type:Number,default:5},rowgap:{type:Number,default:5},domArr:{type:Array,default:[]},isEditor:{type:Boolean,default:true},preview:{type:Boolean,default:false},layoutType:{type:String}};var GridPreview=defineComponent({emits:["addChild","addCard","remove"],props:props$2$1,components:{draw},setup(prop,ctx){const classname=prefix$2+"_layout_editor_preview";const classnameOpt=classname+"_opt";const classnameBox=classname+"_box";const layoutStyle=computed(()=>{return {display:"grid",gap:`${prop.rowgap}px ${prop.colgap}px`,gridTemplateColumns:`repeat(${prop.col}, 1fr)`,gridTemplateRows:`repeat(${prop.row}, 1fr)`};});return ()=>createVNode("div",{"class":classname},[!prop.isEditor?"":createVNode(draw,{"class":`${classnameBox} ${prop.preview?"show":""}`,"style":layoutStyle.value,"len":prop.col*prop.row,"row":prop.row,"col":prop.col,"onDrawEnd":gridArea=>{ctx.emit("addChild",gridArea);}},null),createVNode("div",{"id":classnameOpt,"class":`${classnameOpt} ${prop.preview?"show":""}`,"style":layoutStyle.value},[prop.domArr.map((item,index)=>{const renderBox=item=>{if(item.componentInfo){let parameter={};try{parameter=JSON.parse(item.componentInfo.parameter??"{}")??{};}catch(e){console.log(e);}return createVNode(resolveComponent("inl-card-box"),mergeProps({"componentName":item.componentInfo.name,"titleName":item.componentInfo.cname},parameter),null);}};return createVNode("div",{"style":{gridArea:item.gridArea},"class":`${classnameOpt}_area`},[renderBox(item),prop.isEditor?createVNode(Fragment,null,[createVNode(CloseOutlined,{"onClick":()=>{ctx.emit("remove",index);}},null),prop.preview?"":// 加号
|
|
1091
1084
|
createVNode("div",{"class":`${classnameOpt}_area_add`,"onClick":()=>{ctx.emit("addCard",index);},"draggable":"true","onDragstart":()=>{console.log("start");},"onDragend":()=>{console.log("end");}},[createVNode(PlusOutlined,null,null)])]):""]);})])]);}});const props$1$1={col:{type:Object,default:5},row:{type:Object,default:5},rowgap:{type:Object,default:5},colgap:{type:Object,default:5},penetrate:{type:Object,default:false},preview:{type:Boolean,default:false},isEditor:{type:Boolean,default:true}};var LayoutEditorForm=defineComponent({props:props$1$1,emits:["submit","reset","preview","fullscreenPreview"],setup(prop,ctx){const classname=prefix$2+"_layout_editor_form";const preview=state=>{if(state==="fullscreen"){screen$1.requestFullscreen("inl-card_layout_editor_preview_opt");ctx.emit("fullscreenPreview");}else {ctx.emit("preview");}};return ()=>createVNode("div",{"class":classname},[createVNode(resolveComponent("a-form"),{"layout":"inline"},{default:()=>[createVNode(resolveComponent("a-form-item"),{"label":"列"},{default:()=>[createVNode(resolveComponent("a-input-number"),{"value":prop.col.value,"onUpdate:value":$event=>prop.col.value=$event},null)]}),createVNode(resolveComponent("a-form-item"),{"label":"行"},{default:()=>[createVNode(resolveComponent("a-input-number"),{"value":prop.row.value,"onUpdate:value":$event=>prop.row.value=$event},null)]}),createVNode(resolveComponent("a-form-item"),{"label":"列间距"},{default:()=>[createVNode(resolveComponent("a-input-number"),{"value":prop.colgap.value,"onUpdate:value":$event=>prop.colgap.value=$event},null)]}),createVNode(resolveComponent("a-form-item"),{"label":"行间距"},{default:()=>[createVNode(resolveComponent("a-input-number"),{"value":prop.rowgap.value,"onUpdate:value":$event=>prop.rowgap.value=$event},null)]}),createVNode(resolveComponent("a-form-item"),{"label":""},{default:()=>[createVNode(resolveComponent("a-checkbox"),{"checked":prop.penetrate.value,"onUpdate:checked":$event=>prop.penetrate.value=$event},{default:()=>[createTextVNode("\u662F\u5426\u5141\u8BB8\u7A7F\u900F")]})]}),createVNode(resolveComponent("a-form-item"),{"label":""},{default:()=>[createVNode(resolveComponent("a-button"),{"type":"primary","onClick":()=>{ctx.emit("submit","");}},{default:()=>[createTextVNode("\u4F7F\u7528\u5E03\u5C40")]})," ",createTextVNode("\xA0"),createVNode(resolveComponent("a-button"),{"type":"dashed","onClick":()=>{ctx.emit("reset","");}},{default:()=>[createTextVNode("\u91CD\u7F6E\u5E03\u5C40")]}),createTextVNode("\xA0"),createVNode(resolveComponent("a-button"),{"type":"dashed","onClick":()=>{preview();}},{default:()=>[prop.isEditor?"预览":"取消预览"]}),createTextVNode("\xA0"),createVNode(resolveComponent("a-button"),{"type":"dashed","onClick":()=>{preview("fullscreen");}},{default:()=>[createTextVNode("\u5168\u5C4F\u9884\u89C8")]})]})]})]);}});const tmgc={child:[{gridArea:"1 / 1 / 2 / 2"},{gridArea:"2 / 1 / 3 / 2"},{gridArea:"3 / 1 / 4 / 2"},{gridArea:"4 / 1 / 5 / 2"},{gridArea:"1 / 5 / 2 / 6"},{gridArea:"2 / 5 / 3 / 6"},{gridArea:"3 / 5 / 4 / 6"},{gridArea:"4 / 5 / 5 / 6"}],col:5,colgap:5,penetrate:false,row:4,rowgap:5};const jd={child:[{gridArea:"1 / 1 / 2 / 2"},{gridArea:"2 / 1 / 3 / 2"},{gridArea:"3 / 1 / 4 / 2"},{gridArea:"4 / 1 / 5 / 2"},{gridArea:"1 / 2 / 2 / 3"},{gridArea:"2 / 2 / 3 / 3"},{gridArea:"3 / 2 / 4 / 3"},{gridArea:"4 / 2 / 5 / 3"},{gridArea:"1 / 3 / 2 / 4"},{gridArea:"2 / 3 / 3 / 4"},{gridArea:"3 / 3 / 4 / 4"},{gridArea:"4 / 3 / 5 / 4"},{gridArea:"1 / 4 / 2 / 5"},{gridArea:"2 / 4 / 3 / 5"},{gridArea:"3 / 4 / 4 / 5"},{gridArea:"4 / 4 / 5 / 5"}],col:4,colgap:5,penetrate:false,row:4,rowgap:5};var layoutData={tmgc,jd};const props$U={row:{type:Number,default:5},col:{type:Number,default:5},colgap:{type:Number,default:5},rowgap:{type:Number,default:5},domArr:{type:Array,default:[]},isEditor:{type:Boolean,default:true},preview:{type:Boolean,default:false},layoutType:{type:String,default:"jd"}};var layoutEditor=defineComponent({emits:["submit","addCard"],props: props$U,components:{GridPreview},setup(prop,ctx){const classname=prefix$2+"_layout_editor";const col=ref(prop.col);const row=ref(prop.row);const colgap=ref(prop.colgap);const rowgap=ref(prop.rowgap);const penetrate=ref(false);const domArray=ref(prop.domArr);const isEditor=ref(prop.isEditor);watch(()=>prop.layoutType,e=>{// 当前不是演示状态
|
|
1092
|
-
if(!prop.preview&&prop.layoutType!=="custom"&&layoutData[prop.layoutType]){const lay=layoutData[prop.layoutType];col.value=lay.col;row.value=lay.row;colgap.value=lay.colgap;rowgap.value=lay.rowgap;penetrate.value=lay.penetrate;domArray.value=lay.child;}},{immediate:true});return ()=>createVNode("div",{"class":classname},[!prop.preview?createVNode(LayoutEditorForm,{"preview":prop.preview,"onPreview":()=>{isEditor.value=!isEditor.value;},"onFullscreenPreview":()=>{isEditor.value=false;},"col":col,"row":row,"colgap":colgap,"rowgap":rowgap,"penetrate":penetrate,"isEditor":isEditor.value,"onSubmit":()=>{const submitData={child:domArray.value,penetrate:penetrate.value,row:row.value,col:col.value,colgap:colgap.value,rowgap:rowgap.value};ctx.emit("submit",submitData);},"onReset":()=>{domArray.value=[];col.value=5;row.value=5;colgap.value=5;rowgap.value=5;}},null):"",createVNode(GridPreview,{"isEditor":isEditor.value,"preview":prop.preview,"col":col.value,"row":row.value,"colgap":colgap.value,"rowgap":rowgap.value,"domArr":domArray.value,"layoutType":prop.layoutType,"onAddChild":gridArea=>{if(prop.isEditor){domArray.value.push(gridArea);}},"onAddCard":e=>{ctx.emit("addCard",componentInfo=>{return new Promise((res,rej)=>{if(!componentInfo){rej({type:"err",msg:"组件信息不能为空,为卡片添加组件失败。"});}else {try{domArray.value[e].componentInfo=componentInfo;res({type:"success",msg:"组件添加成功"});}catch(error){rej({type:"err",msg:"未知错误,为卡片添加组件失败。"});}}});});},"onRemove":e=>{domArray.value.splice(e,1);}},null)]);}});/**
|
|
1085
|
+
if(!prop.preview&&prop.layoutType!=="custom"&&layoutData[prop.layoutType]){const lay=layoutData[prop.layoutType];col.value=lay.col;row.value=lay.row;colgap.value=lay.colgap;rowgap.value=lay.rowgap;penetrate.value=lay.penetrate;domArray.value=lay.child;}},{immediate:true});return ()=>createVNode("div",{"class":classname},[!prop.preview?createVNode(LayoutEditorForm,{"preview":prop.preview,"onPreview":()=>{isEditor.value=!isEditor.value;},"onFullscreenPreview":()=>{isEditor.value=false;},"col":col,"row":row,"colgap":colgap,"rowgap":rowgap,"penetrate":penetrate,"isEditor":isEditor.value,"onSubmit":()=>{const submitData={child:domArray.value,penetrate:penetrate.value,row:row.value,col:col.value,colgap:colgap.value,rowgap:rowgap.value};ctx.emit("submit",submitData);},"onReset":()=>{domArray.value=[];col.value=5;row.value=5;colgap.value=5;rowgap.value=5;}},null):"",createVNode(GridPreview,{"isEditor":isEditor.value,"preview":prop.preview,"col":col.value,"row":row.value,"colgap":colgap.value,"rowgap":rowgap.value,"domArr":domArray.value,"layoutType":prop.layoutType,"onAddChild":gridArea=>{if(prop.isEditor){domArray.value.push(gridArea);}},"onAddCard":e=>{ctx.emit("addCard",componentInfo=>{return new Promise((res,rej)=>{if(!componentInfo){rej({type:"err",msg:"组件信息不能为空,为卡片添加组件失败。"});}else {try{domArray.value[e].componentInfo=componentInfo;res({type:"success",msg:"组件添加成功"});}catch(error){rej({type:"err",msg:"未知错误,为卡片添加组件失败。"});}}});});},"onRemove":e=>{domArray.value.splice(e,1);}},null)]);}});const tabsList=[{name:"当日",id:"day"},{name:"当月",id:"month"}];/**
|
|
1093
1086
|
* 生产统计
|
|
1094
1087
|
*/defineComponent({name:"productionStatistics",cname:"生产统计",// 卡片名称
|
|
1095
1088
|
developer:"前端开发组",// 开发者名称
|
|
1096
1089
|
equipment:"PC",// 所属设备 PC:电脑 PHONE:手机 PAD:平板
|
|
1097
1090
|
props:{prefix:String,// 接口前缀
|
|
1098
1091
|
serverName:String,// 接口文件名
|
|
1099
|
-
timeout:Number
|
|
1100
|
-
},setup(){const form=reactive({systemYieldData:[],coalRankYieldData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionStatistics"});form.systemYieldData=data.systemYieldData;form.coalRankYieldData=data.coalRankYieldData;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"production-statistics"},[createVNode(SystemYield,{"data":form.systemYieldData},null),createVNode(CoalRankYield,{"data":form.coalRankYieldData},null)]);}});const mock={systemYieldData:[{name:"东区1#","value|0-20000":1},{name:"东区1#","percent|0-100":1,type:"产率"},{name:"东区2#","value|0-20000":1},{name:"东区2#","percent|0-100":1,type:"产率"},{name:"西区1#","value|0-20000":1},{name:"西区1#","percent|0-100":1,type:"产率"},{name:"西区2#","value|0-20000":1},{name:"西区2#","percent|0-100":1,type:"产率"},{name:"西区3#","value|0-20000":1},{name:"西区3#","percent|0-100":1,type:"产率"}],coalRankYieldData:[{name:"肥","value|1000-20000":1},{name:"焦","value|1000-20000":1},{name:"1/3焦","value|1000-20000":1},{name:"中","value|1000-20000":1},{name:"煤泥","value|1000-20000":1},{name:"矸石","value|1000-20000":1}]};var mockData={storageInfo:mock$
|
|
1092
|
+
timeout:Number,// 接口请求超时时长
|
|
1093
|
+
tabId:String},setup(_props,_ctx){const form=reactive({systemYieldData:[],coalRankYieldData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionStatistics"});form.systemYieldData=data.systemYieldData;form.coalRankYieldData=data.coalRankYieldData;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);onMounted(()=>{_ctx.emit("getTabs",tabsList);});return ()=>createVNode("div",{"class":"production-statistics"},[createVNode(SystemYield,{"data":form.systemYieldData[_props.tabId||""]},null),createVNode(CoalRankYield,{"data":form.coalRankYieldData[_props.tabId||""]},null)]);}});const mock={systemYieldData:{day:[{name:"东区1#","value|0-20000":1},{name:"东区1#","percent|0-100":1,type:"产率"},{name:"东区2#","value|0-20000":1},{name:"东区2#","percent|0-100":1,type:"产率"},{name:"西区1#","value|0-20000":1},{name:"西区1#","percent|0-100":1,type:"产率"},{name:"西区2#","value|0-20000":1},{name:"西区2#","percent|0-100":1,type:"产率"},{name:"西区3#","value|0-20000":1},{name:"西区3#","percent|0-100":1,type:"产率"}],month:[{name:"东区1#","value|0-20000":1},{name:"东区1#","percent|0-100":1,type:"产率"},{name:"东区2#","value|0-20000":1},{name:"东区2#","percent|0-100":1,type:"产率"},{name:"西区1#","value|0-20000":1},{name:"西区1#","percent|0-100":1,type:"产率"},{name:"西区2#","value|0-20000":1},{name:"西区2#","percent|0-100":1,type:"产率"},{name:"西区3#","value|0-20000":1},{name:"西区3#","percent|0-100":1,type:"产率"}]},coalRankYieldData:{day:[{name:"肥","value|1000-20000":1},{name:"焦","value|1000-20000":1},{name:"1/3焦","value|1000-20000":1},{name:"中","value|1000-20000":1},{name:"煤泥","value|1000-20000":1},{name:"矸石","value|1000-20000":1}],month:[{name:"肥","value|1000-20000":1},{name:"焦","value|1000-20000":1},{name:"1/3焦","value|1000-20000":1},{name:"中","value|1000-20000":1},{name:"煤泥","value|1000-20000":1},{name:"矸石","value|1000-20000":1}]}};var mockData={storageInfo:mock$f,remoteSwitchhouse:mock$A,substation:mock$z,electricMonitor:mock$o,rawCoalSendIn2:mock$9,productionPlan2:mock$g,productionStatistics:mock,mechineTimeDayStatistics:mock$8,drySeparationPlant:mock$6,luLingDayStatistics:mock$5,humanResources:mock$4,energyConsumptionInfo:mock$3,logisticsInfo:mock$m,commodityConsume:mock$l,deviceOverview:mock$2,overhaulPlan:mock$7,smartInspection:mock$p,remoteElectricity:mock$w,alarmFaultDanger:mock$n,productionPlan:mock$k,washingRawCoalQuantity:mock$j,washingSystemHandleQuantity:mock$s,systemRunStatus:mock$r,realTimeAshWater:mock$b,consumeAnalysis:mock$a,alarmInfo:mock$y,keyEquipmentTesting:mock$u,opsInfo:mock$t,hiddenTrouble:mock$x,faultJudgment:mock$v,rawCoalSendIn:mock$i,warehouseStorage:mock$h,sendInOutCoalList:mock$q,outTransportStatistics:mock$c,videos:mock$1,storageDia:mock$d,storageDiaSimple:mock$e};const cardList=[];const coms=[];const createComp=()=>{coms.push(installCom(Layout,"layout"));coms.push(installCom(CardBox,"box"));coms.push(installCom(layoutEditor,"layout-editor"));for(let i of cards){const com=installCom(i,i.name);coms.push(com);cardList.push({name:i.name,cname:i.cname,developer:i.developer,equipment:i.equipment,version: version$1});}};createComp();var index$1={install(app){for(let i of coms){app.use(i);}},cards:cardList,mockData:mockData,version: version$1};
|
|
1101
1094
|
|
|
1102
1095
|
var version = "0.0.17";
|
|
1103
1096
|
|
|
@@ -1236,7 +1229,7 @@ const getInstance = opt => {
|
|
|
1236
1229
|
const msg = res.data?.msg ?? res.data?.message ?? "请求失败";
|
|
1237
1230
|
const noAlert = res.config.customData?.noAlert;
|
|
1238
1231
|
if (!noAlert) {
|
|
1239
|
-
message.error(msg);
|
|
1232
|
+
message.error(msg, msg.length > 10 ? 10 : 3);
|
|
1240
1233
|
}
|
|
1241
1234
|
return Promise.reject(resData);
|
|
1242
1235
|
}, err => {
|
|
@@ -9454,7 +9447,7 @@ const UpdateUserDialog = defineComponent({
|
|
|
9454
9447
|
"name": "passWord",
|
|
9455
9448
|
"label": "新建密码",
|
|
9456
9449
|
"required": true,
|
|
9457
|
-
"help": "
|
|
9450
|
+
"help": "密码由字母、数字、特殊字符组成,字母区分大小写,长度为8-14个字符",
|
|
9458
9451
|
"rules": [{
|
|
9459
9452
|
validator: validatePassword,
|
|
9460
9453
|
trigger: "blur"
|
|
@@ -10090,31 +10083,31 @@ const UpdateRoleDialog = defineComponent({
|
|
|
10090
10083
|
});
|
|
10091
10084
|
|
|
10092
10085
|
const columns$e = [{
|
|
10093
|
-
title:
|
|
10094
|
-
dataIndex:
|
|
10086
|
+
title: "角色名称",
|
|
10087
|
+
dataIndex: "roleTypeName"
|
|
10095
10088
|
}, {
|
|
10096
|
-
title:
|
|
10097
|
-
dataIndex:
|
|
10089
|
+
title: "角色人数",
|
|
10090
|
+
dataIndex: "userCount"
|
|
10098
10091
|
}, {
|
|
10099
|
-
title:
|
|
10100
|
-
dataIndex:
|
|
10092
|
+
title: "角色描述",
|
|
10093
|
+
dataIndex: "roleDesc"
|
|
10101
10094
|
}, {
|
|
10102
|
-
title:
|
|
10103
|
-
dataIndex:
|
|
10095
|
+
title: "创建人",
|
|
10096
|
+
dataIndex: "createdPerson"
|
|
10104
10097
|
}, {
|
|
10105
|
-
title:
|
|
10106
|
-
dataIndex:
|
|
10098
|
+
title: "创建时间",
|
|
10099
|
+
dataIndex: "createdTimeStr"
|
|
10107
10100
|
}, {
|
|
10108
|
-
title:
|
|
10109
|
-
key:
|
|
10101
|
+
title: "启用状态",
|
|
10102
|
+
key: "status",
|
|
10110
10103
|
slots: {
|
|
10111
|
-
customRender:
|
|
10104
|
+
customRender: "status"
|
|
10112
10105
|
}
|
|
10113
10106
|
}, {
|
|
10114
|
-
title:
|
|
10115
|
-
key:
|
|
10107
|
+
title: "操作",
|
|
10108
|
+
key: "operaton",
|
|
10116
10109
|
slots: {
|
|
10117
|
-
customRender:
|
|
10110
|
+
customRender: "operation"
|
|
10118
10111
|
},
|
|
10119
10112
|
width: 200
|
|
10120
10113
|
}];
|
|
@@ -10142,9 +10135,9 @@ const RoleManager = defineComponent({
|
|
|
10142
10135
|
const urlMap = {
|
|
10143
10136
|
...props.url
|
|
10144
10137
|
};
|
|
10145
|
-
provide(
|
|
10138
|
+
provide("urlMap", urlMap);
|
|
10146
10139
|
const filter = ref({
|
|
10147
|
-
keyword:
|
|
10140
|
+
keyword: ""
|
|
10148
10141
|
});
|
|
10149
10142
|
const {
|
|
10150
10143
|
isLoading,
|
|
@@ -10159,19 +10152,20 @@ const RoleManager = defineComponent({
|
|
|
10159
10152
|
keyword: filter.value.keyword,
|
|
10160
10153
|
pageNum: currPage.value,
|
|
10161
10154
|
pageSize: pageSize.value
|
|
10162
|
-
}),
|
|
10155
|
+
}), "roleList");
|
|
10163
10156
|
refresh();
|
|
10164
10157
|
/* 控制启用 */
|
|
10165
10158
|
const handleSwitchEnable = async (status, record) => {
|
|
10159
|
+
const checkText = status ? "启用" : "停用";
|
|
10166
10160
|
Modal.confirm({
|
|
10167
|
-
title:
|
|
10168
|
-
content: `是否${
|
|
10161
|
+
title: "提示",
|
|
10162
|
+
content: `是否${checkText}角色“${record.roleTypeName}”?`,
|
|
10169
10163
|
async onOk() {
|
|
10170
10164
|
await api$k.switchRoleEnableStatus(urlMap.switchStatus)({
|
|
10171
10165
|
roleTypeId: record.roleTypeId,
|
|
10172
10166
|
enable: Number(status)
|
|
10173
10167
|
});
|
|
10174
|
-
message.success(`${
|
|
10168
|
+
message.success(`${checkText}成功`);
|
|
10175
10169
|
refresh();
|
|
10176
10170
|
}
|
|
10177
10171
|
});
|
|
@@ -10201,7 +10195,7 @@ const RoleManager = defineComponent({
|
|
|
10201
10195
|
});
|
|
10202
10196
|
} else {
|
|
10203
10197
|
await api$k.deleteRoleById(urlMap.delete)(record.roleTypeId);
|
|
10204
|
-
message.success(
|
|
10198
|
+
message.success("删除成功");
|
|
10205
10199
|
refresh();
|
|
10206
10200
|
}
|
|
10207
10201
|
};
|
|
@@ -10225,7 +10219,7 @@ const RoleManager = defineComponent({
|
|
|
10225
10219
|
default: () => [createVNode(resolveComponent("a-input"), {
|
|
10226
10220
|
"placeholder": "请输入角色名称",
|
|
10227
10221
|
"allowClear": true,
|
|
10228
|
-
|
|
10222
|
+
"value": filter.value.keyword,
|
|
10229
10223
|
"onUpdate:value": $event => filter.value.keyword = $event
|
|
10230
10224
|
}, null)]
|
|
10231
10225
|
}), createVNode(resolveComponent("a-button"), {
|
|
@@ -10248,8 +10242,8 @@ const RoleManager = defineComponent({
|
|
|
10248
10242
|
showSizeChanger: true,
|
|
10249
10243
|
showQuickJumper: true,
|
|
10250
10244
|
showTotal: total => `共${total}条`,
|
|
10251
|
-
|
|
10252
|
-
|
|
10245
|
+
"onUpdate:current": handlePageChange,
|
|
10246
|
+
"onUpdate:pageSize": hanldePageSizeChange,
|
|
10253
10247
|
total: total.value
|
|
10254
10248
|
},
|
|
10255
10249
|
"loading": isLoading.value,
|
|
@@ -10293,24 +10287,24 @@ const RoleManager = defineComponent({
|
|
|
10293
10287
|
})
|
|
10294
10288
|
}), createVNode(UpdateRoleDialog, {
|
|
10295
10289
|
"mode": "add",
|
|
10296
|
-
|
|
10290
|
+
"visible": isAddDialogShow.value,
|
|
10297
10291
|
"onUpdate:visible": $event => isAddDialogShow.value = $event,
|
|
10298
10292
|
"onRefresh": refresh
|
|
10299
10293
|
}, null), createVNode(UpdateRoleDialog, {
|
|
10300
10294
|
"mode": "edit",
|
|
10301
|
-
|
|
10295
|
+
"visible": isEditDialogShow.value,
|
|
10302
10296
|
"onUpdate:visible": $event => isEditDialogShow.value = $event,
|
|
10303
10297
|
"record": editRoleRecord.value,
|
|
10304
10298
|
"onRefresh": refresh
|
|
10305
10299
|
}, null), createVNode(UpdateRoleDialog, {
|
|
10306
10300
|
"mode": "view",
|
|
10307
|
-
|
|
10301
|
+
"visible": isViewDialogShow.value,
|
|
10308
10302
|
"onUpdate:visible": $event => isViewDialogShow.value = $event,
|
|
10309
10303
|
"record": viewRoleRecord.value
|
|
10310
10304
|
}, null)]);
|
|
10311
10305
|
}
|
|
10312
10306
|
});
|
|
10313
|
-
var RoleManager$1 = utils.installComponent(RoleManager,
|
|
10307
|
+
var RoleManager$1 = utils.installComponent(RoleManager, "role-manager");
|
|
10314
10308
|
|
|
10315
10309
|
/*
|
|
10316
10310
|
* @Abstract: 权限管理-菜单管理
|
|
@@ -10710,7 +10704,7 @@ const CommonTree$1 = defineComponent({
|
|
|
10710
10704
|
"style": {
|
|
10711
10705
|
marginBottom: "16px"
|
|
10712
10706
|
},
|
|
10713
|
-
"placeholder": "
|
|
10707
|
+
"placeholder": "请输入关键字",
|
|
10714
10708
|
"allowClear": true,
|
|
10715
10709
|
"suffix": createVNode(SearchOutlined, null, null),
|
|
10716
10710
|
"value": searchText.value,
|
|
@@ -10803,7 +10797,7 @@ const CommonTree$1 = defineComponent({
|
|
|
10803
10797
|
handleCopy(dataRef);
|
|
10804
10798
|
}
|
|
10805
10799
|
}, null), createVNode(EditOutlined, {
|
|
10806
|
-
"title": "
|
|
10800
|
+
"title": "编辑",
|
|
10807
10801
|
"onClick": e => {
|
|
10808
10802
|
e.stopPropagation();
|
|
10809
10803
|
handleEdit(dataRef);
|
|
@@ -11898,34 +11892,34 @@ const UpdatePostDialog$1 = defineComponent({
|
|
|
11898
11892
|
});
|
|
11899
11893
|
|
|
11900
11894
|
const column$3 = [{
|
|
11901
|
-
title:
|
|
11902
|
-
dataIndex:
|
|
11895
|
+
title: "岗位名称",
|
|
11896
|
+
dataIndex: "name"
|
|
11903
11897
|
}, {
|
|
11904
|
-
title:
|
|
11905
|
-
dataIndex:
|
|
11898
|
+
title: "所属部门",
|
|
11899
|
+
dataIndex: "depName"
|
|
11906
11900
|
}, {
|
|
11907
|
-
title:
|
|
11908
|
-
dataIndex:
|
|
11901
|
+
title: "使用人数",
|
|
11902
|
+
dataIndex: "employeeCount"
|
|
11909
11903
|
}, {
|
|
11910
|
-
title:
|
|
11911
|
-
dataIndex:
|
|
11904
|
+
title: "岗位描述",
|
|
11905
|
+
dataIndex: "remark"
|
|
11912
11906
|
}, {
|
|
11913
|
-
title:
|
|
11914
|
-
dataIndex:
|
|
11907
|
+
title: "创建人",
|
|
11908
|
+
dataIndex: "createUser"
|
|
11915
11909
|
}, {
|
|
11916
|
-
title:
|
|
11917
|
-
dataIndex:
|
|
11910
|
+
title: "创建时间",
|
|
11911
|
+
dataIndex: "createDt"
|
|
11918
11912
|
}, {
|
|
11919
|
-
title:
|
|
11920
|
-
key:
|
|
11913
|
+
title: "启用状态",
|
|
11914
|
+
key: "valid",
|
|
11921
11915
|
slots: {
|
|
11922
|
-
customRender:
|
|
11916
|
+
customRender: "valid"
|
|
11923
11917
|
}
|
|
11924
11918
|
}, {
|
|
11925
|
-
title:
|
|
11926
|
-
key:
|
|
11919
|
+
title: "操作",
|
|
11920
|
+
key: "action",
|
|
11927
11921
|
slots: {
|
|
11928
|
-
customRender:
|
|
11922
|
+
customRender: "action"
|
|
11929
11923
|
}
|
|
11930
11924
|
}];
|
|
11931
11925
|
const PostManager = defineComponent({
|
|
@@ -11954,9 +11948,9 @@ const PostManager = defineComponent({
|
|
|
11954
11948
|
const urlMap = {
|
|
11955
11949
|
...prop.url
|
|
11956
11950
|
};
|
|
11957
|
-
provide(
|
|
11951
|
+
provide("urlMap", urlMap);
|
|
11958
11952
|
const form = ref({
|
|
11959
|
-
keyWord:
|
|
11953
|
+
keyWord: ""
|
|
11960
11954
|
});
|
|
11961
11955
|
const {
|
|
11962
11956
|
currPage,
|
|
@@ -11971,7 +11965,7 @@ const PostManager = defineComponent({
|
|
|
11971
11965
|
pageNum: currPage.value,
|
|
11972
11966
|
pageSize: pageSize.value,
|
|
11973
11967
|
keyword: form.value.keyWord
|
|
11974
|
-
}),
|
|
11968
|
+
}), "jobPostList");
|
|
11975
11969
|
refresh();
|
|
11976
11970
|
/* 查看 */
|
|
11977
11971
|
const [isViewDialogShow, handleViewClick, viewRecord] = useModalVisibleControl();
|
|
@@ -11982,26 +11976,27 @@ const PostManager = defineComponent({
|
|
|
11982
11976
|
/* 删除 */
|
|
11983
11977
|
const handleDeleteClick = async record => {
|
|
11984
11978
|
if (record.employeeCount > 0) {
|
|
11985
|
-
return message.warning(
|
|
11979
|
+
return message.warning("该岗位已引用,请删除引用才能删除或禁用", 10);
|
|
11986
11980
|
}
|
|
11987
11981
|
await api$i.deletePostById(urlMap.delete)(record.id);
|
|
11988
|
-
message.success(
|
|
11982
|
+
message.success("删除成功");
|
|
11989
11983
|
refresh();
|
|
11990
11984
|
};
|
|
11991
11985
|
/* 切换启用状态 */
|
|
11992
11986
|
const handleSwitchEnable = async (record, checked) => {
|
|
11993
11987
|
if (!checked && record.employeeCount > 0) {
|
|
11994
|
-
return message.warning(
|
|
11988
|
+
return message.warning("该岗位已引用,请删除引用才能删除或禁用", 10);
|
|
11995
11989
|
}
|
|
11990
|
+
const checkText = checked ? "启用" : "停用";
|
|
11996
11991
|
Modal.confirm({
|
|
11997
|
-
title:
|
|
11998
|
-
content: `确定${
|
|
11992
|
+
title: "提示",
|
|
11993
|
+
content: `确定${checkText}岗位“${record.name}“吗`,
|
|
11999
11994
|
async onOk() {
|
|
12000
11995
|
await api$i.switchPostEnable(urlMap.switchStatus)({
|
|
12001
11996
|
id: record.id,
|
|
12002
11997
|
valid: checked ? 1 : 0
|
|
12003
11998
|
});
|
|
12004
|
-
message.success(`${
|
|
11999
|
+
message.success(`${checkText}成功`);
|
|
12005
12000
|
refresh();
|
|
12006
12001
|
}
|
|
12007
12002
|
});
|
|
@@ -12012,8 +12007,8 @@ const PostManager = defineComponent({
|
|
|
12012
12007
|
"class": "control"
|
|
12013
12008
|
}, [createVNode(resolveComponent("a-space"), {
|
|
12014
12009
|
"style": {
|
|
12015
|
-
width:
|
|
12016
|
-
justifyContent:
|
|
12010
|
+
width: "100%",
|
|
12011
|
+
justifyContent: "space-between"
|
|
12017
12012
|
}
|
|
12018
12013
|
}, {
|
|
12019
12014
|
default: () => [createVNode(resolveComponent("a-button"), {
|
|
@@ -12025,7 +12020,7 @@ const PostManager = defineComponent({
|
|
|
12025
12020
|
"placeholder": "请输入岗位名称",
|
|
12026
12021
|
"allowClear": true,
|
|
12027
12022
|
"suffix": createVNode(SearchOutlined, null, null),
|
|
12028
|
-
|
|
12023
|
+
"value": form.value.keyWord,
|
|
12029
12024
|
"onUpdate:value": $event => form.value.keyWord = $event,
|
|
12030
12025
|
"onChange": refresh
|
|
12031
12026
|
}, null)]
|
|
@@ -12039,8 +12034,8 @@ const PostManager = defineComponent({
|
|
|
12039
12034
|
showSizeChanger: true,
|
|
12040
12035
|
showQuickJumper: true,
|
|
12041
12036
|
showTotal: total => `共${total}条`,
|
|
12042
|
-
|
|
12043
|
-
|
|
12037
|
+
"onUpdate:current": handlePageChange,
|
|
12038
|
+
"onUpdate:pageSize": hanldePageSizeChange,
|
|
12044
12039
|
total: total.value
|
|
12045
12040
|
}
|
|
12046
12041
|
}, {
|
|
@@ -12085,25 +12080,25 @@ const PostManager = defineComponent({
|
|
|
12085
12080
|
"mode": "view",
|
|
12086
12081
|
"isCorp": prop.isCorp,
|
|
12087
12082
|
"record": viewRecord.value,
|
|
12088
|
-
|
|
12083
|
+
"visible": isViewDialogShow.value,
|
|
12089
12084
|
"onUpdate:visible": $event => isViewDialogShow.value = $event
|
|
12090
12085
|
}, null), createVNode(UpdatePostDialog$1, {
|
|
12091
12086
|
"mode": "add",
|
|
12092
12087
|
"isCorp": prop.isCorp,
|
|
12093
|
-
|
|
12088
|
+
"visible": isAddDialogShow.value,
|
|
12094
12089
|
"onUpdate:visible": $event => isAddDialogShow.value = $event,
|
|
12095
12090
|
"onRefresh": refresh
|
|
12096
12091
|
}, null), createVNode(UpdatePostDialog$1, {
|
|
12097
12092
|
"mode": "edit",
|
|
12098
12093
|
"isCorp": prop.isCorp,
|
|
12099
12094
|
"record": editRecord.value,
|
|
12100
|
-
|
|
12095
|
+
"visible": isEditDialogShow.value,
|
|
12101
12096
|
"onUpdate:visible": $event => isEditDialogShow.value = $event,
|
|
12102
12097
|
"onRefresh": refresh
|
|
12103
12098
|
}, null)]);
|
|
12104
12099
|
}
|
|
12105
12100
|
});
|
|
12106
|
-
var PostManager$1 = utils.installComponent(PostManager,
|
|
12101
|
+
var PostManager$1 = utils.installComponent(PostManager, "post-manager");
|
|
12107
12102
|
|
|
12108
12103
|
/*
|
|
12109
12104
|
* @Abstract: 系统管理-组织管理-班组管理
|
|
@@ -13793,7 +13788,7 @@ const DepTree$1 = defineComponent({
|
|
|
13793
13788
|
// 同步智信组织架构
|
|
13794
13789
|
const handleSync = async () => {
|
|
13795
13790
|
await api$g.syncOrgZhixin(urlMap.sync)();
|
|
13796
|
-
message.success("后台开始同步,请稍后刷新");
|
|
13791
|
+
message.success("后台开始同步,请稍后刷新", 10);
|
|
13797
13792
|
};
|
|
13798
13793
|
return () => createVNode("div", {
|
|
13799
13794
|
"class": "dep-tree"
|
|
@@ -14261,39 +14256,39 @@ const UpdateEmployeeDialog = defineComponent({
|
|
|
14261
14256
|
});
|
|
14262
14257
|
|
|
14263
14258
|
const columns$c = [{
|
|
14264
|
-
title:
|
|
14265
|
-
dataIndex:
|
|
14266
|
-
key:
|
|
14259
|
+
title: "姓名",
|
|
14260
|
+
dataIndex: "name",
|
|
14261
|
+
key: "name"
|
|
14267
14262
|
}, {
|
|
14268
|
-
title:
|
|
14269
|
-
dataIndex:
|
|
14270
|
-
key:
|
|
14263
|
+
title: "所属部门",
|
|
14264
|
+
dataIndex: "depName",
|
|
14265
|
+
key: "depName"
|
|
14271
14266
|
}, {
|
|
14272
|
-
title:
|
|
14273
|
-
dataIndex:
|
|
14274
|
-
key:
|
|
14267
|
+
title: "岗位名称",
|
|
14268
|
+
dataIndex: "jobPostNames",
|
|
14269
|
+
key: "jobPostNames"
|
|
14275
14270
|
}, {
|
|
14276
|
-
title:
|
|
14277
|
-
dataIndex:
|
|
14278
|
-
key:
|
|
14271
|
+
title: "直接上级",
|
|
14272
|
+
dataIndex: "bossName",
|
|
14273
|
+
key: "bossName"
|
|
14279
14274
|
}, {
|
|
14280
|
-
title:
|
|
14281
|
-
dataIndex:
|
|
14282
|
-
key:
|
|
14275
|
+
title: "电话",
|
|
14276
|
+
dataIndex: "mobile",
|
|
14277
|
+
key: "mobile"
|
|
14283
14278
|
}, {
|
|
14284
|
-
title:
|
|
14285
|
-
dataIndex:
|
|
14286
|
-
key:
|
|
14279
|
+
title: "创建人",
|
|
14280
|
+
dataIndex: "createUser",
|
|
14281
|
+
key: "createUser"
|
|
14287
14282
|
}, {
|
|
14288
|
-
title:
|
|
14289
|
-
dataIndex:
|
|
14290
|
-
key:
|
|
14283
|
+
title: "创建时间",
|
|
14284
|
+
dataIndex: "createDt",
|
|
14285
|
+
key: "createDt"
|
|
14291
14286
|
}, {
|
|
14292
|
-
title:
|
|
14293
|
-
dataIndex:
|
|
14294
|
-
key:
|
|
14287
|
+
title: "操作",
|
|
14288
|
+
dataIndex: "action",
|
|
14289
|
+
key: "action",
|
|
14295
14290
|
slots: {
|
|
14296
|
-
customRender:
|
|
14291
|
+
customRender: "action"
|
|
14297
14292
|
}
|
|
14298
14293
|
}];
|
|
14299
14294
|
const EmployeeTable = defineComponent({
|
|
@@ -14307,9 +14302,9 @@ const EmployeeTable = defineComponent({
|
|
|
14307
14302
|
}
|
|
14308
14303
|
},
|
|
14309
14304
|
setup(props) {
|
|
14310
|
-
const urlMap = inject(
|
|
14311
|
-
const keyword = ref(
|
|
14312
|
-
const isTopLevel = computed(() => `${props.depId}`.startsWith(
|
|
14305
|
+
const urlMap = inject("urlMap");
|
|
14306
|
+
const keyword = ref("");
|
|
14307
|
+
const isTopLevel = computed(() => `${props.depId}`.startsWith("sys"));
|
|
14313
14308
|
const {
|
|
14314
14309
|
isLoading,
|
|
14315
14310
|
tableList,
|
|
@@ -14333,7 +14328,7 @@ const EmployeeTable = defineComponent({
|
|
|
14333
14328
|
return Promise.resolve({
|
|
14334
14329
|
data: []
|
|
14335
14330
|
});
|
|
14336
|
-
},
|
|
14331
|
+
}, "employeeList");
|
|
14337
14332
|
/* 当前选中的部门变化 重新查询列表 */
|
|
14338
14333
|
watch(() => props.depId, val => {
|
|
14339
14334
|
if (val) {
|
|
@@ -14374,13 +14369,14 @@ const EmployeeTable = defineComponent({
|
|
|
14374
14369
|
})]
|
|
14375
14370
|
}), createVNode(resolveComponent("a-input"), {
|
|
14376
14371
|
"style": {
|
|
14377
|
-
width:
|
|
14372
|
+
width: "200px"
|
|
14378
14373
|
},
|
|
14379
14374
|
"placeholder": "请输入姓名",
|
|
14380
14375
|
"allowClear": true,
|
|
14381
|
-
|
|
14376
|
+
"value": keyword.value,
|
|
14382
14377
|
"onUpdate:value": $event => keyword.value = $event,
|
|
14383
|
-
"onInput": refresh
|
|
14378
|
+
"onInput": refresh,
|
|
14379
|
+
"suffix": createVNode(resolveComponent("search-outlined"), null, null)
|
|
14384
14380
|
}, null)]), createVNode(resolveComponent("a-table"), {
|
|
14385
14381
|
"loading": isLoading.value,
|
|
14386
14382
|
"columns": columns$c,
|
|
@@ -14391,8 +14387,8 @@ const EmployeeTable = defineComponent({
|
|
|
14391
14387
|
showSizeChanger: true,
|
|
14392
14388
|
showQuickJumper: true,
|
|
14393
14389
|
showTotal: total => `共${total}条`,
|
|
14394
|
-
|
|
14395
|
-
|
|
14390
|
+
"onUpdate:current": handlePageChange,
|
|
14391
|
+
"onUpdate:pageSize": hanldePageSizeChange,
|
|
14396
14392
|
total: total.value
|
|
14397
14393
|
}
|
|
14398
14394
|
}, {
|
|
@@ -14428,19 +14424,19 @@ const EmployeeTable = defineComponent({
|
|
|
14428
14424
|
}), createVNode(UpdateEmployeeDialog, {
|
|
14429
14425
|
"mode": "view",
|
|
14430
14426
|
"record": viewRecord.value,
|
|
14431
|
-
|
|
14427
|
+
"visible": isViewDialogShow.value,
|
|
14432
14428
|
"onUpdate:visible": $event => isViewDialogShow.value = $event
|
|
14433
14429
|
}, null), createVNode(UpdateEmployeeDialog, {
|
|
14434
14430
|
"mode": "add",
|
|
14435
14431
|
"depId": props.depId,
|
|
14436
|
-
|
|
14432
|
+
"visible": isAddDialogShow.value,
|
|
14437
14433
|
"onUpdate:visible": $event => isAddDialogShow.value = $event,
|
|
14438
14434
|
"onRefresh": refresh
|
|
14439
14435
|
}, null), createVNode(UpdateEmployeeDialog, {
|
|
14440
14436
|
"mode": "edit",
|
|
14441
14437
|
"record": editRecord.value,
|
|
14442
14438
|
"depId": props.depId,
|
|
14443
|
-
|
|
14439
|
+
"visible": isEditDialogShow.value,
|
|
14444
14440
|
"onUpdate:visible": $event => isEditDialogShow.value = $event,
|
|
14445
14441
|
"onRefresh": refresh
|
|
14446
14442
|
}, null)]);
|
|
@@ -14716,9 +14712,15 @@ const DepTree = defineComponent({
|
|
|
14716
14712
|
refresh();
|
|
14717
14713
|
};
|
|
14718
14714
|
// 同步智信组织架构
|
|
14719
|
-
const handleSync =
|
|
14720
|
-
|
|
14721
|
-
|
|
14715
|
+
const handleSync = () => {
|
|
14716
|
+
Modal.confirm({
|
|
14717
|
+
title: "提示",
|
|
14718
|
+
content: "确认同步",
|
|
14719
|
+
async onOk() {
|
|
14720
|
+
await api$g.syncOrgZhixin(urlMap.sync)();
|
|
14721
|
+
message.success("后台开始同步,请稍后刷新", 10);
|
|
14722
|
+
}
|
|
14723
|
+
});
|
|
14722
14724
|
};
|
|
14723
14725
|
return () => createVNode("div", {
|
|
14724
14726
|
"class": "dep-tree"
|
|
@@ -14803,6 +14805,7 @@ const DepManager = defineComponent({
|
|
|
14803
14805
|
if (dep) {
|
|
14804
14806
|
if (dep.isSystem) {
|
|
14805
14807
|
currDep.value = dep;
|
|
14808
|
+
parentDepName.value = "";
|
|
14806
14809
|
} else {
|
|
14807
14810
|
const {
|
|
14808
14811
|
data
|
|
@@ -14850,7 +14853,7 @@ const DepManager = defineComponent({
|
|
|
14850
14853
|
"column": 3
|
|
14851
14854
|
}, {
|
|
14852
14855
|
default: () => [createVNode(resolveComponent("a-descriptions-item"), {
|
|
14853
|
-
"label": "
|
|
14856
|
+
"label": "部门编号"
|
|
14854
14857
|
}, {
|
|
14855
14858
|
default: () => [currDep.value.code]
|
|
14856
14859
|
}), createVNode(resolveComponent("a-descriptions-item"), {
|
|
@@ -15962,12 +15965,12 @@ const Editpasswordform = defineComponent({
|
|
|
15962
15965
|
throw new Error();
|
|
15963
15966
|
}
|
|
15964
15967
|
if (value.length < 8 || value.length > 16) {
|
|
15965
|
-
message.error("长度为8-14个字符,请确认");
|
|
15968
|
+
message.error("长度为8-14个字符,请确认", 10);
|
|
15966
15969
|
throw new Error();
|
|
15967
15970
|
}
|
|
15968
15971
|
if (!formModel.value.checkPassWord) return true;
|
|
15969
15972
|
if (value !== formModel.value.checkPassWord) {
|
|
15970
|
-
message.error("
|
|
15973
|
+
message.error("两次输入的密码不一致");
|
|
15971
15974
|
throw new Error("");
|
|
15972
15975
|
}
|
|
15973
15976
|
return true;
|
|
@@ -15981,12 +15984,12 @@ const Editpasswordform = defineComponent({
|
|
|
15981
15984
|
throw new Error();
|
|
15982
15985
|
}
|
|
15983
15986
|
if (value.length < 8 || value.length > 16) {
|
|
15984
|
-
message.error("长度为8-14个字符,请确认");
|
|
15987
|
+
message.error("长度为8-14个字符,请确认", 10);
|
|
15985
15988
|
throw new Error();
|
|
15986
15989
|
}
|
|
15987
15990
|
if (!formModel.value.passWord) return true;
|
|
15988
15991
|
if (value !== formModel.value.passWord) {
|
|
15989
|
-
message.error("
|
|
15992
|
+
message.error("两次输入的密码不一致");
|
|
15990
15993
|
throw new Error();
|
|
15991
15994
|
}
|
|
15992
15995
|
return true;
|
|
@@ -16145,7 +16148,7 @@ const PersonalSetting = defineComponent({
|
|
|
16145
16148
|
},
|
|
16146
16149
|
"name": "basic",
|
|
16147
16150
|
"onSubmit": handleSubmit,
|
|
16148
|
-
"style": "min-width: 400px; width:
|
|
16151
|
+
"style": "min-width: 400px; max-width: 500px;"
|
|
16149
16152
|
}, {
|
|
16150
16153
|
default: () => [createVNode(resolveComponent("a-form-item"), {
|
|
16151
16154
|
"name": "userName",
|
|
@@ -16243,7 +16246,7 @@ const PersonalSetting = defineComponent({
|
|
|
16243
16246
|
}, {
|
|
16244
16247
|
default: () => [createVNode("div", {
|
|
16245
16248
|
"style": "padding: 0 0 10px 10px"
|
|
16246
|
-
}, [createTextVNode("\u5BC6\u7801\u7531\u5B57\u6BCD\u6570\u5B57\u7279\u6B8A\u5B57\u7B26\u7EC4\u6210\uFF0C\u5B57\u6BCD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u957F\u5EA6\u4E3A8-14\u4E2A\u5B57\u7B26")]), createVNode(Editpasswordform, {
|
|
16249
|
+
}, [createTextVNode("\u5BC6\u7801\u7531\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u7279\u6B8A\u5B57\u7B26\u7EC4\u6210\uFF0C\u5B57\u6BCD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u957F\u5EA6\u4E3A8-14\u4E2A\u5B57\u7B26")]), createVNode(Editpasswordform, {
|
|
16247
16250
|
"ref": passwordFormRef,
|
|
16248
16251
|
"form": passwordForm.value
|
|
16249
16252
|
}, null)]
|
|
@@ -16330,7 +16333,7 @@ var loginBox = defineComponent({
|
|
|
16330
16333
|
try {
|
|
16331
16334
|
res = await instance.get("auth/code/get");
|
|
16332
16335
|
} catch (error) {
|
|
16333
|
-
message.error("服务端错误,请联系管理员处理.");
|
|
16336
|
+
message.error("服务端错误,请联系管理员处理.", 10);
|
|
16334
16337
|
loginspinning.value = false;
|
|
16335
16338
|
spinning.value = false;
|
|
16336
16339
|
return;
|
|
@@ -16365,7 +16368,7 @@ var loginBox = defineComponent({
|
|
|
16365
16368
|
hkVal.value = 0;
|
|
16366
16369
|
spinning.value = true;
|
|
16367
16370
|
spinningText.value = "正在更新图片验证...";
|
|
16368
|
-
message.error("服务端错误,请联系管理员处理.");
|
|
16371
|
+
message.error("服务端错误,请联系管理员处理.", 10);
|
|
16369
16372
|
return;
|
|
16370
16373
|
}
|
|
16371
16374
|
spinning.value = false;
|
|
@@ -29637,7 +29640,7 @@ const com$q = defineComponent({
|
|
|
29637
29640
|
const showType = sortGroup.value.find(item => data.formState.splicingConfigId === item.id);
|
|
29638
29641
|
const num = showType.amount ? Number(showType.amount) : 0;
|
|
29639
29642
|
if (checkTree.value.length > num) {
|
|
29640
|
-
message.warning(`最多${num}
|
|
29643
|
+
message.warning(`最多${num}路视频,请减少相机数量或更改拼接方式`, 10);
|
|
29641
29644
|
res = false;
|
|
29642
29645
|
} else {
|
|
29643
29646
|
res = true;
|
|
@@ -39566,8 +39569,8 @@ api$9.getDetails = async roomId => {
|
|
|
39566
39569
|
/**
|
|
39567
39570
|
*设备查询接口
|
|
39568
39571
|
*/
|
|
39569
|
-
api$9.getDeviceList = async
|
|
39570
|
-
return instance$f.
|
|
39572
|
+
api$9.getDeviceList = async data => {
|
|
39573
|
+
return instance$f.post("/cabinet/device/list", data);
|
|
39571
39574
|
};
|
|
39572
39575
|
/**
|
|
39573
39576
|
*设备选中接口
|
|
@@ -39765,14 +39768,27 @@ var NewOrder = defineComponent({
|
|
|
39765
39768
|
ellipsis: true
|
|
39766
39769
|
}]
|
|
39767
39770
|
});
|
|
39771
|
+
const searchFormRef = ref();
|
|
39772
|
+
const searchForm = reactive({
|
|
39773
|
+
deviceName: "",
|
|
39774
|
+
deviceCode: "" // 设备编码
|
|
39775
|
+
});
|
|
39776
|
+
|
|
39777
|
+
const devicesLoading = ref(false);
|
|
39778
|
+
// 查询设备
|
|
39779
|
+
const searchDeviceList = async () => {
|
|
39780
|
+
devicesLoading.value = true;
|
|
39781
|
+
const res = await api$9.getDeviceList(searchForm);
|
|
39782
|
+
eqModal.dataSource = res.data.map(item => {
|
|
39783
|
+
item.loop = item.loops.join(",");
|
|
39784
|
+
return item;
|
|
39785
|
+
});
|
|
39786
|
+
devicesLoading.value = false;
|
|
39787
|
+
};
|
|
39768
39788
|
// 添加设备
|
|
39769
39789
|
const addEq = async () => {
|
|
39770
39790
|
try {
|
|
39771
|
-
|
|
39772
|
-
eqModal.dataSource = res.data.map(item => {
|
|
39773
|
-
item.loop = item.loops.join(",");
|
|
39774
|
-
return item;
|
|
39775
|
-
});
|
|
39791
|
+
searchDeviceList();
|
|
39776
39792
|
selectRows.value = [];
|
|
39777
39793
|
selectedList.value = [];
|
|
39778
39794
|
eqModal.visible = true;
|
|
@@ -40087,21 +40103,82 @@ var NewOrder = defineComponent({
|
|
|
40087
40103
|
"onCancel": cancelAddEq
|
|
40088
40104
|
}, {
|
|
40089
40105
|
default: () => [createVNode("div", {
|
|
40090
|
-
"class": "
|
|
40091
|
-
"style": "
|
|
40106
|
+
"class": "deviceModal_content flex",
|
|
40107
|
+
"style": ""
|
|
40092
40108
|
}, [createVNode("div", {
|
|
40093
|
-
"class": "left"
|
|
40109
|
+
"class": "left flex flex1"
|
|
40110
|
+
}, [createVNode(Form, {
|
|
40111
|
+
"ref": searchFormRef,
|
|
40112
|
+
"model": searchForm,
|
|
40113
|
+
"labelCol": {
|
|
40114
|
+
span: 8
|
|
40115
|
+
},
|
|
40116
|
+
"wrapperCol": {
|
|
40117
|
+
span: 16
|
|
40118
|
+
},
|
|
40119
|
+
"labelAlign": "right",
|
|
40120
|
+
"onSubmit": searchDeviceList
|
|
40121
|
+
}, {
|
|
40122
|
+
default: () => [createVNode(Row, {
|
|
40123
|
+
"gutter": 24
|
|
40124
|
+
}, {
|
|
40125
|
+
default: () => [createVNode(Col, {
|
|
40126
|
+
"span": 8
|
|
40127
|
+
}, {
|
|
40128
|
+
default: () => [createVNode(FormItem, {
|
|
40129
|
+
"label": "设备名称",
|
|
40130
|
+
"name": "deviceName"
|
|
40131
|
+
}, {
|
|
40132
|
+
default: () => [createVNode(resolveComponent("a-input"), {
|
|
40133
|
+
"value": searchForm.deviceName,
|
|
40134
|
+
"onUpdate:value": $event => searchForm.deviceName = $event,
|
|
40135
|
+
"placeholder": "请输入",
|
|
40136
|
+
"allow-clear": true
|
|
40137
|
+
}, null)]
|
|
40138
|
+
})]
|
|
40139
|
+
}), createVNode(Col, {
|
|
40140
|
+
"span": 8
|
|
40141
|
+
}, {
|
|
40142
|
+
default: () => [createVNode(FormItem, {
|
|
40143
|
+
"label": "设备编码",
|
|
40144
|
+
"name": "deviceCode"
|
|
40145
|
+
}, {
|
|
40146
|
+
default: () => [createVNode(resolveComponent("a-input"), {
|
|
40147
|
+
"value": searchForm.deviceCode,
|
|
40148
|
+
"onUpdate:value": $event => searchForm.deviceCode = $event,
|
|
40149
|
+
"placeholder": "请输入",
|
|
40150
|
+
"allow-clear": true
|
|
40151
|
+
}, null)]
|
|
40152
|
+
})]
|
|
40153
|
+
}), createVNode(Col, {
|
|
40154
|
+
"span": 8,
|
|
40155
|
+
"class": "align-r"
|
|
40156
|
+
}, {
|
|
40157
|
+
default: () => [createVNode(resolveComponent("a-space"), null, {
|
|
40158
|
+
default: () => [createVNode(resolveComponent("a-button"), {
|
|
40159
|
+
"type": "primary",
|
|
40160
|
+
"html-type": "submit"
|
|
40161
|
+
}, {
|
|
40162
|
+
default: () => [createTextVNode("\u67E5\u8BE2")]
|
|
40163
|
+
}), createVNode(resolveComponent("a-button"), {
|
|
40164
|
+
"onClick": () => {
|
|
40165
|
+
searchFormRef.value.resetFields();
|
|
40166
|
+
searchDeviceList();
|
|
40167
|
+
}
|
|
40168
|
+
}, {
|
|
40169
|
+
default: () => [createTextVNode("\u91CD\u7F6E")]
|
|
40170
|
+
})]
|
|
40171
|
+
})]
|
|
40172
|
+
})]
|
|
40173
|
+
})]
|
|
40174
|
+
}), createVNode("div", {
|
|
40175
|
+
"class": "tableBox"
|
|
40094
40176
|
}, [createVNode(Table, {
|
|
40095
40177
|
"pagination": false,
|
|
40096
40178
|
"columns": eqModal.columns,
|
|
40097
|
-
"scroll": {
|
|
40098
|
-
x: 760,
|
|
40099
|
-
y: 440
|
|
40100
|
-
},
|
|
40101
40179
|
"dataSource": eqModal.dataSource,
|
|
40102
|
-
"rowKey":
|
|
40103
|
-
|
|
40104
|
-
},
|
|
40180
|
+
"rowKey": "id",
|
|
40181
|
+
"loading": devicesLoading.value,
|
|
40105
40182
|
"rowSelection": {
|
|
40106
40183
|
onChange: onSelectEq,
|
|
40107
40184
|
selectedRowKeys: selectRows.value,
|
|
@@ -40114,7 +40191,7 @@ var NewOrder = defineComponent({
|
|
|
40114
40191
|
};
|
|
40115
40192
|
}
|
|
40116
40193
|
}
|
|
40117
|
-
}, null)]), createVNode("div", {
|
|
40194
|
+
}, null)])]), createVNode("div", {
|
|
40118
40195
|
"class": "right flex"
|
|
40119
40196
|
}, [createVNode("div", {
|
|
40120
40197
|
"class": "top flex-center"
|
|
@@ -40942,9 +41019,11 @@ var Tables = defineComponent({
|
|
|
40942
41019
|
if (nVal[0] === 0) {
|
|
40943
41020
|
state.status = 0;
|
|
40944
41021
|
}
|
|
41022
|
+
pagination.current = 1;
|
|
40945
41023
|
refresh();
|
|
40946
41024
|
});
|
|
40947
41025
|
watch(() => state.status, async (nVal, oVal) => {
|
|
41026
|
+
pagination.current = 1;
|
|
40948
41027
|
refresh();
|
|
40949
41028
|
});
|
|
40950
41029
|
const batch = ref(false);
|
|
@@ -41353,9 +41432,7 @@ var Tables = defineComponent({
|
|
|
41353
41432
|
"columns": tableConfig.columns,
|
|
41354
41433
|
"pagination": pagination,
|
|
41355
41434
|
"loading": isLoading.value,
|
|
41356
|
-
"rowKey":
|
|
41357
|
-
return record.processInstanceId;
|
|
41358
|
-
},
|
|
41435
|
+
"rowKey": "processInstanceId",
|
|
41359
41436
|
"rowSelection": batch.value ? {
|
|
41360
41437
|
onChange: onSelect,
|
|
41361
41438
|
selectedRowKeys: selectedRow.selectedRowKeys,
|
|
@@ -41870,7 +41947,10 @@ const com$d = defineComponent({
|
|
|
41870
41947
|
"allowClear": false,
|
|
41871
41948
|
"format": Format$4,
|
|
41872
41949
|
"valueFormat": Format$4,
|
|
41873
|
-
"onChange":
|
|
41950
|
+
"onChange": () => {
|
|
41951
|
+
pagination.current = 1;
|
|
41952
|
+
refresh();
|
|
41953
|
+
}
|
|
41874
41954
|
}, null)]
|
|
41875
41955
|
})]
|
|
41876
41956
|
})]), createVNode("div", {
|
|
@@ -41883,9 +41963,7 @@ const com$d = defineComponent({
|
|
|
41883
41963
|
"columns": tableConfig.columns,
|
|
41884
41964
|
"pagination": pagination,
|
|
41885
41965
|
"loading": isLoading.value,
|
|
41886
|
-
"rowKey":
|
|
41887
|
-
return record.processInstanceId;
|
|
41888
|
-
},
|
|
41966
|
+
"rowKey": "processInstanceId",
|
|
41889
41967
|
"rowSelection": {
|
|
41890
41968
|
onChange: onSelect,
|
|
41891
41969
|
selectedRowKeys: selectedRow.selectedRowKeys
|
|
@@ -56985,31 +57063,31 @@ var FileManager$1 = defineComponent({
|
|
|
56985
57063
|
groupUuid: currentTreeNode.value.uuid,
|
|
56986
57064
|
pageNum: currPage.value,
|
|
56987
57065
|
pageSize: pageSize.value
|
|
56988
|
-
}),
|
|
57066
|
+
}), "list", "total");
|
|
56989
57067
|
const tableConfig = reactive({
|
|
56990
57068
|
dataSource: [{}],
|
|
56991
57069
|
columns: [{
|
|
56992
|
-
dataIndex:
|
|
56993
|
-
title:
|
|
56994
|
-
key:
|
|
57070
|
+
dataIndex: "fullName",
|
|
57071
|
+
title: "名称",
|
|
57072
|
+
key: "fullName"
|
|
56995
57073
|
}, {
|
|
56996
|
-
dataIndex:
|
|
56997
|
-
title:
|
|
57074
|
+
dataIndex: "createUser",
|
|
57075
|
+
title: "创建人",
|
|
56998
57076
|
width: 150
|
|
56999
57077
|
}, {
|
|
57000
|
-
dataIndex:
|
|
57001
|
-
title:
|
|
57002
|
-
key:
|
|
57078
|
+
dataIndex: "updataTime",
|
|
57079
|
+
title: "创建时间",
|
|
57080
|
+
key: "updataTime",
|
|
57003
57081
|
width: 150
|
|
57004
57082
|
}, {
|
|
57005
|
-
title:
|
|
57006
|
-
key:
|
|
57007
|
-
fixed:
|
|
57083
|
+
title: "操作",
|
|
57084
|
+
key: "operation",
|
|
57085
|
+
fixed: "right",
|
|
57008
57086
|
width: 260
|
|
57009
57087
|
}]
|
|
57010
57088
|
});
|
|
57011
57089
|
const collapsed = ref(false);
|
|
57012
|
-
const search = ref(
|
|
57090
|
+
const search = ref("");
|
|
57013
57091
|
const treeData = ref([]);
|
|
57014
57092
|
const currentTreeNode = ref(null);
|
|
57015
57093
|
const familyTreeList = computed(() => {
|
|
@@ -57024,12 +57102,12 @@ var FileManager$1 = defineComponent({
|
|
|
57024
57102
|
// e: { selected: bool; selectedNodes; node; event }
|
|
57025
57103
|
// console.log(selectedKey, e);
|
|
57026
57104
|
if (selectedKey.length > 0) {
|
|
57027
|
-
if (e.node.type ===
|
|
57105
|
+
if (e.node.type === "group") {
|
|
57028
57106
|
selectedKeys.value = selectedKey;
|
|
57029
57107
|
currentTreeNode.value = e.node;
|
|
57030
57108
|
refresh();
|
|
57031
57109
|
} else {
|
|
57032
|
-
message.warning(
|
|
57110
|
+
message.warning("请选中文件夹!");
|
|
57033
57111
|
}
|
|
57034
57112
|
}
|
|
57035
57113
|
};
|
|
@@ -57102,9 +57180,9 @@ var FileManager$1 = defineComponent({
|
|
|
57102
57180
|
};
|
|
57103
57181
|
// 下载
|
|
57104
57182
|
const toDownload = async (type, node) => {
|
|
57105
|
-
let a = document.createElement(
|
|
57106
|
-
a.setAttribute(
|
|
57107
|
-
if (type ===
|
|
57183
|
+
let a = document.createElement("a");
|
|
57184
|
+
a.setAttribute("target", "_blank");
|
|
57185
|
+
if (type === "table" || type === "tree" && node.type === "file") {
|
|
57108
57186
|
a.href = `/api/document/v1/file/downOneFile?uuid=${node.uuid}`;
|
|
57109
57187
|
} else {
|
|
57110
57188
|
// 下载文件夹下文件
|
|
@@ -57130,15 +57208,15 @@ var FileManager$1 = defineComponent({
|
|
|
57130
57208
|
Modal.confirm({
|
|
57131
57209
|
title: `删除 “${node.fullName}”?`,
|
|
57132
57210
|
icon: createVNode(ExclamationCircleOutlined),
|
|
57133
|
-
content:
|
|
57211
|
+
content: "确定删除吗",
|
|
57134
57212
|
async onOk() {
|
|
57135
57213
|
let oldParentNode;
|
|
57136
57214
|
if (node.uuid === currentTreeNode.value.uuid) {
|
|
57137
57215
|
oldParentNode = familyTreeList.value[familyTreeList.value.length - 2];
|
|
57138
57216
|
}
|
|
57139
57217
|
const resp = await api$4.deleteGroupByUuid(node.uuid);
|
|
57140
|
-
if (resp.message ===
|
|
57141
|
-
message.success(
|
|
57218
|
+
if (resp.message === "OK") {
|
|
57219
|
+
message.success("删除成功");
|
|
57142
57220
|
if (oldParentNode) {
|
|
57143
57221
|
currentTreeNode.value = oldParentNode;
|
|
57144
57222
|
selectedKeys.value = [oldParentNode.uuid];
|
|
@@ -57147,70 +57225,70 @@ var FileManager$1 = defineComponent({
|
|
|
57147
57225
|
}
|
|
57148
57226
|
},
|
|
57149
57227
|
onCancel() {
|
|
57150
|
-
console.log(
|
|
57228
|
+
console.log("Cancel");
|
|
57151
57229
|
}
|
|
57152
57230
|
});
|
|
57153
57231
|
};
|
|
57154
57232
|
// 删除文件
|
|
57155
57233
|
const del = async (type, node) => {
|
|
57156
57234
|
let param;
|
|
57157
|
-
if (type ===
|
|
57235
|
+
if (type === "tree") {
|
|
57158
57236
|
param = {
|
|
57159
57237
|
uuid: node.uuid,
|
|
57160
57238
|
groupUuid: node.parentUuid
|
|
57161
57239
|
};
|
|
57162
|
-
} else if (type ===
|
|
57240
|
+
} else if (type === "table") {
|
|
57163
57241
|
param = {
|
|
57164
57242
|
uuid: node.uuid,
|
|
57165
57243
|
groupUuid: currentTreeNode.value.uuid
|
|
57166
57244
|
};
|
|
57167
57245
|
}
|
|
57168
57246
|
const resp = await api$4.deleteByUuid(param);
|
|
57169
|
-
if (resp.message ===
|
|
57170
|
-
message.success(
|
|
57247
|
+
if (resp.message === "OK") {
|
|
57248
|
+
message.success("删除成功");
|
|
57171
57249
|
initTree();
|
|
57172
57250
|
}
|
|
57173
57251
|
};
|
|
57174
57252
|
const contextMenuList = ref([{
|
|
57175
57253
|
key: 1,
|
|
57176
|
-
name:
|
|
57254
|
+
name: "新建文件夹",
|
|
57177
57255
|
func: toCreateFolder,
|
|
57178
|
-
type:
|
|
57256
|
+
type: "folder"
|
|
57179
57257
|
}, {
|
|
57180
57258
|
key: 2,
|
|
57181
|
-
name:
|
|
57259
|
+
name: "上传文件",
|
|
57182
57260
|
func: toUploadFiles,
|
|
57183
|
-
type:
|
|
57261
|
+
type: "folder"
|
|
57184
57262
|
}, {
|
|
57185
57263
|
key: 3,
|
|
57186
|
-
name:
|
|
57264
|
+
name: "上传文件夹",
|
|
57187
57265
|
func: toUploadFolder,
|
|
57188
|
-
type:
|
|
57266
|
+
type: "folder"
|
|
57189
57267
|
}, {
|
|
57190
57268
|
key: 4,
|
|
57191
|
-
name:
|
|
57269
|
+
name: "下载",
|
|
57192
57270
|
func: toDownload,
|
|
57193
|
-
type:
|
|
57271
|
+
type: "folder file"
|
|
57194
57272
|
}, {
|
|
57195
57273
|
key: 5,
|
|
57196
|
-
name:
|
|
57274
|
+
name: "重命名",
|
|
57197
57275
|
func: toRename,
|
|
57198
|
-
type:
|
|
57276
|
+
type: "folder"
|
|
57199
57277
|
}, {
|
|
57200
57278
|
key: 6,
|
|
57201
|
-
name:
|
|
57279
|
+
name: "移动到文件夹",
|
|
57202
57280
|
func: toMoveToFolder,
|
|
57203
|
-
type:
|
|
57281
|
+
type: "folder file"
|
|
57204
57282
|
}, {
|
|
57205
57283
|
key: 7,
|
|
57206
|
-
name:
|
|
57284
|
+
name: "删除",
|
|
57207
57285
|
func: delFolder,
|
|
57208
|
-
type:
|
|
57286
|
+
type: "folder"
|
|
57209
57287
|
}, {
|
|
57210
57288
|
key: 8,
|
|
57211
|
-
name:
|
|
57289
|
+
name: "删除",
|
|
57212
57290
|
func: del,
|
|
57213
|
-
type:
|
|
57291
|
+
type: "file"
|
|
57214
57292
|
}]);
|
|
57215
57293
|
const clickFolder = folder => {
|
|
57216
57294
|
if (!expandedKeys.value.includes(currentTreeNode.value.uuid)) {
|
|
@@ -57221,23 +57299,23 @@ var FileManager$1 = defineComponent({
|
|
|
57221
57299
|
refresh();
|
|
57222
57300
|
};
|
|
57223
57301
|
const getIMG = suffix => {
|
|
57224
|
-
let img =
|
|
57302
|
+
let img = "UNKONW";
|
|
57225
57303
|
if (suffix) {
|
|
57226
|
-
const flieArr = suffix.split(
|
|
57304
|
+
const flieArr = suffix.split(".") || [];
|
|
57227
57305
|
if (flieArr.length > 1) {
|
|
57228
57306
|
const suf = flieArr[flieArr.length - 1].toLocaleUpperCase();
|
|
57229
|
-
if (
|
|
57230
|
-
img =
|
|
57231
|
-
} else if (
|
|
57232
|
-
img =
|
|
57233
|
-
} else if (
|
|
57234
|
-
img =
|
|
57235
|
-
} else if (
|
|
57236
|
-
img =
|
|
57237
|
-
} else if (
|
|
57238
|
-
img =
|
|
57239
|
-
} else if (
|
|
57240
|
-
img =
|
|
57307
|
+
if ("DOC、DOCX".includes(suf)) {
|
|
57308
|
+
img = "WORD";
|
|
57309
|
+
} else if ("XLS、XLSX".includes(suf)) {
|
|
57310
|
+
img = "EXCEL";
|
|
57311
|
+
} else if ("BMP、JPG、JPEG、PNG、GIF".includes(suf)) {
|
|
57312
|
+
img = "IMG";
|
|
57313
|
+
} else if ("PDF".includes(suf)) {
|
|
57314
|
+
img = "PDF";
|
|
57315
|
+
} else if ("PPT、PPTX".includes(suf)) {
|
|
57316
|
+
img = "PPT";
|
|
57317
|
+
} else if ("ZIP、RAR".includes(suf)) {
|
|
57318
|
+
img = "ZIP";
|
|
57241
57319
|
}
|
|
57242
57320
|
}
|
|
57243
57321
|
}
|
|
@@ -57253,9 +57331,9 @@ var FileManager$1 = defineComponent({
|
|
|
57253
57331
|
"class": "layout"
|
|
57254
57332
|
}, {
|
|
57255
57333
|
default: () => [createVNode(resolveComponent("a-layout-sider"), {
|
|
57256
|
-
|
|
57334
|
+
"collapsed": collapsed.value,
|
|
57257
57335
|
"onUpdate:collapsed": $event => collapsed.value = $event,
|
|
57258
|
-
"class": [
|
|
57336
|
+
"class": ["layout-sider flex", !collapsed.value && "show"],
|
|
57259
57337
|
"width": "220",
|
|
57260
57338
|
"theme": "light",
|
|
57261
57339
|
"breakpoint": "lg",
|
|
@@ -57263,14 +57341,14 @@ var FileManager$1 = defineComponent({
|
|
|
57263
57341
|
"trigger": null
|
|
57264
57342
|
}, {
|
|
57265
57343
|
default: () => [createVNode(resolveComponent("a-input-search"), {
|
|
57266
|
-
|
|
57344
|
+
"value": search.value,
|
|
57267
57345
|
"onUpdate:value": $event => search.value = $event,
|
|
57268
57346
|
"placeholder": "请输入搜索内容",
|
|
57269
57347
|
"onSearch": initTree,
|
|
57270
57348
|
"class": "search",
|
|
57271
57349
|
"allow-clear": true
|
|
57272
57350
|
}, null), treeData.value.length > 0 && createVNode(resolveComponent("a-tree"), {
|
|
57273
|
-
|
|
57351
|
+
"expandedKeys": expandedKeys.value,
|
|
57274
57352
|
"onUpdate:expandedKeys": $event => expandedKeys.value = $event,
|
|
57275
57353
|
"class": "siderTree",
|
|
57276
57354
|
"treeData": treeData.value,
|
|
@@ -57278,9 +57356,9 @@ var FileManager$1 = defineComponent({
|
|
|
57278
57356
|
"show-icon": true,
|
|
57279
57357
|
"defaultExpandAll": false,
|
|
57280
57358
|
"fieldNames": {
|
|
57281
|
-
children:
|
|
57282
|
-
title:
|
|
57283
|
-
key:
|
|
57359
|
+
children: "children",
|
|
57360
|
+
title: "name",
|
|
57361
|
+
key: "uuid"
|
|
57284
57362
|
},
|
|
57285
57363
|
"onSelect": selectTree
|
|
57286
57364
|
}, {
|
|
@@ -57330,28 +57408,28 @@ var FileManager$1 = defineComponent({
|
|
|
57330
57408
|
"class": "treeName flex-center"
|
|
57331
57409
|
}, [createVNode("div", {
|
|
57332
57410
|
"class": "left flex-center"
|
|
57333
|
-
}, [type ===
|
|
57334
|
-
"src":
|
|
57411
|
+
}, [type === "group" ? createVNode("img", {
|
|
57412
|
+
"src": "/micro-assets/inl/fileManager/FOLDER.png"
|
|
57335
57413
|
}, null) : getIMG(suffix), createVNode("div", {
|
|
57336
57414
|
"innerHTML": name
|
|
57337
57415
|
}, null)]), createVNode(resolveComponent("a-dropdown"), {
|
|
57338
|
-
"trigger": [
|
|
57416
|
+
"trigger": ["click"]
|
|
57339
57417
|
}, {
|
|
57340
57418
|
default: () => [createVNode("div", {
|
|
57341
57419
|
"class": "treeDropdown",
|
|
57342
57420
|
"style": {
|
|
57343
|
-
display: selected ?
|
|
57421
|
+
display: selected ? "block" : ""
|
|
57344
57422
|
},
|
|
57345
|
-
"onClick": withModifiers(() => {}, [
|
|
57423
|
+
"onClick": withModifiers(() => {}, ["stop"])
|
|
57346
57424
|
}, [createTextVNode("\xB7 \xB7 \xB7")])],
|
|
57347
57425
|
overlay: () => {
|
|
57348
57426
|
let _slot;
|
|
57349
|
-
return createVNode(resolveComponent("a-menu"), null, _isSlot$e(_slot = contextMenuList.value.filter(contextMenu => contextMenu.type.includes(type ===
|
|
57427
|
+
return createVNode(resolveComponent("a-menu"), null, _isSlot$e(_slot = contextMenuList.value.filter(contextMenu => contextMenu.type.includes(type === "file" ? "file" : "folder") && (
|
|
57350
57428
|
// 根文件夹不能删除
|
|
57351
|
-
type ===
|
|
57429
|
+
type === "file" ? true : parentUuid === "-1" ? contextMenu.name !== "删除" : true)).map(menu => createVNode(resolveComponent("a-menu-item"), {
|
|
57352
57430
|
"key": menu.key,
|
|
57353
57431
|
"onClick": () => {
|
|
57354
|
-
menu.func(
|
|
57432
|
+
menu.func("tree", TreeProps);
|
|
57355
57433
|
}
|
|
57356
57434
|
}, {
|
|
57357
57435
|
default: () => [menu.name]
|
|
@@ -57392,7 +57470,7 @@ var FileManager$1 = defineComponent({
|
|
|
57392
57470
|
}, [createVNode(resolveComponent("a-button"), {
|
|
57393
57471
|
"type": "primary",
|
|
57394
57472
|
"onClick": () => {
|
|
57395
|
-
toUploadFiles(
|
|
57473
|
+
toUploadFiles("btn", currentTreeNode.value);
|
|
57396
57474
|
}
|
|
57397
57475
|
}, {
|
|
57398
57476
|
default: () => [createTextVNode("\u4E0A\u4F20\u6587\u4EF6")]
|
|
@@ -57400,7 +57478,7 @@ var FileManager$1 = defineComponent({
|
|
|
57400
57478
|
"type": "primary",
|
|
57401
57479
|
"ghost": true,
|
|
57402
57480
|
"onClick": () => {
|
|
57403
|
-
toUploadFolder(
|
|
57481
|
+
toUploadFolder("btn", currentTreeNode.value);
|
|
57404
57482
|
}
|
|
57405
57483
|
}, {
|
|
57406
57484
|
default: () => [createTextVNode("\u4E0A\u4F20\u6587\u4EF6\u5939")]
|
|
@@ -57408,7 +57486,7 @@ var FileManager$1 = defineComponent({
|
|
|
57408
57486
|
"type": "primary",
|
|
57409
57487
|
"ghost": true,
|
|
57410
57488
|
"onClick": () => {
|
|
57411
|
-
toCreateFolder(
|
|
57489
|
+
toCreateFolder("btn", currentTreeNode.value);
|
|
57412
57490
|
}
|
|
57413
57491
|
}, {
|
|
57414
57492
|
default: () => [createTextVNode("\u65B0\u5EFA\u6587\u4EF6\u5939")]
|
|
@@ -57418,9 +57496,9 @@ var FileManager$1 = defineComponent({
|
|
|
57418
57496
|
"class": "left flex flex1"
|
|
57419
57497
|
}, [createVNode("div", {
|
|
57420
57498
|
"class": "folderBox flex"
|
|
57421
|
-
}, [familyTreeList.value.length > 0 && familyTreeList.value[familyTreeList.value.length - 1]?.children.filter(child => child.type ===
|
|
57422
|
-
const childFileList = folder.children.filter(child => child.type ===
|
|
57423
|
-
folder.children.filter(child => child.type ===
|
|
57499
|
+
}, [familyTreeList.value.length > 0 && familyTreeList.value[familyTreeList.value.length - 1]?.children.filter(child => child.type === "group").map((folder, index) => {
|
|
57500
|
+
const childFileList = folder.children.filter(child => child.type === "file");
|
|
57501
|
+
folder.children.filter(child => child.type === "group");
|
|
57424
57502
|
return createVNode("div", {
|
|
57425
57503
|
"class": "folder flex-center",
|
|
57426
57504
|
"onClick": () => {
|
|
@@ -57429,24 +57507,24 @@ var FileManager$1 = defineComponent({
|
|
|
57429
57507
|
// }
|
|
57430
57508
|
}
|
|
57431
57509
|
}, [createVNode("img", {
|
|
57432
|
-
"src":
|
|
57510
|
+
"src": "/micro-assets/inl/fileManager/FOLDER.png"
|
|
57433
57511
|
}, null), createVNode("div", {
|
|
57434
57512
|
"class": "title"
|
|
57435
57513
|
}, [folder.fullName]), createVNode("div", {
|
|
57436
57514
|
"class": "text"
|
|
57437
57515
|
}, [childFileList.length, createTextVNode("\u4E2A\u6587\u4EF6")]), createVNode(resolveComponent("a-dropdown"), {
|
|
57438
|
-
"trigger": [
|
|
57516
|
+
"trigger": ["click"]
|
|
57439
57517
|
}, {
|
|
57440
57518
|
default: () => [createVNode("div", {
|
|
57441
57519
|
"class": "folderDropdown",
|
|
57442
|
-
"onClick": withModifiers(() => {}, [
|
|
57520
|
+
"onClick": withModifiers(() => {}, ["stop"])
|
|
57443
57521
|
}, [createTextVNode("\xB7 \xB7 \xB7")])],
|
|
57444
57522
|
overlay: () => {
|
|
57445
57523
|
let _slot3;
|
|
57446
|
-
return createVNode(resolveComponent("a-menu"), null, _isSlot$e(_slot3 = contextMenuList.value.filter(contextMenu => contextMenu.type.includes(
|
|
57524
|
+
return createVNode(resolveComponent("a-menu"), null, _isSlot$e(_slot3 = contextMenuList.value.filter(contextMenu => contextMenu.type.includes("folder")).map(menu => createVNode(resolveComponent("a-menu-item"), {
|
|
57447
57525
|
"key": menu.key,
|
|
57448
57526
|
"onClick": () => {
|
|
57449
|
-
menu.func(
|
|
57527
|
+
menu.func("folderBox", folder);
|
|
57450
57528
|
}
|
|
57451
57529
|
}, {
|
|
57452
57530
|
default: () => [menu.name]
|
|
@@ -57462,9 +57540,7 @@ var FileManager$1 = defineComponent({
|
|
|
57462
57540
|
"columns": tableConfig.columns,
|
|
57463
57541
|
"pagination": pagination,
|
|
57464
57542
|
"loading": isLoading.value,
|
|
57465
|
-
"rowKey":
|
|
57466
|
-
return record.id;
|
|
57467
|
-
},
|
|
57543
|
+
"rowKey": "id",
|
|
57468
57544
|
"class": "fileTable"
|
|
57469
57545
|
}, {
|
|
57470
57546
|
bodyCell: ({
|
|
@@ -57473,30 +57549,30 @@ var FileManager$1 = defineComponent({
|
|
|
57473
57549
|
index
|
|
57474
57550
|
}) => {
|
|
57475
57551
|
// console.log(column, record, index);
|
|
57476
|
-
if (column.key ===
|
|
57552
|
+
if (column.key === "fullName") {
|
|
57477
57553
|
return createVNode("div", {
|
|
57478
57554
|
"class": "flex tableColName"
|
|
57479
57555
|
}, [getIMG(record?.suffix), createVNode("span", null, [record.fullName])]);
|
|
57480
57556
|
}
|
|
57481
57557
|
// 创建时间
|
|
57482
|
-
if (column.key ===
|
|
57483
|
-
return createVNode("span", null, [record.updataTime && dayjs(record.updataTime).format(
|
|
57558
|
+
if (column.key === "updataTime") {
|
|
57559
|
+
return createVNode("span", null, [record.updataTime && dayjs(record.updataTime).format("YYYY-MM-DD HH:mm:ss")]);
|
|
57484
57560
|
}
|
|
57485
57561
|
// 操作
|
|
57486
|
-
if (column.key ===
|
|
57562
|
+
if (column.key === "operation") {
|
|
57487
57563
|
return createVNode("div", {
|
|
57488
57564
|
"class": "operation gap"
|
|
57489
57565
|
}, [createVNode(resolveComponent("a-button"), {
|
|
57490
57566
|
"type": "link",
|
|
57491
57567
|
"onClick": () => {
|
|
57492
|
-
toDownload(
|
|
57568
|
+
toDownload("table", record);
|
|
57493
57569
|
}
|
|
57494
57570
|
}, {
|
|
57495
57571
|
default: () => [createTextVNode("\u4E0B\u8F7D")]
|
|
57496
57572
|
}), createVNode(resolveComponent("a-button"), {
|
|
57497
57573
|
"type": "link",
|
|
57498
57574
|
"onClick": () => {
|
|
57499
|
-
toMoveToFolder(
|
|
57575
|
+
toMoveToFolder("table", {
|
|
57500
57576
|
...record,
|
|
57501
57577
|
parentUuid: currentTreeNode.value.uuid
|
|
57502
57578
|
});
|
|
@@ -57506,7 +57582,7 @@ var FileManager$1 = defineComponent({
|
|
|
57506
57582
|
}), createVNode(resolveComponent("a-popconfirm"), {
|
|
57507
57583
|
"title": "确认删除?",
|
|
57508
57584
|
"onConfirm": () => {
|
|
57509
|
-
del(
|
|
57585
|
+
del("table", record);
|
|
57510
57586
|
}
|
|
57511
57587
|
}, {
|
|
57512
57588
|
default: () => [createVNode(resolveComponent("a-button"), {
|
|
@@ -57530,12 +57606,12 @@ var FileManager$1 = defineComponent({
|
|
|
57530
57606
|
"title": currentTreeNode.value?.fullName
|
|
57531
57607
|
}, [currentTreeNode.value?.fullName])]), createVNode(EditOutlined, {
|
|
57532
57608
|
"onClick": () => {
|
|
57533
|
-
toRename(
|
|
57609
|
+
toRename("btn", currentTreeNode.value);
|
|
57534
57610
|
}
|
|
57535
57611
|
}, null)]), createVNode("div", {
|
|
57536
57612
|
"class": "imgBox flex-center"
|
|
57537
57613
|
}, [createVNode("img", {
|
|
57538
|
-
"src":
|
|
57614
|
+
"src": "/micro-assets/inl/fileManager/FOLDER.png"
|
|
57539
57615
|
}, null)]), createVNode("div", {
|
|
57540
57616
|
"class": "remakeBox"
|
|
57541
57617
|
}, [createVNode("div", {
|
|
@@ -57545,7 +57621,7 @@ var FileManager$1 = defineComponent({
|
|
|
57545
57621
|
}, [currentTreeNode.value?.remake])])])])]
|
|
57546
57622
|
})]
|
|
57547
57623
|
}), createVNode(CreateFolder, {
|
|
57548
|
-
|
|
57624
|
+
"showCreateFolder": showCreateFolder.value,
|
|
57549
57625
|
"onUpdate:showCreateFolder": $event => showCreateFolder.value = $event,
|
|
57550
57626
|
"node": callNode.value,
|
|
57551
57627
|
"onRefresh": () => {
|
|
@@ -57557,26 +57633,26 @@ var FileManager$1 = defineComponent({
|
|
|
57557
57633
|
});
|
|
57558
57634
|
}
|
|
57559
57635
|
}, null), createVNode(Rename, {
|
|
57560
|
-
|
|
57636
|
+
"showRename": showRename.value,
|
|
57561
57637
|
"onUpdate:showRename": $event => showRename.value = $event,
|
|
57562
57638
|
"node": callNode.value,
|
|
57563
57639
|
"onRefresh": () => {
|
|
57564
57640
|
initTree();
|
|
57565
57641
|
}
|
|
57566
57642
|
}, null), createVNode(MoveToFolder, {
|
|
57567
|
-
|
|
57643
|
+
"showMoveToFolder": showMoveToFolder.value,
|
|
57568
57644
|
"onUpdate:showMoveToFolder": $event => showMoveToFolder.value = $event,
|
|
57569
|
-
|
|
57645
|
+
"refreshMoveToFolder": refreshMoveToFolder.value,
|
|
57570
57646
|
"onUpdate:refreshMoveToFolder": $event => refreshMoveToFolder.value = $event,
|
|
57571
57647
|
"node": callNode.value,
|
|
57572
57648
|
"onRefresh": () => {
|
|
57573
57649
|
initTree();
|
|
57574
57650
|
},
|
|
57575
57651
|
"onCreateFolder": node => {
|
|
57576
|
-
toCreateFolder(
|
|
57652
|
+
toCreateFolder("btn", node);
|
|
57577
57653
|
}
|
|
57578
57654
|
}, null), createVNode(UploadFiles, {
|
|
57579
|
-
|
|
57655
|
+
"showUploadFiles": showUploadFiles.value,
|
|
57580
57656
|
"onUpdate:showUploadFiles": $event => showUploadFiles.value = $event,
|
|
57581
57657
|
"directory": directory.value,
|
|
57582
57658
|
"node": callNode.value,
|
|
@@ -59734,7 +59810,7 @@ const InstanceSelector = defineComponent({
|
|
|
59734
59810
|
const hasThing = canvas.value.canvas.getObjects().find(item => item.data.instanceId === instance.id);
|
|
59735
59811
|
if (hasThing) {
|
|
59736
59812
|
e.preventDefault();
|
|
59737
|
-
message.error("一个工艺流程图内不能同时拖入两个相同的设备.");
|
|
59813
|
+
message.error("一个工艺流程图内不能同时拖入两个相同的设备.", 10);
|
|
59738
59814
|
return false;
|
|
59739
59815
|
} else {
|
|
59740
59816
|
const data = {
|
|
@@ -64953,7 +65029,7 @@ const com$5 = defineComponent({
|
|
|
64953
65029
|
return;
|
|
64954
65030
|
}
|
|
64955
65031
|
if (powerPeriods[powerPeriods.length - 1].endTime === "00:00") {
|
|
64956
|
-
message.error("结束时间为00:00,不能继续添加!");
|
|
65032
|
+
message.error("结束时间为00:00,不能继续添加!", 10);
|
|
64957
65033
|
return;
|
|
64958
65034
|
}
|
|
64959
65035
|
const obj = cloneDeep(timeObj);
|
|
@@ -64971,7 +65047,7 @@ const com$5 = defineComponent({
|
|
|
64971
65047
|
endTime
|
|
64972
65048
|
} = powerPeriods[powerPeriods.length - 1];
|
|
64973
65049
|
if (endTime !== "00:00" && dayjs(endTime, "HH:mm").diff(dayjs(startTime, "HH:mm")) <= 0) {
|
|
64974
|
-
message.error("结束时间应大于起始时间!");
|
|
65050
|
+
message.error("结束时间应大于起始时间!", 10);
|
|
64975
65051
|
powerPeriods[powerPeriods.length - 1].endTime = "00:00";
|
|
64976
65052
|
}
|
|
64977
65053
|
};
|
|
@@ -65481,8 +65557,9 @@ var Plan = defineComponent({
|
|
|
65481
65557
|
},
|
|
65482
65558
|
container: {
|
|
65483
65559
|
type: String,
|
|
65484
|
-
default: "yearPCPlan"
|
|
65560
|
+
default: "yearPCPlan" // yearPCPlan monthPCPlan dayPCPlan
|
|
65485
65561
|
},
|
|
65562
|
+
|
|
65486
65563
|
readonly: {
|
|
65487
65564
|
type: Boolean,
|
|
65488
65565
|
default: true
|
|
@@ -65532,6 +65609,8 @@ var Plan = defineComponent({
|
|
|
65532
65609
|
plan.value = null;
|
|
65533
65610
|
message.error(resp.message);
|
|
65534
65611
|
}
|
|
65612
|
+
} else {
|
|
65613
|
+
plan.value = null;
|
|
65535
65614
|
}
|
|
65536
65615
|
});
|
|
65537
65616
|
const ok = async () => {
|
|
@@ -65596,9 +65675,11 @@ var Plan = defineComponent({
|
|
|
65596
65675
|
}, {
|
|
65597
65676
|
default: () => [createTextVNode("\u8FD4\u56DE")],
|
|
65598
65677
|
icon: () => createVNode(LeftOutlined, null, null)
|
|
65599
|
-
}), props.planObj
|
|
65678
|
+
}), props.planObj ? createVNode("div", {
|
|
65679
|
+
"class": "title"
|
|
65680
|
+
}, [props.planObj.title]) : props.container === "yearPCPlan" && createVNode("div", {
|
|
65600
65681
|
"class": "title"
|
|
65601
|
-
}, [
|
|
65682
|
+
}, [createTextVNode("\u65B0\u589E"), searchFormState.value.year, createTextVNode("\u5E74\u6392\u4EA7\u8BA1\u5212")]), createVNode("div", null, [!props.readonly && plan.value && createVNode(resolveComponent("a-button"), {
|
|
65602
65683
|
"type": "primary",
|
|
65603
65684
|
"onClick": ok
|
|
65604
65685
|
}, {
|
|
@@ -65650,7 +65731,7 @@ var Plan = defineComponent({
|
|
|
65650
65731
|
"class": "product"
|
|
65651
65732
|
}, [createVNode("div", {
|
|
65652
65733
|
"class": "textLine borderBottom flexC"
|
|
65653
|
-
}, [createTextVNode("\u4EA7\u54C1")]), createVNode("div", {
|
|
65734
|
+
}, [createTextVNode("\u4EA7\u54C1\u7164")]), createVNode("div", {
|
|
65654
65735
|
"class": "textLine flex"
|
|
65655
65736
|
}, [createVNode("div", {
|
|
65656
65737
|
"class": "flex1 borderRight flexC"
|
|
@@ -65677,13 +65758,13 @@ var Plan = defineComponent({
|
|
|
65677
65758
|
"class": "flex high100"
|
|
65678
65759
|
}, [createVNode("div", {
|
|
65679
65760
|
"class": "flex1 borderRight flexC"
|
|
65680
|
-
}, [props.readonly ? createVNode(resolveComponent("a-input-number"), {
|
|
65761
|
+
}, [props.readonly ? createVNode("span", null, [rawCoal.planAmount.toFixed(precision)]) : createVNode(resolveComponent("a-input-number"), {
|
|
65681
65762
|
"value": rawCoal.planAmount,
|
|
65682
65763
|
"onUpdate:value": $event => rawCoal.planAmount = $event,
|
|
65683
65764
|
"size": "small",
|
|
65684
65765
|
"controls": false,
|
|
65685
65766
|
"precision": precision
|
|
65686
|
-
}, null)
|
|
65767
|
+
}, null)]), createVNode("div", {
|
|
65687
65768
|
"class": "flex1 flexC"
|
|
65688
65769
|
}, [rawCoal.actualQuantity.toFixed(precision)])])])), createVNode("div", {
|
|
65689
65770
|
"class": "product"
|
|
@@ -65702,15 +65783,21 @@ var Plan = defineComponent({
|
|
|
65702
65783
|
"class": "textLine flex1 borderRight flexC textLeft"
|
|
65703
65784
|
}, [mainProductCoal.productCoalName]), createVNode("div", {
|
|
65704
65785
|
"class": "textLine flex1 borderRight flexC"
|
|
65705
|
-
}, [props.readonly ? createVNode(resolveComponent("a-input-number"), {
|
|
65786
|
+
}, [props.readonly ? createVNode("span", null, [mainProductCoal.planAmount]) : createVNode(resolveComponent("a-input-number"), {
|
|
65706
65787
|
"value": mainProductCoal.planAmount,
|
|
65707
65788
|
"onUpdate:value": $event => mainProductCoal.planAmount = $event,
|
|
65708
65789
|
"size": "small",
|
|
65709
65790
|
"controls": false,
|
|
65710
65791
|
"precision": precision
|
|
65711
|
-
}, null)
|
|
65792
|
+
}, null)]), createVNode("div", {
|
|
65712
65793
|
"class": "textLine flex1 flexC"
|
|
65713
|
-
}, [
|
|
65794
|
+
}, [!props.readonly && props.container === "dayPCPlan" ? createVNode(resolveComponent("a-input-number"), {
|
|
65795
|
+
"value": mainProductCoal.actualQuantity,
|
|
65796
|
+
"onUpdate:value": $event => mainProductCoal.actualQuantity = $event,
|
|
65797
|
+
"size": "small",
|
|
65798
|
+
"controls": false,
|
|
65799
|
+
"precision": precision
|
|
65800
|
+
}, null) : createVNode("span", null, [mainProductCoal.actualQuantity.toFixed(2)])])]))])]), createVNode("div", {
|
|
65714
65801
|
"class": "flex"
|
|
65715
65802
|
}, [createVNode("div", {
|
|
65716
65803
|
"class": "textLine flex1 borderRight flexC textLeft"
|
|
@@ -65725,15 +65812,21 @@ var Plan = defineComponent({
|
|
|
65725
65812
|
"class": "textLine flex1 borderRight flexC textLeft"
|
|
65726
65813
|
}, [auxiliaryCoal.productCoalName]), createVNode("div", {
|
|
65727
65814
|
"class": "textLine flex1 borderRight flexC"
|
|
65728
|
-
}, [props.readonly ? createVNode(resolveComponent("a-input-number"), {
|
|
65815
|
+
}, [props.readonly ? createVNode("span", null, [auxiliaryCoal.planAmount]) : createVNode(resolveComponent("a-input-number"), {
|
|
65729
65816
|
"value": auxiliaryCoal.planAmount,
|
|
65730
65817
|
"onUpdate:value": $event => auxiliaryCoal.planAmount = $event,
|
|
65731
65818
|
"size": "small",
|
|
65732
65819
|
"controls": false,
|
|
65733
65820
|
"precision": precision
|
|
65734
|
-
}, null)
|
|
65821
|
+
}, null)]), createVNode("div", {
|
|
65735
65822
|
"class": "textLine flex1 flexC"
|
|
65736
|
-
}, [
|
|
65823
|
+
}, [!props.readonly && props.container === "dayPCPlan" ? createVNode(resolveComponent("a-input-number"), {
|
|
65824
|
+
"value": auxiliaryCoal.actualQuantity,
|
|
65825
|
+
"onUpdate:value": $event => auxiliaryCoal.actualQuantity = $event,
|
|
65826
|
+
"size": "small",
|
|
65827
|
+
"controls": false,
|
|
65828
|
+
"precision": precision
|
|
65829
|
+
}, null) : createVNode("span", null, [auxiliaryCoal.actualQuantity.toFixed(2)])])]))])])])]), createVNode("div", {
|
|
65737
65830
|
"class": "textLine flex"
|
|
65738
65831
|
}, [createVNode("div", {
|
|
65739
65832
|
"class": "coalSeam"
|
|
@@ -65749,7 +65842,7 @@ var Plan = defineComponent({
|
|
|
65749
65842
|
"class": "flex1 textRight borderRight flexC borderColorT"
|
|
65750
65843
|
}, null), createVNode("div", {
|
|
65751
65844
|
"class": "flex1 textRight borderRight flexC"
|
|
65752
|
-
}, [createTextVNode("\u4EA7\u54C1\u603B\u91CF\uFF1A")]), createVNode("div", {
|
|
65845
|
+
}, [createTextVNode("\u4EA7\u54C1\u603B\u91CF(t)\uFF1A")]), createVNode("div", {
|
|
65753
65846
|
"class": "flex1 textRight borderRight flexC"
|
|
65754
65847
|
}, [getComputeNum(production.productCoalInfo.mainProductCoalList.reduce((pre, cur) => {
|
|
65755
65848
|
return pre + cur.planAmount;
|
|
@@ -65771,7 +65864,7 @@ var Plan = defineComponent({
|
|
|
65771
65864
|
"class": "fontWeight7"
|
|
65772
65865
|
}, [createVNode("div", {
|
|
65773
65866
|
"class": "textLine coalSeam borderBottom borderRight flexC"
|
|
65774
|
-
}, [createTextVNode("\u5546\u54C1")]), createVNode("div", {
|
|
65867
|
+
}, [createTextVNode("\u5546\u54C1\u7164")]), createVNode("div", {
|
|
65775
65868
|
"class": "flex borderBottom"
|
|
65776
65869
|
}, [createVNode("div", {
|
|
65777
65870
|
"class": "textLine flex1 borderRight flexC"
|
|
@@ -65789,21 +65882,21 @@ var Plan = defineComponent({
|
|
|
65789
65882
|
"class": "textLine flex1 borderRight flexC textLeft"
|
|
65790
65883
|
}, [commodity.commodityCoalName]), createVNode("div", {
|
|
65791
65884
|
"class": "flex1 borderRight flexC"
|
|
65792
|
-
}, [props.readonly ? createVNode(resolveComponent("a-input-number"), {
|
|
65885
|
+
}, [props.readonly ? createVNode("div", null, [commodity.railwayPlanAmount.toFixed(precision)]) : createVNode(resolveComponent("a-input-number"), {
|
|
65793
65886
|
"value": commodity.railwayPlanAmount,
|
|
65794
65887
|
"onUpdate:value": $event => commodity.railwayPlanAmount = $event,
|
|
65795
65888
|
"size": "small",
|
|
65796
65889
|
"controls": false,
|
|
65797
65890
|
"precision": precision
|
|
65798
|
-
}, null)
|
|
65891
|
+
}, null)]), "truckPlanAmount" in commodity && createVNode("div", {
|
|
65799
65892
|
"class": "flex1 borderRight flexC"
|
|
65800
|
-
}, [props.readonly ? createVNode(resolveComponent("a-input-number"), {
|
|
65893
|
+
}, [props.readonly ? createVNode("div", null, [commodity.truckPlanAmount?.toFixed(precision)]) : createVNode(resolveComponent("a-input-number"), {
|
|
65801
65894
|
"value": commodity.truckPlanAmount,
|
|
65802
65895
|
"onUpdate:value": $event => commodity.truckPlanAmount = $event,
|
|
65803
65896
|
"size": "small",
|
|
65804
65897
|
"controls": false,
|
|
65805
65898
|
"precision": precision
|
|
65806
|
-
}, null)
|
|
65899
|
+
}, null)]), createVNode("div", {
|
|
65807
65900
|
"class": "flex1 borderRight flexC"
|
|
65808
65901
|
}, [commodity.railwayActualQuantity?.toFixed(precision)]), "truckActualQuantity" in commodity && createVNode("div", {
|
|
65809
65902
|
"class": "flex1 borderRight flexC"
|
|
@@ -65811,7 +65904,7 @@ var Plan = defineComponent({
|
|
|
65811
65904
|
"class": "flex borderBottom"
|
|
65812
65905
|
}, [createVNode("div", {
|
|
65813
65906
|
"class": "textLine flex1 borderRight flexC textRight"
|
|
65814
|
-
}, [createTextVNode("\u5206\u7C7B\u603B\u91CF\uFF1A")]), createVNode("div", {
|
|
65907
|
+
}, [createTextVNode("\u5206\u7C7B\u603B\u91CF(t)\uFF1A")]), createVNode("div", {
|
|
65815
65908
|
"class": "flex1 textRight borderRight flexC"
|
|
65816
65909
|
}, [getComputeNum(plan.value.commodityList.reduce((pre, cur) => {
|
|
65817
65910
|
return pre + cur.railwayPlanAmount;
|
|
@@ -65831,7 +65924,7 @@ var Plan = defineComponent({
|
|
|
65831
65924
|
"class": "flex borderBottom"
|
|
65832
65925
|
}, [createVNode("div", {
|
|
65833
65926
|
"class": "textLine flex1 borderRight flexC textRight"
|
|
65834
|
-
}, [createTextVNode("\u5916\u8FD0\u603B\u91CF\uFF1A")]), "truckPlanAmount" in plan.value.commodityList[0] && createVNode("div", {
|
|
65927
|
+
}, [createTextVNode("\u5916\u8FD0\u603B\u91CF(t)\uFF1A")]), "truckPlanAmount" in plan.value.commodityList[0] && createVNode("div", {
|
|
65835
65928
|
"class": "flex1 textRight borderRight borderColorT flexC"
|
|
65836
65929
|
}, null), createVNode("div", {
|
|
65837
65930
|
"class": "flex1 textRight borderRight flexC"
|
|
@@ -66008,23 +66101,23 @@ const com$4 = defineComponent({
|
|
|
66008
66101
|
};
|
|
66009
66102
|
const toAdd = () => {
|
|
66010
66103
|
planObj.value = null;
|
|
66011
|
-
isReadonly.value =
|
|
66104
|
+
isReadonly.value = false;
|
|
66012
66105
|
showPlan.value = true;
|
|
66013
66106
|
};
|
|
66014
66107
|
const toDetails = record => {
|
|
66015
66108
|
planObj.value = {
|
|
66016
66109
|
...record,
|
|
66017
|
-
title: `${record.year}
|
|
66110
|
+
title: `${record.year}年排产计划`
|
|
66018
66111
|
};
|
|
66019
|
-
isReadonly.value =
|
|
66112
|
+
isReadonly.value = true;
|
|
66020
66113
|
showPlan.value = true;
|
|
66021
66114
|
};
|
|
66022
66115
|
const toEdit = record => {
|
|
66023
66116
|
planObj.value = {
|
|
66024
66117
|
...record,
|
|
66025
|
-
title: `${record.year}
|
|
66118
|
+
title: `${record.year}年排产计划`
|
|
66026
66119
|
};
|
|
66027
|
-
isReadonly.value =
|
|
66120
|
+
isReadonly.value = false;
|
|
66028
66121
|
showPlan.value = true;
|
|
66029
66122
|
};
|
|
66030
66123
|
const del = async record => {
|
|
@@ -66105,9 +66198,7 @@ const com$4 = defineComponent({
|
|
|
66105
66198
|
"class": "table flex1",
|
|
66106
66199
|
"dataSource": tableList.value.dataSource,
|
|
66107
66200
|
"columns": tableList.value.columns,
|
|
66108
|
-
"rowKey":
|
|
66109
|
-
return record.id;
|
|
66110
|
-
},
|
|
66201
|
+
"rowKey": "id",
|
|
66111
66202
|
"pagination": false
|
|
66112
66203
|
}, {
|
|
66113
66204
|
bodyCell: ({
|
|
@@ -66359,17 +66450,17 @@ const com$3 = defineComponent({
|
|
|
66359
66450
|
const toDetails = record => {
|
|
66360
66451
|
planObj.value = {
|
|
66361
66452
|
...record,
|
|
66362
|
-
title: `${dayjs(record.month).format("YYYY年MM月")}
|
|
66453
|
+
title: `${dayjs(record.month).format("YYYY年MM月")}排产计划`
|
|
66363
66454
|
};
|
|
66364
|
-
isReadonly.value =
|
|
66455
|
+
isReadonly.value = true;
|
|
66365
66456
|
showPlan.value = true;
|
|
66366
66457
|
};
|
|
66367
66458
|
const toEdit = record => {
|
|
66368
66459
|
planObj.value = {
|
|
66369
66460
|
...record,
|
|
66370
|
-
title: `${dayjs(record.month).format("YYYY年MM月")}
|
|
66461
|
+
title: `${dayjs(record.month).format("YYYY年MM月")}排产计划`
|
|
66371
66462
|
};
|
|
66372
|
-
isReadonly.value =
|
|
66463
|
+
isReadonly.value = false;
|
|
66373
66464
|
showPlan.value = true;
|
|
66374
66465
|
};
|
|
66375
66466
|
const toCreateDayPlan = async record => {
|
|
@@ -66462,9 +66553,7 @@ const com$3 = defineComponent({
|
|
|
66462
66553
|
"class": "table flex1",
|
|
66463
66554
|
"dataSource": tableList.value.dataSource,
|
|
66464
66555
|
"columns": tableList.value.columns,
|
|
66465
|
-
"rowKey":
|
|
66466
|
-
return record.id;
|
|
66467
|
-
},
|
|
66556
|
+
"rowKey": "id",
|
|
66468
66557
|
"pagination": false
|
|
66469
66558
|
}, {
|
|
66470
66559
|
bodyCell: ({
|
|
@@ -66553,17 +66642,17 @@ const com$2 = defineComponent({
|
|
|
66553
66642
|
const toDetails = record => {
|
|
66554
66643
|
planObj.value = {
|
|
66555
66644
|
...record,
|
|
66556
|
-
title: `${dayjs(record.day).format("YYYY年MM月DD日")}
|
|
66645
|
+
title: `${dayjs(record.day).format("YYYY年MM月DD日")}排产计划`
|
|
66557
66646
|
};
|
|
66558
|
-
isReadonly.value =
|
|
66647
|
+
isReadonly.value = true;
|
|
66559
66648
|
showPlan.value = true;
|
|
66560
66649
|
};
|
|
66561
66650
|
const toEdit = record => {
|
|
66562
66651
|
planObj.value = {
|
|
66563
66652
|
...record,
|
|
66564
|
-
title: `${dayjs(record.day).format("YYYY年MM月DD日")}
|
|
66653
|
+
title: `${dayjs(record.day).format("YYYY年MM月DD日")}排产计划`
|
|
66565
66654
|
};
|
|
66566
|
-
isReadonly.value =
|
|
66655
|
+
isReadonly.value = false;
|
|
66567
66656
|
showPlan.value = true;
|
|
66568
66657
|
};
|
|
66569
66658
|
return () => createVNode("div", {
|
|
@@ -66621,9 +66710,7 @@ const com$2 = defineComponent({
|
|
|
66621
66710
|
"class": "table flex1",
|
|
66622
66711
|
"dataSource": tableList.value.dataSource,
|
|
66623
66712
|
"columns": tableList.value.columns,
|
|
66624
|
-
"rowKey":
|
|
66625
|
-
return record.id;
|
|
66626
|
-
},
|
|
66713
|
+
"rowKey": "id",
|
|
66627
66714
|
"scroll": {
|
|
66628
66715
|
y: "calc(100vh - 18.5rem)"
|
|
66629
66716
|
},
|
|
@@ -66774,9 +66861,7 @@ const com$1 = defineComponent({
|
|
|
66774
66861
|
"columns": tableConfig.columns,
|
|
66775
66862
|
"pagination": pagination,
|
|
66776
66863
|
"loading": isLoading.value,
|
|
66777
|
-
"rowKey":
|
|
66778
|
-
return record.id;
|
|
66779
|
-
},
|
|
66864
|
+
"rowKey": "id",
|
|
66780
66865
|
"class": "fileTable"
|
|
66781
66866
|
}, {
|
|
66782
66867
|
bodyCell: ({
|