tx-sider 2.1.67 → 2.1.69
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 +65 -41
- package/lib/TXUI.umd.js +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -34405,10 +34405,10 @@ var axiosExports = axios$3.exports;
|
|
|
34405
34405
|
var axios = axiosExports;
|
|
34406
34406
|
const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios);
|
|
34407
34407
|
const routes = [
|
|
34408
|
-
{
|
|
34409
|
-
|
|
34410
|
-
|
|
34411
|
-
}
|
|
34408
|
+
// {
|
|
34409
|
+
// path: "/",
|
|
34410
|
+
// component: TSider,
|
|
34411
|
+
// },
|
|
34412
34412
|
];
|
|
34413
34413
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34414
34414
|
__proto__: null,
|
|
@@ -37534,8 +37534,15 @@ const getMaxVersion = (moduleType) => {
|
|
|
37534
37534
|
requestBase: "USER_BASE_URL"
|
|
37535
37535
|
});
|
|
37536
37536
|
};
|
|
37537
|
+
const setUserRead = (id, moduleCode) => {
|
|
37538
|
+
return cwRequest({
|
|
37539
|
+
url: `/api/basis-management/versionManage/setUserRead/${id}/${moduleCode}`,
|
|
37540
|
+
method: "put",
|
|
37541
|
+
requestBase: "USER_BASE_URL"
|
|
37542
|
+
});
|
|
37543
|
+
};
|
|
37537
37544
|
const VersionUpdateModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
37538
|
-
const _withScopeId$3 = (n2) => (pushScopeId("data-v-
|
|
37545
|
+
const _withScopeId$3 = (n2) => (pushScopeId("data-v-1a7ee761"), n2 = n2(), popScopeId(), n2);
|
|
37539
37546
|
const _hoisted_1$4 = { class: "flex items-center h-[60px] pl-[40px] themeBGC" };
|
|
37540
37547
|
const _hoisted_2$4 = { class: "relative w-[30px] h-[30px]" };
|
|
37541
37548
|
const _hoisted_3$4 = {
|
|
@@ -37579,10 +37586,10 @@ const _hoisted_8$4 = [
|
|
|
37579
37586
|
_hoisted_7$4
|
|
37580
37587
|
];
|
|
37581
37588
|
const _hoisted_9$4 = { class: "text-xl cbd9e55 pl-2" };
|
|
37582
|
-
const _hoisted_10$4 = { class: "flex flex-col px-28" };
|
|
37583
|
-
const _hoisted_11$4 = { class: "flex" };
|
|
37584
|
-
const _hoisted_12$3 = /* @__PURE__ */ createTextVNode("取消");
|
|
37585
|
-
const _hoisted_13$1 = /* @__PURE__ */ createTextVNode("设为已读");
|
|
37589
|
+
const _hoisted_10$4 = { class: "flex flex-col px-28 mt-[50px]" };
|
|
37590
|
+
const _hoisted_11$4 = { class: "flex justify-center my-20" };
|
|
37591
|
+
const _hoisted_12$3 = /* @__PURE__ */ createTextVNode(" 取消 ");
|
|
37592
|
+
const _hoisted_13$1 = /* @__PURE__ */ createTextVNode(" 设为已读 ");
|
|
37586
37593
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
37587
37594
|
__name: "VersionUpdateModal",
|
|
37588
37595
|
props: {
|
|
@@ -37674,9 +37681,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
37674
37681
|
console.log("关闭");
|
|
37675
37682
|
inputV.value = false;
|
|
37676
37683
|
};
|
|
37677
|
-
const onRead = () => {
|
|
37684
|
+
const onRead = async () => {
|
|
37685
|
+
var _a, _b;
|
|
37678
37686
|
console.log("已读");
|
|
37679
|
-
|
|
37687
|
+
try {
|
|
37688
|
+
await setUserRead(
|
|
37689
|
+
(_a = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _a.userId,
|
|
37690
|
+
(_b = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _b.location
|
|
37691
|
+
);
|
|
37692
|
+
inputV.value = false;
|
|
37693
|
+
} catch (error) {
|
|
37694
|
+
inputV.value = false;
|
|
37695
|
+
}
|
|
37680
37696
|
};
|
|
37681
37697
|
watch(
|
|
37682
37698
|
() => props2.ccflowData,
|
|
@@ -37743,10 +37759,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
37743
37759
|
}, 8, ["th", "contractExecDocList", "pageSize", "currentPages"]),
|
|
37744
37760
|
createElementVNode("div", _hoisted_11$4, [
|
|
37745
37761
|
createVNode(_component_a_button, {
|
|
37746
|
-
|
|
37747
|
-
|
|
37748
|
-
onClick: moduleHandle
|
|
37749
|
-
style: { "margin-right": "50px" }
|
|
37762
|
+
class: "w-[140px] mr-[50px] btn1",
|
|
37763
|
+
style: { "border-radius": "5px" },
|
|
37764
|
+
onClick: moduleHandle
|
|
37750
37765
|
}, {
|
|
37751
37766
|
default: withCtx(() => [
|
|
37752
37767
|
_hoisted_12$3
|
|
@@ -37754,8 +37769,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
37754
37769
|
_: 1
|
|
37755
37770
|
}),
|
|
37756
37771
|
createVNode(_component_a_button, {
|
|
37772
|
+
class: "w-[140px] mr-[50px] btn2",
|
|
37757
37773
|
type: "primary",
|
|
37758
|
-
class: "px-4 btn2",
|
|
37759
37774
|
onClick: onRead
|
|
37760
37775
|
}, {
|
|
37761
37776
|
default: withCtx(() => [
|
|
@@ -37774,7 +37789,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
37774
37789
|
};
|
|
37775
37790
|
}
|
|
37776
37791
|
});
|
|
37777
|
-
const __unplugin_components_7 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
37792
|
+
const __unplugin_components_7 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1a7ee761"]]);
|
|
37778
37793
|
const index$7 = "";
|
|
37779
37794
|
const CPagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
37780
37795
|
const _hoisted_1$3 = { class: "Pagination" };
|
|
@@ -41710,6 +41725,7 @@ const _sfc_main = {
|
|
|
41710
41725
|
],
|
|
41711
41726
|
// replace: 路由replace; push:路由push
|
|
41712
41727
|
setup(props2, ctx) {
|
|
41728
|
+
var _a;
|
|
41713
41729
|
useRouter();
|
|
41714
41730
|
const route = useRoute();
|
|
41715
41731
|
const changePWDref = ref();
|
|
@@ -41750,11 +41766,11 @@ const _sfc_main = {
|
|
|
41750
41766
|
watch(
|
|
41751
41767
|
() => props2.isModules,
|
|
41752
41768
|
() => {
|
|
41753
|
-
var
|
|
41769
|
+
var _a2;
|
|
41754
41770
|
if (isSystems.value) {
|
|
41755
|
-
moduleTestS.value = ((
|
|
41771
|
+
moduleTestS.value = ((_a2 = permissionModuleList.value.find(
|
|
41756
41772
|
(_x) => _x.permissionModuleName === selectedSystems.value
|
|
41757
|
-
)) == null ? void 0 :
|
|
41773
|
+
)) == null ? void 0 : _a2.childGroups) ?? [];
|
|
41758
41774
|
if (moduleTestS.value.length == 1) {
|
|
41759
41775
|
ModuleShow.value = false;
|
|
41760
41776
|
}
|
|
@@ -41766,10 +41782,10 @@ const _sfc_main = {
|
|
|
41766
41782
|
modeuleInfos.value = await getModeuleInfo();
|
|
41767
41783
|
console.log(modeuleInfos.value, "modeuleInfos.value");
|
|
41768
41784
|
return (moduleKey) => {
|
|
41769
|
-
var
|
|
41785
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
41770
41786
|
return {
|
|
41771
41787
|
isSetOfBooks: modeuleInfos.value.setOfBooks.includes(moduleKey),
|
|
41772
|
-
isProductionBases: (_b = (
|
|
41788
|
+
isProductionBases: (_b = (_a2 = modeuleInfos.value) == null ? void 0 : _a2.productionBases) == null ? void 0 : _b.includes(moduleKey),
|
|
41773
41789
|
isProjects: (_d = (_c = modeuleInfos.value) == null ? void 0 : _c.projects) == null ? void 0 : _d.includes(moduleKey),
|
|
41774
41790
|
isAllProductionBases: (_f = (_e = modeuleInfos.value) == null ? void 0 : _e.allProductionBases) == null ? void 0 : _f.includes(moduleKey)
|
|
41775
41791
|
};
|
|
@@ -41801,8 +41817,8 @@ const _sfc_main = {
|
|
|
41801
41817
|
const menuList = ref();
|
|
41802
41818
|
const goUrl = ref();
|
|
41803
41819
|
onMounted(async () => {
|
|
41804
|
-
var
|
|
41805
|
-
data5.twoUrl = (
|
|
41820
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
41821
|
+
data5.twoUrl = (_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location;
|
|
41806
41822
|
if (data5.twoUrl) {
|
|
41807
41823
|
getMaxVersionApi(data5.twoUrl);
|
|
41808
41824
|
}
|
|
@@ -41903,14 +41919,14 @@ const _sfc_main = {
|
|
|
41903
41919
|
}
|
|
41904
41920
|
const passWordPattern = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/;
|
|
41905
41921
|
async function changePWDOKHandle() {
|
|
41906
|
-
var
|
|
41922
|
+
var _a2;
|
|
41907
41923
|
try {
|
|
41908
41924
|
const values = await changePWDref.value.validateFields();
|
|
41909
41925
|
if (values.new_password != values.new_too_password) {
|
|
41910
41926
|
return message.error("两次输入的新密码不一致");
|
|
41911
41927
|
}
|
|
41912
41928
|
data5.userInfo = JSON.parse(localStorage.getItem("userInfos") || "{}");
|
|
41913
|
-
await changePassword((
|
|
41929
|
+
await changePassword((_a2 = data5.userInfo) == null ? void 0 : _a2.userId, {
|
|
41914
41930
|
newPassword: encryptionStr(values.new_password),
|
|
41915
41931
|
isEnc: true
|
|
41916
41932
|
});
|
|
@@ -41942,7 +41958,7 @@ const _sfc_main = {
|
|
|
41942
41958
|
}
|
|
41943
41959
|
}
|
|
41944
41960
|
const changeModule = async (i2) => {
|
|
41945
|
-
var
|
|
41961
|
+
var _a2, _b;
|
|
41946
41962
|
let { permissionModuleName, routerUrl, location: location2, moduleName } = i2;
|
|
41947
41963
|
if (!getModeuleInfoDataHandle) {
|
|
41948
41964
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
@@ -41989,7 +42005,7 @@ const _sfc_main = {
|
|
|
41989
42005
|
};
|
|
41990
42006
|
});
|
|
41991
42007
|
if (setofbooksTest.value.length == 1) {
|
|
41992
|
-
getOfbooksTest((
|
|
42008
|
+
getOfbooksTest((_a2 = setofbooksTest.value[0]) == null ? void 0 : _a2.id, false);
|
|
41993
42009
|
return;
|
|
41994
42010
|
}
|
|
41995
42011
|
if (ModeuleInfo.isProjects) {
|
|
@@ -42006,22 +42022,22 @@ const _sfc_main = {
|
|
|
42006
42022
|
window.location.href = goUrl.value;
|
|
42007
42023
|
};
|
|
42008
42024
|
const clickModuleVisible = (systemed) => {
|
|
42009
|
-
var
|
|
42025
|
+
var _a2;
|
|
42010
42026
|
data5.moduleVisible = true;
|
|
42011
|
-
moduleTestS.value = ((
|
|
42027
|
+
moduleTestS.value = ((_a2 = permissionModuleList.value.find(
|
|
42012
42028
|
(_x) => _x.permissionModuleName === selectedSystems.value ? selectedSystems.value : systemed
|
|
42013
|
-
)) == null ? void 0 :
|
|
42029
|
+
)) == null ? void 0 : _a2.childGroups) ?? [];
|
|
42014
42030
|
if (moduleTestS.value.length == 1) {
|
|
42015
42031
|
ModuleShow.value = false;
|
|
42016
42032
|
}
|
|
42017
42033
|
};
|
|
42018
42034
|
const oneModule = async (systemed) => {
|
|
42019
|
-
var
|
|
42035
|
+
var _a2;
|
|
42020
42036
|
console.log("oneModule🚀🚀🚀🚀🚀");
|
|
42021
42037
|
await getPermissionModuleListData();
|
|
42022
|
-
moduleTestS.value = ((
|
|
42038
|
+
moduleTestS.value = ((_a2 = permissionModuleList.value.find(
|
|
42023
42039
|
(_x) => _x.permissionModuleName === selectedSystems.value ? selectedSystems.value : systemed
|
|
42024
|
-
)) == null ? void 0 :
|
|
42040
|
+
)) == null ? void 0 : _a2.childGroups) ?? [];
|
|
42025
42041
|
console.log("moduleTestS.value", moduleTestS.value);
|
|
42026
42042
|
if (moduleTestS.value.length == 0) {
|
|
42027
42043
|
console.log("🚀🚀");
|
|
@@ -42117,7 +42133,7 @@ const _sfc_main = {
|
|
|
42117
42133
|
});
|
|
42118
42134
|
const getOfbooksTest = (id, showModal = true) => {
|
|
42119
42135
|
const okHandle = async () => {
|
|
42120
|
-
var
|
|
42136
|
+
var _a2;
|
|
42121
42137
|
setCureentSetOfBookId(id);
|
|
42122
42138
|
await currentPost(id);
|
|
42123
42139
|
const refreshTokenData = await refreshToken({
|
|
@@ -42161,7 +42177,7 @@ const _sfc_main = {
|
|
|
42161
42177
|
return message.error("当前账户没有基地信息,请先分配基地!");
|
|
42162
42178
|
}
|
|
42163
42179
|
if (baseTest.value.length == 1) {
|
|
42164
|
-
getBaseTest((
|
|
42180
|
+
getBaseTest((_a2 = baseTest.value[0]) == null ? void 0 : _a2.id);
|
|
42165
42181
|
return;
|
|
42166
42182
|
}
|
|
42167
42183
|
if (ModeuleInfo.isAllProductionBases) {
|
|
@@ -42219,7 +42235,7 @@ const _sfc_main = {
|
|
|
42219
42235
|
}
|
|
42220
42236
|
};
|
|
42221
42237
|
const openBaseModal = async () => {
|
|
42222
|
-
var
|
|
42238
|
+
var _a2;
|
|
42223
42239
|
isShowAllProductionBasesModel.value = getModeuleInfoDataHandle(
|
|
42224
42240
|
window.location.hostname.split(".")[0]
|
|
42225
42241
|
).isAllProductionBases;
|
|
@@ -42236,7 +42252,7 @@ const _sfc_main = {
|
|
|
42236
42252
|
};
|
|
42237
42253
|
});
|
|
42238
42254
|
if (baseTest.value.length == 1) {
|
|
42239
|
-
getBaseTest((
|
|
42255
|
+
getBaseTest((_a2 = baseTest.value[0]) == null ? void 0 : _a2.id);
|
|
42240
42256
|
return;
|
|
42241
42257
|
}
|
|
42242
42258
|
data5.baseVisible = true;
|
|
@@ -42388,7 +42404,15 @@ const _sfc_main = {
|
|
|
42388
42404
|
moduleVersion.value = await getMaxVersion(moduleType);
|
|
42389
42405
|
};
|
|
42390
42406
|
const isModuleVersionUpdate = ref(
|
|
42391
|
-
ccflowData.newVersionList.length ? true : false
|
|
42407
|
+
((_a = ccflowData.newVersionList) == null ? void 0 : _a.length) ? true : false
|
|
42408
|
+
);
|
|
42409
|
+
watch(
|
|
42410
|
+
() => ccflowData.newVersionList,
|
|
42411
|
+
() => {
|
|
42412
|
+
var _a2;
|
|
42413
|
+
isModuleVersionUpdate.value = ((_a2 = ccflowData.newVersionList) == null ? void 0 : _a2.length) ? true : false;
|
|
42414
|
+
},
|
|
42415
|
+
{ deep: true }
|
|
42392
42416
|
);
|
|
42393
42417
|
return {
|
|
42394
42418
|
...refData,
|
|
@@ -42453,7 +42477,7 @@ const _sfc_main = {
|
|
|
42453
42477
|
};
|
|
42454
42478
|
}
|
|
42455
42479
|
};
|
|
42456
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
42480
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-0eacee9d"), n2 = n2(), popScopeId(), n2);
|
|
42457
42481
|
const _hoisted_1 = {
|
|
42458
42482
|
class: "bg-white defaultTS funcTC relative",
|
|
42459
42483
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -43434,7 +43458,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43434
43458
|
}, null, 8, ["show", "ccflowData"])) : createCommentVNode("", true)
|
|
43435
43459
|
], 64);
|
|
43436
43460
|
}
|
|
43437
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
43461
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0eacee9d"]]);
|
|
43438
43462
|
const components = [TSider];
|
|
43439
43463
|
installComponents();
|
|
43440
43464
|
function installComponents() {
|