tx-sider 2.1.67 → 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 +33 -24
- package/lib/TXUI.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -41710,6 +41710,7 @@ const _sfc_main = {
|
|
|
41710
41710
|
],
|
|
41711
41711
|
// replace: 路由replace; push:路由push
|
|
41712
41712
|
setup(props2, ctx) {
|
|
41713
|
+
var _a;
|
|
41713
41714
|
useRouter();
|
|
41714
41715
|
const route = useRoute();
|
|
41715
41716
|
const changePWDref = ref();
|
|
@@ -41750,11 +41751,11 @@ const _sfc_main = {
|
|
|
41750
41751
|
watch(
|
|
41751
41752
|
() => props2.isModules,
|
|
41752
41753
|
() => {
|
|
41753
|
-
var
|
|
41754
|
+
var _a2;
|
|
41754
41755
|
if (isSystems.value) {
|
|
41755
|
-
moduleTestS.value = ((
|
|
41756
|
+
moduleTestS.value = ((_a2 = permissionModuleList.value.find(
|
|
41756
41757
|
(_x) => _x.permissionModuleName === selectedSystems.value
|
|
41757
|
-
)) == null ? void 0 :
|
|
41758
|
+
)) == null ? void 0 : _a2.childGroups) ?? [];
|
|
41758
41759
|
if (moduleTestS.value.length == 1) {
|
|
41759
41760
|
ModuleShow.value = false;
|
|
41760
41761
|
}
|
|
@@ -41766,10 +41767,10 @@ const _sfc_main = {
|
|
|
41766
41767
|
modeuleInfos.value = await getModeuleInfo();
|
|
41767
41768
|
console.log(modeuleInfos.value, "modeuleInfos.value");
|
|
41768
41769
|
return (moduleKey) => {
|
|
41769
|
-
var
|
|
41770
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
41770
41771
|
return {
|
|
41771
41772
|
isSetOfBooks: modeuleInfos.value.setOfBooks.includes(moduleKey),
|
|
41772
|
-
isProductionBases: (_b = (
|
|
41773
|
+
isProductionBases: (_b = (_a2 = modeuleInfos.value) == null ? void 0 : _a2.productionBases) == null ? void 0 : _b.includes(moduleKey),
|
|
41773
41774
|
isProjects: (_d = (_c = modeuleInfos.value) == null ? void 0 : _c.projects) == null ? void 0 : _d.includes(moduleKey),
|
|
41774
41775
|
isAllProductionBases: (_f = (_e = modeuleInfos.value) == null ? void 0 : _e.allProductionBases) == null ? void 0 : _f.includes(moduleKey)
|
|
41775
41776
|
};
|
|
@@ -41801,8 +41802,8 @@ const _sfc_main = {
|
|
|
41801
41802
|
const menuList = ref();
|
|
41802
41803
|
const goUrl = ref();
|
|
41803
41804
|
onMounted(async () => {
|
|
41804
|
-
var
|
|
41805
|
-
data5.twoUrl = (
|
|
41805
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
41806
|
+
data5.twoUrl = (_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location;
|
|
41806
41807
|
if (data5.twoUrl) {
|
|
41807
41808
|
getMaxVersionApi(data5.twoUrl);
|
|
41808
41809
|
}
|
|
@@ -41903,14 +41904,14 @@ const _sfc_main = {
|
|
|
41903
41904
|
}
|
|
41904
41905
|
const passWordPattern = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/;
|
|
41905
41906
|
async function changePWDOKHandle() {
|
|
41906
|
-
var
|
|
41907
|
+
var _a2;
|
|
41907
41908
|
try {
|
|
41908
41909
|
const values = await changePWDref.value.validateFields();
|
|
41909
41910
|
if (values.new_password != values.new_too_password) {
|
|
41910
41911
|
return message.error("两次输入的新密码不一致");
|
|
41911
41912
|
}
|
|
41912
41913
|
data5.userInfo = JSON.parse(localStorage.getItem("userInfos") || "{}");
|
|
41913
|
-
await changePassword((
|
|
41914
|
+
await changePassword((_a2 = data5.userInfo) == null ? void 0 : _a2.userId, {
|
|
41914
41915
|
newPassword: encryptionStr(values.new_password),
|
|
41915
41916
|
isEnc: true
|
|
41916
41917
|
});
|
|
@@ -41942,7 +41943,7 @@ const _sfc_main = {
|
|
|
41942
41943
|
}
|
|
41943
41944
|
}
|
|
41944
41945
|
const changeModule = async (i2) => {
|
|
41945
|
-
var
|
|
41946
|
+
var _a2, _b;
|
|
41946
41947
|
let { permissionModuleName, routerUrl, location: location2, moduleName } = i2;
|
|
41947
41948
|
if (!getModeuleInfoDataHandle) {
|
|
41948
41949
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
@@ -41989,7 +41990,7 @@ const _sfc_main = {
|
|
|
41989
41990
|
};
|
|
41990
41991
|
});
|
|
41991
41992
|
if (setofbooksTest.value.length == 1) {
|
|
41992
|
-
getOfbooksTest((
|
|
41993
|
+
getOfbooksTest((_a2 = setofbooksTest.value[0]) == null ? void 0 : _a2.id, false);
|
|
41993
41994
|
return;
|
|
41994
41995
|
}
|
|
41995
41996
|
if (ModeuleInfo.isProjects) {
|
|
@@ -42006,22 +42007,22 @@ const _sfc_main = {
|
|
|
42006
42007
|
window.location.href = goUrl.value;
|
|
42007
42008
|
};
|
|
42008
42009
|
const clickModuleVisible = (systemed) => {
|
|
42009
|
-
var
|
|
42010
|
+
var _a2;
|
|
42010
42011
|
data5.moduleVisible = true;
|
|
42011
|
-
moduleTestS.value = ((
|
|
42012
|
+
moduleTestS.value = ((_a2 = permissionModuleList.value.find(
|
|
42012
42013
|
(_x) => _x.permissionModuleName === selectedSystems.value ? selectedSystems.value : systemed
|
|
42013
|
-
)) == null ? void 0 :
|
|
42014
|
+
)) == null ? void 0 : _a2.childGroups) ?? [];
|
|
42014
42015
|
if (moduleTestS.value.length == 1) {
|
|
42015
42016
|
ModuleShow.value = false;
|
|
42016
42017
|
}
|
|
42017
42018
|
};
|
|
42018
42019
|
const oneModule = async (systemed) => {
|
|
42019
|
-
var
|
|
42020
|
+
var _a2;
|
|
42020
42021
|
console.log("oneModule🚀🚀🚀🚀🚀");
|
|
42021
42022
|
await getPermissionModuleListData();
|
|
42022
|
-
moduleTestS.value = ((
|
|
42023
|
+
moduleTestS.value = ((_a2 = permissionModuleList.value.find(
|
|
42023
42024
|
(_x) => _x.permissionModuleName === selectedSystems.value ? selectedSystems.value : systemed
|
|
42024
|
-
)) == null ? void 0 :
|
|
42025
|
+
)) == null ? void 0 : _a2.childGroups) ?? [];
|
|
42025
42026
|
console.log("moduleTestS.value", moduleTestS.value);
|
|
42026
42027
|
if (moduleTestS.value.length == 0) {
|
|
42027
42028
|
console.log("🚀🚀");
|
|
@@ -42117,7 +42118,7 @@ const _sfc_main = {
|
|
|
42117
42118
|
});
|
|
42118
42119
|
const getOfbooksTest = (id, showModal = true) => {
|
|
42119
42120
|
const okHandle = async () => {
|
|
42120
|
-
var
|
|
42121
|
+
var _a2;
|
|
42121
42122
|
setCureentSetOfBookId(id);
|
|
42122
42123
|
await currentPost(id);
|
|
42123
42124
|
const refreshTokenData = await refreshToken({
|
|
@@ -42161,7 +42162,7 @@ const _sfc_main = {
|
|
|
42161
42162
|
return message.error("当前账户没有基地信息,请先分配基地!");
|
|
42162
42163
|
}
|
|
42163
42164
|
if (baseTest.value.length == 1) {
|
|
42164
|
-
getBaseTest((
|
|
42165
|
+
getBaseTest((_a2 = baseTest.value[0]) == null ? void 0 : _a2.id);
|
|
42165
42166
|
return;
|
|
42166
42167
|
}
|
|
42167
42168
|
if (ModeuleInfo.isAllProductionBases) {
|
|
@@ -42219,7 +42220,7 @@ const _sfc_main = {
|
|
|
42219
42220
|
}
|
|
42220
42221
|
};
|
|
42221
42222
|
const openBaseModal = async () => {
|
|
42222
|
-
var
|
|
42223
|
+
var _a2;
|
|
42223
42224
|
isShowAllProductionBasesModel.value = getModeuleInfoDataHandle(
|
|
42224
42225
|
window.location.hostname.split(".")[0]
|
|
42225
42226
|
).isAllProductionBases;
|
|
@@ -42236,7 +42237,7 @@ const _sfc_main = {
|
|
|
42236
42237
|
};
|
|
42237
42238
|
});
|
|
42238
42239
|
if (baseTest.value.length == 1) {
|
|
42239
|
-
getBaseTest((
|
|
42240
|
+
getBaseTest((_a2 = baseTest.value[0]) == null ? void 0 : _a2.id);
|
|
42240
42241
|
return;
|
|
42241
42242
|
}
|
|
42242
42243
|
data5.baseVisible = true;
|
|
@@ -42388,7 +42389,15 @@ const _sfc_main = {
|
|
|
42388
42389
|
moduleVersion.value = await getMaxVersion(moduleType);
|
|
42389
42390
|
};
|
|
42390
42391
|
const isModuleVersionUpdate = ref(
|
|
42391
|
-
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 }
|
|
42392
42401
|
);
|
|
42393
42402
|
return {
|
|
42394
42403
|
...refData,
|
|
@@ -42453,7 +42462,7 @@ const _sfc_main = {
|
|
|
42453
42462
|
};
|
|
42454
42463
|
}
|
|
42455
42464
|
};
|
|
42456
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
42465
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-0eacee9d"), n2 = n2(), popScopeId(), n2);
|
|
42457
42466
|
const _hoisted_1 = {
|
|
42458
42467
|
class: "bg-white defaultTS funcTC relative",
|
|
42459
42468
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -43434,7 +43443,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43434
43443
|
}, null, 8, ["show", "ccflowData"])) : createCommentVNode("", true)
|
|
43435
43444
|
], 64);
|
|
43436
43445
|
}
|
|
43437
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
43446
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0eacee9d"]]);
|
|
43438
43447
|
const components = [TSider];
|
|
43439
43448
|
installComponents();
|
|
43440
43449
|
function installComponents() {
|