inl-ui 0.0.73 → 0.0.75
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 +875 -352
- package/dist/index.js.map +1 -1
- package/dist/src/pageComponent/views/pss/components/NewOrder/SelectDevice.d.ts +53 -0
- package/dist/src/pageComponent/views/pss/components/NewOrder/SelectRelevance.d.ts +35 -0
- package/dist/src/pageComponent/views/pss/utils/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/api/pss.ts +7 -0
- package/src/pageComponent/views/pss/assets/less/NewOrder.less +18 -3
- package/src/pageComponent/views/pss/assets/less/index.less +9 -0
- package/src/pageComponent/views/pss/components/Info.tsx +171 -37
- package/src/pageComponent/views/pss/components/NewOrder/SelectDevice.tsx +408 -0
- package/src/pageComponent/views/pss/components/NewOrder/SelectRelevance.tsx +161 -0
- package/src/pageComponent/views/pss/components/{NewOrder.tsx → NewOrder/index.tsx} +135 -240
- package/src/pageComponent/views/pss/components/table.tsx +18 -7
- package/src/pageComponent/views/pss/utils/index.ts +13 -0
- /package/dist/src/pageComponent/views/pss/components/{NewOrder.d.ts → NewOrder/index.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -266,7 +266,7 @@ const props$e$1={data:Array};/**
|
|
|
266
266
|
*/const HistogramChart=defineComponent({props:props$e$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:[40,0,10,0],theme:{maxColumnWidth:12}});chartIns.value.data(data);chartIns.value.scale("value",{min:0,nice:true});chartIns.value.axis("name",{tickLine:null,line:{style:{stroke:"rgba(242, 243, 248, 0.14)"}},label:{style:{fill:"rgba(255, 255, 255, 0.5)",fontSize:17}}});chartIns.value.axis("value",{label:{style:{fill:"rgba(255, 255, 255, 0.5)",fontSize:17}},grid:{line:{style:{stroke:"rgba(242, 243, 248, 0.14)"}}},title:{text:"单位:t",position:"end",autoRotate:false,offset:20,style:{y:20,fill:"rgba(255, 255, 255, 0.5)",fontSize:17}}});chartIns.value.tooltip({showTitle:false});chartIns.value.legend(false);chartIns.value.interval().position("name*value").color("name",["l(90) 0:#5CABFF 1:#00000000","l(90) 0:#FFD85C 1:#00000000","l(90) 0:#F54D59 1:#00000000","l(90) 0:#3A4AB0 1:#00000000"]).style({radius:[4,4,0,0]});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);
|
|
267
267
|
onBeforeUnmount(()=>chartIns.value?.destroy());return ()=>createVNode("div",{"class":"histogram-chart","ref":chartRef},null);}});/**
|
|
268
268
|
* 生产评价2 上方圆环进度条 下方条形图、柱状图
|
|
269
|
-
*/const ProductionPlan2=defineComponent({name:"productionPlan2",cname:"生产评价2",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number,isInterval:Boolean,pageType:String},setup(props,ctx){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?cardType=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;};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);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-1000":1,"percentage|0-100":1},cleanCoal:{"value|0-1000":1,"percentage|0-100":1}},monthlyPlan:{rawCoal:{"value|0-200":1,"percentage|0-100":1},cleanCoal:{"value|0-200":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([]);const height=ref(0);watch(()=>_props.tabList,e=>{if(e){tabList.value=e||[];if(tabList.value.length>0){activeKey.value=tabList.value[0].id;}}},{immediate:true,deep:true});onMounted(()=>{height.value=document.getElementById(`${prefix$2}_box-header`)?.clientHeight||0;});return ()=>{let _slot;return createVNode("div",{"class":prefix$2+"_box "+prefix$2+"_box_"+_props.theme},[_props.showHeader?createVNode("div",{"class":prefix$2+"_box-header","id":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","style":{height:_props.showHeader?`calc(100% - ${height.value+20}px)`:"100%"}},[_props.iframeUrl?createVNode("iframe",{"src":_props.iframeUrl,"frameborder":"0","style":{width:"100%",height:"100%"}},null):createVNode(componentName,mergeProps({"tabId":activeKey.value,"index":_props.index},_props.params,{"onGetTabs":data=>{tabList.value=data;activeKey.value=data[0].id;}}),null)])]);};}});function _isSlot$1a(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(()=>{});ref(0);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","id":prefix$2+"_box-header"+_props.index},[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])]),_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$1a(_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.params?.noPadding==="true"?"noPadding":"cardBody"}`},[_props.iframeUrl?createVNode("iframe",{"src":_props.iframeUrl,"frameborder":"0","style":{width:"100%",height:"100%"}},null):createVNode(componentName,mergeProps({"tabId":activeKey.value,"index":_props.index},_props.params,{"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:{pageType:String,local:String,isInterval:Boolean},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
|
|
269
|
+
*/const ProductionPlan2=defineComponent({name:"productionPlan2",cname:"生产评价2",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number,isInterval:Boolean,pageType:String},setup(props,ctx){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?cardType=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;};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);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-1000":1,"percentage|0-100":1},cleanCoal:{"value|0-1000":1,"percentage|0-100":1}},monthlyPlan:{rawCoal:{"value|0-200":1,"percentage|0-100":1},cleanCoal:{"value|0-200":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([]);const height=ref(0);watch(()=>_props.tabList,e=>{if(e){tabList.value=e||[];if(tabList.value.length>0){activeKey.value=tabList.value[0].id;}}},{immediate:true,deep:true});onMounted(()=>{height.value=document.getElementById(`${prefix$2}_box-header`)?.clientHeight||0;});return ()=>{let _slot;return createVNode("div",{"class":prefix$2+"_box "+prefix$2+"_box_"+_props.theme},[_props.showHeader?createVNode("div",{"class":prefix$2+"_box-header","id":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","style":{height:_props.showHeader?`calc(100% - ${height.value+20}px)`:"100%"}},[_props.iframeUrl?createVNode("iframe",{"src":_props.iframeUrl,"frameborder":"0","style":{width:"100%",height:"100%"}},null):createVNode(componentName,mergeProps({"tabId":activeKey.value,"index":_props.index},_props.params,{"onGetTabs":data=>{tabList.value=data;activeKey.value=data[0].id;}}),null)])]);};}});function _isSlot$1b(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(()=>{});ref(0);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","id":prefix$2+"_box-header"+_props.index},[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])]),_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$1b(_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.params?.noPadding==="true"?"noPadding":"cardBody"}`},[_props.iframeUrl?createVNode("iframe",{"src":_props.iframeUrl,"frameborder":"0","style":{width:"100%",height:"100%"}},null):createVNode(componentName,mergeProps({"tabId":activeKey.value,"index":_props.index},_props.params,{"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:{pageType:String,local:String,isInterval:Boolean},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
|
|
270
270
|
// const diaType = ref("simple");
|
|
271
271
|
const getData=async()=>{const res=await instance$1$1.post("/getCardData?cardType=storageInfo",{});storageData.value=res.data;};onMounted(async()=>{});const stopInterval=useInterval$1(getData,5000,prop.isInterval);watch(()=>prop.isInterval,e=>{if(e){stopInterval();}});onBeforeUnmount(stopInterval);const openDia=()=>{diaData.showDia=true;};const renderTool=()=>{return createVNode("div",{"class":"btn blue","onClick":()=>{openDia();}},[createTextVNode("\u8BE6\u60C5")]);};context.emit("renderTool",renderTool);// 弹窗
|
|
272
272
|
const renderDia=()=>{return createVNode("div",{"class":"storageDia"},[createVNode(CardBox,{"theme":"dark","titleName":"仓位存储","componentName":"storageDiaSimple","params":{...{pageType:prop.pageType},...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,
|
|
@@ -275,9 +275,9 @@ const renderDia=()=>{return createVNode("div",{"class":"storageDia"},[createVNod
|
|
|
275
275
|
* 精煤
|
|
276
276
|
*/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"}];/**
|
|
277
277
|
* 煤泥
|
|
278
|
-
*/const CoalSlime=defineComponent({props:{tabList:{type:Array,required:true},data:{type:Object}},setup(props){const form=ref();const activeKey=ref("day");const tabChange=val=>{activeKey.value=val.id;};watch(()=>props.data,e=>{if(e){form.value=e;}},{immediate:true,deep:true});return ()=>createVNode("div",{"class":"coal-slime"},[createVNode(CardHeaderSmall,{"title":"煤泥","tabList":props.tabList,"onTabChange":tabChange},null),createVNode("div",{"class":"statistics"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u5E72\u7164\u6CE5\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.value?.data.drySlime[activeKey.value].value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.value?.data.drySlime[activeKey.value].total])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u6E7F\u7164\u6CE5\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.value?.data.wetSlime[activeKey.value].value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.value?.data.wetSlime[activeKey.value].total])])])]),createVNode(resolveComponent("a-table"),{"class":"dark-table2","pagination":false,"columns":columns$1$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,null),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$
|
|
278
|
+
*/const CoalSlime=defineComponent({props:{tabList:{type:Array,required:true},data:{type:Object}},setup(props){const form=ref();const activeKey=ref("day");const tabChange=val=>{activeKey.value=val.id;};watch(()=>props.data,e=>{if(e){form.value=e;}},{immediate:true,deep:true});return ()=>createVNode("div",{"class":"coal-slime"},[createVNode(CardHeaderSmall,{"title":"煤泥","tabList":props.tabList,"onTabChange":tabChange},null),createVNode("div",{"class":"statistics"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u5E72\u7164\u6CE5\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.value?.data.drySlime[activeKey.value].value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.value?.data.drySlime[activeKey.value].total])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u6E7F\u7164\u6CE5\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.value?.data.wetSlime[activeKey.value].value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.value?.data.wetSlime[activeKey.value].total])])])]),createVNode(resolveComponent("a-table"),{"class":"dark-table2","pagination":false,"columns":columns$1$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,null),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$j=[{title:"煤种",dataIndex:"varietyCoal"},{title:"电厂",dataIndex:"powerPlant"},{title:"汽运",dataIndex:"carTransport"},{title:"灰分",dataIndex:"ashContent"},{title:"水分",dataIndex:"waterContent"}];/**
|
|
279
279
|
* 中矸
|
|
280
|
-
*/const Medium=defineComponent({props:{tabList:{type:Array,required:true},data:{type:Object}},setup(props){const form=ref();const activeKey=ref("day");const tabChange=val=>{activeKey.value=val.id;};watch(()=>props.data,e=>{if(e){form.value=e;}},{immediate:true,deep:true});return ()=>createVNode("div",{"class":"medium"},[createVNode(CardHeaderSmall,{"title":"中矸","tabList":props.tabList,"onTabChange":tabChange},null),createVNode("div",{"class":"statistics"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E2D\u77F8\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.value?.data.mediumGangue[activeKey.value].value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.value?.data.mediumGangue[activeKey.value].total])])])]),createVNode(resolveComponent("a-table"),{"class":"dark-table2","pagination":false,"columns":columns$
|
|
280
|
+
*/const Medium=defineComponent({props:{tabList:{type:Array,required:true},data:{type:Object}},setup(props){const form=ref();const activeKey=ref("day");const tabChange=val=>{activeKey.value=val.id;};watch(()=>props.data,e=>{if(e){form.value=e;}},{immediate:true,deep:true});return ()=>createVNode("div",{"class":"medium"},[createVNode(CardHeaderSmall,{"title":"中矸","tabList":props.tabList,"onTabChange":tabChange},null),createVNode("div",{"class":"statistics"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E2D\u77F8\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.value?.data.mediumGangue[activeKey.value].value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.value?.data.mediumGangue[activeKey.value].total])])])]),createVNode(resolveComponent("a-table"),{"class":"dark-table2","pagination":false,"columns":columns$j,"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,null),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 tabList=[{id:"day",name:"日"},{id:"month",name:"月"}];/**
|
|
281
281
|
* 外运统计
|
|
282
282
|
*/const OutTransportStatistics=defineComponent({name:"outTransportStatistics",cname:"外运统计",developer:"前端开发组",equipment:"PC",props:{prefix:String,serverName:String,timeout:Number,isInterval:Boolean},setup(props,ctx){const form=reactive({});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData?cardType=outTransportStatistics",{});form.cleanCoal=data.cleanCoal;form.coalSlime=data.coalSlime;form.medium=data.medium;};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);return ()=>createVNode("div",{"class":"out-transport-statistics"},[createVNode("div",{"class":"statistics"},[createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u7CBE\u7164\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.cleanCoal?.value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.cleanCoal?.total])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u7164\u6CE5\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.coalSlime?.value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.coalSlime?.total])])]),createVNode("div",{"class":"item"},[createVNode("div",{"class":"name"},[createTextVNode("\u4E2D\u77F8\u5916\u8FD0\u91CF")]),createVNode("div",{"class":"content"},[createVNode("div",{"class":"value"},[form.medium?.value]),createVNode("div",{"class":"total"},[createTextVNode("\u6708")]),createVNode("div",{"class":"total"},[form.medium?.total])])])]),createVNode(CleanCoal,{"tabList":tabList,"data":form.cleanCoal},null),createVNode(CoalSlime,{"tabList":tabList,"data":form.coalSlime},null),createVNode(Medium,{"tabList":tabList,"data":form.medium},null)]);}});const mock$c={cleanCoal:{"value|100-500":1,"total|1000-2000":1,chartData:{day:[{label:"普肥","value|5000-20000":1},{label:"低肥","value|5000-20000":1},{label:"焦煤","value|5000-20000":1},{label:"1/3焦","value|5000-20000":1}],month:[{label:"普肥","value|5000-20000":1},{label:"低肥","value|5000-20000":1},{label:"焦煤","value|5000-20000":1},{label:"1/3焦","value|5000-20000":1}]},tableData:{day:{"list|5":[{varietyCoal:"@cword(3)","outboundTraffic|10000-20000":1,"cokingQuantity|1000-2000":1,"ashContent|10-20.2":1,"waterContent|10-20.2":1}],total:{"outboundTraffic|30000-50000":1,"cokingQuantity|20000-40000":1,"ashContent|10-50.2":1,"waterContent|10-50.2":1}},month:{"list|5":[{varietyCoal:"@cword(3)","outboundTraffic|10000-20000":1,"cokingQuantity|1000-2000":1,"ashContent|10-20.2":1,"waterContent|10-20.2":1}],total:{"outboundTraffic|30000-50000":1,"cokingQuantity|20000-40000":1,"ashContent|10-50.2":1,"waterContent|10-50.2":1}}}},coalSlime:{"value|100-500":1,"total|1000-2000":1,data:{drySlime:{day:{"value|100-500":1,"total|1000-2000":1},month:{"value|100-500":1,"total|1000-2000":1}},wetSlime:{day:{"value|100-500":1,"total|1000-2000":1},month:{"value|100-500":1,"total|1000-2000":1}}},tableData:{day:{"list|5":[{varietyCoal:"@cword(3)",powerPlant:"临涣电厂@cword('一二三四五六七八九',1)","powerPlant|1000-2000":1,"ashContent|10-20.2":1,"waterContent|10-20.2":1}],total:{"ashContent|10-20.2":1,"waterContent|10-20.2":1}},month:{"list|5":[{varietyCoal:"@cword(3)",powerPlant:"临涣电厂@cword('一二三四五六七八九',1)","powerPlant|1000-2000":1,"ashContent|10-20.2":1,"waterContent|10-20.2":1}],total:{"ashContent|10-20.2":1,"waterContent|10-20.2":1}}}},medium:{"value|100-500":1,"total|1000-2000":1,data:{mediumGangue:{day:{"value|100-500":1,"total|1000-2000":1},month:{"value|100-500":1,"total|1000-2000":1}}},tableData:{day:{"list|5":[{varietyCoal:"@cword(3)",powerPlant:"临涣电厂@cword('一二三四五六七八九',1)","powerPlant|1000-2000":1,"ashContent|10-20.2":1,"waterContent|10-20.2":1}],total:{"ashContent|10-20.2":1,"waterContent|10-20.2":1}},month:{"list|5":[{varietyCoal:"@cword(3)",powerPlant:"临涣电厂@cword('一二三四五六七八九',1)","powerPlant|1000-2000":1,"ashContent|10-20.2":1,"waterContent|10-20.2":1}],total:{"ashContent|10-20.2":1,"waterContent|10-20.2":1}}}}};// const tempData = [
|
|
283
283
|
// { name: "超灰度", value: 8 },
|
|
@@ -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.75";
|
|
1071
1071
|
|
|
1072
1072
|
const config$1 = {
|
|
1073
1073
|
prefix: "inl"
|
|
@@ -7650,7 +7650,7 @@ function getOpenUrl(url) {
|
|
|
7650
7650
|
* 2: 监听menuCode变化,如果是当前导航下的菜单,要选中对应导航菜单
|
|
7651
7651
|
* 3: 监听menuCode 设置当前选中的导航
|
|
7652
7652
|
*/
|
|
7653
|
-
function _isSlot$
|
|
7653
|
+
function _isSlot$1a(s) {
|
|
7654
7654
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
7655
7655
|
}
|
|
7656
7656
|
const LayoutNav = defineComponent({
|
|
@@ -7727,7 +7727,7 @@ const LayoutNav = defineComponent({
|
|
|
7727
7727
|
"mode": "horizontal",
|
|
7728
7728
|
"selectedKeys": state.selectedKeys,
|
|
7729
7729
|
"onUpdate:selectedKeys": $event => state.selectedKeys = $event
|
|
7730
|
-
}, _isSlot$
|
|
7730
|
+
}, _isSlot$1a(_slot = props.menu.map(item => createVNode(resolveComponent("a-menu-item"), {
|
|
7731
7731
|
"class": "flex-center",
|
|
7732
7732
|
"key": item.code,
|
|
7733
7733
|
"title": item.name,
|
|
@@ -7755,7 +7755,7 @@ var layoutNav = utils.installComponent(LayoutNav, "layout-nav");
|
|
|
7755
7755
|
* 3: 如果跳转的是新窗口 需要加上协议、ip、端口、token、userId
|
|
7756
7756
|
* 4: 首次进入 默认选中第一个菜单 自动展开菜单组
|
|
7757
7757
|
*/
|
|
7758
|
-
function _isSlot$
|
|
7758
|
+
function _isSlot$19(s) {
|
|
7759
7759
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
7760
7760
|
}
|
|
7761
7761
|
const LayoutSidebar = defineComponent({
|
|
@@ -7883,7 +7883,7 @@ const LayoutSidebar = defineComponent({
|
|
|
7883
7883
|
"onUpdate:selectedKeys": $event => state.selectedKeys = $event,
|
|
7884
7884
|
"openKeys": state.openKeys,
|
|
7885
7885
|
"onUpdate:openKeys": $event => state.openKeys = $event
|
|
7886
|
-
}, _isSlot$
|
|
7886
|
+
}, _isSlot$19(_slot = getMenuItem(menuList.value)) ? _slot : {
|
|
7887
7887
|
default: () => [_slot]
|
|
7888
7888
|
});
|
|
7889
7889
|
};
|
|
@@ -8217,7 +8217,7 @@ const picList = {
|
|
|
8217
8217
|
}]
|
|
8218
8218
|
};
|
|
8219
8219
|
|
|
8220
|
-
function _isSlot$
|
|
8220
|
+
function _isSlot$18(s) {
|
|
8221
8221
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
8222
8222
|
}
|
|
8223
8223
|
const props$B = {
|
|
@@ -8400,7 +8400,7 @@ const SystemSetting = defineComponent({
|
|
|
8400
8400
|
"value": data.form[`${item.name}Id`],
|
|
8401
8401
|
"onUpdate:value": $event => data.form[`${item.name}Id`] = $event,
|
|
8402
8402
|
"disabled": !edit.value
|
|
8403
|
-
}, _isSlot$
|
|
8403
|
+
}, _isSlot$18(_slot = data[`${item.name}Option`].map(val => createVNode(resolveComponent("a-select-option"), {
|
|
8404
8404
|
"value": val.id
|
|
8405
8405
|
}, {
|
|
8406
8406
|
default: () => [val.name]
|
|
@@ -8757,7 +8757,7 @@ const About = defineComponent({
|
|
|
8757
8757
|
});
|
|
8758
8758
|
var About$1 = utils.installComponent(About, "about");
|
|
8759
8759
|
|
|
8760
|
-
function _isSlot$
|
|
8760
|
+
function _isSlot$17(s) {
|
|
8761
8761
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
8762
8762
|
}
|
|
8763
8763
|
const AboutNew = defineComponent({
|
|
@@ -8823,7 +8823,7 @@ const AboutNew = defineComponent({
|
|
|
8823
8823
|
"class": "title"
|
|
8824
8824
|
}, [createTextVNode("\u7248\u672C\u8BE6\u60C5")])]), createVNode(Card, {
|
|
8825
8825
|
"class": "card"
|
|
8826
|
-
}, _isSlot$
|
|
8826
|
+
}, _isSlot$17(_slot = prop.softwareList.map(software => createVNode("div", {
|
|
8827
8827
|
"class": "software"
|
|
8828
8828
|
}, [software]))) ? _slot : {
|
|
8829
8829
|
default: () => [_slot]
|
|
@@ -9156,7 +9156,7 @@ function every(obj, _func) {
|
|
|
9156
9156
|
return flag;
|
|
9157
9157
|
}
|
|
9158
9158
|
|
|
9159
|
-
function _isSlot$
|
|
9159
|
+
function _isSlot$16(s) {
|
|
9160
9160
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
9161
9161
|
}
|
|
9162
9162
|
const SearchSelect = defineComponent({
|
|
@@ -9257,7 +9257,7 @@ const SearchSelect = defineComponent({
|
|
|
9257
9257
|
"value": modelValue.value,
|
|
9258
9258
|
"onUpdate:value": $event => modelValue.value = $event,
|
|
9259
9259
|
"onSearch": getOptionList
|
|
9260
|
-
}), _isSlot$
|
|
9260
|
+
}), _isSlot$16(_slot = optionList.value.map(item => !props.excludeValues.includes(item[props.valuePorp.key ?? "id"]) && createVNode(resolveComponent("a-select-option"), {
|
|
9261
9261
|
"key": item[props.valuePorp.key ?? "id"]
|
|
9262
9262
|
}, {
|
|
9263
9263
|
default: () => [item[props.valuePorp.label ?? "name"]]
|
|
@@ -9268,7 +9268,7 @@ const SearchSelect = defineComponent({
|
|
|
9268
9268
|
}
|
|
9269
9269
|
});
|
|
9270
9270
|
|
|
9271
|
-
function _isSlot$
|
|
9271
|
+
function _isSlot$15(s) {
|
|
9272
9272
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
9273
9273
|
}
|
|
9274
9274
|
const UpdateUserDialog = defineComponent({
|
|
@@ -9442,7 +9442,7 @@ const UpdateUserDialog = defineComponent({
|
|
|
9442
9442
|
"optionFilterProp": "label",
|
|
9443
9443
|
"value": form.value.employeeId,
|
|
9444
9444
|
"onUpdate:value": $event => form.value.employeeId = $event
|
|
9445
|
-
}, _isSlot$
|
|
9445
|
+
}, _isSlot$15(_slot = employeeList.value.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
9446
9446
|
"key": item.id
|
|
9447
9447
|
}, {
|
|
9448
9448
|
default: () => [item.name]
|
|
@@ -10089,7 +10089,7 @@ const UpdateRoleDialog = defineComponent({
|
|
|
10089
10089
|
}
|
|
10090
10090
|
});
|
|
10091
10091
|
|
|
10092
|
-
const columns$
|
|
10092
|
+
const columns$i = [{
|
|
10093
10093
|
title: "角色名称",
|
|
10094
10094
|
dataIndex: "roleTypeName"
|
|
10095
10095
|
}, {
|
|
@@ -10254,7 +10254,7 @@ const RoleManager = defineComponent({
|
|
|
10254
10254
|
total: total.value
|
|
10255
10255
|
},
|
|
10256
10256
|
"loading": isLoading.value,
|
|
10257
|
-
"columns": columns$
|
|
10257
|
+
"columns": columns$i,
|
|
10258
10258
|
"dataSource": tableList.value
|
|
10259
10259
|
}, {
|
|
10260
10260
|
status: ({
|
|
@@ -11358,7 +11358,7 @@ const MenuSelectTree = defineComponent({
|
|
|
11358
11358
|
}
|
|
11359
11359
|
});
|
|
11360
11360
|
|
|
11361
|
-
function _isSlot$
|
|
11361
|
+
function _isSlot$14(s) {
|
|
11362
11362
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
11363
11363
|
}
|
|
11364
11364
|
const MenuDetail = defineComponent({
|
|
@@ -11505,7 +11505,7 @@ const MenuDetail = defineComponent({
|
|
|
11505
11505
|
default: () => [form.value.url]
|
|
11506
11506
|
}), createVNode(resolveComponent("a-form-item"), {
|
|
11507
11507
|
"label": "打开方式"
|
|
11508
|
-
}, _isSlot$
|
|
11508
|
+
}, _isSlot$14(_slot = renderMode(form.value.mode)) ? _slot : {
|
|
11509
11509
|
default: () => [_slot]
|
|
11510
11510
|
}), createVNode(resolveComponent("a-form-item"), {
|
|
11511
11511
|
"label": "启用状态"
|
|
@@ -13165,7 +13165,7 @@ const UpdateEmployeeDialog$1 = defineComponent({
|
|
|
13165
13165
|
}
|
|
13166
13166
|
});
|
|
13167
13167
|
|
|
13168
|
-
const columns$
|
|
13168
|
+
const columns$h = [{
|
|
13169
13169
|
title: '姓名',
|
|
13170
13170
|
dataIndex: 'name',
|
|
13171
13171
|
key: 'name'
|
|
@@ -13304,7 +13304,7 @@ const EmployeeTable$1 = defineComponent({
|
|
|
13304
13304
|
"onInput": refresh
|
|
13305
13305
|
}, null)]), createVNode(resolveComponent("a-table"), {
|
|
13306
13306
|
"loading": isLoading.value,
|
|
13307
|
-
"columns": columns$
|
|
13307
|
+
"columns": columns$h,
|
|
13308
13308
|
"dataSource": tableList.value,
|
|
13309
13309
|
"pagination": {
|
|
13310
13310
|
pageSize: pageSize.value,
|
|
@@ -13374,7 +13374,7 @@ const EmployeeTable$1 = defineComponent({
|
|
|
13374
13374
|
}
|
|
13375
13375
|
});
|
|
13376
13376
|
|
|
13377
|
-
function _isSlot$
|
|
13377
|
+
function _isSlot$13(s) {
|
|
13378
13378
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
13379
13379
|
}
|
|
13380
13380
|
const UpdateDepDialog$1 = defineComponent({
|
|
@@ -13645,7 +13645,7 @@ const UpdateDepDialog$1 = defineComponent({
|
|
|
13645
13645
|
default: () => [isView.value ? createVNode("span", null, [props.record.bossName]) : createVNode(resolveComponent("a-select"), {
|
|
13646
13646
|
"value": form.value.bossId,
|
|
13647
13647
|
"onUpdate:value": $event => form.value.bossId = $event
|
|
13648
|
-
}, _isSlot$
|
|
13648
|
+
}, _isSlot$13(_slot = employeeList.value.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
13649
13649
|
"key": item.id
|
|
13650
13650
|
}, {
|
|
13651
13651
|
default: () => [item.name]
|
|
@@ -14375,7 +14375,7 @@ const BatchImportModal = defineComponent({
|
|
|
14375
14375
|
}
|
|
14376
14376
|
});
|
|
14377
14377
|
|
|
14378
|
-
const columns$
|
|
14378
|
+
const columns$g = [{
|
|
14379
14379
|
title: "姓名",
|
|
14380
14380
|
dataIndex: "name",
|
|
14381
14381
|
key: "name"
|
|
@@ -14525,7 +14525,7 @@ const EmployeeTable = defineComponent({
|
|
|
14525
14525
|
}, null)]), createVNode(resolveComponent("a-table"), {
|
|
14526
14526
|
"rowKey": "id",
|
|
14527
14527
|
"loading": isLoading.value,
|
|
14528
|
-
"columns": columns$
|
|
14528
|
+
"columns": columns$g,
|
|
14529
14529
|
"dataSource": tableList.value,
|
|
14530
14530
|
"rowSelection": {
|
|
14531
14531
|
selectedRowKeys: selectIdList.value,
|
|
@@ -14597,7 +14597,7 @@ const EmployeeTable = defineComponent({
|
|
|
14597
14597
|
}
|
|
14598
14598
|
});
|
|
14599
14599
|
|
|
14600
|
-
function _isSlot$
|
|
14600
|
+
function _isSlot$12(s) {
|
|
14601
14601
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
14602
14602
|
}
|
|
14603
14603
|
const UpdateDepDialog = defineComponent({
|
|
@@ -14770,7 +14770,7 @@ const UpdateDepDialog = defineComponent({
|
|
|
14770
14770
|
default: () => [isView.value ? createVNode("span", null, [props.record.bossName]) : createVNode(resolveComponent("a-select"), {
|
|
14771
14771
|
"value": form.value.bossId,
|
|
14772
14772
|
"onUpdate:value": $event => form.value.bossId = $event
|
|
14773
|
-
}, _isSlot$
|
|
14773
|
+
}, _isSlot$12(_slot = employeeList.value.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
14774
14774
|
"key": item.id
|
|
14775
14775
|
}, {
|
|
14776
14776
|
default: () => [item.name]
|
|
@@ -15657,7 +15657,7 @@ const ProFormItem = defineComponent({
|
|
|
15657
15657
|
}
|
|
15658
15658
|
});
|
|
15659
15659
|
|
|
15660
|
-
function _isSlot$
|
|
15660
|
+
function _isSlot$11(s) {
|
|
15661
15661
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
15662
15662
|
}
|
|
15663
15663
|
const DynamicForm = defineComponent({
|
|
@@ -15761,7 +15761,7 @@ const DynamicForm = defineComponent({
|
|
|
15761
15761
|
}, {
|
|
15762
15762
|
default: () => [createVNode(resolveComponent("a-row"), {
|
|
15763
15763
|
"gutter": 16
|
|
15764
|
-
}, _isSlot$
|
|
15764
|
+
}, _isSlot$11(_slot = formDescList.value.map((item, index) => createVNode(resolveComponent("a-col"), {
|
|
15765
15765
|
"key": index,
|
|
15766
15766
|
"xl": 6,
|
|
15767
15767
|
"lg": 8,
|
|
@@ -15960,7 +15960,7 @@ const TabItem = defineComponent({
|
|
|
15960
15960
|
}
|
|
15961
15961
|
});
|
|
15962
15962
|
|
|
15963
|
-
function _isSlot
|
|
15963
|
+
function _isSlot$10(s) {
|
|
15964
15964
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
15965
15965
|
}
|
|
15966
15966
|
const ParamManager = defineComponent({
|
|
@@ -16041,7 +16041,7 @@ const ParamManager = defineComponent({
|
|
|
16041
16041
|
let _slot, _slot2;
|
|
16042
16042
|
return createVNode("div", {
|
|
16043
16043
|
"class": "param-manager flex"
|
|
16044
|
-
}, [!props.menu && createVNode(resolveComponent("a-space"), null, _isSlot
|
|
16044
|
+
}, [!props.menu && createVNode(resolveComponent("a-space"), null, _isSlot$10(_slot = menus.value.map((item, index) => createVNode(resolveComponent("a-button"), {
|
|
16045
16045
|
"type": currentMenu.value.id === item.id ? "primary" : "default",
|
|
16046
16046
|
"onClick": () => changeMenu(item)
|
|
16047
16047
|
}, {
|
|
@@ -16051,7 +16051,7 @@ const ParamManager = defineComponent({
|
|
|
16051
16051
|
}), createVNode(resolveComponent("a-tabs"), {
|
|
16052
16052
|
"activeKey": activeTab.value,
|
|
16053
16053
|
"onUpdate:activeKey": $event => activeTab.value = $event
|
|
16054
|
-
}, _isSlot
|
|
16054
|
+
}, _isSlot$10(_slot2 = tabs.value.map(item => createVNode(resolveComponent("a-tab-pane"), {
|
|
16055
16055
|
"key": item.id,
|
|
16056
16056
|
"tab": item.name
|
|
16057
16057
|
}, {
|
|
@@ -22525,7 +22525,7 @@ const socket = {
|
|
|
22525
22525
|
initSocket
|
|
22526
22526
|
};
|
|
22527
22527
|
|
|
22528
|
-
function _isSlot
|
|
22528
|
+
function _isSlot$$(s) {
|
|
22529
22529
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
22530
22530
|
}
|
|
22531
22531
|
var treeItem = defineComponent({
|
|
@@ -22702,7 +22702,7 @@ var treeItem = defineComponent({
|
|
|
22702
22702
|
"value": data.titleType,
|
|
22703
22703
|
"onUpdate:value": $event => data.titleType = $event,
|
|
22704
22704
|
"class": "select-min"
|
|
22705
|
-
}, _isSlot
|
|
22705
|
+
}, _isSlot$$(_slot = data.list.map((item, index) => {
|
|
22706
22706
|
return createVNode(resolveComponent("a-select-option"), {
|
|
22707
22707
|
"value": index
|
|
22708
22708
|
}, {
|
|
@@ -22775,7 +22775,7 @@ var treeItem = defineComponent({
|
|
|
22775
22775
|
"onChange": par => {
|
|
22776
22776
|
collctData.concernUuid = par;
|
|
22777
22777
|
}
|
|
22778
|
-
}, _isSlot
|
|
22778
|
+
}, _isSlot$$(_slot2 = listData.value.map((item, index) => {
|
|
22779
22779
|
return createVNode(resolveComponent("a-select-option"), {
|
|
22780
22780
|
"value": item?.uuid
|
|
22781
22781
|
}, {
|
|
@@ -22844,7 +22844,7 @@ var fullScreen = defineComponent({
|
|
|
22844
22844
|
}
|
|
22845
22845
|
});
|
|
22846
22846
|
|
|
22847
|
-
function _isSlot$
|
|
22847
|
+
function _isSlot$_(s) {
|
|
22848
22848
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
22849
22849
|
}
|
|
22850
22850
|
var followItem = defineComponent({
|
|
@@ -22977,13 +22977,13 @@ var followItem = defineComponent({
|
|
|
22977
22977
|
"accordion": true,
|
|
22978
22978
|
"activeKey": activeKey.value,
|
|
22979
22979
|
"onUpdate:activeKey": $event => activeKey.value = $event
|
|
22980
|
-
}, _isSlot$
|
|
22980
|
+
}, _isSlot$_(_slot2 = listData.value.map((item, index) => {
|
|
22981
22981
|
let _slot;
|
|
22982
22982
|
return createVNode(resolveComponent("a-collapse-panel"), {
|
|
22983
22983
|
"class": ["itemgz", activeKey.value === String(item.id) ? "blue" : ""],
|
|
22984
22984
|
"key": item.id,
|
|
22985
22985
|
"header": item.name
|
|
22986
|
-
}, _isSlot$
|
|
22986
|
+
}, _isSlot$_(_slot = item.list.map(el => {
|
|
22987
22987
|
return createVNode("div", {
|
|
22988
22988
|
"class": ["items-min", selectedKeys.value.indexOf(el.cameraUuid) >= 0 ? "selected" : ""]
|
|
22989
22989
|
}, [createVNode("p", {
|
|
@@ -29585,7 +29585,7 @@ var PlayVideos = defineComponent({
|
|
|
29585
29585
|
}
|
|
29586
29586
|
});
|
|
29587
29587
|
|
|
29588
|
-
function _isSlot$
|
|
29588
|
+
function _isSlot$Z(s) {
|
|
29589
29589
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
29590
29590
|
}
|
|
29591
29591
|
const com$q = defineComponent({
|
|
@@ -30048,7 +30048,7 @@ const com$q = defineComponent({
|
|
|
30048
30048
|
"value": data.formState.splicingConfigId,
|
|
30049
30049
|
"onUpdate:value": $event => data.formState.splicingConfigId = $event,
|
|
30050
30050
|
"onChange": () => {}
|
|
30051
|
-
}, _isSlot$
|
|
30051
|
+
}, _isSlot$Z(_slot = sortGroup.value.map(item => {
|
|
30052
30052
|
return createVNode(resolveComponent("a-select-option"), {
|
|
30053
30053
|
"value": item.id
|
|
30054
30054
|
}, {
|
|
@@ -30105,7 +30105,7 @@ const com$q = defineComponent({
|
|
|
30105
30105
|
"value": groupVal.value,
|
|
30106
30106
|
"onUpdate:value": $event => groupVal.value = $event,
|
|
30107
30107
|
"onChange": () => getQueryGroup()
|
|
30108
|
-
}, _isSlot$
|
|
30108
|
+
}, _isSlot$Z(_slot2 = groupList.value.map(item => {
|
|
30109
30109
|
return createVNode(resolveComponent("a-select-option"), {
|
|
30110
30110
|
"value": item.uuid
|
|
30111
30111
|
}, {
|
|
@@ -30250,7 +30250,7 @@ const InputText = defineComponent({
|
|
|
30250
30250
|
}
|
|
30251
30251
|
});
|
|
30252
30252
|
|
|
30253
|
-
function _isSlot$
|
|
30253
|
+
function _isSlot$Y(s) {
|
|
30254
30254
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
30255
30255
|
}
|
|
30256
30256
|
const rules$6 = {
|
|
@@ -30413,7 +30413,7 @@ const UpdateMode = defineComponent({
|
|
|
30413
30413
|
default: () => [createVNode(resolveComponent("a-select"), {
|
|
30414
30414
|
"value": this.form.splicingId,
|
|
30415
30415
|
"onUpdate:value": $event => this.form.splicingId = $event
|
|
30416
|
-
}, _isSlot$
|
|
30416
|
+
}, _isSlot$Y(_slot = this.splicingList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
30417
30417
|
"key": item.id
|
|
30418
30418
|
}, {
|
|
30419
30419
|
default: () => [item.splicingName]
|
|
@@ -30440,7 +30440,7 @@ const UpdateMode = defineComponent({
|
|
|
30440
30440
|
}
|
|
30441
30441
|
});
|
|
30442
30442
|
|
|
30443
|
-
const columns$
|
|
30443
|
+
const columns$f = [{
|
|
30444
30444
|
title: "模式名称",
|
|
30445
30445
|
dataIndex: "modeName"
|
|
30446
30446
|
}, {
|
|
@@ -30607,7 +30607,7 @@ const com$p = defineComponent({
|
|
|
30607
30607
|
"class": "table"
|
|
30608
30608
|
}, [createVNode(resolveComponent("a-table"), {
|
|
30609
30609
|
"loading": this.isLoading,
|
|
30610
|
-
"columns": columns$
|
|
30610
|
+
"columns": columns$f,
|
|
30611
30611
|
"dataSource": this.tableData,
|
|
30612
30612
|
"pagination": {
|
|
30613
30613
|
total: this.total,
|
|
@@ -30789,7 +30789,7 @@ const timestampToTime = timestamp => {
|
|
|
30789
30789
|
return Y + M + D + h + m + s;
|
|
30790
30790
|
};
|
|
30791
30791
|
|
|
30792
|
-
function _isSlot$
|
|
30792
|
+
function _isSlot$X(s) {
|
|
30793
30793
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
30794
30794
|
}
|
|
30795
30795
|
const com$o = defineComponent({
|
|
@@ -31071,7 +31071,7 @@ const com$o = defineComponent({
|
|
|
31071
31071
|
"onUpdate:value": $event => data.pagination.eventTypeCode = $event,
|
|
31072
31072
|
"show-search": true,
|
|
31073
31073
|
"filter-option": filterOption
|
|
31074
|
-
}, _isSlot$
|
|
31074
|
+
}, _isSlot$X(_slot = data.eventTypeList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
31075
31075
|
"value": item.code
|
|
31076
31076
|
}, {
|
|
31077
31077
|
default: () => [item.name]
|
|
@@ -31086,7 +31086,7 @@ const com$o = defineComponent({
|
|
|
31086
31086
|
"placeholder": "请选择",
|
|
31087
31087
|
"value": data.pagination.algoTypeCode,
|
|
31088
31088
|
"onUpdate:value": $event => data.pagination.algoTypeCode = $event
|
|
31089
|
-
}, _isSlot$
|
|
31089
|
+
}, _isSlot$X(_slot2 = data.algoPoList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
31090
31090
|
"value": item.code
|
|
31091
31091
|
}, {
|
|
31092
31092
|
default: () => [item.name]
|
|
@@ -31205,7 +31205,7 @@ const com$o = defineComponent({
|
|
|
31205
31205
|
"onChange": e => {
|
|
31206
31206
|
getAlgoTypeByCode();
|
|
31207
31207
|
}
|
|
31208
|
-
}, _isSlot$
|
|
31208
|
+
}, _isSlot$X(_slot3 = data.eventTypeList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
31209
31209
|
"value": item.code
|
|
31210
31210
|
}, {
|
|
31211
31211
|
default: () => [item.name]
|
|
@@ -31220,7 +31220,7 @@ const com$o = defineComponent({
|
|
|
31220
31220
|
"placeholder": "请选择",
|
|
31221
31221
|
"value": data.param.algoTypeCode,
|
|
31222
31222
|
"onUpdate:value": $event => data.param.algoTypeCode = $event
|
|
31223
|
-
}, _isSlot$
|
|
31223
|
+
}, _isSlot$X(_slot4 = data.algoPoList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
31224
31224
|
"value": item.code
|
|
31225
31225
|
}, {
|
|
31226
31226
|
default: () => [item.name]
|
|
@@ -31236,7 +31236,7 @@ const com$o = defineComponent({
|
|
|
31236
31236
|
"filter-option": filterVideoOption,
|
|
31237
31237
|
"value": data.param.cameraUuid,
|
|
31238
31238
|
"onUpdate:value": $event => data.param.cameraUuid = $event
|
|
31239
|
-
}, _isSlot$
|
|
31239
|
+
}, _isSlot$X(_slot5 = data.cameraTreeData.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
31240
31240
|
"value": item.value
|
|
31241
31241
|
}, {
|
|
31242
31242
|
default: () => [item.label]
|
|
@@ -31292,7 +31292,7 @@ const com$o = defineComponent({
|
|
|
31292
31292
|
default: () => [createVNode(resolveComponent("a-form"), null, {
|
|
31293
31293
|
default: () => [createVNode(resolveComponent("a-form-item"), {
|
|
31294
31294
|
"label": "时间"
|
|
31295
|
-
}, _isSlot$
|
|
31295
|
+
}, _isSlot$X(_slot6 = timestampToTime(data.param.createDt)) ? _slot6 : {
|
|
31296
31296
|
default: () => [_slot6]
|
|
31297
31297
|
}), createVNode(resolveComponent("a-form-item"), {
|
|
31298
31298
|
"label": "相机名称"
|
|
@@ -31351,7 +31351,7 @@ const com$o = defineComponent({
|
|
|
31351
31351
|
});
|
|
31352
31352
|
var Events = utils.installComponent(com$o, "video-events");
|
|
31353
31353
|
|
|
31354
|
-
function _isSlot$
|
|
31354
|
+
function _isSlot$W(s) {
|
|
31355
31355
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
31356
31356
|
}
|
|
31357
31357
|
const com$n = defineComponent({
|
|
@@ -31618,7 +31618,7 @@ const com$n = defineComponent({
|
|
|
31618
31618
|
"onChange": e => {
|
|
31619
31619
|
data.param.algoList = e.join(",");
|
|
31620
31620
|
}
|
|
31621
|
-
}, _isSlot$
|
|
31621
|
+
}, _isSlot$W(_slot = data.typeList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
31622
31622
|
"value": item.code
|
|
31623
31623
|
}, {
|
|
31624
31624
|
default: () => [item.name]
|
|
@@ -31640,7 +31640,7 @@ const com$n = defineComponent({
|
|
|
31640
31640
|
});
|
|
31641
31641
|
var EventType = utils.installComponent(com$n, "video-eventType");
|
|
31642
31642
|
|
|
31643
|
-
function _isSlot$
|
|
31643
|
+
function _isSlot$V(s) {
|
|
31644
31644
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
31645
31645
|
}
|
|
31646
31646
|
var transfer = defineComponent({
|
|
@@ -31979,7 +31979,7 @@ var transfer = defineComponent({
|
|
|
31979
31979
|
"style": "width:100%",
|
|
31980
31980
|
"value": data.name,
|
|
31981
31981
|
"onUpdate:value": $event => data.name = $event
|
|
31982
|
-
}, _isSlot$
|
|
31982
|
+
}, _isSlot$V(_slot = data.selectedList.map(item => {
|
|
31983
31983
|
return createVNode(resolveComponent("a-select-option"), {
|
|
31984
31984
|
"key": item.uuid,
|
|
31985
31985
|
"onClick": () => {
|
|
@@ -32061,7 +32061,7 @@ var transfer = defineComponent({
|
|
|
32061
32061
|
}
|
|
32062
32062
|
});
|
|
32063
32063
|
|
|
32064
|
-
function _isSlot$
|
|
32064
|
+
function _isSlot$U(s) {
|
|
32065
32065
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
32066
32066
|
}
|
|
32067
32067
|
const com$m = defineComponent({
|
|
@@ -32296,7 +32296,7 @@ const com$m = defineComponent({
|
|
|
32296
32296
|
"onUpdate:value": $event => data.pagination.eventTypeCode = $event,
|
|
32297
32297
|
"show-search": true,
|
|
32298
32298
|
"filter-option": filterOption
|
|
32299
|
-
}, _isSlot$
|
|
32299
|
+
}, _isSlot$U(_slot = data.eventTypeList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
32300
32300
|
"value": item.code
|
|
32301
32301
|
}, {
|
|
32302
32302
|
default: () => [item.name]
|
|
@@ -32311,7 +32311,7 @@ const com$m = defineComponent({
|
|
|
32311
32311
|
"placeholder": "请选择",
|
|
32312
32312
|
"value": data.pagination.algoTypeCode,
|
|
32313
32313
|
"onUpdate:value": $event => data.pagination.algoTypeCode = $event
|
|
32314
|
-
}, _isSlot$
|
|
32314
|
+
}, _isSlot$U(_slot2 = data.algoPoList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
32315
32315
|
"value": item.code
|
|
32316
32316
|
}, {
|
|
32317
32317
|
default: () => [item.name]
|
|
@@ -32391,7 +32391,7 @@ const com$m = defineComponent({
|
|
|
32391
32391
|
data.param.algoTypeCode = "";
|
|
32392
32392
|
getAlgoTypeByCode();
|
|
32393
32393
|
}
|
|
32394
|
-
}, _isSlot$
|
|
32394
|
+
}, _isSlot$U(_slot3 = data.eventTypeList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
32395
32395
|
"value": item.code
|
|
32396
32396
|
}, {
|
|
32397
32397
|
default: () => [item.name]
|
|
@@ -32406,7 +32406,7 @@ const com$m = defineComponent({
|
|
|
32406
32406
|
"placeholder": "请选择",
|
|
32407
32407
|
"value": data.param.algoTypeCode,
|
|
32408
32408
|
"onUpdate:value": $event => data.param.algoTypeCode = $event
|
|
32409
|
-
}, _isSlot$
|
|
32409
|
+
}, _isSlot$U(_slot4 = data.algoPoList.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
32410
32410
|
"value": item.code
|
|
32411
32411
|
}, {
|
|
32412
32412
|
default: () => [item.name]
|
|
@@ -32812,7 +32812,7 @@ var CheckDialog = defineComponent({
|
|
|
32812
32812
|
}
|
|
32813
32813
|
});
|
|
32814
32814
|
|
|
32815
|
-
function _isSlot$
|
|
32815
|
+
function _isSlot$T(s) {
|
|
32816
32816
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
32817
32817
|
}
|
|
32818
32818
|
const com$k = defineComponent({
|
|
@@ -33282,7 +33282,7 @@ const com$k = defineComponent({
|
|
|
33282
33282
|
"class": "param",
|
|
33283
33283
|
"value": data.formState.brandTypeCode,
|
|
33284
33284
|
"onUpdate:value": $event => data.formState.brandTypeCode = $event
|
|
33285
|
-
}, _isSlot$
|
|
33285
|
+
}, _isSlot$T(_slot = videoBrandList.map(item => {
|
|
33286
33286
|
return createVNode(resolveComponent("a-selectOption"), {
|
|
33287
33287
|
"value": item.code
|
|
33288
33288
|
}, {
|
|
@@ -33354,7 +33354,7 @@ const com$k = defineComponent({
|
|
|
33354
33354
|
"allowClear": true,
|
|
33355
33355
|
"value": data.formState.streamType,
|
|
33356
33356
|
"onUpdate:value": $event => data.formState.streamType = $event
|
|
33357
|
-
}, _isSlot$
|
|
33357
|
+
}, _isSlot$T(_slot2 = codeStreamList.map(item => {
|
|
33358
33358
|
return createVNode(resolveComponent("a-select-option"), {
|
|
33359
33359
|
"value": item.code
|
|
33360
33360
|
}, {
|
|
@@ -33370,7 +33370,7 @@ const com$k = defineComponent({
|
|
|
33370
33370
|
"class": "param",
|
|
33371
33371
|
"value": data.formState.mediaServerUuid,
|
|
33372
33372
|
"onUpdate:value": $event => data.formState.mediaServerUuid = $event
|
|
33373
|
-
}, _isSlot$
|
|
33373
|
+
}, _isSlot$T(_slot3 = mediaAllList.map(item => {
|
|
33374
33374
|
return createVNode(resolveComponent("a-selectOption"), {
|
|
33375
33375
|
"value": item.uuid
|
|
33376
33376
|
}, {
|
|
@@ -33386,7 +33386,7 @@ const com$k = defineComponent({
|
|
|
33386
33386
|
"class": "param",
|
|
33387
33387
|
"value": data.formState.nvrUuid,
|
|
33388
33388
|
"onUpdate:value": $event => data.formState.nvrUuid = $event
|
|
33389
|
-
}, _isSlot$
|
|
33389
|
+
}, _isSlot$T(_slot4 = nvrAllList.map(item => {
|
|
33390
33390
|
return createVNode(resolveComponent("a-selectOption"), {
|
|
33391
33391
|
"value": item.uuid
|
|
33392
33392
|
}, {
|
|
@@ -33423,7 +33423,7 @@ const com$k = defineComponent({
|
|
|
33423
33423
|
"class": "param",
|
|
33424
33424
|
"value": data.formState.hikIndexCode,
|
|
33425
33425
|
"onUpdate:value": $event => data.formState.hikIndexCode = $event
|
|
33426
|
-
}, _isSlot$
|
|
33426
|
+
}, _isSlot$T(_slot5 = haikangList.map(item => {
|
|
33427
33427
|
return createVNode(resolveComponent("a-selectOption"), {
|
|
33428
33428
|
"value": item.indexCode
|
|
33429
33429
|
}, {
|
|
@@ -33609,7 +33609,7 @@ var addGrouping = defineComponent({
|
|
|
33609
33609
|
}
|
|
33610
33610
|
});
|
|
33611
33611
|
|
|
33612
|
-
function _isSlot$
|
|
33612
|
+
function _isSlot$S(s) {
|
|
33613
33613
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
33614
33614
|
}
|
|
33615
33615
|
const dataList = [];
|
|
@@ -34055,7 +34055,7 @@ const com$j = defineComponent({
|
|
|
34055
34055
|
"filter-option": filterOption,
|
|
34056
34056
|
"value": addModel.optionValue,
|
|
34057
34057
|
"onUpdate:value": $event => addModel.optionValue = $event
|
|
34058
|
-
}, _isSlot$
|
|
34058
|
+
}, _isSlot$S(_slot = videoData.list.map(items => {
|
|
34059
34059
|
return createVNode(resolveComponent("a-select-option"), {
|
|
34060
34060
|
"value": items.uuid
|
|
34061
34061
|
}, {
|
|
@@ -34101,7 +34101,7 @@ const com$j = defineComponent({
|
|
|
34101
34101
|
});
|
|
34102
34102
|
var Group = utils.installComponent(com$j, "video-group");
|
|
34103
34103
|
|
|
34104
|
-
function _isSlot$
|
|
34104
|
+
function _isSlot$R(s) {
|
|
34105
34105
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
34106
34106
|
}
|
|
34107
34107
|
const com$i = defineComponent({
|
|
@@ -34299,7 +34299,7 @@ const com$i = defineComponent({
|
|
|
34299
34299
|
"class": "param",
|
|
34300
34300
|
"value": data.formState.brandTypeCode,
|
|
34301
34301
|
"onUpdate:value": $event => data.formState.brandTypeCode = $event
|
|
34302
|
-
}, _isSlot$
|
|
34302
|
+
}, _isSlot$R(_slot = nvrList.map(item => {
|
|
34303
34303
|
return createVNode(resolveComponent("a-selectOption"), {
|
|
34304
34304
|
"value": item.code
|
|
34305
34305
|
}, {
|
|
@@ -34442,7 +34442,7 @@ api$a.setRolePermission = (roleId, cameraUuidList) => instance$m.post("/permissi
|
|
|
34442
34442
|
cameraUuidList
|
|
34443
34443
|
});
|
|
34444
34444
|
|
|
34445
|
-
function _isSlot$
|
|
34445
|
+
function _isSlot$Q(s) {
|
|
34446
34446
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
34447
34447
|
}
|
|
34448
34448
|
const computedTree = arr => {
|
|
@@ -34544,7 +34544,7 @@ const CheckCamera = defineComponent({
|
|
|
34544
34544
|
"value": this.groupVal,
|
|
34545
34545
|
"onUpdate:value": $event => this.groupVal = $event,
|
|
34546
34546
|
"onChange": this.getTreeData
|
|
34547
|
-
}, _isSlot$
|
|
34547
|
+
}, _isSlot$Q(_slot = this.groupList.map(item => {
|
|
34548
34548
|
return createVNode(resolveComponent("a-select-option"), {
|
|
34549
34549
|
"value": item.uuid
|
|
34550
34550
|
}, {
|
|
@@ -34580,7 +34580,7 @@ const CheckCamera = defineComponent({
|
|
|
34580
34580
|
/**
|
|
34581
34581
|
* 相机权限管理
|
|
34582
34582
|
*/
|
|
34583
|
-
const columns$
|
|
34583
|
+
const columns$e = [{
|
|
34584
34584
|
title: "角色名称",
|
|
34585
34585
|
dataIndex: "roleName"
|
|
34586
34586
|
}, {
|
|
@@ -34645,7 +34645,7 @@ const com$h = defineComponent({
|
|
|
34645
34645
|
return createVNode("div", {
|
|
34646
34646
|
"class": "camera-permission flex"
|
|
34647
34647
|
}, [createVNode(resolveComponent("a-table"), {
|
|
34648
|
-
"columns": columns$
|
|
34648
|
+
"columns": columns$e,
|
|
34649
34649
|
"dataSource": this.roleList,
|
|
34650
34650
|
"loading": this.isLoading,
|
|
34651
34651
|
"pagination": false
|
|
@@ -35314,7 +35314,7 @@ const QueryFilter = defineComponent({
|
|
|
35314
35314
|
/**
|
|
35315
35315
|
* 视频播放组件(多个视频)
|
|
35316
35316
|
*/
|
|
35317
|
-
function _isSlot$
|
|
35317
|
+
function _isSlot$P(s) {
|
|
35318
35318
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
35319
35319
|
}
|
|
35320
35320
|
const VideoPlay = defineComponent({
|
|
@@ -35354,7 +35354,7 @@ const VideoPlay = defineComponent({
|
|
|
35354
35354
|
"class": "container"
|
|
35355
35355
|
}, [createVNode(resolveComponent("a-carousel"), {
|
|
35356
35356
|
"ref": "CarouselRef"
|
|
35357
|
-
}, _isSlot$
|
|
35357
|
+
}, _isSlot$P(_slot = this.urlList.map(item => createVNode("video", {
|
|
35358
35358
|
"key": item,
|
|
35359
35359
|
"autoplay": true,
|
|
35360
35360
|
"muted": true,
|
|
@@ -35382,10 +35382,10 @@ const VideoPlay = defineComponent({
|
|
|
35382
35382
|
}
|
|
35383
35383
|
});
|
|
35384
35384
|
|
|
35385
|
-
function _isSlot$
|
|
35385
|
+
function _isSlot$O(s) {
|
|
35386
35386
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
35387
35387
|
}
|
|
35388
|
-
const columns$
|
|
35388
|
+
const columns$d = [{
|
|
35389
35389
|
title: "报警级别",
|
|
35390
35390
|
dataIndex: "level",
|
|
35391
35391
|
slots: {
|
|
@@ -35658,7 +35658,7 @@ const WarningRecord$1 = defineComponent({
|
|
|
35658
35658
|
})]
|
|
35659
35659
|
})]), createVNode(resolveComponent("a-table"), {
|
|
35660
35660
|
"dataSource": list.value,
|
|
35661
|
-
"columns": columns$
|
|
35661
|
+
"columns": columns$d,
|
|
35662
35662
|
"rowKey": "id",
|
|
35663
35663
|
"rowSelection": {
|
|
35664
35664
|
selectedRowKeys: selectedRows.value.map(item => item.id),
|
|
@@ -35763,7 +35763,7 @@ const WarningRecord$1 = defineComponent({
|
|
|
35763
35763
|
default: () => [imageList.value.length ? createVNode(resolveComponent("a-carousel"), {
|
|
35764
35764
|
"dots": true,
|
|
35765
35765
|
"arrows": true
|
|
35766
|
-
}, _isSlot$
|
|
35766
|
+
}, _isSlot$O(_slot = imageList.value.map(item => createVNode("div", null, [createVNode(resolveComponent("a-image"), {
|
|
35767
35767
|
"height": 400,
|
|
35768
35768
|
"preview": false,
|
|
35769
35769
|
"src": item
|
|
@@ -35777,7 +35777,7 @@ const WarningRecord$1 = defineComponent({
|
|
|
35777
35777
|
}
|
|
35778
35778
|
});
|
|
35779
35779
|
|
|
35780
|
-
function _isSlot$
|
|
35780
|
+
function _isSlot$N(s) {
|
|
35781
35781
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
35782
35782
|
}
|
|
35783
35783
|
const AlarmDetail = defineComponent({
|
|
@@ -35965,7 +35965,7 @@ const AlarmDetail = defineComponent({
|
|
|
35965
35965
|
}, {
|
|
35966
35966
|
default: () => [videoList.value.length && videoBaseUrl.value ? createVNode(resolveComponent("a-space"), {
|
|
35967
35967
|
"size": 16
|
|
35968
|
-
}, _isSlot$
|
|
35968
|
+
}, _isSlot$N(_slot = videoList.value.map(item => createVNode("video", {
|
|
35969
35969
|
"style": {
|
|
35970
35970
|
width: "500px"
|
|
35971
35971
|
},
|
|
@@ -36304,7 +36304,7 @@ const BatchImportDialog = defineComponent({
|
|
|
36304
36304
|
}
|
|
36305
36305
|
});
|
|
36306
36306
|
|
|
36307
|
-
const columns$
|
|
36307
|
+
const columns$c = [
|
|
36308
36308
|
// {
|
|
36309
36309
|
// title: '报警等级',
|
|
36310
36310
|
// },
|
|
@@ -36403,7 +36403,7 @@ const WarningConfigure$1 = defineComponent({
|
|
|
36403
36403
|
"onImportClick": handleImportClick,
|
|
36404
36404
|
"onAddClick": () => props.onShowAdd()
|
|
36405
36405
|
}, null), createVNode(resolveComponent("a-table"), {
|
|
36406
|
-
"columns": columns$
|
|
36406
|
+
"columns": columns$c,
|
|
36407
36407
|
"dataSource": allRuleList.value,
|
|
36408
36408
|
"loading": isLoading.value,
|
|
36409
36409
|
"rowKey": "id",
|
|
@@ -36552,7 +36552,7 @@ var $store = createStore({
|
|
|
36552
36552
|
modules: {}
|
|
36553
36553
|
});
|
|
36554
36554
|
|
|
36555
|
-
function _isSlot$
|
|
36555
|
+
function _isSlot$M(s) {
|
|
36556
36556
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
36557
36557
|
}
|
|
36558
36558
|
const props$x = {
|
|
@@ -36749,7 +36749,7 @@ const BasicForm = defineComponent({
|
|
|
36749
36749
|
"onClose": () => {
|
|
36750
36750
|
handleClose(item);
|
|
36751
36751
|
}
|
|
36752
|
-
}, _isSlot$
|
|
36752
|
+
}, _isSlot$M(item) ? item : {
|
|
36753
36753
|
default: () => [item]
|
|
36754
36754
|
}))]), state.inputVisible ? createVNode(resolveComponent("a-input"), {
|
|
36755
36755
|
"ref": inputRef,
|
|
@@ -36821,7 +36821,7 @@ const BasicForm = defineComponent({
|
|
|
36821
36821
|
});
|
|
36822
36822
|
|
|
36823
36823
|
// import { mapMutations } from 'vuex';
|
|
36824
|
-
function _isSlot$
|
|
36824
|
+
function _isSlot$L(s) {
|
|
36825
36825
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
36826
36826
|
}
|
|
36827
36827
|
const props$w = {
|
|
@@ -37002,7 +37002,7 @@ const RuleForm = defineComponent({
|
|
|
37002
37002
|
},
|
|
37003
37003
|
"value": item.operator,
|
|
37004
37004
|
"onUpdate:value": $event => item.operator = $event
|
|
37005
|
-
}, _isSlot$
|
|
37005
|
+
}, _isSlot$L(_slot = judgeSymbolList.value.map(val => createVNode(resolveComponent("a-select-option"), {
|
|
37006
37006
|
"value": val.code
|
|
37007
37007
|
}, {
|
|
37008
37008
|
default: () => [val.name]
|
|
@@ -38730,7 +38730,7 @@ const noticeCenterApi = {
|
|
|
38730
38730
|
}
|
|
38731
38731
|
};
|
|
38732
38732
|
|
|
38733
|
-
function _isSlot$
|
|
38733
|
+
function _isSlot$K(s) {
|
|
38734
38734
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
38735
38735
|
}
|
|
38736
38736
|
const props$p = {
|
|
@@ -39051,7 +39051,7 @@ var addNotice = defineComponent({
|
|
|
39051
39051
|
formState.value.level = undefined;
|
|
39052
39052
|
formState.value.content = undefined;
|
|
39053
39053
|
}
|
|
39054
|
-
}, _isSlot$
|
|
39054
|
+
}, _isSlot$K(_slot = channelList.value.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
39055
39055
|
"value": item.id
|
|
39056
39056
|
}, {
|
|
39057
39057
|
default: () => [item.channelName]
|
|
@@ -39067,7 +39067,7 @@ var addNotice = defineComponent({
|
|
|
39067
39067
|
"onUpdate:value": $event => formState.value.level = $event,
|
|
39068
39068
|
"placeholder": "请先选择通道",
|
|
39069
39069
|
"disabled": !formState.value.channelId
|
|
39070
|
-
}, _isSlot$
|
|
39070
|
+
}, _isSlot$K(_slot2 = channelDetailList.value.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
39071
39071
|
"value": item.level
|
|
39072
39072
|
}, {
|
|
39073
39073
|
default: () => [item.level]
|
|
@@ -39090,7 +39090,7 @@ var addNotice = defineComponent({
|
|
|
39090
39090
|
const messageContent = channelTemplateList.value.find(n => n.id === e);
|
|
39091
39091
|
formState.value.messageContent = messageContent?.templateContent || "";
|
|
39092
39092
|
}
|
|
39093
|
-
}, _isSlot$
|
|
39093
|
+
}, _isSlot$K(_slot3 = channelTemplateList.value.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
39094
39094
|
"value": item.id
|
|
39095
39095
|
}, {
|
|
39096
39096
|
default: () => [item.templateName]
|
|
@@ -39425,7 +39425,7 @@ var notificationDetails = defineComponent({
|
|
|
39425
39425
|
}
|
|
39426
39426
|
});
|
|
39427
39427
|
|
|
39428
|
-
function _isSlot$
|
|
39428
|
+
function _isSlot$J(s) {
|
|
39429
39429
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
39430
39430
|
}
|
|
39431
39431
|
const noticeCenter = defineComponent({
|
|
@@ -39604,7 +39604,7 @@ const noticeCenter = defineComponent({
|
|
|
39604
39604
|
"placeholder": "选择通道搜索",
|
|
39605
39605
|
"value": form.channelId,
|
|
39606
39606
|
"onUpdate:value": $event => form.channelId = $event
|
|
39607
|
-
}, _isSlot$
|
|
39607
|
+
}, _isSlot$J(_slot = channelList.value.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
39608
39608
|
"value": item.id
|
|
39609
39609
|
}, {
|
|
39610
39610
|
default: () => [item.channelName]
|
|
@@ -39743,6 +39743,161 @@ const noticeCenter = defineComponent({
|
|
|
39743
39743
|
});
|
|
39744
39744
|
var noticeManager = utils.installComponent(noticeCenter, "notice-center");
|
|
39745
39745
|
|
|
39746
|
+
const columns$b = [{
|
|
39747
|
+
dataIndex: "name",
|
|
39748
|
+
title: "名称",
|
|
39749
|
+
ellipsis: true
|
|
39750
|
+
},
|
|
39751
|
+
// {
|
|
39752
|
+
// dataIndex: "location",
|
|
39753
|
+
// title: "设备位置",
|
|
39754
|
+
// ellipsis: true,
|
|
39755
|
+
// },
|
|
39756
|
+
{
|
|
39757
|
+
key: "loops",
|
|
39758
|
+
title: "控制回路",
|
|
39759
|
+
ellipsis: true
|
|
39760
|
+
}, {
|
|
39761
|
+
dataIndex: "relevanceType",
|
|
39762
|
+
title: "关联关系",
|
|
39763
|
+
width: 100
|
|
39764
|
+
}];
|
|
39765
|
+
var SelectRelevance = defineComponent({
|
|
39766
|
+
props: {
|
|
39767
|
+
showRelevance: {
|
|
39768
|
+
type: Boolean,
|
|
39769
|
+
default: false
|
|
39770
|
+
},
|
|
39771
|
+
selectedRelevanceList: {
|
|
39772
|
+
type: Array,
|
|
39773
|
+
default: () => []
|
|
39774
|
+
},
|
|
39775
|
+
currentRow: {
|
|
39776
|
+
type: Object,
|
|
39777
|
+
default: () => ({})
|
|
39778
|
+
}
|
|
39779
|
+
},
|
|
39780
|
+
emits: ["update:showRelevance", "toUpdate"],
|
|
39781
|
+
setup(props, context) {
|
|
39782
|
+
const relevanceList = ref([]);
|
|
39783
|
+
watch(() => props.showRelevance, nval => {
|
|
39784
|
+
if (nval) {
|
|
39785
|
+
getRelevanceList();
|
|
39786
|
+
selectedRow.selectedRows = props.selectedRelevanceList;
|
|
39787
|
+
selectedRow.selectedRowKeys = props.selectedRelevanceList.map(device => device.id);
|
|
39788
|
+
}
|
|
39789
|
+
});
|
|
39790
|
+
const getRelevanceList = () => {
|
|
39791
|
+
const {
|
|
39792
|
+
upstreamDevices,
|
|
39793
|
+
downstreamDevices
|
|
39794
|
+
} = props.currentRow;
|
|
39795
|
+
const upList = upstreamDevices.map(up => {
|
|
39796
|
+
up.relevanceType = "上游";
|
|
39797
|
+
return up;
|
|
39798
|
+
});
|
|
39799
|
+
const downList = downstreamDevices.map(down => {
|
|
39800
|
+
down.relevanceType = "下游";
|
|
39801
|
+
return down;
|
|
39802
|
+
});
|
|
39803
|
+
relevanceList.value = [...upList, ...downList];
|
|
39804
|
+
};
|
|
39805
|
+
const ok = async () => {
|
|
39806
|
+
context.emit("toUpdate", selectedRow.selectedRows);
|
|
39807
|
+
cancelModal();
|
|
39808
|
+
};
|
|
39809
|
+
const cancelModal = () => {
|
|
39810
|
+
context.emit("update:showRelevance", false);
|
|
39811
|
+
relevanceList.value = [];
|
|
39812
|
+
selectedRow.selectedRowKeys = [];
|
|
39813
|
+
selectedRow.selectedRows = [];
|
|
39814
|
+
relevanceList.value = [];
|
|
39815
|
+
};
|
|
39816
|
+
const selectedRow = reactive({
|
|
39817
|
+
selectedRowKeys: [],
|
|
39818
|
+
selectedRows: []
|
|
39819
|
+
});
|
|
39820
|
+
const onSelect = (selectedRowKeys, selectedRows) => {
|
|
39821
|
+
// console.log(selectedRowKeys, selectedRows);
|
|
39822
|
+
selectedRow.selectedRowKeys = selectedRowKeys;
|
|
39823
|
+
selectedRow.selectedRows = selectedRows;
|
|
39824
|
+
};
|
|
39825
|
+
return () => createVNode("div", {
|
|
39826
|
+
"class": "SelectRelevance"
|
|
39827
|
+
}, [createVNode(resolveComponent("a-modal"), {
|
|
39828
|
+
"visible": props.showRelevance,
|
|
39829
|
+
"onUpdate:visible": $event => props.showRelevance = $event,
|
|
39830
|
+
"title": "添加关联设备",
|
|
39831
|
+
"width": "1000px",
|
|
39832
|
+
"centered": true,
|
|
39833
|
+
"wrapClassName": "SelectRelevanceModal",
|
|
39834
|
+
"onCancel": cancelModal
|
|
39835
|
+
}, {
|
|
39836
|
+
default: () => [createVNode(resolveComponent("a-table"), {
|
|
39837
|
+
"pagination": false,
|
|
39838
|
+
"columns": columns$b,
|
|
39839
|
+
"dataSource": relevanceList.value,
|
|
39840
|
+
"rowKey": "id",
|
|
39841
|
+
"rowSelection": {
|
|
39842
|
+
onChange: onSelect,
|
|
39843
|
+
selectedRowKeys: selectedRow.selectedRowKeys,
|
|
39844
|
+
type: "checkbox"
|
|
39845
|
+
// getCheckboxProps: (record: any) => {
|
|
39846
|
+
// return {
|
|
39847
|
+
// disabled: props.selectedRelevanceList
|
|
39848
|
+
// .map((relevance: any) => {
|
|
39849
|
+
// return relevance.id;
|
|
39850
|
+
// })
|
|
39851
|
+
// .includes(record.id),
|
|
39852
|
+
// name: record.name,
|
|
39853
|
+
// };
|
|
39854
|
+
// },
|
|
39855
|
+
}
|
|
39856
|
+
}, {
|
|
39857
|
+
bodyCell: ({
|
|
39858
|
+
column,
|
|
39859
|
+
record,
|
|
39860
|
+
index
|
|
39861
|
+
}) => {
|
|
39862
|
+
// console.log(text, column, record, index);
|
|
39863
|
+
// 控制回路
|
|
39864
|
+
if (column.key === "loops") {
|
|
39865
|
+
return record.loops.join(";");
|
|
39866
|
+
}
|
|
39867
|
+
}
|
|
39868
|
+
})],
|
|
39869
|
+
footer: () => createVNode("div", {
|
|
39870
|
+
"class": "modal_footer"
|
|
39871
|
+
}, [createVNode(resolveComponent("a-button"), {
|
|
39872
|
+
"onClick": cancelModal
|
|
39873
|
+
}, {
|
|
39874
|
+
default: () => [createTextVNode("\u53D6\u6D88")]
|
|
39875
|
+
}), createVNode(resolveComponent("a-button"), {
|
|
39876
|
+
"type": "primary",
|
|
39877
|
+
"onClick": ok
|
|
39878
|
+
}, {
|
|
39879
|
+
default: () => [createTextVNode("\u786E\u5B9A")]
|
|
39880
|
+
})])
|
|
39881
|
+
})]);
|
|
39882
|
+
}
|
|
39883
|
+
});
|
|
39884
|
+
|
|
39885
|
+
/**
|
|
39886
|
+
* 随机字符
|
|
39887
|
+
*/
|
|
39888
|
+
// 运行信号
|
|
39889
|
+
const getStatus = runStatus => {
|
|
39890
|
+
let result;
|
|
39891
|
+
if (runStatus === "0") {
|
|
39892
|
+
result = "未运行";
|
|
39893
|
+
} else if (runStatus === "1") {
|
|
39894
|
+
result = "已运行";
|
|
39895
|
+
} else if (runStatus === "2") {
|
|
39896
|
+
result = "未知";
|
|
39897
|
+
}
|
|
39898
|
+
return result;
|
|
39899
|
+
};
|
|
39900
|
+
|
|
39746
39901
|
let instance$g = getInstance({
|
|
39747
39902
|
serverName: "spms/v1"
|
|
39748
39903
|
});
|
|
@@ -39892,6 +40047,369 @@ api$9.excelDetail = async data => {
|
|
|
39892
40047
|
}
|
|
39893
40048
|
});
|
|
39894
40049
|
};
|
|
40050
|
+
/**
|
|
40051
|
+
*查询树结构
|
|
40052
|
+
*/
|
|
40053
|
+
api$9.getTree = async () => {
|
|
40054
|
+
return instance$g.get(`/cabinet/findAllThingForTree`);
|
|
40055
|
+
};
|
|
40056
|
+
|
|
40057
|
+
function _isSlot$I(s) {
|
|
40058
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
40059
|
+
}
|
|
40060
|
+
var SelectDevice = defineComponent({
|
|
40061
|
+
props: {
|
|
40062
|
+
showDevice: {
|
|
40063
|
+
type: Boolean,
|
|
40064
|
+
default: false
|
|
40065
|
+
},
|
|
40066
|
+
selectedDeviceList: {
|
|
40067
|
+
type: Array,
|
|
40068
|
+
default: () => []
|
|
40069
|
+
},
|
|
40070
|
+
currentRow: {
|
|
40071
|
+
type: Object,
|
|
40072
|
+
default: () => ({})
|
|
40073
|
+
},
|
|
40074
|
+
// 已选设备
|
|
40075
|
+
oldDeviceList: {
|
|
40076
|
+
type: Array,
|
|
40077
|
+
default: () => []
|
|
40078
|
+
},
|
|
40079
|
+
// 已选关联设备
|
|
40080
|
+
oldRelevanceList: {
|
|
40081
|
+
type: Array,
|
|
40082
|
+
default: () => []
|
|
40083
|
+
}
|
|
40084
|
+
},
|
|
40085
|
+
emits: ["update:showDevice", "toUpdate"],
|
|
40086
|
+
setup(props, context) {
|
|
40087
|
+
watch(() => props.showDevice, val => {
|
|
40088
|
+
if (val) {
|
|
40089
|
+
searchDeviceList();
|
|
40090
|
+
getCatalog();
|
|
40091
|
+
selectedRow.selectedRows = props.oldDeviceList;
|
|
40092
|
+
selectedRow.selectedRowKeys = props.oldDeviceList.map(device => device.id);
|
|
40093
|
+
selectedRelevanceList.value = cloneDeep(props.oldRelevanceList);
|
|
40094
|
+
}
|
|
40095
|
+
});
|
|
40096
|
+
const selectedRow = reactive({
|
|
40097
|
+
selectedRowKeys: [],
|
|
40098
|
+
selectedRows: []
|
|
40099
|
+
});
|
|
40100
|
+
const onSelect = (selectedRowKeys, selectedRows) => {
|
|
40101
|
+
// console.log(selectedRowKeys, selectedRows);
|
|
40102
|
+
selectedRow.selectedRowKeys = selectedRowKeys;
|
|
40103
|
+
selectedRow.selectedRows = selectedRows;
|
|
40104
|
+
};
|
|
40105
|
+
const showRelevance = ref(false);
|
|
40106
|
+
const currentRow = ref();
|
|
40107
|
+
const eqModal = reactive({
|
|
40108
|
+
dataSource: [],
|
|
40109
|
+
columns: [{
|
|
40110
|
+
dataIndex: "code",
|
|
40111
|
+
title: "设备编码",
|
|
40112
|
+
width: 100
|
|
40113
|
+
}, {
|
|
40114
|
+
dataIndex: "name",
|
|
40115
|
+
title: "设备名称",
|
|
40116
|
+
ellipsis: true
|
|
40117
|
+
},
|
|
40118
|
+
// {
|
|
40119
|
+
// dataIndex: "location",
|
|
40120
|
+
// title: "设备位置",
|
|
40121
|
+
// ellipsis: true,
|
|
40122
|
+
// },
|
|
40123
|
+
{
|
|
40124
|
+
key: "runStatus",
|
|
40125
|
+
title: "运行信号",
|
|
40126
|
+
width: 100
|
|
40127
|
+
}, {
|
|
40128
|
+
dataIndex: "loop",
|
|
40129
|
+
title: "控制回路",
|
|
40130
|
+
ellipsis: true
|
|
40131
|
+
}, {
|
|
40132
|
+
key: "relevance",
|
|
40133
|
+
title: "关联设备",
|
|
40134
|
+
width: 80
|
|
40135
|
+
}]
|
|
40136
|
+
});
|
|
40137
|
+
const searchFormRef = ref();
|
|
40138
|
+
const searchForm = reactive({
|
|
40139
|
+
deviceName: "",
|
|
40140
|
+
deviceCode: "",
|
|
40141
|
+
deviceCatalogId: null // 设备类型
|
|
40142
|
+
});
|
|
40143
|
+
|
|
40144
|
+
const devicesLoading = ref(false);
|
|
40145
|
+
// 查询设备
|
|
40146
|
+
const searchDeviceList = async () => {
|
|
40147
|
+
devicesLoading.value = true;
|
|
40148
|
+
const res = await api$9.getDeviceList(searchForm);
|
|
40149
|
+
eqModal.dataSource = res.data.map(item => {
|
|
40150
|
+
item.loop = item.loops.join(",");
|
|
40151
|
+
return item;
|
|
40152
|
+
});
|
|
40153
|
+
devicesLoading.value = false;
|
|
40154
|
+
};
|
|
40155
|
+
const catalogList = ref([]);
|
|
40156
|
+
const getCatalog = async () => {
|
|
40157
|
+
const {
|
|
40158
|
+
data
|
|
40159
|
+
} = await api$9.getTree();
|
|
40160
|
+
catalogList.value = data;
|
|
40161
|
+
};
|
|
40162
|
+
const ok = async () => {
|
|
40163
|
+
if (selectedRow.selectedRows.length > 0) {
|
|
40164
|
+
context.emit("toUpdate", selectedRow.selectedRows, selectedRelevanceList.value);
|
|
40165
|
+
cancelModal();
|
|
40166
|
+
} else {
|
|
40167
|
+
message.info("请选择设备");
|
|
40168
|
+
}
|
|
40169
|
+
};
|
|
40170
|
+
const cancelModal = () => {
|
|
40171
|
+
context.emit("update:showDevice", false);
|
|
40172
|
+
searchFormRef.value.resetFields();
|
|
40173
|
+
eqModal.dataSource = [];
|
|
40174
|
+
selectedRow.selectedRowKeys = [];
|
|
40175
|
+
selectedRow.selectedRows = [];
|
|
40176
|
+
selectedRelevanceList.value = [];
|
|
40177
|
+
};
|
|
40178
|
+
const selectedRelevanceList = ref([]);
|
|
40179
|
+
const toUpdateRelevance = relevanceList => {
|
|
40180
|
+
selectedRelevanceList.value = relevanceList;
|
|
40181
|
+
};
|
|
40182
|
+
return () => {
|
|
40183
|
+
let _slot;
|
|
40184
|
+
return createVNode("div", {
|
|
40185
|
+
"class": "SelectDevice"
|
|
40186
|
+
}, [createVNode(Modal, {
|
|
40187
|
+
"visible": props.showDevice,
|
|
40188
|
+
"onUpdate:visible": $event => props.showDevice = $event,
|
|
40189
|
+
"title": "添加设备",
|
|
40190
|
+
"width": "1200px",
|
|
40191
|
+
"wrapClassName": "newOrder_device_modal",
|
|
40192
|
+
"onCancel": cancelModal
|
|
40193
|
+
}, {
|
|
40194
|
+
default: () => [createVNode("div", {
|
|
40195
|
+
"class": "deviceModal_content flex",
|
|
40196
|
+
"style": ""
|
|
40197
|
+
}, [createVNode("div", {
|
|
40198
|
+
"class": "left flex flex1"
|
|
40199
|
+
}, [createVNode(Form, {
|
|
40200
|
+
"ref": searchFormRef,
|
|
40201
|
+
"model": searchForm,
|
|
40202
|
+
"labelCol": {
|
|
40203
|
+
span: 8
|
|
40204
|
+
},
|
|
40205
|
+
"wrapperCol": {
|
|
40206
|
+
span: 16
|
|
40207
|
+
},
|
|
40208
|
+
"labelAlign": "right",
|
|
40209
|
+
"onSubmit": searchDeviceList
|
|
40210
|
+
}, {
|
|
40211
|
+
default: () => [createVNode(Row, {
|
|
40212
|
+
"gutter": 24
|
|
40213
|
+
}, {
|
|
40214
|
+
default: () => [createVNode(Col, {
|
|
40215
|
+
"span": 8
|
|
40216
|
+
}, {
|
|
40217
|
+
default: () => [createVNode(FormItem, {
|
|
40218
|
+
"label": "设备名称",
|
|
40219
|
+
"name": "deviceName"
|
|
40220
|
+
}, {
|
|
40221
|
+
default: () => [createVNode(resolveComponent("a-input"), {
|
|
40222
|
+
"value": searchForm.deviceName,
|
|
40223
|
+
"onUpdate:value": $event => searchForm.deviceName = $event,
|
|
40224
|
+
"placeholder": "请输入",
|
|
40225
|
+
"allow-clear": true
|
|
40226
|
+
}, null)]
|
|
40227
|
+
})]
|
|
40228
|
+
}), createVNode(Col, {
|
|
40229
|
+
"span": 8
|
|
40230
|
+
}, {
|
|
40231
|
+
default: () => [createVNode(FormItem, {
|
|
40232
|
+
"label": "设备编码",
|
|
40233
|
+
"name": "deviceCode"
|
|
40234
|
+
}, {
|
|
40235
|
+
default: () => [createVNode(resolveComponent("a-input"), {
|
|
40236
|
+
"value": searchForm.deviceCode,
|
|
40237
|
+
"onUpdate:value": $event => searchForm.deviceCode = $event,
|
|
40238
|
+
"placeholder": "请输入",
|
|
40239
|
+
"allow-clear": true
|
|
40240
|
+
}, null)]
|
|
40241
|
+
})]
|
|
40242
|
+
}), createVNode(Col, {
|
|
40243
|
+
"span": 8,
|
|
40244
|
+
"class": "align-r"
|
|
40245
|
+
}, {
|
|
40246
|
+
default: () => [createVNode(resolveComponent("a-space"), null, {
|
|
40247
|
+
default: () => [createVNode(resolveComponent("a-button"), {
|
|
40248
|
+
"type": "primary",
|
|
40249
|
+
"html-type": "submit"
|
|
40250
|
+
}, {
|
|
40251
|
+
default: () => [createTextVNode("\u67E5\u8BE2")]
|
|
40252
|
+
}), createVNode(resolveComponent("a-button"), {
|
|
40253
|
+
"onClick": () => {
|
|
40254
|
+
searchFormRef.value.resetFields();
|
|
40255
|
+
searchDeviceList();
|
|
40256
|
+
}
|
|
40257
|
+
}, {
|
|
40258
|
+
default: () => [createTextVNode("\u91CD\u7F6E")]
|
|
40259
|
+
})]
|
|
40260
|
+
})]
|
|
40261
|
+
}), createVNode(resolveComponent("a-col"), {
|
|
40262
|
+
"span": 8
|
|
40263
|
+
}, {
|
|
40264
|
+
default: () => [createVNode(resolveComponent("a-form-item"), {
|
|
40265
|
+
"label": "设备类型",
|
|
40266
|
+
"name": "deviceCatalogId"
|
|
40267
|
+
}, {
|
|
40268
|
+
default: () => [createVNode(resolveComponent("a-select"), {
|
|
40269
|
+
"value": searchForm.deviceCatalogId,
|
|
40270
|
+
"onUpdate:value": $event => searchForm.deviceCatalogId = $event,
|
|
40271
|
+
"allowClear": true,
|
|
40272
|
+
"placeholder": "请选择",
|
|
40273
|
+
"style": "width: 100%"
|
|
40274
|
+
}, _isSlot$I(_slot = catalogList.value.map(item => createVNode(resolveComponent("a-select-option"), {
|
|
40275
|
+
"value": item.code,
|
|
40276
|
+
"key": item.code
|
|
40277
|
+
}, {
|
|
40278
|
+
default: () => [item.name]
|
|
40279
|
+
}))) ? _slot : {
|
|
40280
|
+
default: () => [_slot]
|
|
40281
|
+
})]
|
|
40282
|
+
})]
|
|
40283
|
+
})]
|
|
40284
|
+
})]
|
|
40285
|
+
}), createVNode("div", {
|
|
40286
|
+
"class": "tableBox"
|
|
40287
|
+
}, [createVNode(Table, {
|
|
40288
|
+
"pagination": false,
|
|
40289
|
+
"columns": eqModal.columns,
|
|
40290
|
+
"dataSource": eqModal.dataSource,
|
|
40291
|
+
"rowKey": "id",
|
|
40292
|
+
"loading": devicesLoading.value,
|
|
40293
|
+
"rowSelection": {
|
|
40294
|
+
onChange: onSelect,
|
|
40295
|
+
selectedRowKeys: selectedRow.selectedRowKeys,
|
|
40296
|
+
type: "radio"
|
|
40297
|
+
// getCheckboxProps: (record: any) => {
|
|
40298
|
+
// const oldDeviceIdList = formState.value.deviceList.map(
|
|
40299
|
+
// (device: any) => device.id
|
|
40300
|
+
// );
|
|
40301
|
+
// return {
|
|
40302
|
+
// disabled: oldDeviceIdList.includes(record.id),
|
|
40303
|
+
// name: record.name,
|
|
40304
|
+
// };
|
|
40305
|
+
// },
|
|
40306
|
+
}
|
|
40307
|
+
}, {
|
|
40308
|
+
bodyCell: ({
|
|
40309
|
+
column,
|
|
40310
|
+
record,
|
|
40311
|
+
index
|
|
40312
|
+
}) => {
|
|
40313
|
+
// console.log(text, column, record, index);
|
|
40314
|
+
// 运行信号
|
|
40315
|
+
if (column.key === "runStatus") {
|
|
40316
|
+
return getStatus(record.runStatus);
|
|
40317
|
+
}
|
|
40318
|
+
// 关联设备
|
|
40319
|
+
if (column.key === "relevance") {
|
|
40320
|
+
return createVNode(resolveComponent("a-button"), {
|
|
40321
|
+
"type": "link",
|
|
40322
|
+
"disabled": !selectedRow.selectedRowKeys.includes(record.id),
|
|
40323
|
+
"onClick": () => {
|
|
40324
|
+
currentRow.value = null;
|
|
40325
|
+
nextTick(() => {
|
|
40326
|
+
currentRow.value = record;
|
|
40327
|
+
showRelevance.value = true;
|
|
40328
|
+
});
|
|
40329
|
+
}
|
|
40330
|
+
}, {
|
|
40331
|
+
default: () => [createTextVNode("\u9009\u62E9")]
|
|
40332
|
+
});
|
|
40333
|
+
}
|
|
40334
|
+
}
|
|
40335
|
+
})])]), createVNode("div", {
|
|
40336
|
+
"class": "right flex"
|
|
40337
|
+
}, [createVNode("div", {
|
|
40338
|
+
"class": "top flex-center"
|
|
40339
|
+
}, [createVNode("div", null, [createTextVNode("\u5DF2\u9009"), selectedRow.selectedRows.length + selectedRelevanceList.value.length, createTextVNode("\u53F0\u8BBE\u5907")]), createVNode(resolveComponent("a-button"), {
|
|
40340
|
+
"type": "link",
|
|
40341
|
+
"onClick": () => {
|
|
40342
|
+
selectedRow.selectedRowKeys = [];
|
|
40343
|
+
selectedRow.selectedRows = [];
|
|
40344
|
+
selectedRelevanceList.value = [];
|
|
40345
|
+
}
|
|
40346
|
+
}, {
|
|
40347
|
+
default: () => [createTextVNode("\u6E05\u7A7A")]
|
|
40348
|
+
})]), createVNode("div", {
|
|
40349
|
+
"class": "activedBox"
|
|
40350
|
+
}, [selectedRow.selectedRows.map((selected, idx) => {
|
|
40351
|
+
// const name = `${selected.code}${selected.name}`;
|
|
40352
|
+
const name = selected.name;
|
|
40353
|
+
const textLength = 10;
|
|
40354
|
+
const title = name.length > textLength ? name : "";
|
|
40355
|
+
return createVNode(resolveComponent("a-tag"), {
|
|
40356
|
+
"class": "tag",
|
|
40357
|
+
"title": title,
|
|
40358
|
+
"key": selected.id,
|
|
40359
|
+
"closable": true,
|
|
40360
|
+
"onClose": () => {
|
|
40361
|
+
const index = selectedRow.selectedRows.findIndex(item => item.id === selected.id);
|
|
40362
|
+
selectedRow.selectedRowKeys.splice(index, 1);
|
|
40363
|
+
selectedRow.selectedRows.splice(idx, 1);
|
|
40364
|
+
selectedRelevanceList.value = [];
|
|
40365
|
+
}
|
|
40366
|
+
}, {
|
|
40367
|
+
default: () => [name.length > textLength ? `${name.slice(0, textLength)}...` : name]
|
|
40368
|
+
});
|
|
40369
|
+
})]), createVNode("div", {
|
|
40370
|
+
"class": "top flex-center"
|
|
40371
|
+
}, [createTextVNode("\u5173\u8054\u8BBE\u5907")]), createVNode("div", {
|
|
40372
|
+
"class": "activedBox"
|
|
40373
|
+
}, [selectedRelevanceList.value.map((relevance, idx) => {
|
|
40374
|
+
const name = `${relevance.name}(${relevance.relevanceType})`;
|
|
40375
|
+
const textLength = 10;
|
|
40376
|
+
const title = name.length > textLength ? name : "";
|
|
40377
|
+
return createVNode(resolveComponent("a-tag"), {
|
|
40378
|
+
"class": "tag",
|
|
40379
|
+
"title": title,
|
|
40380
|
+
"key": relevance.id,
|
|
40381
|
+
"closable": true,
|
|
40382
|
+
"onClose": () => {
|
|
40383
|
+
selectedRelevanceList.value.splice(idx, 1);
|
|
40384
|
+
}
|
|
40385
|
+
}, {
|
|
40386
|
+
default: () => [name.length > textLength ? `${name.slice(0, textLength)}...` : name]
|
|
40387
|
+
});
|
|
40388
|
+
})])])])],
|
|
40389
|
+
footer: () => createVNode("div", {
|
|
40390
|
+
"class": "modal_footer"
|
|
40391
|
+
}, [createVNode(Button, {
|
|
40392
|
+
"onClick": cancelModal
|
|
40393
|
+
}, {
|
|
40394
|
+
default: () => [createTextVNode("\u53D6\u6D88")]
|
|
40395
|
+
}), createVNode(Button, {
|
|
40396
|
+
"type": "primary",
|
|
40397
|
+
"onClick": ok
|
|
40398
|
+
}, {
|
|
40399
|
+
default: () => [createTextVNode("\u786E\u5B9A")]
|
|
40400
|
+
})])
|
|
40401
|
+
}), createVNode(SelectRelevance, {
|
|
40402
|
+
"showRelevance": showRelevance.value,
|
|
40403
|
+
"onUpdate:showRelevance": $event => showRelevance.value = $event,
|
|
40404
|
+
"currentRow": currentRow.value,
|
|
40405
|
+
"selectedRelevanceList": selectedRelevanceList.value,
|
|
40406
|
+
"onToUpdate": relevanceList => {
|
|
40407
|
+
toUpdateRelevance(relevanceList);
|
|
40408
|
+
}
|
|
40409
|
+
}, null)]);
|
|
40410
|
+
};
|
|
40411
|
+
}
|
|
40412
|
+
});
|
|
39895
40413
|
|
|
39896
40414
|
function _isSlot$H(s) {
|
|
39897
40415
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
@@ -39945,11 +40463,18 @@ var NewOrder = defineComponent({
|
|
|
39945
40463
|
// { text: '停电执行', value: 'c' },
|
|
39946
40464
|
]
|
|
39947
40465
|
});
|
|
40466
|
+
watch(() => props.showCreate, val => {
|
|
40467
|
+
if (val) {
|
|
40468
|
+
formState.value.stopTime = dayjs().format(Format$8);
|
|
40469
|
+
formState.value.supplyTime = dayjs().format(Format$8);
|
|
40470
|
+
}
|
|
40471
|
+
});
|
|
39948
40472
|
const formRef = ref();
|
|
39949
40473
|
const formState = ref({
|
|
39950
40474
|
bus: 0,
|
|
39951
40475
|
attempt: "1",
|
|
39952
40476
|
deviceList: [],
|
|
40477
|
+
relevanceList: [],
|
|
39953
40478
|
stopTime: dayjs().format(Format$8),
|
|
39954
40479
|
supplyTime: dayjs().format(Format$8),
|
|
39955
40480
|
// stopTime: null,
|
|
@@ -39958,86 +40483,34 @@ var NewOrder = defineComponent({
|
|
|
39958
40483
|
cause: "检修设备",
|
|
39959
40484
|
causetext: ""
|
|
39960
40485
|
});
|
|
39961
|
-
const
|
|
39962
|
-
const
|
|
39963
|
-
const
|
|
39964
|
-
|
|
39965
|
-
|
|
39966
|
-
|
|
39967
|
-
|
|
39968
|
-
|
|
39969
|
-
|
|
39970
|
-
|
|
39971
|
-
|
|
39972
|
-
|
|
39973
|
-
|
|
39974
|
-
|
|
39975
|
-
|
|
39976
|
-
|
|
39977
|
-
|
|
39978
|
-
|
|
39979
|
-
|
|
39980
|
-
|
|
39981
|
-
const searchForm = reactive({
|
|
39982
|
-
deviceName: "",
|
|
39983
|
-
deviceCode: "" // 设备编码
|
|
39984
|
-
});
|
|
39985
|
-
|
|
39986
|
-
const devicesLoading = ref(false);
|
|
39987
|
-
// 查询设备
|
|
39988
|
-
const searchDeviceList = async () => {
|
|
39989
|
-
devicesLoading.value = true;
|
|
39990
|
-
const res = await api$9.getDeviceList(searchForm);
|
|
39991
|
-
eqModal.dataSource = res.data.map(item => {
|
|
39992
|
-
item.loop = item.loops.join(",");
|
|
39993
|
-
return item;
|
|
40486
|
+
const showDevice = ref(false);
|
|
40487
|
+
const currentRow = ref();
|
|
40488
|
+
const toUpdateDevice = async (deviceList, relevanceList) => {
|
|
40489
|
+
formState.value.deviceList = [];
|
|
40490
|
+
deviceList.forEach(async device => {
|
|
40491
|
+
const {
|
|
40492
|
+
data
|
|
40493
|
+
} = await api$9.applyLoop(device.id);
|
|
40494
|
+
device.equmentId = device.id;
|
|
40495
|
+
device.list = data;
|
|
40496
|
+
formState.value.deviceList.push(device);
|
|
40497
|
+
});
|
|
40498
|
+
formState.value.relevanceList = [];
|
|
40499
|
+
relevanceList.forEach(async relevance => {
|
|
40500
|
+
const {
|
|
40501
|
+
data
|
|
40502
|
+
} = await api$9.applyLoop(relevance.id);
|
|
40503
|
+
relevance.equmentId = relevance.id;
|
|
40504
|
+
relevance.list = data;
|
|
40505
|
+
formState.value.relevanceList.push(relevance);
|
|
39994
40506
|
});
|
|
39995
|
-
devicesLoading.value = false;
|
|
39996
|
-
};
|
|
39997
|
-
// 添加设备
|
|
39998
|
-
const addEq = async () => {
|
|
39999
|
-
try {
|
|
40000
|
-
searchDeviceList();
|
|
40001
|
-
selectRows.value = [];
|
|
40002
|
-
selectedList.value = [];
|
|
40003
|
-
eqModal.visible = true;
|
|
40004
|
-
} catch (error) {
|
|
40005
|
-
console.log(error);
|
|
40006
|
-
}
|
|
40007
|
-
};
|
|
40008
|
-
const onSelectEq = (selectedRowKeys, selectedRows) => {
|
|
40009
|
-
// console.log(selectedRowKeys, selectedRows);
|
|
40010
|
-
selectRows.value = selectedRowKeys;
|
|
40011
|
-
selectedList.value = selectedRows;
|
|
40012
|
-
};
|
|
40013
|
-
const sureAddEq = async () => {
|
|
40014
|
-
if (selectedList.value.length > 0) {
|
|
40015
|
-
const old = cloneDeep(formState.value.deviceList);
|
|
40016
|
-
formState.value.deviceList = [];
|
|
40017
|
-
nextTick(() => {
|
|
40018
|
-
formState.value.deviceList = [...old, ...selectedList.value];
|
|
40019
|
-
formState.value.deviceList.forEach(async device => {
|
|
40020
|
-
const {
|
|
40021
|
-
data
|
|
40022
|
-
} = await api$9.applyLoop(device.id);
|
|
40023
|
-
device.equmentId = device.id;
|
|
40024
|
-
device.list = data;
|
|
40025
|
-
});
|
|
40026
|
-
});
|
|
40027
|
-
cancelAddEq();
|
|
40028
|
-
} else {
|
|
40029
|
-
message.info("请选择设备");
|
|
40030
|
-
}
|
|
40031
|
-
};
|
|
40032
|
-
const cancelAddEq = () => {
|
|
40033
|
-
eqModal.visible = false;
|
|
40034
40507
|
};
|
|
40035
40508
|
const ok = async () => {
|
|
40036
40509
|
await formRef.value.validateFields();
|
|
40037
40510
|
// 计划送电时间
|
|
40038
40511
|
let supplyTime = dayjs(formState.value.stopTime).add(formState.value.duration, "h").format(Format$8);
|
|
40039
40512
|
const param = {
|
|
40040
|
-
equments: formState.value.deviceList,
|
|
40513
|
+
equments: [...formState.value.deviceList, ...formState.value.relevanceList],
|
|
40041
40514
|
busId: typeColumns[formState.value.bus].value,
|
|
40042
40515
|
busName: typeColumns[formState.value.bus].label,
|
|
40043
40516
|
attempt: formState.value.attempt,
|
|
@@ -40051,17 +40524,12 @@ var NewOrder = defineComponent({
|
|
|
40051
40524
|
cancelModal();
|
|
40052
40525
|
context.emit("refresh");
|
|
40053
40526
|
};
|
|
40054
|
-
watch(() => props.showCreate, val => {
|
|
40055
|
-
if (val) {
|
|
40056
|
-
formState.value.stopTime = dayjs().format(Format$8);
|
|
40057
|
-
formState.value.supplyTime = dayjs().format(Format$8);
|
|
40058
|
-
}
|
|
40059
|
-
});
|
|
40060
40527
|
const cancelModal = () => {
|
|
40061
40528
|
context.emit("update:showCreate", false);
|
|
40062
40529
|
nextTick(() => {
|
|
40063
40530
|
formRef.value.resetFields();
|
|
40064
40531
|
formState.value.deviceList = [];
|
|
40532
|
+
formState.value.relevanceList = [];
|
|
40065
40533
|
});
|
|
40066
40534
|
};
|
|
40067
40535
|
return () => {
|
|
@@ -40073,6 +40541,7 @@ var NewOrder = defineComponent({
|
|
|
40073
40541
|
"title": "新建工单",
|
|
40074
40542
|
"width": "850px",
|
|
40075
40543
|
"wrapClassName": "newOrder_modal",
|
|
40544
|
+
"centered": true,
|
|
40076
40545
|
"onCancel": cancelModal
|
|
40077
40546
|
}, {
|
|
40078
40547
|
default: () => [createVNode("div", {
|
|
@@ -40139,26 +40608,34 @@ var NewOrder = defineComponent({
|
|
|
40139
40608
|
}, [createVNode("div", {
|
|
40140
40609
|
"class": "line flex-center"
|
|
40141
40610
|
}, [createVNode(Button, {
|
|
40142
|
-
"onClick":
|
|
40611
|
+
"onClick": () => {
|
|
40612
|
+
showDevice.value = true;
|
|
40613
|
+
}
|
|
40143
40614
|
}, {
|
|
40144
40615
|
default: () => [createVNode(PlusOutlined, null, null), createTextVNode("\u6DFB\u52A0\u8BBE\u5907")]
|
|
40145
40616
|
}), createVNode("div", {
|
|
40146
40617
|
"class": "all"
|
|
40147
40618
|
}, [createTextVNode("\u5DF2\u9009\uFF1A"), createVNode("span", {
|
|
40148
40619
|
"class": "num"
|
|
40149
|
-
}, [formState.value.deviceList.length]), createTextVNode("\u53F0\u8BBE\u5907")])]), formState.value.deviceList.length > 0 && createVNode("div", {
|
|
40620
|
+
}, [formState.value.deviceList.length + formState.value.relevanceList.length]), createTextVNode("\u53F0\u8BBE\u5907")])]), formState.value.deviceList.length > 0 && createVNode("div", {
|
|
40150
40621
|
"class": "deviceBox"
|
|
40151
40622
|
}, [formState.value.deviceList.map((device, index) => createVNode("div", {
|
|
40152
40623
|
"class": "device",
|
|
40153
40624
|
"key": device.id
|
|
40154
40625
|
}, [createVNode("div", {
|
|
40155
40626
|
"class": "titleLine flex-center"
|
|
40156
|
-
}, [createVNode("
|
|
40157
|
-
"class": "
|
|
40158
|
-
}, [
|
|
40627
|
+
}, [createVNode("div", {
|
|
40628
|
+
"class": "left flex"
|
|
40629
|
+
}, [createVNode("div", {
|
|
40630
|
+
"class": "title",
|
|
40631
|
+
"title": device.name
|
|
40632
|
+
}, [createTextVNode("\u4E3B\u8BBE\u5907\uFF1A"), device.name]), createVNode("div", {
|
|
40633
|
+
"class": "state"
|
|
40634
|
+
}, [createTextVNode("\u8FD0\u884C\u4FE1\u53F7\uFF1A"), getStatus(device.runStatus)])]), createVNode(Button, {
|
|
40159
40635
|
"type": "link",
|
|
40160
40636
|
"onClick": () => {
|
|
40161
40637
|
formState.value.deviceList.splice(index, 1);
|
|
40638
|
+
formState.value.relevanceList = [];
|
|
40162
40639
|
}
|
|
40163
40640
|
}, {
|
|
40164
40641
|
default: () => [createVNode(MinusSquareOutlined, null, null)]
|
|
@@ -40195,6 +40672,60 @@ var NewOrder = defineComponent({
|
|
|
40195
40672
|
}))]
|
|
40196
40673
|
})]
|
|
40197
40674
|
})]
|
|
40675
|
+
})])]))]), formState.value.relevanceList.length > 0 && createVNode("div", {
|
|
40676
|
+
"class": "relevanceBox"
|
|
40677
|
+
}, [formState.value.relevanceList.map((relevance, index) => createVNode("div", {
|
|
40678
|
+
"class": "relevance",
|
|
40679
|
+
"key": relevance.id
|
|
40680
|
+
}, [createVNode("div", {
|
|
40681
|
+
"class": "titleLine flex-center"
|
|
40682
|
+
}, [createVNode("div", {
|
|
40683
|
+
"class": "left flex"
|
|
40684
|
+
}, [createVNode("div", {
|
|
40685
|
+
"class": "title",
|
|
40686
|
+
"title": relevance.name
|
|
40687
|
+
}, [relevance.relevanceType, createTextVNode("\u8BBE\u5907\uFF1A"), relevance.name]), createVNode("div", {
|
|
40688
|
+
"class": "state"
|
|
40689
|
+
}, [createTextVNode("\u8FD0\u884C\u4FE1\u53F7\uFF1A"), getStatus(relevance.runStatus)])]), createVNode(Button, {
|
|
40690
|
+
"type": "link",
|
|
40691
|
+
"onClick": () => {
|
|
40692
|
+
formState.value.relevanceList.splice(index, 1);
|
|
40693
|
+
}
|
|
40694
|
+
}, {
|
|
40695
|
+
default: () => [createVNode(MinusSquareOutlined, null, null)]
|
|
40696
|
+
})]), createVNode("div", {
|
|
40697
|
+
"class": "loop"
|
|
40698
|
+
}, [createVNode(FormItem, {
|
|
40699
|
+
"name": ["relevanceList", index, "loopIds"],
|
|
40700
|
+
"rules": {
|
|
40701
|
+
required: true,
|
|
40702
|
+
message: "请选择"
|
|
40703
|
+
}
|
|
40704
|
+
}, {
|
|
40705
|
+
default: () => [createVNode(resolveComponent("a-checkbox-group"), {
|
|
40706
|
+
"value": relevance.loopIds,
|
|
40707
|
+
"onUpdate:value": $event => relevance.loopIds = $event,
|
|
40708
|
+
"style": "width: 100%; max-height: 110px; overflow-y: auto;"
|
|
40709
|
+
}, {
|
|
40710
|
+
default: () => [createVNode(resolveComponent("a-row"), null, {
|
|
40711
|
+
default: () => [createVNode(resolveComponent("a-col"), {
|
|
40712
|
+
"span": "3"
|
|
40713
|
+
}, {
|
|
40714
|
+
default: () => [createVNode("div", {
|
|
40715
|
+
"class": "title"
|
|
40716
|
+
}, [createTextVNode("\u63A7\u5236\u56DE\u8DEF")])]
|
|
40717
|
+
}), relevance?.list?.map((loop, idx) => createVNode(resolveComponent("a-col"), {
|
|
40718
|
+
"span": "7"
|
|
40719
|
+
}, {
|
|
40720
|
+
default: () => [createVNode(resolveComponent("a-checkbox"), {
|
|
40721
|
+
"key": loop.key,
|
|
40722
|
+
"value": loop.key
|
|
40723
|
+
}, {
|
|
40724
|
+
default: () => [loop.value]
|
|
40725
|
+
})]
|
|
40726
|
+
}))]
|
|
40727
|
+
})]
|
|
40728
|
+
})]
|
|
40198
40729
|
})])]))])])]
|
|
40199
40730
|
}), formState.value.bus !== 2 && createVNode(resolveComponent("a-form-item"), {
|
|
40200
40731
|
"label": "计划停电时间",
|
|
@@ -40292,158 +40823,25 @@ var NewOrder = defineComponent({
|
|
|
40292
40823
|
footer: () => createVNode("div", {
|
|
40293
40824
|
"class": "modal_footer"
|
|
40294
40825
|
}, [createVNode(Button, {
|
|
40295
|
-
"type": "primary",
|
|
40296
|
-
"onClick": ok
|
|
40297
|
-
}, {
|
|
40298
|
-
default: () => [createTextVNode("\u4FDD\u5B58")]
|
|
40299
|
-
}), createVNode(Button, {
|
|
40300
40826
|
"onClick": cancelModal
|
|
40301
40827
|
}, {
|
|
40302
40828
|
default: () => [createTextVNode("\u53D6\u6D88")]
|
|
40303
|
-
})])
|
|
40304
|
-
}), createVNode(Modal, {
|
|
40305
|
-
"visible": eqModal.visible,
|
|
40306
|
-
"onUpdate:visible": $event => eqModal.visible = $event,
|
|
40307
|
-
"title": "添加设备",
|
|
40308
|
-
"width": "1200px",
|
|
40309
|
-
"wrapClassName": "newOrder_device_modal",
|
|
40310
|
-
"onCancel": cancelAddEq
|
|
40311
|
-
}, {
|
|
40312
|
-
default: () => [createVNode("div", {
|
|
40313
|
-
"class": "deviceModal_content flex",
|
|
40314
|
-
"style": ""
|
|
40315
|
-
}, [createVNode("div", {
|
|
40316
|
-
"class": "left flex flex1"
|
|
40317
|
-
}, [createVNode(Form, {
|
|
40318
|
-
"ref": searchFormRef,
|
|
40319
|
-
"model": searchForm,
|
|
40320
|
-
"labelCol": {
|
|
40321
|
-
span: 8
|
|
40322
|
-
},
|
|
40323
|
-
"wrapperCol": {
|
|
40324
|
-
span: 16
|
|
40325
|
-
},
|
|
40326
|
-
"labelAlign": "right",
|
|
40327
|
-
"onSubmit": searchDeviceList
|
|
40328
|
-
}, {
|
|
40329
|
-
default: () => [createVNode(Row, {
|
|
40330
|
-
"gutter": 24
|
|
40331
|
-
}, {
|
|
40332
|
-
default: () => [createVNode(Col, {
|
|
40333
|
-
"span": 8
|
|
40334
|
-
}, {
|
|
40335
|
-
default: () => [createVNode(FormItem, {
|
|
40336
|
-
"label": "设备名称",
|
|
40337
|
-
"name": "deviceName"
|
|
40338
|
-
}, {
|
|
40339
|
-
default: () => [createVNode(resolveComponent("a-input"), {
|
|
40340
|
-
"value": searchForm.deviceName,
|
|
40341
|
-
"onUpdate:value": $event => searchForm.deviceName = $event,
|
|
40342
|
-
"placeholder": "请输入",
|
|
40343
|
-
"allow-clear": true
|
|
40344
|
-
}, null)]
|
|
40345
|
-
})]
|
|
40346
|
-
}), createVNode(Col, {
|
|
40347
|
-
"span": 8
|
|
40348
|
-
}, {
|
|
40349
|
-
default: () => [createVNode(FormItem, {
|
|
40350
|
-
"label": "设备编码",
|
|
40351
|
-
"name": "deviceCode"
|
|
40352
|
-
}, {
|
|
40353
|
-
default: () => [createVNode(resolveComponent("a-input"), {
|
|
40354
|
-
"value": searchForm.deviceCode,
|
|
40355
|
-
"onUpdate:value": $event => searchForm.deviceCode = $event,
|
|
40356
|
-
"placeholder": "请输入",
|
|
40357
|
-
"allow-clear": true
|
|
40358
|
-
}, null)]
|
|
40359
|
-
})]
|
|
40360
|
-
}), createVNode(Col, {
|
|
40361
|
-
"span": 8,
|
|
40362
|
-
"class": "align-r"
|
|
40363
|
-
}, {
|
|
40364
|
-
default: () => [createVNode(resolveComponent("a-space"), null, {
|
|
40365
|
-
default: () => [createVNode(resolveComponent("a-button"), {
|
|
40366
|
-
"type": "primary",
|
|
40367
|
-
"html-type": "submit"
|
|
40368
|
-
}, {
|
|
40369
|
-
default: () => [createTextVNode("\u67E5\u8BE2")]
|
|
40370
|
-
}), createVNode(resolveComponent("a-button"), {
|
|
40371
|
-
"onClick": () => {
|
|
40372
|
-
searchFormRef.value.resetFields();
|
|
40373
|
-
searchDeviceList();
|
|
40374
|
-
}
|
|
40375
|
-
}, {
|
|
40376
|
-
default: () => [createTextVNode("\u91CD\u7F6E")]
|
|
40377
|
-
})]
|
|
40378
|
-
})]
|
|
40379
|
-
})]
|
|
40380
|
-
})]
|
|
40381
|
-
}), createVNode("div", {
|
|
40382
|
-
"class": "tableBox"
|
|
40383
|
-
}, [createVNode(Table, {
|
|
40384
|
-
"pagination": false,
|
|
40385
|
-
"columns": eqModal.columns,
|
|
40386
|
-
"dataSource": eqModal.dataSource,
|
|
40387
|
-
"rowKey": "id",
|
|
40388
|
-
"loading": devicesLoading.value,
|
|
40389
|
-
"rowSelection": {
|
|
40390
|
-
onChange: onSelectEq,
|
|
40391
|
-
selectedRowKeys: selectRows.value,
|
|
40392
|
-
type: "checkbox",
|
|
40393
|
-
getCheckboxProps: record => {
|
|
40394
|
-
const oldDeviceIdList = formState.value.deviceList.map(device => device.id);
|
|
40395
|
-
return {
|
|
40396
|
-
disabled: oldDeviceIdList.includes(record.id),
|
|
40397
|
-
name: record.name
|
|
40398
|
-
};
|
|
40399
|
-
}
|
|
40400
|
-
}
|
|
40401
|
-
}, null)])]), createVNode("div", {
|
|
40402
|
-
"class": "right flex"
|
|
40403
|
-
}, [createVNode("div", {
|
|
40404
|
-
"class": "top flex-center"
|
|
40405
|
-
}, [createVNode("div", null, [createTextVNode("\u5DF2\u9009"), selectedList.value.length, createTextVNode("\u53F0\u8BBE\u5907")]), createVNode(resolveComponent("a-button"), {
|
|
40406
|
-
"type": "link",
|
|
40407
|
-
"onClick": () => {
|
|
40408
|
-
selectRows.value = [];
|
|
40409
|
-
selectedList.value = [];
|
|
40410
|
-
}
|
|
40411
|
-
}, {
|
|
40412
|
-
default: () => [createTextVNode("\u6E05\u7A7A")]
|
|
40413
|
-
})]), createVNode("div", {
|
|
40414
|
-
"class": "activedBox"
|
|
40415
|
-
}, [selectedList.value.map((selected, idx) => {
|
|
40416
|
-
// const name = `${selected.code}${selected.name}`;
|
|
40417
|
-
const name = selected.name;
|
|
40418
|
-
const textLength = 10;
|
|
40419
|
-
const title = name.length > textLength ? name : "";
|
|
40420
|
-
return createVNode(resolveComponent("a-tag"), {
|
|
40421
|
-
"class": "tag",
|
|
40422
|
-
"title": title,
|
|
40423
|
-
"key": selected.id,
|
|
40424
|
-
"closable": true,
|
|
40425
|
-
"onClose": () => {
|
|
40426
|
-
const index = selectedList.value.findIndex(item => item.id === selected.id);
|
|
40427
|
-
selectRows.value.splice(index, 1);
|
|
40428
|
-
selectedList.value.splice(idx, 1);
|
|
40429
|
-
}
|
|
40430
|
-
}, {
|
|
40431
|
-
default: () => [name.length > textLength ? `${name.slice(0, textLength)}...` : name]
|
|
40432
|
-
});
|
|
40433
|
-
})])])])],
|
|
40434
|
-
footer: () => createVNode("div", {
|
|
40435
|
-
"class": "modal_footer"
|
|
40436
|
-
}, [createVNode(Button, {
|
|
40437
|
-
"type": "primary",
|
|
40438
|
-
"onClick": sureAddEq
|
|
40439
|
-
}, {
|
|
40440
|
-
default: () => [createTextVNode("\u786E\u5B9A")]
|
|
40441
40829
|
}), createVNode(Button, {
|
|
40442
|
-
"
|
|
40830
|
+
"type": "primary",
|
|
40831
|
+
"onClick": ok
|
|
40443
40832
|
}, {
|
|
40444
|
-
default: () => [createTextVNode("\
|
|
40833
|
+
default: () => [createTextVNode("\u4FDD\u5B58")]
|
|
40445
40834
|
})])
|
|
40446
|
-
})
|
|
40835
|
+
}), createVNode(SelectDevice, {
|
|
40836
|
+
"showDevice": showDevice.value,
|
|
40837
|
+
"onUpdate:showDevice": $event => showDevice.value = $event,
|
|
40838
|
+
"currentRow": currentRow.value,
|
|
40839
|
+
"oldDeviceList": formState.value.deviceList,
|
|
40840
|
+
"oldRelevanceList": formState.value.relevanceList,
|
|
40841
|
+
"onToUpdate": (deviceList, relevanceList) => {
|
|
40842
|
+
toUpdateDevice(deviceList, relevanceList);
|
|
40843
|
+
}
|
|
40844
|
+
}, null)]);
|
|
40447
40845
|
};
|
|
40448
40846
|
}
|
|
40449
40847
|
});
|
|
@@ -40667,6 +41065,40 @@ var PerformOperation = defineComponent({
|
|
|
40667
41065
|
});
|
|
40668
41066
|
|
|
40669
41067
|
const Format$7 = "YYYY-MM-DD HH:mm";
|
|
41068
|
+
const relevanceColumns = [{
|
|
41069
|
+
dataIndex: "supplyTypeName",
|
|
41070
|
+
title: "申请类型",
|
|
41071
|
+
width: 150
|
|
41072
|
+
}, {
|
|
41073
|
+
dataIndex: "applyUserName",
|
|
41074
|
+
title: "发起人",
|
|
41075
|
+
width: 100
|
|
41076
|
+
}, {
|
|
41077
|
+
key: "equipName",
|
|
41078
|
+
title: "名称",
|
|
41079
|
+
width: 200
|
|
41080
|
+
}, {
|
|
41081
|
+
key: "runStatus",
|
|
41082
|
+
title: "运行信号",
|
|
41083
|
+
width: 100
|
|
41084
|
+
}, {
|
|
41085
|
+
title: "回路数量",
|
|
41086
|
+
key: "loopsNum",
|
|
41087
|
+
width: 100
|
|
41088
|
+
}, {
|
|
41089
|
+
title: "控制回路",
|
|
41090
|
+
key: "loops",
|
|
41091
|
+
width: 300,
|
|
41092
|
+
ellipsis: true
|
|
41093
|
+
}
|
|
41094
|
+
// {
|
|
41095
|
+
// title: "操作",
|
|
41096
|
+
// key: "operation",
|
|
41097
|
+
// fixed: "right",
|
|
41098
|
+
// width: 100,
|
|
41099
|
+
// },
|
|
41100
|
+
];
|
|
41101
|
+
|
|
40670
41102
|
var Info$1 = defineComponent({
|
|
40671
41103
|
props: {
|
|
40672
41104
|
detail: {
|
|
@@ -40804,6 +41236,19 @@ var Info$1 = defineComponent({
|
|
|
40804
41236
|
await getStartByMe();
|
|
40805
41237
|
}
|
|
40806
41238
|
getLockLoop();
|
|
41239
|
+
getRelevanceList();
|
|
41240
|
+
};
|
|
41241
|
+
const relevanceList = ref([]);
|
|
41242
|
+
const getRelevanceList = () => {
|
|
41243
|
+
const upList = dataObj.value.upstreamProcess.map(up => {
|
|
41244
|
+
up.relevanceType = "上游";
|
|
41245
|
+
return up;
|
|
41246
|
+
});
|
|
41247
|
+
const downList = dataObj.value.downstreamProcess.map(down => {
|
|
41248
|
+
down.relevanceType = "下游";
|
|
41249
|
+
return down;
|
|
41250
|
+
});
|
|
41251
|
+
relevanceList.value = [...upList, ...downList];
|
|
40807
41252
|
};
|
|
40808
41253
|
watch(() => props.showInfo, (nval, oval) => {
|
|
40809
41254
|
if (nval) {
|
|
@@ -40848,6 +41293,7 @@ var Info$1 = defineComponent({
|
|
|
40848
41293
|
const close = () => {
|
|
40849
41294
|
context.emit("update:showInfo", false);
|
|
40850
41295
|
};
|
|
41296
|
+
const activeKey = ref("1");
|
|
40851
41297
|
return () => createVNode("div", {
|
|
40852
41298
|
"class": "pssInfo"
|
|
40853
41299
|
}, [createVNode(resolveComponent("a-modal"), {
|
|
@@ -40928,6 +41374,14 @@ var Info$1 = defineComponent({
|
|
|
40928
41374
|
}, [createTextVNode("\u8BD5\u8F66\u6D41\u7A0B:")]), createVNode("div", {
|
|
40929
41375
|
"class": "value"
|
|
40930
41376
|
}, [dataObj.value?.attempt === "1" ? "有" : "无"])]
|
|
41377
|
+
}), createVNode(Col, {
|
|
41378
|
+
"span": 8
|
|
41379
|
+
}, {
|
|
41380
|
+
default: () => [createVNode("div", {
|
|
41381
|
+
"class": "label"
|
|
41382
|
+
}, [createTextVNode("\u8FD0\u884C\u4FE1\u53F7:")]), createVNode("div", {
|
|
41383
|
+
"class": "value"
|
|
41384
|
+
}, [getStatus(dataObj.value?.runStatus)])]
|
|
40931
41385
|
})]
|
|
40932
41386
|
})]), createVNode("div", {
|
|
40933
41387
|
"class": "content_title",
|
|
@@ -40991,27 +41445,90 @@ var Info$1 = defineComponent({
|
|
|
40991
41445
|
}, [record.taskStatus]);
|
|
40992
41446
|
}
|
|
40993
41447
|
}
|
|
40994
|
-
})])])), createVNode("
|
|
40995
|
-
"
|
|
40996
|
-
|
|
40997
|
-
"class": "
|
|
40998
|
-
},
|
|
40999
|
-
default: () => [
|
|
41000
|
-
"
|
|
41001
|
-
|
|
41002
|
-
}, [createVNode(CheckOutlined, null, null)]) : createVNode("div", {
|
|
41003
|
-
"class": "active"
|
|
41004
|
-
}, [createVNode("span", null, null)])
|
|
41448
|
+
})])])), createVNode(resolveComponent("a-tabs"), {
|
|
41449
|
+
"activeKey": activeKey.value,
|
|
41450
|
+
"onUpdate:activeKey": $event => activeKey.value = $event,
|
|
41451
|
+
"class": "infoTabs"
|
|
41452
|
+
}, {
|
|
41453
|
+
default: () => [createVNode(resolveComponent("a-tab-pane"), {
|
|
41454
|
+
"key": "1",
|
|
41455
|
+
"tab": "工单流程"
|
|
41005
41456
|
}, {
|
|
41006
41457
|
default: () => [createVNode("div", {
|
|
41007
|
-
"class": "
|
|
41008
|
-
}, [createVNode(
|
|
41009
|
-
|
|
41010
|
-
|
|
41011
|
-
|
|
41012
|
-
|
|
41013
|
-
|
|
41014
|
-
|
|
41458
|
+
"class": "timeLine"
|
|
41459
|
+
}, [createVNode(Timeline, null, {
|
|
41460
|
+
default: () => [dataObj.value?.process?.map((pro, index) => createVNode(TimelineItem, {
|
|
41461
|
+
"dot": dataObj.value?.process?.length - 1 === index ? createVNode("div", {
|
|
41462
|
+
"class": "complate"
|
|
41463
|
+
}, [createVNode(CheckOutlined, null, null)]) : createVNode("div", {
|
|
41464
|
+
"class": "active"
|
|
41465
|
+
}, [createVNode("span", null, null)])
|
|
41466
|
+
}, {
|
|
41467
|
+
default: () => [createVNode("div", {
|
|
41468
|
+
"class": "content flex"
|
|
41469
|
+
}, [createVNode("div", {
|
|
41470
|
+
"class": ["label", dataObj.value?.process?.length - 1 === index ? "timeLineActive" : ""]
|
|
41471
|
+
}, [createVNode("div", null, [pro.activityName]), createVNode("div", null, [pro.assigneeName || "-"]), createVNode("div", null, [pro.comments])]), createVNode("div", {
|
|
41472
|
+
"class": "time"
|
|
41473
|
+
}, [pro.endTime && dayjs(pro.endTime).format(Format$7)])])]
|
|
41474
|
+
}))]
|
|
41475
|
+
})])]
|
|
41476
|
+
}), createVNode(resolveComponent("a-tab-pane"), {
|
|
41477
|
+
"key": "2",
|
|
41478
|
+
"tab": "关联工单"
|
|
41479
|
+
}, {
|
|
41480
|
+
default: () => [createVNode(resolveComponent("a-table"), {
|
|
41481
|
+
"dataSource": relevanceList.value,
|
|
41482
|
+
"columns": relevanceColumns,
|
|
41483
|
+
"pagination": false,
|
|
41484
|
+
"rowKey": "processInstanceId"
|
|
41485
|
+
}, {
|
|
41486
|
+
bodyCell: ({
|
|
41487
|
+
column,
|
|
41488
|
+
record,
|
|
41489
|
+
index
|
|
41490
|
+
}) => {
|
|
41491
|
+
// console.log(text, column, record, index);
|
|
41492
|
+
// 设备名称
|
|
41493
|
+
if (column.key === "equipName") {
|
|
41494
|
+
return `${record.equipName}(${record.relevanceType})`;
|
|
41495
|
+
}
|
|
41496
|
+
// 运行信号
|
|
41497
|
+
if (column.key === "runStatus") {
|
|
41498
|
+
return getStatus(record.runStatus);
|
|
41499
|
+
}
|
|
41500
|
+
// 回路数量
|
|
41501
|
+
if (column.key === "loopsNum") {
|
|
41502
|
+
return createVNode("span", null, [record.loops.length, createTextVNode("\u4E2A")]);
|
|
41503
|
+
}
|
|
41504
|
+
// 控制回路
|
|
41505
|
+
if (column.key === "loops") {
|
|
41506
|
+
const result = record.loops.map(loop => {
|
|
41507
|
+
// return `${loop.id}-${loop.name}`;
|
|
41508
|
+
return loop.name;
|
|
41509
|
+
}).join(";");
|
|
41510
|
+
return createVNode("span", null, [result]);
|
|
41511
|
+
}
|
|
41512
|
+
// 操作
|
|
41513
|
+
if (column.key === "operation") {
|
|
41514
|
+
return createVNode("div", {
|
|
41515
|
+
"class": "operation"
|
|
41516
|
+
}, [createVNode(resolveComponent("a-button"), {
|
|
41517
|
+
"type": "link",
|
|
41518
|
+
"disabled": true,
|
|
41519
|
+
"onClick": () => {
|
|
41520
|
+
// currentObj.value = record;
|
|
41521
|
+
// operationState.showFooter = true;
|
|
41522
|
+
// operationState.showInfo = true;
|
|
41523
|
+
}
|
|
41524
|
+
}, {
|
|
41525
|
+
default: () => [createTextVNode("\u8BE6\u60C5")]
|
|
41526
|
+
})]);
|
|
41527
|
+
}
|
|
41528
|
+
}
|
|
41529
|
+
})]
|
|
41530
|
+
})]
|
|
41531
|
+
})])])],
|
|
41015
41532
|
footer: () => {
|
|
41016
41533
|
return props.tab === "do" && props.showFooter ? createVNode("div", {
|
|
41017
41534
|
"class": "info_footer"
|
|
@@ -41278,6 +41795,10 @@ var Tables = defineComponent({
|
|
|
41278
41795
|
title: "名称",
|
|
41279
41796
|
// key: "numAndName",
|
|
41280
41797
|
width: 200
|
|
41798
|
+
}, {
|
|
41799
|
+
key: "runStatus",
|
|
41800
|
+
title: "运行信号",
|
|
41801
|
+
width: 100
|
|
41281
41802
|
}, {
|
|
41282
41803
|
title: "回路数量",
|
|
41283
41804
|
key: "loopsNum",
|
|
@@ -41395,13 +41916,11 @@ var Tables = defineComponent({
|
|
|
41395
41916
|
return obj;
|
|
41396
41917
|
});
|
|
41397
41918
|
const resp = await api$9.processApprovalBatch(postData);
|
|
41398
|
-
|
|
41399
|
-
|
|
41400
|
-
|
|
41401
|
-
|
|
41402
|
-
|
|
41403
|
-
refresh();
|
|
41404
|
-
}
|
|
41919
|
+
message.success(resp.message || "成功");
|
|
41920
|
+
operationState.showOpinion = false;
|
|
41921
|
+
operationState.comment = "";
|
|
41922
|
+
cancelBatch();
|
|
41923
|
+
refresh();
|
|
41405
41924
|
};
|
|
41406
41925
|
// 停电执行
|
|
41407
41926
|
const executeStop = async loopList => {
|
|
@@ -41702,6 +42221,10 @@ var Tables = defineComponent({
|
|
|
41702
42221
|
// </span>
|
|
41703
42222
|
// );
|
|
41704
42223
|
// }
|
|
42224
|
+
// 运行信号
|
|
42225
|
+
if (column.key === "runStatus") {
|
|
42226
|
+
return getStatus(record.runStatus);
|
|
42227
|
+
}
|
|
41705
42228
|
// 回路数量
|
|
41706
42229
|
if (column.key === "loopsNum") {
|
|
41707
42230
|
return createVNode("span", null, [record.loops.length, createTextVNode("\u4E2A")]);
|