inl-ui 0.0.70 → 0.0.72
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 +102 -18
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/api/thingInstance.ts +3 -3
- package/src/pageComponent/views/pss/components/Info.tsx +3 -2
- package/src/pageComponent/views/pss/components/table.tsx +7 -0
- package/src/pageComponent/views/pssRecord/assets/index.less +74 -9
- package/src/pageComponent/views/pssRecord/components/Info.tsx +112 -8
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onUnmounted, createVNode, createTextVNode, reactive, watch, Fragment, resolveComponent, onBeforeUnmount, withDirectives, resolveDirective, computed, mergeProps, provide, inject, nextTick, isVNode, watchEffect, shallowRef, getCurrentInstance, onBeforeUpdate, vShow, withModifiers, h, unref, toRaw } 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, Row, Col, Table, Timeline, TimelineItem, Tabs, TabPane, RangePicker, Popover, Space, TreeSelect } from 'ant-design-vue';
|
|
4
|
+
import { Empty, message, Alert, Popconfirm, Button, Card, Modal, FormItem, SelectOption, Input, Select, Switch, InputNumber, Form, Row, Col, Table, Timeline, TimelineItem, Textarea, Tabs, TabPane, RangePicker, Popover, Space, TreeSelect } 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, FileExcelTwoTone, InboxOutlined, CaretUpOutlined, CaretRightOutlined, FullscreenExitOutlined, PlusSquareOutlined, FormOutlined, ArrowUpOutlined, ArrowDownOutlined, RightOutlined, LeftOutlined, PicLeftOutlined, InfoCircleFilled, UpOutlined, DownOutlined, MinusCircleFilled, PlusCircleFilled, ApartmentOutlined, UserOutlined, MinusSquareOutlined, CaretDownOutlined, RedoOutlined, ExclamationCircleFilled, UploadOutlined, CloseCircleFilled, ExclamationCircleOutlined, MenuUnfoldOutlined, MenuFoldOutlined, BorderOutlined, FontSizeOutlined, BranchesOutlined, createFromIconfontCN } from '@ant-design/icons-vue';
|
|
@@ -1067,7 +1067,7 @@ serverName:String,// 接口文件名
|
|
|
1067
1067
|
timeout:Number,// 接口请求超时时长
|
|
1068
1068
|
isInterval:Boolean,tabId:String},setup(_props,_ctx){const form=reactive({systemYieldData:[],coalRankYieldData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData?cardType=productionStatistics",{});form.systemYieldData=data.systemYieldData;form.coalRankYieldData=data.coalRankYieldData;};let stopInterval=useInterval$1(getData,5000,_props.isInterval);watch(()=>_props.isInterval,e=>{if(e){stopInterval=useInterval$1(getData,5000,_props.isInterval);}else {stopInterval();}},{immediate:true});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};
|
|
1069
1069
|
|
|
1070
|
-
var version = "0.0.
|
|
1070
|
+
var version = "0.0.72";
|
|
1071
1071
|
|
|
1072
1072
|
const config$1 = {
|
|
1073
1073
|
prefix: "inl"
|
|
@@ -40660,9 +40660,6 @@ var PerformOperation = defineComponent({
|
|
|
40660
40660
|
}
|
|
40661
40661
|
});
|
|
40662
40662
|
|
|
40663
|
-
const {
|
|
40664
|
-
TextArea
|
|
40665
|
-
} = Input;
|
|
40666
40663
|
const Format$7 = "YYYY-MM-DD HH:mm";
|
|
40667
40664
|
var Info$1 = defineComponent({
|
|
40668
40665
|
props: {
|
|
@@ -41025,7 +41022,7 @@ var Info$1 = defineComponent({
|
|
|
41025
41022
|
"class": "modal_content"
|
|
41026
41023
|
}, [createVNode("div", {
|
|
41027
41024
|
"class": "title"
|
|
41028
|
-
}, [createTextVNode("\u540C\u610F\u5BA1\u6279\u610F\u89C1")]), createVNode(
|
|
41025
|
+
}, [createTextVNode("\u540C\u610F\u5BA1\u6279\u610F\u89C1")]), createVNode(Textarea, {
|
|
41029
41026
|
"autoSize": {
|
|
41030
41027
|
minRows: 3,
|
|
41031
41028
|
maxRows: 5
|
|
@@ -41372,6 +41369,7 @@ var Tables = defineComponent({
|
|
|
41372
41369
|
operationState.showOpinion = false;
|
|
41373
41370
|
operationState.comment = "";
|
|
41374
41371
|
operationState.showFooter = false;
|
|
41372
|
+
operationState.showInfo = false;
|
|
41375
41373
|
refresh();
|
|
41376
41374
|
}
|
|
41377
41375
|
};
|
|
@@ -41420,6 +41418,7 @@ var Tables = defineComponent({
|
|
|
41420
41418
|
message.success(resp.message || "成功");
|
|
41421
41419
|
operationState.showPerform = false;
|
|
41422
41420
|
operationState.showFooter = false;
|
|
41421
|
+
operationState.showInfo = false;
|
|
41423
41422
|
refresh();
|
|
41424
41423
|
}
|
|
41425
41424
|
};
|
|
@@ -41439,6 +41438,7 @@ var Tables = defineComponent({
|
|
|
41439
41438
|
message.success(resp.message || "成功");
|
|
41440
41439
|
operationState.showPerform = false;
|
|
41441
41440
|
operationState.showFooter = false;
|
|
41441
|
+
operationState.showInfo = false;
|
|
41442
41442
|
refresh();
|
|
41443
41443
|
}
|
|
41444
41444
|
};
|
|
@@ -41460,6 +41460,7 @@ var Tables = defineComponent({
|
|
|
41460
41460
|
operationState.showOpinion = false;
|
|
41461
41461
|
operationState.comment = "";
|
|
41462
41462
|
operationState.showFooter = false;
|
|
41463
|
+
operationState.showInfo = false;
|
|
41463
41464
|
refresh();
|
|
41464
41465
|
}
|
|
41465
41466
|
};
|
|
@@ -41481,6 +41482,7 @@ var Tables = defineComponent({
|
|
|
41481
41482
|
operationState.showOpinion = false;
|
|
41482
41483
|
operationState.comment = "";
|
|
41483
41484
|
operationState.showFooter = false;
|
|
41485
|
+
operationState.showInfo = false;
|
|
41484
41486
|
refresh();
|
|
41485
41487
|
}
|
|
41486
41488
|
};
|
|
@@ -41900,6 +41902,34 @@ var Info = defineComponent({
|
|
|
41900
41902
|
getData();
|
|
41901
41903
|
}
|
|
41902
41904
|
});
|
|
41905
|
+
const commonTable = reactive({
|
|
41906
|
+
columns: [{
|
|
41907
|
+
title: "序号",
|
|
41908
|
+
width: "15%",
|
|
41909
|
+
key: "num"
|
|
41910
|
+
}, {
|
|
41911
|
+
dataIndex: "applyUser",
|
|
41912
|
+
title: "申请人",
|
|
41913
|
+
width: "15%"
|
|
41914
|
+
}, {
|
|
41915
|
+
title: "挂锁",
|
|
41916
|
+
width: "15%",
|
|
41917
|
+
key: "lock"
|
|
41918
|
+
}, {
|
|
41919
|
+
dataIndex: "lockNo",
|
|
41920
|
+
title: "编号",
|
|
41921
|
+
width: "15%"
|
|
41922
|
+
}, {
|
|
41923
|
+
dataIndex: "operationUser",
|
|
41924
|
+
title: "当前操作人",
|
|
41925
|
+
width: "15%",
|
|
41926
|
+
align: "center"
|
|
41927
|
+
}, {
|
|
41928
|
+
title: "当前状态",
|
|
41929
|
+
width: "15%",
|
|
41930
|
+
key: "state"
|
|
41931
|
+
}]
|
|
41932
|
+
});
|
|
41903
41933
|
const close = () => {
|
|
41904
41934
|
context.emit("update:showInfo", false);
|
|
41905
41935
|
};
|
|
@@ -42022,12 +42052,68 @@ var Info = defineComponent({
|
|
|
42022
42052
|
}, [dayjs(dataObj.value.planSupplyPowerDt).format(Format$5)])])]
|
|
42023
42053
|
})]
|
|
42024
42054
|
})]), createVNode("div", {
|
|
42025
|
-
"class": "content_title"
|
|
42026
|
-
|
|
42027
|
-
|
|
42028
|
-
|
|
42029
|
-
"
|
|
42030
|
-
}, [
|
|
42055
|
+
"class": "content_title",
|
|
42056
|
+
"style": "margin-top: 24px"
|
|
42057
|
+
}, [createTextVNode("\u63A7\u5236\u56DE\u8DEF ("), dataObj.value?.loopVOs?.length, createTextVNode(")")]), dataObj.value?.loopVOs?.map((loopVo, index) => createVNode("div", {
|
|
42058
|
+
"class": "loop",
|
|
42059
|
+
"key": index
|
|
42060
|
+
}, [createVNode("div", {
|
|
42061
|
+
"class": "every"
|
|
42062
|
+
}, [createVNode("div", {
|
|
42063
|
+
"class": "every_title"
|
|
42064
|
+
}, [loopVo.loop.name]), createVNode("div", {
|
|
42065
|
+
"class": "every_spa"
|
|
42066
|
+
}, [createTextVNode("\u4F4D\u7F6E\uFF1A")]), createVNode("div", {
|
|
42067
|
+
"class": "state flex"
|
|
42068
|
+
}, [createVNode("div", {
|
|
42069
|
+
"class": "every_state"
|
|
42070
|
+
}, [createVNode("div", {
|
|
42071
|
+
"class": "flex-center"
|
|
42072
|
+
}, [createVNode("div", {
|
|
42073
|
+
"class": ["point ", loopVo.loop.loopStatusPO.code === "0" && "gray", loopVo.loop.loopStatusPO.code === "1" && "red", (loopVo.loop.loopStatusPO.code === "2" || loopVo.loop.loopStatusPO.code === "3") && "green"]
|
|
42074
|
+
}, null), createVNode("div", {
|
|
42075
|
+
"class": "value"
|
|
42076
|
+
}, [loopVo.loop.loopStatusPO.name])]), createVNode("div", {
|
|
42077
|
+
"class": "flex-center"
|
|
42078
|
+
}, [createVNode("img", {
|
|
42079
|
+
"src": loopVo.locks.length === 0 ? "/micro-assets/inl/pss/rlock.png" : "/micro-assets/inl/pss/glock.png",
|
|
42080
|
+
"alt": "锁"
|
|
42081
|
+
}, null), createVNode("div", {
|
|
42082
|
+
"class": "num"
|
|
42083
|
+
}, [loopVo.locks.length])])])])]), createVNode("div", {
|
|
42084
|
+
"class": "cus-table"
|
|
42085
|
+
}, [createVNode(Table, {
|
|
42086
|
+
"pagination": false,
|
|
42087
|
+
"columns": commonTable.columns,
|
|
42088
|
+
"loading": false,
|
|
42089
|
+
"scroll": {
|
|
42090
|
+
y: "100%"
|
|
42091
|
+
},
|
|
42092
|
+
"dataSource": loopVo.loop.list,
|
|
42093
|
+
"style": "width: 100%"
|
|
42094
|
+
}, {
|
|
42095
|
+
bodyCell: ({
|
|
42096
|
+
column,
|
|
42097
|
+
record,
|
|
42098
|
+
index
|
|
42099
|
+
}) => {
|
|
42100
|
+
// console.log(text, column, record, index);
|
|
42101
|
+
if (column.key === "num") {
|
|
42102
|
+
return index + 1;
|
|
42103
|
+
}
|
|
42104
|
+
if (column.key === "lock") {
|
|
42105
|
+
return createVNode("img", {
|
|
42106
|
+
"src": "/micro-assets/inl/pss/glock.png",
|
|
42107
|
+
"alt": "锁"
|
|
42108
|
+
}, null);
|
|
42109
|
+
}
|
|
42110
|
+
if (column.key === "state") {
|
|
42111
|
+
return createVNode("span", {
|
|
42112
|
+
"class": "stateNode"
|
|
42113
|
+
}, [record.taskStatus]);
|
|
42114
|
+
}
|
|
42115
|
+
}
|
|
42116
|
+
})])])), createVNode("div", {
|
|
42031
42117
|
"class": "content_title"
|
|
42032
42118
|
}, [createTextVNode("\u5DE5\u5355\u6D41\u7A0B")]), createVNode("div", {
|
|
42033
42119
|
"class": "timeLine"
|
|
@@ -42310,9 +42396,6 @@ const com$d = defineComponent({
|
|
|
42310
42396
|
var PssRecord = utils.installComponent(com$d, "pss-record");
|
|
42311
42397
|
|
|
42312
42398
|
// 初始化接口配置
|
|
42313
|
-
let instance30 = getInstance({
|
|
42314
|
-
timeout: 30
|
|
42315
|
-
});
|
|
42316
42399
|
let instance60 = getInstance({
|
|
42317
42400
|
timeout: 60
|
|
42318
42401
|
});
|
|
@@ -42383,7 +42466,7 @@ const uploadCommon$1 = (data, headers) => {
|
|
|
42383
42466
|
});
|
|
42384
42467
|
};
|
|
42385
42468
|
// 导入配点Excel
|
|
42386
|
-
const importExcel$1 = (data, headers) =>
|
|
42469
|
+
const importExcel$1 = (data, headers) => instance60.post(`/thing/v1/core/excelOpt/importExcel`, data, {
|
|
42387
42470
|
headers
|
|
42388
42471
|
});
|
|
42389
42472
|
// 导出配点Excel
|
|
@@ -42396,10 +42479,11 @@ const exportExcelTemplate$1 = (data = {}) => instance60.post(`/thing/v1/core/exc
|
|
|
42396
42479
|
});
|
|
42397
42480
|
// 批量导入Excel
|
|
42398
42481
|
const importPointExcel = (data, headers) => instance$B.post(`/thing/v1/core/excelOpt/static/importExcel`, data, {
|
|
42399
|
-
headers
|
|
42482
|
+
headers,
|
|
42483
|
+
timeout: 180 * 1000
|
|
42400
42484
|
});
|
|
42401
42485
|
// 导出全部Excel
|
|
42402
|
-
const exportPointExcelTemplate = (data = {}) =>
|
|
42486
|
+
const exportPointExcelTemplate = (data = {}) => instance60.post(`/thing/v1/core/excelOpt/static/exportExcelTemplate`, data, {
|
|
42403
42487
|
responseType: "blob",
|
|
42404
42488
|
headers: {
|
|
42405
42489
|
// "Content-Disposition": "attachment",
|