inl-ui 0.0.71 → 0.0.73

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 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.71";
1070
+ var version = "0.0.72";
1071
1071
 
1072
1072
  const config$1 = {
1073
1073
  prefix: "inl"
@@ -15829,6 +15829,7 @@ const TabItem = defineComponent({
15829
15829
  },
15830
15830
  setup(props) {
15831
15831
  const urlMap = inject("urlMap");
15832
+ const readonly = inject("readonly");
15832
15833
  /* ===== 表单ref ===== */
15833
15834
  // 菜单级别form ref
15834
15835
  const groupFormRef = ref([]);
@@ -15902,7 +15903,7 @@ const TabItem = defineComponent({
15902
15903
  };
15903
15904
  return () => createVNode("div", {
15904
15905
  "class": "tab-item"
15905
- }, [createVNode("div", {
15906
+ }, [!readonly.value && createVNode("div", {
15906
15907
  "class": "operation"
15907
15908
  }, [createVNode(resolveComponent("a-space"), null, {
15908
15909
  default: () => [isEdit.value ? createVNode(Fragment, null, [createVNode(resolveComponent("a-button"), {
@@ -15977,6 +15978,10 @@ const ParamManager = defineComponent({
15977
15978
  },
15978
15979
  menu: {
15979
15980
  type: Object
15981
+ },
15982
+ readonly: {
15983
+ type: Boolean,
15984
+ default: false
15980
15985
  }
15981
15986
  },
15982
15987
  setup(props, {
@@ -15990,6 +15995,7 @@ const ParamManager = defineComponent({
15990
15995
  ...props.url
15991
15996
  };
15992
15997
  provide("urlMap", urlMap);
15998
+ provide("readonly", computed(() => props.readonly));
15993
15999
  const menus = ref([]);
15994
16000
  const currentMenu = ref(props.menu);
15995
16001
  const tabs = ref([]);
@@ -40660,9 +40666,6 @@ var PerformOperation = defineComponent({
40660
40666
  }
40661
40667
  });
40662
40668
 
40663
- const {
40664
- TextArea
40665
- } = Input;
40666
40669
  const Format$7 = "YYYY-MM-DD HH:mm";
40667
40670
  var Info$1 = defineComponent({
40668
40671
  props: {
@@ -41025,7 +41028,7 @@ var Info$1 = defineComponent({
41025
41028
  "class": "modal_content"
41026
41029
  }, [createVNode("div", {
41027
41030
  "class": "title"
41028
- }, [createTextVNode("\u540C\u610F\u5BA1\u6279\u610F\u89C1")]), createVNode(TextArea, {
41031
+ }, [createTextVNode("\u540C\u610F\u5BA1\u6279\u610F\u89C1")]), createVNode(Textarea, {
41029
41032
  "autoSize": {
41030
41033
  minRows: 3,
41031
41034
  maxRows: 5
@@ -41372,6 +41375,7 @@ var Tables = defineComponent({
41372
41375
  operationState.showOpinion = false;
41373
41376
  operationState.comment = "";
41374
41377
  operationState.showFooter = false;
41378
+ operationState.showInfo = false;
41375
41379
  refresh();
41376
41380
  }
41377
41381
  };
@@ -41420,6 +41424,7 @@ var Tables = defineComponent({
41420
41424
  message.success(resp.message || "成功");
41421
41425
  operationState.showPerform = false;
41422
41426
  operationState.showFooter = false;
41427
+ operationState.showInfo = false;
41423
41428
  refresh();
41424
41429
  }
41425
41430
  };
@@ -41439,6 +41444,7 @@ var Tables = defineComponent({
41439
41444
  message.success(resp.message || "成功");
41440
41445
  operationState.showPerform = false;
41441
41446
  operationState.showFooter = false;
41447
+ operationState.showInfo = false;
41442
41448
  refresh();
41443
41449
  }
41444
41450
  };
@@ -41460,6 +41466,7 @@ var Tables = defineComponent({
41460
41466
  operationState.showOpinion = false;
41461
41467
  operationState.comment = "";
41462
41468
  operationState.showFooter = false;
41469
+ operationState.showInfo = false;
41463
41470
  refresh();
41464
41471
  }
41465
41472
  };
@@ -41481,6 +41488,7 @@ var Tables = defineComponent({
41481
41488
  operationState.showOpinion = false;
41482
41489
  operationState.comment = "";
41483
41490
  operationState.showFooter = false;
41491
+ operationState.showInfo = false;
41484
41492
  refresh();
41485
41493
  }
41486
41494
  };
@@ -41900,6 +41908,34 @@ var Info = defineComponent({
41900
41908
  getData();
41901
41909
  }
41902
41910
  });
41911
+ const commonTable = reactive({
41912
+ columns: [{
41913
+ title: "序号",
41914
+ width: "15%",
41915
+ key: "num"
41916
+ }, {
41917
+ dataIndex: "applyUser",
41918
+ title: "申请人",
41919
+ width: "15%"
41920
+ }, {
41921
+ title: "挂锁",
41922
+ width: "15%",
41923
+ key: "lock"
41924
+ }, {
41925
+ dataIndex: "lockNo",
41926
+ title: "编号",
41927
+ width: "15%"
41928
+ }, {
41929
+ dataIndex: "operationUser",
41930
+ title: "当前操作人",
41931
+ width: "15%",
41932
+ align: "center"
41933
+ }, {
41934
+ title: "当前状态",
41935
+ width: "15%",
41936
+ key: "state"
41937
+ }]
41938
+ });
41903
41939
  const close = () => {
41904
41940
  context.emit("update:showInfo", false);
41905
41941
  };
@@ -42022,12 +42058,68 @@ var Info = defineComponent({
42022
42058
  }, [dayjs(dataObj.value.planSupplyPowerDt).format(Format$5)])])]
42023
42059
  })]
42024
42060
  })]), createVNode("div", {
42025
- "class": "content_title"
42026
- }, [createTextVNode("\u63A7\u5236\u56DE\u8DEF ("), dataObj.value?.loopVOs?.length, createTextVNode(")")]), createVNode("div", {
42027
- "class": "loopBox flex"
42028
- }, [dataObj.value?.loopVOs?.map((loopVo, index) => createVNode("div", {
42029
- "class": "loopTitle"
42030
- }, [loopVo.loop.name]))]), createVNode("div", {
42061
+ "class": "content_title",
42062
+ "style": "margin-top: 24px"
42063
+ }, [createTextVNode("\u63A7\u5236\u56DE\u8DEF ("), dataObj.value?.loopVOs?.length, createTextVNode(")")]), dataObj.value?.loopVOs?.map((loopVo, index) => createVNode("div", {
42064
+ "class": "loop",
42065
+ "key": index
42066
+ }, [createVNode("div", {
42067
+ "class": "every"
42068
+ }, [createVNode("div", {
42069
+ "class": "every_title"
42070
+ }, [loopVo.loop.name]), createVNode("div", {
42071
+ "class": "every_spa"
42072
+ }, [createTextVNode("\u4F4D\u7F6E\uFF1A")]), createVNode("div", {
42073
+ "class": "state flex"
42074
+ }, [createVNode("div", {
42075
+ "class": "every_state"
42076
+ }, [createVNode("div", {
42077
+ "class": "flex-center"
42078
+ }, [createVNode("div", {
42079
+ "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"]
42080
+ }, null), createVNode("div", {
42081
+ "class": "value"
42082
+ }, [loopVo.loop.loopStatusPO.name])]), createVNode("div", {
42083
+ "class": "flex-center"
42084
+ }, [createVNode("img", {
42085
+ "src": loopVo.locks.length === 0 ? "/micro-assets/inl/pss/rlock.png" : "/micro-assets/inl/pss/glock.png",
42086
+ "alt": "锁"
42087
+ }, null), createVNode("div", {
42088
+ "class": "num"
42089
+ }, [loopVo.locks.length])])])])]), createVNode("div", {
42090
+ "class": "cus-table"
42091
+ }, [createVNode(Table, {
42092
+ "pagination": false,
42093
+ "columns": commonTable.columns,
42094
+ "loading": false,
42095
+ "scroll": {
42096
+ y: "100%"
42097
+ },
42098
+ "dataSource": loopVo.loop.list,
42099
+ "style": "width: 100%"
42100
+ }, {
42101
+ bodyCell: ({
42102
+ column,
42103
+ record,
42104
+ index
42105
+ }) => {
42106
+ // console.log(text, column, record, index);
42107
+ if (column.key === "num") {
42108
+ return index + 1;
42109
+ }
42110
+ if (column.key === "lock") {
42111
+ return createVNode("img", {
42112
+ "src": "/micro-assets/inl/pss/glock.png",
42113
+ "alt": "锁"
42114
+ }, null);
42115
+ }
42116
+ if (column.key === "state") {
42117
+ return createVNode("span", {
42118
+ "class": "stateNode"
42119
+ }, [record.taskStatus]);
42120
+ }
42121
+ }
42122
+ })])])), createVNode("div", {
42031
42123
  "class": "content_title"
42032
42124
  }, [createTextVNode("\u5DE5\u5355\u6D41\u7A0B")]), createVNode("div", {
42033
42125
  "class": "timeLine"