tx-sider 2.1.1 → 2.1.2

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/lib/TXUI.mjs CHANGED
@@ -27697,12 +27697,15 @@ const _sfc_main = {
27697
27697
  const getModeuleInfoData = async () => {
27698
27698
  modeuleInfos.value = await getModeuleInfo();
27699
27699
  console.log(modeuleInfos.value, "modeuleInfos.value");
27700
- return (moduleKey) => ({
27701
- isSetOfBooks: modeuleInfos.value.setOfBooks.includes(moduleKey),
27702
- isProductionBases: modeuleInfos.value.productionBases.includes(moduleKey),
27703
- isProjects: modeuleInfos.value.projects.includes(moduleKey),
27704
- isAllProductionBases: modeuleInfos.value.allProductionBases.includes(moduleKey)
27705
- });
27700
+ return (moduleKey) => {
27701
+ var _a, _b, _c, _d, _e, _f;
27702
+ return {
27703
+ isSetOfBooks: modeuleInfos.value.setOfBooks.includes(moduleKey),
27704
+ isProductionBases: (_b = (_a = modeuleInfos.value) == null ? void 0 : _a.productionBases) == null ? void 0 : _b.includes(moduleKey),
27705
+ isProjects: (_d = (_c = modeuleInfos.value) == null ? void 0 : _c.projects) == null ? void 0 : _d.includes(moduleKey),
27706
+ isAllProductionBases: (_f = (_e = modeuleInfos.value) == null ? void 0 : _e.allProductionBases) == null ? void 0 : _f.includes(moduleKey)
27707
+ };
27708
+ };
27706
27709
  };
27707
27710
  let getModeuleInfoDataHandle;
27708
27711
  const isShowAllProductionBases = ref(false);
@@ -27749,7 +27752,7 @@ const _sfc_main = {
27749
27752
  const menuList = ref();
27750
27753
  const goUrl = ref();
27751
27754
  onMounted(async () => {
27752
- var _a, _b;
27755
+ var _a, _b, _c, _d;
27753
27756
  if (permissionModuleList.value.length == 1) {
27754
27757
  sysShow.value = false;
27755
27758
  }
@@ -27776,7 +27779,7 @@ const _sfc_main = {
27776
27779
  shortName: item.shortName
27777
27780
  };
27778
27781
  });
27779
- if (modeuleInfos.value.productionBases.includes(modeuleTypeValue.value)) {
27782
+ if ((_b = (_a = modeuleInfos.value) == null ? void 0 : _a.productionBases) == null ? void 0 : _b.includes(modeuleTypeValue.value)) {
27780
27783
  const curSetofBook = await currentGet();
27781
27784
  let baseRes = await baseOptions({ setOfBookId: curSetofBook });
27782
27785
  if (!baseRes) {
@@ -27791,7 +27794,7 @@ const _sfc_main = {
27791
27794
  };
27792
27795
  });
27793
27796
  }
27794
- if ((_b = (_a = modeuleInfos.value) == null ? void 0 : _a.projects) == null ? void 0 : _b.includes(modeuleTypeValue.value)) {
27797
+ if ((_d = (_c = modeuleInfos.value) == null ? void 0 : _c.projects) == null ? void 0 : _d.includes(modeuleTypeValue.value)) {
27795
27798
  let dgRes = await getdungouList();
27796
27799
  if (!dgRes) {
27797
27800
  gjTest.value = [];
@@ -28274,7 +28277,7 @@ const _sfc_main = {
28274
28277
  };
28275
28278
  }
28276
28279
  };
28277
- const _withScopeId = (n2) => (pushScopeId("data-v-830aa27e"), n2 = n2(), popScopeId(), n2);
28280
+ const _withScopeId = (n2) => (pushScopeId("data-v-7a1f5131"), n2 = n2(), popScopeId(), n2);
28278
28281
  const _hoisted_1 = {
28279
28282
  class: "bg-white defaultTS funcTC relative",
28280
28283
  style: { "padding-bottom": "10px", "margin-bottom": "10px" }
@@ -29223,7 +29226,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29223
29226
  }, 8, ["show"])
29224
29227
  ], 64);
29225
29228
  }
29226
- const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-830aa27e"]]);
29229
+ const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7a1f5131"]]);
29227
29230
  const components = [TSider];
29228
29231
  installComponents();
29229
29232
  function installComponents() {