tx-sider 2.1.65 → 2.1.67
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 +39 -28
- package/lib/TXUI.umd.js +2 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -30084,8 +30084,19 @@ 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");
|
|
30099
|
+
emit("update:show", false);
|
|
30089
30100
|
emit("cancelHandle", false);
|
|
30090
30101
|
}
|
|
30091
30102
|
return (_ctx, _cache) => {
|
|
@@ -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:
|
|
30100
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isRef(
|
|
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
|
|
@@ -37524,7 +37535,7 @@ const getMaxVersion = (moduleType) => {
|
|
|
37524
37535
|
});
|
|
37525
37536
|
};
|
|
37526
37537
|
const VersionUpdateModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
37527
|
-
const _withScopeId$3 = (n2) => (pushScopeId("data-v-
|
|
37538
|
+
const _withScopeId$3 = (n2) => (pushScopeId("data-v-268d99dc"), n2 = n2(), popScopeId(), n2);
|
|
37528
37539
|
const _hoisted_1$4 = { class: "flex items-center h-[60px] pl-[40px] themeBGC" };
|
|
37529
37540
|
const _hoisted_2$4 = { class: "relative w-[30px] h-[30px]" };
|
|
37530
37541
|
const _hoisted_3$4 = {
|
|
@@ -37763,7 +37774,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
37763
37774
|
};
|
|
37764
37775
|
}
|
|
37765
37776
|
});
|
|
37766
|
-
const __unplugin_components_7 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
37777
|
+
const __unplugin_components_7 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-268d99dc"]]);
|
|
37767
37778
|
const index$7 = "";
|
|
37768
37779
|
const CPagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
37769
37780
|
const _hoisted_1$3 = { class: "Pagination" };
|
|
@@ -37914,7 +37925,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
37914
37925
|
const __unplugin_components_4 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-9beb5acc"]]);
|
|
37915
37926
|
const index$6 = "";
|
|
37916
37927
|
const ModuleVersionModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
37917
|
-
const _withScopeId$2 = (n2) => (pushScopeId("data-v-
|
|
37928
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-5cc123ea"), n2 = n2(), popScopeId(), n2);
|
|
37918
37929
|
const _hoisted_1$2 = { class: "flex items-center h-[60px] pl-[40px] themeBGC" };
|
|
37919
37930
|
const _hoisted_2$2 = { class: "relative w-[30px] h-[30px]" };
|
|
37920
37931
|
const _hoisted_3$2 = {
|
|
@@ -38171,7 +38182,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
38171
38182
|
};
|
|
38172
38183
|
}
|
|
38173
38184
|
});
|
|
38174
|
-
const __unplugin_components_6 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
38185
|
+
const __unplugin_components_6 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-5cc123ea"]]);
|
|
38175
38186
|
const index$5 = "";
|
|
38176
38187
|
const index$4 = "";
|
|
38177
38188
|
const index$3 = "";
|
|
@@ -41617,19 +41628,21 @@ function useCcflowCall() {
|
|
|
41617
41628
|
});
|
|
41618
41629
|
connection.value.on("PublishNewVersion", (res) => {
|
|
41619
41630
|
console.log("PublishNewVersion", "获取数据:", res);
|
|
41620
|
-
ccflowData.newVersionList =
|
|
41631
|
+
ccflowData.newVersionList = res;
|
|
41621
41632
|
});
|
|
41622
41633
|
connection.value.onreconnected(async (id) => {
|
|
41634
|
+
var _a, _b;
|
|
41623
41635
|
await connection.value.invoke("Start");
|
|
41624
41636
|
await connection.value.invoke("MenuNums");
|
|
41625
|
-
await connection.value.invoke("NewVersion", "
|
|
41637
|
+
await connection.value.invoke("NewVersion", (_a = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a.location, (_b = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b.userId);
|
|
41626
41638
|
});
|
|
41627
41639
|
if (connection.value.state !== HubConnectionState.Connected) {
|
|
41628
41640
|
connection.value.start().then(async () => {
|
|
41641
|
+
var _a, _b;
|
|
41629
41642
|
console.log("启动即时通信成功");
|
|
41630
41643
|
await connection.value.invoke("Start");
|
|
41631
41644
|
await connection.value.invoke("MenuNums");
|
|
41632
|
-
await connection.value.invoke("NewVersion", "
|
|
41645
|
+
await connection.value.invoke("NewVersion", (_a = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a.location, (_b = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b.userId);
|
|
41633
41646
|
});
|
|
41634
41647
|
}
|
|
41635
41648
|
};
|
|
@@ -41722,7 +41735,8 @@ const _sfc_main = {
|
|
|
41722
41735
|
new_password: "",
|
|
41723
41736
|
new_too_password: ""
|
|
41724
41737
|
},
|
|
41725
|
-
userInfo: {}
|
|
41738
|
+
userInfo: {},
|
|
41739
|
+
twoUrl: void 0
|
|
41726
41740
|
});
|
|
41727
41741
|
const refData = toRefs(data5);
|
|
41728
41742
|
const iconUrl = process.env.NODE_ENV == "development" ? "https://basis.nacho.cn" : "https://basis.nacho.cn";
|
|
@@ -41749,20 +41763,13 @@ const _sfc_main = {
|
|
|
41749
41763
|
);
|
|
41750
41764
|
const modeuleInfos = ref();
|
|
41751
41765
|
const getModeuleInfoData = async () => {
|
|
41752
|
-
var _a;
|
|
41753
|
-
const location2 = (_a = JSON.parse(
|
|
41754
|
-
localStorage.getItem("selectModule")
|
|
41755
|
-
)) == null ? void 0 : _a.location;
|
|
41756
|
-
if (location2) {
|
|
41757
|
-
getMaxVersionApi(location2);
|
|
41758
|
-
}
|
|
41759
41766
|
modeuleInfos.value = await getModeuleInfo();
|
|
41760
41767
|
console.log(modeuleInfos.value, "modeuleInfos.value");
|
|
41761
41768
|
return (moduleKey) => {
|
|
41762
|
-
var
|
|
41769
|
+
var _a, _b, _c, _d, _e, _f;
|
|
41763
41770
|
return {
|
|
41764
41771
|
isSetOfBooks: modeuleInfos.value.setOfBooks.includes(moduleKey),
|
|
41765
|
-
isProductionBases: (_b = (
|
|
41772
|
+
isProductionBases: (_b = (_a = modeuleInfos.value) == null ? void 0 : _a.productionBases) == null ? void 0 : _b.includes(moduleKey),
|
|
41766
41773
|
isProjects: (_d = (_c = modeuleInfos.value) == null ? void 0 : _c.projects) == null ? void 0 : _d.includes(moduleKey),
|
|
41767
41774
|
isAllProductionBases: (_f = (_e = modeuleInfos.value) == null ? void 0 : _e.allProductionBases) == null ? void 0 : _f.includes(moduleKey)
|
|
41768
41775
|
};
|
|
@@ -41794,11 +41801,15 @@ const _sfc_main = {
|
|
|
41794
41801
|
const menuList = ref();
|
|
41795
41802
|
const goUrl = ref();
|
|
41796
41803
|
onMounted(async () => {
|
|
41797
|
-
var _a, _b, _c, _d, _e, _f;
|
|
41804
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
41805
|
+
data5.twoUrl = (_a = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a.location;
|
|
41806
|
+
if (data5.twoUrl) {
|
|
41807
|
+
getMaxVersionApi(data5.twoUrl);
|
|
41808
|
+
}
|
|
41798
41809
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
41799
|
-
isShowAllProductionBases.value = (
|
|
41810
|
+
isShowAllProductionBases.value = (_b = getModeuleInfoDataHandle(
|
|
41800
41811
|
window.location.hostname.split(".")[0]
|
|
41801
|
-
)) == null ? void 0 :
|
|
41812
|
+
)) == null ? void 0 : _b.isAllProductionBases;
|
|
41802
41813
|
selectedSystems.value = isSystems.value;
|
|
41803
41814
|
await getPermissionModuleListData();
|
|
41804
41815
|
data5.userInfo = JSON.parse(localStorage.getItem("userInfos") || "{}");
|
|
@@ -41819,9 +41830,9 @@ const _sfc_main = {
|
|
|
41819
41830
|
}
|
|
41820
41831
|
}
|
|
41821
41832
|
if (isSystems.value) {
|
|
41822
|
-
moduleTestS.value = ((
|
|
41833
|
+
moduleTestS.value = ((_c = permissionModuleList.value.find(
|
|
41823
41834
|
(_x) => _x.permissionModuleName === selectedSystems.value
|
|
41824
|
-
)) == null ? void 0 :
|
|
41835
|
+
)) == null ? void 0 : _c.childGroups) ?? [];
|
|
41825
41836
|
}
|
|
41826
41837
|
if (permissionModuleList.value.length == 1) {
|
|
41827
41838
|
sysShow.value = false;
|
|
@@ -41849,7 +41860,7 @@ const _sfc_main = {
|
|
|
41849
41860
|
shortName: item.shortName
|
|
41850
41861
|
};
|
|
41851
41862
|
});
|
|
41852
|
-
if ((
|
|
41863
|
+
if ((_e = (_d = modeuleInfos.value) == null ? void 0 : _d.productionBases) == null ? void 0 : _e.includes(modeuleTypeValue.value)) {
|
|
41853
41864
|
const curSetofBook = await currentGet();
|
|
41854
41865
|
let baseRes = await baseOptions({ setOfBookId: curSetofBook });
|
|
41855
41866
|
if (!baseRes) {
|
|
@@ -41864,7 +41875,7 @@ const _sfc_main = {
|
|
|
41864
41875
|
};
|
|
41865
41876
|
});
|
|
41866
41877
|
}
|
|
41867
|
-
if ((
|
|
41878
|
+
if ((_g = (_f = modeuleInfos.value) == null ? void 0 : _f.projects) == null ? void 0 : _g.includes(modeuleTypeValue.value)) {
|
|
41868
41879
|
let dgRes = await getdungouList();
|
|
41869
41880
|
if (!dgRes) {
|
|
41870
41881
|
gjTest.value = [];
|
|
@@ -42442,7 +42453,7 @@ const _sfc_main = {
|
|
|
42442
42453
|
};
|
|
42443
42454
|
}
|
|
42444
42455
|
};
|
|
42445
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
42456
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-5bf5ce7e"), n2 = n2(), popScopeId(), n2);
|
|
42446
42457
|
const _hoisted_1 = {
|
|
42447
42458
|
class: "bg-white defaultTS funcTC relative",
|
|
42448
42459
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -43423,7 +43434,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43423
43434
|
}, null, 8, ["show", "ccflowData"])) : createCommentVNode("", true)
|
|
43424
43435
|
], 64);
|
|
43425
43436
|
}
|
|
43426
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
43437
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5bf5ce7e"]]);
|
|
43427
43438
|
const components = [TSider];
|
|
43428
43439
|
installComponents();
|
|
43429
43440
|
function installComponents() {
|