tx-sider 2.1.16 → 2.1.19
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 +27 -7
- package/lib/TXUI.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -27645,7 +27645,7 @@ const _sfc_main = {
|
|
|
27645
27645
|
// replace: 路由replace; push:路由push
|
|
27646
27646
|
setup(props, ctx) {
|
|
27647
27647
|
useRouter();
|
|
27648
|
-
useRoute();
|
|
27648
|
+
const route = useRoute();
|
|
27649
27649
|
const changePWDref = ref();
|
|
27650
27650
|
const moduleTestS = ref([]);
|
|
27651
27651
|
const isSystems = ref(props.isSystems);
|
|
@@ -27932,7 +27932,7 @@ const _sfc_main = {
|
|
|
27932
27932
|
var _a;
|
|
27933
27933
|
data3.moduleVisible = true;
|
|
27934
27934
|
moduleTestS.value = ((_a = permissionModuleList.value.find(
|
|
27935
|
-
(_x) => _x.permissionModuleName === selectedSystems.value
|
|
27935
|
+
(_x) => _x.permissionModuleName === selectedSystems.value ? selectedSystems.value : systemed
|
|
27936
27936
|
)) == null ? void 0 : _a.childGroups) ?? [];
|
|
27937
27937
|
if (moduleTestS.value.length == 1) {
|
|
27938
27938
|
ModuleShow.value = false;
|
|
@@ -27946,13 +27946,14 @@ const _sfc_main = {
|
|
|
27946
27946
|
moduleTestS.value = ((_a = permissionModuleList.value.find(
|
|
27947
27947
|
(_x) => _x.permissionModuleName === selectedSystems.value ? selectedSystems.value : systemed
|
|
27948
27948
|
)) == null ? void 0 : _a.childGroups) ?? [];
|
|
27949
|
+
console.log("moduleTestS.value", moduleTestS.value);
|
|
27949
27950
|
if (moduleTestS.value.length == 0) {
|
|
27950
27951
|
console.log("🚀🚀");
|
|
27951
27952
|
message.info("你暂无权限,请联系管理员分配");
|
|
27952
27953
|
} else if (moduleTestS.value.length == 1) {
|
|
27953
27954
|
changeModule(moduleTestS.value[0]);
|
|
27954
27955
|
} else {
|
|
27955
|
-
clickModuleVisible();
|
|
27956
|
+
clickModuleVisible(systemed);
|
|
27956
27957
|
}
|
|
27957
27958
|
};
|
|
27958
27959
|
const changesystem = (i2) => {
|
|
@@ -27964,6 +27965,19 @@ const _sfc_main = {
|
|
|
27964
27965
|
}
|
|
27965
27966
|
data3.moduleVisible = true;
|
|
27966
27967
|
};
|
|
27968
|
+
const closeSysetmModal = () => {
|
|
27969
|
+
data3.systemVisible = false;
|
|
27970
|
+
ifRemoveToken();
|
|
27971
|
+
};
|
|
27972
|
+
const closeDgVisible = () => {
|
|
27973
|
+
data3.dgVisible = false;
|
|
27974
|
+
ifRemoveToken();
|
|
27975
|
+
};
|
|
27976
|
+
const ifRemoveToken = () => {
|
|
27977
|
+
if (route.path == "/login") {
|
|
27978
|
+
localStorage.removeItem("token");
|
|
27979
|
+
}
|
|
27980
|
+
};
|
|
27967
27981
|
const setofbooksTest = ref([]);
|
|
27968
27982
|
const baseTest = ref();
|
|
27969
27983
|
ref();
|
|
@@ -28107,6 +28121,7 @@ const _sfc_main = {
|
|
|
28107
28121
|
};
|
|
28108
28122
|
const cloneBaseModal = () => {
|
|
28109
28123
|
data3.baseVisible = false;
|
|
28124
|
+
ifRemoveToken();
|
|
28110
28125
|
};
|
|
28111
28126
|
const openBaseModal = async () => {
|
|
28112
28127
|
var _a;
|
|
@@ -28189,7 +28204,9 @@ const _sfc_main = {
|
|
|
28189
28204
|
window.location.href = goUrl.value;
|
|
28190
28205
|
};
|
|
28191
28206
|
const moduleHandle = () => {
|
|
28207
|
+
console.log("关闭");
|
|
28192
28208
|
data3.moduleVisible = false;
|
|
28209
|
+
ifRemoveToken();
|
|
28193
28210
|
};
|
|
28194
28211
|
const openModule = () => {
|
|
28195
28212
|
data3.moduleVisible = true;
|
|
@@ -28271,6 +28288,9 @@ const _sfc_main = {
|
|
|
28271
28288
|
clickModuleVisible,
|
|
28272
28289
|
changeModule,
|
|
28273
28290
|
changesystem,
|
|
28291
|
+
closeSysetmModal,
|
|
28292
|
+
ifRemoveToken,
|
|
28293
|
+
closeDgVisible,
|
|
28274
28294
|
getOfbooksTest,
|
|
28275
28295
|
getBaseTest,
|
|
28276
28296
|
getgjTest,
|
|
@@ -28304,7 +28324,7 @@ const _sfc_main = {
|
|
|
28304
28324
|
};
|
|
28305
28325
|
}
|
|
28306
28326
|
};
|
|
28307
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
28327
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-5c2109a5"), n2 = n2(), popScopeId(), n2);
|
|
28308
28328
|
const _hoisted_1 = {
|
|
28309
28329
|
class: "bg-white defaultTS funcTC relative",
|
|
28310
28330
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -28893,7 +28913,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28893
28913
|
_hoisted_33,
|
|
28894
28914
|
createElementVNode("div", {
|
|
28895
28915
|
class: "h-[60px] w-[80px] zIndex",
|
|
28896
|
-
onClick: _cache[14] || (_cache[14] = ($event) =>
|
|
28916
|
+
onClick: _cache[14] || (_cache[14] = ($event) => $setup.closeSysetmModal())
|
|
28897
28917
|
})
|
|
28898
28918
|
])
|
|
28899
28919
|
]),
|
|
@@ -29135,7 +29155,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29135
29155
|
_hoisted_74,
|
|
29136
29156
|
createElementVNode("div", {
|
|
29137
29157
|
class: "h-[60px] w-[80px] zIndex",
|
|
29138
|
-
onClick: _cache[21] || (_cache[21] = ($event) =>
|
|
29158
|
+
onClick: _cache[21] || (_cache[21] = ($event) => $setup.closeDgVisible())
|
|
29139
29159
|
})
|
|
29140
29160
|
])
|
|
29141
29161
|
]),
|
|
@@ -29257,7 +29277,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29257
29277
|
}, 8, ["show"])
|
|
29258
29278
|
], 64);
|
|
29259
29279
|
}
|
|
29260
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
29280
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5c2109a5"]]);
|
|
29261
29281
|
const components = [TSider];
|
|
29262
29282
|
installComponents();
|
|
29263
29283
|
function installComponents() {
|