tx-sider 2.1.66 → 2.1.68

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
@@ -30084,9 +30084,20 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
30084
30084
  },
30085
30085
  emits: ["cancelHandle", "update:show"],
30086
30086
  setup(__props, { emit }) {
30087
+ const props2 = __props;
30088
+ const inputV = computed({
30089
+ get() {
30090
+ return props2.show;
30091
+ },
30092
+ set(value) {
30093
+ emit("update:show", value);
30094
+ emit("cancelHandle", value);
30095
+ }
30096
+ });
30087
30097
  function cancel() {
30088
30098
  console.log("11111111111111111111111111");
30089
30099
  emit("update:show", false);
30100
+ emit("cancelHandle", false);
30090
30101
  }
30091
30102
  return (_ctx, _cache) => {
30092
30103
  const _component_close_circle_outlined = resolveComponent("close-circle-outlined");
@@ -30096,8 +30107,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
30096
30107
  __props.removePadding ? "" : "not-padding",
30097
30108
  "module-class modal-components"
30098
30109
  ],
30099
- visible: __props.show,
30100
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isRef(show) ? show.value = $event : null),
30110
+ visible: unref(inputV),
30111
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isRef(inputV) ? inputV.value = $event : null),
30101
30112
  onCancel: cancel,
30102
30113
  destroyOnClose: "",
30103
30114
  footer: null
@@ -41617,7 +41628,7 @@ function useCcflowCall() {
41617
41628
  });
41618
41629
  connection.value.on("PublishNewVersion", (res) => {
41619
41630
  console.log("PublishNewVersion", "获取数据:", res);
41620
- ccflowData.newVersionList = JSON.parse(res);
41631
+ ccflowData.newVersionList = res;
41621
41632
  });
41622
41633
  connection.value.onreconnected(async (id) => {
41623
41634
  var _a, _b;
@@ -41699,6 +41710,7 @@ const _sfc_main = {
41699
41710
  ],
41700
41711
  // replace: 路由replace; push:路由push
41701
41712
  setup(props2, ctx) {
41713
+ var _a;
41702
41714
  useRouter();
41703
41715
  const route = useRoute();
41704
41716
  const changePWDref = ref();
@@ -41739,11 +41751,11 @@ const _sfc_main = {
41739
41751
  watch(
41740
41752
  () => props2.isModules,
41741
41753
  () => {
41742
- var _a;
41754
+ var _a2;
41743
41755
  if (isSystems.value) {
41744
- moduleTestS.value = ((_a = permissionModuleList.value.find(
41756
+ moduleTestS.value = ((_a2 = permissionModuleList.value.find(
41745
41757
  (_x) => _x.permissionModuleName === selectedSystems.value
41746
- )) == null ? void 0 : _a.childGroups) ?? [];
41758
+ )) == null ? void 0 : _a2.childGroups) ?? [];
41747
41759
  if (moduleTestS.value.length == 1) {
41748
41760
  ModuleShow.value = false;
41749
41761
  }
@@ -41755,10 +41767,10 @@ const _sfc_main = {
41755
41767
  modeuleInfos.value = await getModeuleInfo();
41756
41768
  console.log(modeuleInfos.value, "modeuleInfos.value");
41757
41769
  return (moduleKey) => {
41758
- var _a, _b, _c, _d, _e, _f;
41770
+ var _a2, _b, _c, _d, _e, _f;
41759
41771
  return {
41760
41772
  isSetOfBooks: modeuleInfos.value.setOfBooks.includes(moduleKey),
41761
- isProductionBases: (_b = (_a = modeuleInfos.value) == null ? void 0 : _a.productionBases) == null ? void 0 : _b.includes(moduleKey),
41773
+ isProductionBases: (_b = (_a2 = modeuleInfos.value) == null ? void 0 : _a2.productionBases) == null ? void 0 : _b.includes(moduleKey),
41762
41774
  isProjects: (_d = (_c = modeuleInfos.value) == null ? void 0 : _c.projects) == null ? void 0 : _d.includes(moduleKey),
41763
41775
  isAllProductionBases: (_f = (_e = modeuleInfos.value) == null ? void 0 : _e.allProductionBases) == null ? void 0 : _f.includes(moduleKey)
41764
41776
  };
@@ -41790,8 +41802,8 @@ const _sfc_main = {
41790
41802
  const menuList = ref();
41791
41803
  const goUrl = ref();
41792
41804
  onMounted(async () => {
41793
- var _a, _b, _c, _d, _e, _f, _g;
41794
- data5.twoUrl = (_a = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a.location;
41805
+ var _a2, _b, _c, _d, _e, _f, _g;
41806
+ data5.twoUrl = (_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location;
41795
41807
  if (data5.twoUrl) {
41796
41808
  getMaxVersionApi(data5.twoUrl);
41797
41809
  }
@@ -41892,14 +41904,14 @@ const _sfc_main = {
41892
41904
  }
41893
41905
  const passWordPattern = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/;
41894
41906
  async function changePWDOKHandle() {
41895
- var _a;
41907
+ var _a2;
41896
41908
  try {
41897
41909
  const values = await changePWDref.value.validateFields();
41898
41910
  if (values.new_password != values.new_too_password) {
41899
41911
  return message.error("两次输入的新密码不一致");
41900
41912
  }
41901
41913
  data5.userInfo = JSON.parse(localStorage.getItem("userInfos") || "{}");
41902
- await changePassword((_a = data5.userInfo) == null ? void 0 : _a.userId, {
41914
+ await changePassword((_a2 = data5.userInfo) == null ? void 0 : _a2.userId, {
41903
41915
  newPassword: encryptionStr(values.new_password),
41904
41916
  isEnc: true
41905
41917
  });
@@ -41931,7 +41943,7 @@ const _sfc_main = {
41931
41943
  }
41932
41944
  }
41933
41945
  const changeModule = async (i2) => {
41934
- var _a, _b;
41946
+ var _a2, _b;
41935
41947
  let { permissionModuleName, routerUrl, location: location2, moduleName } = i2;
41936
41948
  if (!getModeuleInfoDataHandle) {
41937
41949
  getModeuleInfoDataHandle = await getModeuleInfoData();
@@ -41978,7 +41990,7 @@ const _sfc_main = {
41978
41990
  };
41979
41991
  });
41980
41992
  if (setofbooksTest.value.length == 1) {
41981
- getOfbooksTest((_a = setofbooksTest.value[0]) == null ? void 0 : _a.id, false);
41993
+ getOfbooksTest((_a2 = setofbooksTest.value[0]) == null ? void 0 : _a2.id, false);
41982
41994
  return;
41983
41995
  }
41984
41996
  if (ModeuleInfo.isProjects) {
@@ -41995,22 +42007,22 @@ const _sfc_main = {
41995
42007
  window.location.href = goUrl.value;
41996
42008
  };
41997
42009
  const clickModuleVisible = (systemed) => {
41998
- var _a;
42010
+ var _a2;
41999
42011
  data5.moduleVisible = true;
42000
- moduleTestS.value = ((_a = permissionModuleList.value.find(
42012
+ moduleTestS.value = ((_a2 = permissionModuleList.value.find(
42001
42013
  (_x) => _x.permissionModuleName === selectedSystems.value ? selectedSystems.value : systemed
42002
- )) == null ? void 0 : _a.childGroups) ?? [];
42014
+ )) == null ? void 0 : _a2.childGroups) ?? [];
42003
42015
  if (moduleTestS.value.length == 1) {
42004
42016
  ModuleShow.value = false;
42005
42017
  }
42006
42018
  };
42007
42019
  const oneModule = async (systemed) => {
42008
- var _a;
42020
+ var _a2;
42009
42021
  console.log("oneModule🚀🚀🚀🚀🚀");
42010
42022
  await getPermissionModuleListData();
42011
- moduleTestS.value = ((_a = permissionModuleList.value.find(
42023
+ moduleTestS.value = ((_a2 = permissionModuleList.value.find(
42012
42024
  (_x) => _x.permissionModuleName === selectedSystems.value ? selectedSystems.value : systemed
42013
- )) == null ? void 0 : _a.childGroups) ?? [];
42025
+ )) == null ? void 0 : _a2.childGroups) ?? [];
42014
42026
  console.log("moduleTestS.value", moduleTestS.value);
42015
42027
  if (moduleTestS.value.length == 0) {
42016
42028
  console.log("🚀🚀");
@@ -42106,7 +42118,7 @@ const _sfc_main = {
42106
42118
  });
42107
42119
  const getOfbooksTest = (id, showModal = true) => {
42108
42120
  const okHandle = async () => {
42109
- var _a;
42121
+ var _a2;
42110
42122
  setCureentSetOfBookId(id);
42111
42123
  await currentPost(id);
42112
42124
  const refreshTokenData = await refreshToken({
@@ -42150,7 +42162,7 @@ const _sfc_main = {
42150
42162
  return message.error("当前账户没有基地信息,请先分配基地!");
42151
42163
  }
42152
42164
  if (baseTest.value.length == 1) {
42153
- getBaseTest((_a = baseTest.value[0]) == null ? void 0 : _a.id);
42165
+ getBaseTest((_a2 = baseTest.value[0]) == null ? void 0 : _a2.id);
42154
42166
  return;
42155
42167
  }
42156
42168
  if (ModeuleInfo.isAllProductionBases) {
@@ -42208,7 +42220,7 @@ const _sfc_main = {
42208
42220
  }
42209
42221
  };
42210
42222
  const openBaseModal = async () => {
42211
- var _a;
42223
+ var _a2;
42212
42224
  isShowAllProductionBasesModel.value = getModeuleInfoDataHandle(
42213
42225
  window.location.hostname.split(".")[0]
42214
42226
  ).isAllProductionBases;
@@ -42225,7 +42237,7 @@ const _sfc_main = {
42225
42237
  };
42226
42238
  });
42227
42239
  if (baseTest.value.length == 1) {
42228
- getBaseTest((_a = baseTest.value[0]) == null ? void 0 : _a.id);
42240
+ getBaseTest((_a2 = baseTest.value[0]) == null ? void 0 : _a2.id);
42229
42241
  return;
42230
42242
  }
42231
42243
  data5.baseVisible = true;
@@ -42377,7 +42389,15 @@ const _sfc_main = {
42377
42389
  moduleVersion.value = await getMaxVersion(moduleType);
42378
42390
  };
42379
42391
  const isModuleVersionUpdate = ref(
42380
- ccflowData.newVersionList.length ? true : false
42392
+ ((_a = ccflowData.newVersionList) == null ? void 0 : _a.length) ? true : false
42393
+ );
42394
+ watch(
42395
+ () => ccflowData.newVersionList,
42396
+ () => {
42397
+ var _a2;
42398
+ isModuleVersionUpdate.value = ((_a2 = ccflowData.newVersionList) == null ? void 0 : _a2.length) ? true : false;
42399
+ },
42400
+ { deep: true }
42381
42401
  );
42382
42402
  return {
42383
42403
  ...refData,
@@ -42442,7 +42462,7 @@ const _sfc_main = {
42442
42462
  };
42443
42463
  }
42444
42464
  };
42445
- const _withScopeId = (n2) => (pushScopeId("data-v-5bf5ce7e"), n2 = n2(), popScopeId(), n2);
42465
+ const _withScopeId = (n2) => (pushScopeId("data-v-0eacee9d"), n2 = n2(), popScopeId(), n2);
42446
42466
  const _hoisted_1 = {
42447
42467
  class: "bg-white defaultTS funcTC relative",
42448
42468
  style: { "padding-bottom": "10px", "margin-bottom": "10px" }
@@ -43423,7 +43443,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
43423
43443
  }, null, 8, ["show", "ccflowData"])) : createCommentVNode("", true)
43424
43444
  ], 64);
43425
43445
  }
43426
- const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5bf5ce7e"]]);
43446
+ const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0eacee9d"]]);
43427
43447
  const components = [TSider];
43428
43448
  installComponents();
43429
43449
  function installComponents() {