inl-ui 0.0.19 → 0.0.20
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 +57 -18
- package/dist/index.js.map +1 -1
- package/dist/src/api/thingModel.d.ts +1 -0
- package/package.json +2 -2
- package/src/api/thingModel.ts +14 -1
- package/src/pageComponent/views/thingModel/index.tsx +52 -12
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, onUnmounted, createVNode, createTextVNode, reactive, watch, Fragment, resolveComponent, onBeforeUnmount, withDirectives, resolveDirective, computed, nextTick, isVNode, mergeProps, watchEffect, shallowRef,
|
|
1
|
+
import { defineComponent, ref, onMounted, onUnmounted, createVNode, createTextVNode, reactive, watch, Fragment, resolveComponent, onBeforeUnmount, withDirectives, resolveDirective, computed, provide, inject, nextTick, isVNode, mergeProps, watchEffect, shallowRef, 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
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';
|
|
@@ -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.66";/*
|
|
21
21
|
* @Abstract: 摘要
|
|
22
22
|
* @Author: wang liang
|
|
23
23
|
* @Date: 2022-03-25 10:44:08
|
|
@@ -281,11 +281,11 @@ const props$e$1={data:Array};/**
|
|
|
281
281
|
onBeforeUnmount(()=>chartIns.value?.destroy());return ()=>createVNode("div",{"class":"histogram-chart","ref":chartRef},null);}});/**
|
|
282
282
|
* 生产评价2 上方圆环进度条 下方条形图、柱状图
|
|
283
283
|
*/const ProductionPlan2=defineComponent({name:"productionPlan2",cname:"生产评价2",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number// 接口请求超时时长
|
|
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
|
|
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"});provide("diaData",diaData);const storageData=ref([{name:"原煤仓",value:"33"},{name:"产品仓",value:"334"}]);// simple or detail
|
|
285
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);// 弹窗
|
|
286
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
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([]);
|
|
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([]);const diaData=inject("diaData");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(()=>{chartInstances.value.forEach(item=>{item.chartInstance?.destroy();});stopInterval();});const renderTool=()=>{return createVNode("div",{"class":"btn blue","onClick":()=>{diaData.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"}];/**
|
|
289
289
|
* 精煤
|
|
290
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"}];/**
|
|
291
291
|
* 煤泥
|
|
@@ -1092,7 +1092,7 @@ serverName:String,// 接口文件名
|
|
|
1092
1092
|
timeout:Number,// 接口请求超时时长
|
|
1093
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};
|
|
1094
1094
|
|
|
1095
|
-
var version = "0.0.
|
|
1095
|
+
var version = "0.0.20";
|
|
1096
1096
|
|
|
1097
1097
|
const config$1 = {
|
|
1098
1098
|
prefix: "inl"
|
|
@@ -46242,7 +46242,8 @@ const uploadCommon = (data, headers) => instance$A.post(`/thing/v1/core/thing/up
|
|
|
46242
46242
|
const importExcel = data => instance$A.post(`/thing/v1/core/excelOpt/thing/importExcel`, data, {
|
|
46243
46243
|
headers: {
|
|
46244
46244
|
"Content-Type": "multipart/form-data"
|
|
46245
|
-
}
|
|
46245
|
+
},
|
|
46246
|
+
timeout: 1000 * 180
|
|
46246
46247
|
});
|
|
46247
46248
|
// 导出全部
|
|
46248
46249
|
const exportExcelTemplate = () => instance$A.post(`/thing/v1/core/excelOpt/thing/exportExcelTemplate`, {}, {
|
|
@@ -46253,6 +46254,14 @@ const exportExcelTemplate = () => instance$A.post(`/thing/v1/core/excelOpt/thing
|
|
|
46253
46254
|
},
|
|
46254
46255
|
timeout: 1000 * 30
|
|
46255
46256
|
});
|
|
46257
|
+
// 下载模板
|
|
46258
|
+
const downExcelTemplate = () => instance$A.post(`/thing/v1/core/excelOpt/thing/exportNullExcelTemplate`, {}, {
|
|
46259
|
+
responseType: "blob",
|
|
46260
|
+
headers: {
|
|
46261
|
+
"Content-Disposition": "attachment",
|
|
46262
|
+
"Content-Type": "text/html;charset=UTF-8"
|
|
46263
|
+
}
|
|
46264
|
+
});
|
|
46256
46265
|
// 校验实例code是否重复
|
|
46257
46266
|
const checkCode = code => instance$A.get(`/thing/v1/core/thing/hasThingcode/${code}`);
|
|
46258
46267
|
|
|
@@ -48132,14 +48141,22 @@ const com$b = defineComponent({
|
|
|
48132
48141
|
} = options;
|
|
48133
48142
|
const fileData = new FormData();
|
|
48134
48143
|
fileData.append("file", file);
|
|
48135
|
-
const
|
|
48136
|
-
|
|
48137
|
-
|
|
48138
|
-
|
|
48139
|
-
|
|
48140
|
-
|
|
48141
|
-
|
|
48142
|
-
|
|
48144
|
+
const hide = message.info({
|
|
48145
|
+
duration: 0,
|
|
48146
|
+
content: "正在导入,请稍后"
|
|
48147
|
+
});
|
|
48148
|
+
importExcel(fileData).then(res => {
|
|
48149
|
+
if (res.data === true) {
|
|
48150
|
+
message.success("导入成功");
|
|
48151
|
+
onSuccess("response", file);
|
|
48152
|
+
} else {
|
|
48153
|
+
message.error("导入失败");
|
|
48154
|
+
onError("error", file);
|
|
48155
|
+
downFile(res.data, "错误信息.txt");
|
|
48156
|
+
}
|
|
48157
|
+
}).finally(() => {
|
|
48158
|
+
hide();
|
|
48159
|
+
});
|
|
48143
48160
|
};
|
|
48144
48161
|
const exportFun = async () => {
|
|
48145
48162
|
message.info({
|
|
@@ -48147,19 +48164,33 @@ const com$b = defineComponent({
|
|
|
48147
48164
|
content: "正在导出,请稍后"
|
|
48148
48165
|
});
|
|
48149
48166
|
const res = await exportExcelTemplate();
|
|
48167
|
+
downFile(res, "物模型数据_" + moment().format("YYYY_MM_DD_HHmm") + ".xls");
|
|
48168
|
+
setTimeout(() => {
|
|
48169
|
+
message.destroy();
|
|
48170
|
+
}, 666);
|
|
48171
|
+
};
|
|
48172
|
+
const downFun = async () => {
|
|
48173
|
+
message.info({
|
|
48174
|
+
duration: 0,
|
|
48175
|
+
content: "正在下载,请稍后"
|
|
48176
|
+
});
|
|
48177
|
+
const res = await downExcelTemplate();
|
|
48178
|
+
downFile(res, "【模板】物模型数据_" + moment().format("YYYY_MM_DD_HHmm") + ".xls");
|
|
48179
|
+
setTimeout(() => {
|
|
48180
|
+
message.destroy();
|
|
48181
|
+
}, 666);
|
|
48182
|
+
};
|
|
48183
|
+
const downFile = (res, filename) => {
|
|
48150
48184
|
const blob = new Blob([res], {
|
|
48151
48185
|
type: "text/html;charset=UTF-8"
|
|
48152
48186
|
});
|
|
48153
48187
|
const a = document.createElement("a");
|
|
48154
48188
|
a.href = URL.createObjectURL(blob);
|
|
48155
|
-
a.download =
|
|
48189
|
+
a.download = filename;
|
|
48156
48190
|
a.style.display = "none";
|
|
48157
48191
|
document.body.appendChild(a);
|
|
48158
48192
|
a.click();
|
|
48159
48193
|
a.remove();
|
|
48160
|
-
setTimeout(() => {
|
|
48161
|
-
message.destroy();
|
|
48162
|
-
}, 666);
|
|
48163
48194
|
};
|
|
48164
48195
|
const openModal = () => {
|
|
48165
48196
|
updateModalRef.value.open(true);
|
|
@@ -48299,6 +48330,14 @@ const com$b = defineComponent({
|
|
|
48299
48330
|
"ghost": true
|
|
48300
48331
|
}, {
|
|
48301
48332
|
default: () => [createTextVNode("\u5BFC\u51FA\u5168\u90E8")]
|
|
48333
|
+
}), createVNode(resolveComponent("a-button"), {
|
|
48334
|
+
"type": "primary",
|
|
48335
|
+
"onClick": () => {
|
|
48336
|
+
downFun();
|
|
48337
|
+
},
|
|
48338
|
+
"ghost": true
|
|
48339
|
+
}, {
|
|
48340
|
+
default: () => [createTextVNode("\u4E0B\u8F7D\u6A21\u677F")]
|
|
48302
48341
|
})]
|
|
48303
48342
|
}), createVNode("div", {
|
|
48304
48343
|
"class": "mar-t-20"
|