inl-ui 0.0.76 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -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.76";
1070
+ var version = "0.0.77";
1071
1071
 
1072
1072
  const config$1 = {
1073
1073
  prefix: "inl"
@@ -35116,6 +35116,11 @@ const getVideo = url => (alarmUuid, instanceUuid) => instance$l.get(url ?? "/vid
35116
35116
  instanceUuid
35117
35117
  }
35118
35118
  });
35119
+ /**
35120
+ * 获取报警详情
35121
+ * @param record 记录对象
35122
+ */
35123
+ const getAlarmDetail = url => id => instance$l.post(`${url ?? "/alarm/detailById"}/${id}`);
35119
35124
  /**
35120
35125
  * 获取报警类型 map
35121
35126
  */
@@ -35782,8 +35787,8 @@ function _isSlot$N(s) {
35782
35787
  }
35783
35788
  const AlarmDetail = defineComponent({
35784
35789
  props: {
35785
- record: {
35786
- type: Object
35790
+ id: {
35791
+ type: String
35787
35792
  },
35788
35793
  onClose: {
35789
35794
  type: Function
@@ -35800,7 +35805,13 @@ const AlarmDetail = defineComponent({
35800
35805
  const back = () => {
35801
35806
  props.onClose?.();
35802
35807
  };
35803
- const alarmDetail = ref(cloneDeep(props.record));
35808
+ const alarmDetail = ref({});
35809
+ const getAlarmDetail$1 = async () => {
35810
+ const {
35811
+ data
35812
+ } = await getAlarmDetail()(props.id);
35813
+ alarmDetail.value = data;
35814
+ };
35804
35815
  // 获取视频
35805
35816
  const videoBaseUrl = ref("");
35806
35817
  const getVideoUrl = async () => {
@@ -35814,7 +35825,6 @@ const AlarmDetail = defineComponent({
35814
35825
  } = await getVideo(urlObj?.getVideo)(alarmDetail.value.id, alarmDetail.value.instanceUuid);
35815
35826
  videoList.value = Object.values(data).map(item => item.relatedPath);
35816
35827
  };
35817
- getAlarmVideo();
35818
35828
  // 图片
35819
35829
  const imageUrlList = ref([]);
35820
35830
  if (alarmDetail.value.imageUrlList && alarmDetail.value.imageUrlList.length) {
@@ -35878,7 +35888,9 @@ const AlarmDetail = defineComponent({
35878
35888
  chartIns.value.data(chartData.value);
35879
35889
  chartIns.value.render();
35880
35890
  };
35881
- onMounted(() => {
35891
+ onMounted(async () => {
35892
+ await getAlarmDetail$1();
35893
+ getAlarmVideo();
35882
35894
  if (alarmDetail.value.alarmLifecycleList && alarmDetail.value.alarmLifecycleList.length) {
35883
35895
  renderChart();
35884
35896
  }
@@ -36029,7 +36041,7 @@ const WarningRecord = defineComponent({
36029
36041
  "class": "warning-record-index flex",
36030
36042
  "style": "overflow: hidden;"
36031
36043
  }, [isDetailShow.value ? createVNode(alarmDetail, {
36032
- "record": detailRecord.value,
36044
+ "id": detailRecord.value?.id,
36033
36045
  "onClose": () => isDetailShow.value = false
36034
36046
  }, null) : createVNode(WarningRecord$1, {
36035
36047
  "onShowDetail": handleDetail
@@ -40518,13 +40530,13 @@ var NewOrder = defineComponent({
40518
40530
  downstreamEqumentLoopDtos.push(relevance);
40519
40531
  }
40520
40532
  });
40521
- const equments = {
40533
+ const equment = {
40522
40534
  ...formState.value.deviceList[0],
40523
40535
  upstreamEqumentLoopDtos,
40524
40536
  downstreamEqumentLoopDtos
40525
40537
  };
40526
40538
  const param = {
40527
- equments,
40539
+ equment,
40528
40540
  busId: typeColumns[formState.value.bus].value,
40529
40541
  busName: typeColumns[formState.value.bus].label,
40530
40542
  attempt: formState.value.attempt,