inl-ui 0.0.29 → 0.0.31

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
@@ -18,7 +18,7 @@ import { ColorPicker } from 'vue-color-kit';
18
18
  import 'vue-color-kit/dist/vue-color-kit.css';
19
19
  import 'inl-card/dist/style.css';
20
20
 
21
- var version = "0.0.26";
21
+ var version = "0.0.30";
22
22
 
23
23
  const config$1 = {
24
24
  prefix: "inl"
@@ -6884,7 +6884,8 @@ const LayoutContent = defineComponent({
6884
6884
  } = route;
6885
6885
  // 可以打开多个同类标签
6886
6886
  const {
6887
- multiKey
6887
+ multiKey,
6888
+ tabName
6888
6889
  } = query;
6889
6890
  // 已经打开的tabs 不需要重复添加 设置为active
6890
6891
  const isInTabs = !!tabs.value.find(item => item.code === val && item.multiKey === multiKey);
@@ -6915,6 +6916,7 @@ const LayoutContent = defineComponent({
6915
6916
  if (cpn) {
6916
6917
  tabs.value.push({
6917
6918
  ...menu,
6919
+ name: tabName ?? menu.name,
6918
6920
  multiKey,
6919
6921
  query: _.omit(query, "menuCode"),
6920
6922
  cpn,
@@ -43952,7 +43954,7 @@ var thingDetail = defineComponent({
43952
43954
  value: value.dynamicMap?.map[item.thingPropertyCode]?.value,
43953
43955
  unit: colArr.value.find(n => n.code === item.thingPropertyCode)?.unit,
43954
43956
  thingProperty: colArr.value.find(n => n.code === item.thingPropertyCode)
43955
- })).sort((a, b) => {
43957
+ })).filter(item => item?.prePointEntry?.address).sort((a, b) => {
43956
43958
  return a.thingProperty.sort - b.thingProperty.sort;
43957
43959
  });
43958
43960
  alarmList.value = colArr.value.filter(ele => {
@@ -43997,7 +43999,7 @@ var thingDetail = defineComponent({
43997
43999
  value: value.dynamicMap.map[item.thingPropertyCode]?.value,
43998
44000
  unit: colArr.value.find(n => n.code === item.thingPropertyCode)?.unit,
43999
44001
  thingProperty: colArr.value.find(n => n.code === item.thingPropertyCode)
44000
- })).sort((a, b) => {
44002
+ })).filter(item => item?.prePointEntry?.address).sort((a, b) => {
44001
44003
  return a.thingProperty.sort - b.thingProperty.sort;
44002
44004
  });
44003
44005
  LoginTableList.value = value.logicProperties.map(item => ({
@@ -45053,14 +45055,17 @@ const com$c = defineComponent({
45053
45055
  }
45054
45056
  }, [createTextVNode("\u7F16\u8F91")]), createVNode("a", {
45055
45057
  "onClick": () => {
45056
- // 本页打开
45058
+ // // 本页打开
45057
45059
  // toDetail({
45058
45060
  // ...record,
45059
45061
  // ID: record.thingInst.id,
45060
45062
  // THING_CODE: record.thingInst.thingCode,
45061
45063
  // });
45062
45064
  // 新页签打开
45063
- toRouter(decodeURI(JSON.stringify(record)));
45065
+ toRouter(decodeURI(JSON.stringify({
45066
+ ...record,
45067
+ id: record.thingInst.id
45068
+ })));
45064
45069
  }
45065
45070
  }, [createTextVNode("\u8BE6\u60C5")]), createVNode(resolveComponent("a-popconfirm"), {
45066
45071
  "title": "确认删除?",
@@ -45259,7 +45264,17 @@ const com$c = defineComponent({
45259
45264
  }
45260
45265
  }, [createTextVNode("\u7F16\u8F91")]), createVNode("a", {
45261
45266
  "onClick": () => {
45262
- toDetail(record);
45267
+ // // 本页打开
45268
+ // toDetail(record);
45269
+ // 新页签打开
45270
+ toRouter(decodeURI(JSON.stringify({
45271
+ ...record,
45272
+ id: record.ID,
45273
+ thingCode: record.THING_CODE,
45274
+ thingInst: {
45275
+ name: record.NAME
45276
+ }
45277
+ })));
45263
45278
  }
45264
45279
  }, [createTextVNode("\u8BE6\u60C5")]), createVNode(resolveComponent("a-popconfirm"), {
45265
45280
  "title": "确认删除?",