tx-sider 2.2.2 → 2.2.3
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 +72 -83
- package/lib/TXUI.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -30078,7 +30078,6 @@ const index$d = "";
|
|
|
30078
30078
|
const index$c = "";
|
|
30079
30079
|
const index$b = "";
|
|
30080
30080
|
const index$a = "";
|
|
30081
|
-
const index$9 = "";
|
|
30082
30081
|
const tableControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
30083
30082
|
const _export_sfc = (sfc, props2) => {
|
|
30084
30083
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -33119,7 +33118,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
33119
33118
|
}
|
|
33120
33119
|
});
|
|
33121
33120
|
const __unplugin_components_8 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-4e120258"]]);
|
|
33122
|
-
const index$
|
|
33121
|
+
const index$9 = "";
|
|
33123
33122
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
33124
33123
|
__name: "MrpModal",
|
|
33125
33124
|
props: {
|
|
@@ -33177,6 +33176,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
33177
33176
|
};
|
|
33178
33177
|
}
|
|
33179
33178
|
});
|
|
33179
|
+
const index$8 = "";
|
|
33180
33180
|
const index$7 = "";
|
|
33181
33181
|
const CPagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
33182
33182
|
const _hoisted_1$3 = { class: "Pagination" };
|
|
@@ -41460,13 +41460,8 @@ const _sfc_main = {
|
|
|
41460
41460
|
// 所属的模块
|
|
41461
41461
|
menuTitle: String,
|
|
41462
41462
|
// 模块名称
|
|
41463
|
-
modeuleType: String
|
|
41463
|
+
modeuleType: String
|
|
41464
41464
|
// 模块类型
|
|
41465
|
-
listenVersion: {
|
|
41466
|
-
type: Boolean,
|
|
41467
|
-
default: false
|
|
41468
|
-
}
|
|
41469
|
-
// 是否监听更新
|
|
41470
41465
|
},
|
|
41471
41466
|
emits: [
|
|
41472
41467
|
"routerReplace",
|
|
@@ -41502,8 +41497,7 @@ const _sfc_main = {
|
|
|
41502
41497
|
new_password: "",
|
|
41503
41498
|
new_too_password: ""
|
|
41504
41499
|
},
|
|
41505
|
-
userInfo: {}
|
|
41506
|
-
twoUrl: void 0
|
|
41500
|
+
userInfo: {}
|
|
41507
41501
|
});
|
|
41508
41502
|
const refData = toRefs(data5);
|
|
41509
41503
|
const iconUrl = process.env.NODE_ENV == "development" ? "https://basis.nacho.cn" : "https://basis.nacho.cn";
|
|
@@ -41568,15 +41562,11 @@ const _sfc_main = {
|
|
|
41568
41562
|
const menuList = ref();
|
|
41569
41563
|
const goUrl = ref();
|
|
41570
41564
|
onMounted(async () => {
|
|
41571
|
-
var _a2, _b, _c, _d, _e, _f
|
|
41572
|
-
data5.twoUrl = (_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location;
|
|
41573
|
-
if (data5.twoUrl) {
|
|
41574
|
-
getMaxVersionApi(data5.twoUrl);
|
|
41575
|
-
}
|
|
41565
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
41576
41566
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
41577
|
-
isShowAllProductionBases.value = (
|
|
41567
|
+
isShowAllProductionBases.value = (_a2 = getModeuleInfoDataHandle(
|
|
41578
41568
|
window.location.hostname.split(".")[0]
|
|
41579
|
-
)) == null ? void 0 :
|
|
41569
|
+
)) == null ? void 0 : _a2.isAllProductionBases;
|
|
41580
41570
|
selectedSystems.value = isSystems.value;
|
|
41581
41571
|
await getPermissionModuleListData();
|
|
41582
41572
|
data5.userInfo = JSON.parse(localStorage.getItem("userInfos") || "{}");
|
|
@@ -41597,9 +41587,9 @@ const _sfc_main = {
|
|
|
41597
41587
|
}
|
|
41598
41588
|
}
|
|
41599
41589
|
if (isSystems.value) {
|
|
41600
|
-
moduleTestS.value = ((
|
|
41590
|
+
moduleTestS.value = ((_b = permissionModuleList.value.find(
|
|
41601
41591
|
(_x) => _x.permissionModuleName === selectedSystems.value
|
|
41602
|
-
)) == null ? void 0 :
|
|
41592
|
+
)) == null ? void 0 : _b.childGroups) ?? [];
|
|
41603
41593
|
}
|
|
41604
41594
|
if (permissionModuleList.value.length == 1) {
|
|
41605
41595
|
sysShow.value = false;
|
|
@@ -41627,7 +41617,7 @@ const _sfc_main = {
|
|
|
41627
41617
|
shortName: item.shortName
|
|
41628
41618
|
};
|
|
41629
41619
|
});
|
|
41630
|
-
if ((
|
|
41620
|
+
if ((_d = (_c = modeuleInfos.value) == null ? void 0 : _c.productionBases) == null ? void 0 : _d.includes(modeuleTypeValue.value)) {
|
|
41631
41621
|
const curSetofBook = await currentGet();
|
|
41632
41622
|
let baseRes = await baseOptions({ setOfBookId: curSetofBook });
|
|
41633
41623
|
if (!baseRes) {
|
|
@@ -41642,7 +41632,7 @@ const _sfc_main = {
|
|
|
41642
41632
|
};
|
|
41643
41633
|
});
|
|
41644
41634
|
}
|
|
41645
|
-
if ((
|
|
41635
|
+
if ((_f = (_e = modeuleInfos.value) == null ? void 0 : _e.projects) == null ? void 0 : _f.includes(modeuleTypeValue.value)) {
|
|
41646
41636
|
let dgRes = await getdungouList();
|
|
41647
41637
|
if (!dgRes) {
|
|
41648
41638
|
gjTest.value = [];
|
|
@@ -42151,8 +42141,12 @@ const _sfc_main = {
|
|
|
42151
42141
|
console.log(item);
|
|
42152
42142
|
}
|
|
42153
42143
|
const moduleVersion = ref();
|
|
42154
|
-
const getMaxVersionApi = async (
|
|
42155
|
-
|
|
42144
|
+
const getMaxVersionApi = async () => {
|
|
42145
|
+
var _a2;
|
|
42146
|
+
const twoUrl = (_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location;
|
|
42147
|
+
if (twoUrl) {
|
|
42148
|
+
moduleVersion.value = await getMaxVersion(twoUrl);
|
|
42149
|
+
}
|
|
42156
42150
|
};
|
|
42157
42151
|
const isModuleVersionUpdate = ref(
|
|
42158
42152
|
((_a = ccflowData.newVersionList) == null ? void 0 : _a.length) ? true : false
|
|
@@ -42304,12 +42298,13 @@ const _sfc_main = {
|
|
|
42304
42298
|
upth,
|
|
42305
42299
|
onCancel,
|
|
42306
42300
|
onRead,
|
|
42307
|
-
ccflowInit: () => init()
|
|
42301
|
+
ccflowInit: () => init(),
|
|
42302
|
+
getNewVersion: () => getMaxVersionApi()
|
|
42308
42303
|
/*******end*****/
|
|
42309
42304
|
};
|
|
42310
42305
|
}
|
|
42311
42306
|
};
|
|
42312
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
42307
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-ebf6ce44"), n2 = n2(), popScopeId(), n2);
|
|
42313
42308
|
const _hoisted_1 = {
|
|
42314
42309
|
class: "bg-white defaultTS funcTC relative",
|
|
42315
42310
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -42742,7 +42737,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42742
42737
|
const _component_a_image = __unplugin_components_7;
|
|
42743
42738
|
const _component_mrpTable = __unplugin_components_8;
|
|
42744
42739
|
const _component_a_button = Button;
|
|
42745
|
-
const _component_a_spin = Spin;
|
|
42746
42740
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
42747
42741
|
createElementVNode("div", {
|
|
42748
42742
|
class: "w-[325px] h-[800px] overflow-y-auto sider scrollbar",
|
|
@@ -43346,68 +43340,63 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43346
43340
|
])
|
|
43347
43341
|
]),
|
|
43348
43342
|
body: withCtx(() => [
|
|
43349
|
-
|
|
43350
|
-
|
|
43351
|
-
|
|
43352
|
-
|
|
43353
|
-
|
|
43354
|
-
|
|
43355
|
-
|
|
43356
|
-
|
|
43357
|
-
|
|
43358
|
-
|
|
43359
|
-
|
|
43360
|
-
|
|
43361
|
-
|
|
43362
|
-
|
|
43363
|
-
|
|
43364
|
-
|
|
43365
|
-
|
|
43366
|
-
|
|
43367
|
-
|
|
43368
|
-
|
|
43369
|
-
|
|
43370
|
-
|
|
43371
|
-
|
|
43372
|
-
|
|
43373
|
-
|
|
43374
|
-
|
|
43375
|
-
|
|
43376
|
-
|
|
43377
|
-
|
|
43378
|
-
|
|
43379
|
-
|
|
43380
|
-
|
|
43381
|
-
|
|
43382
|
-
|
|
43383
|
-
|
|
43384
|
-
|
|
43385
|
-
|
|
43386
|
-
|
|
43387
|
-
|
|
43388
|
-
|
|
43389
|
-
|
|
43390
|
-
|
|
43391
|
-
|
|
43392
|
-
|
|
43393
|
-
|
|
43394
|
-
|
|
43395
|
-
|
|
43396
|
-
|
|
43397
|
-
|
|
43398
|
-
|
|
43399
|
-
|
|
43400
|
-
])
|
|
43401
|
-
])
|
|
43402
|
-
]),
|
|
43403
|
-
_: 1
|
|
43404
|
-
})
|
|
43343
|
+
createElementVNode("div", _hoisted_95, [
|
|
43344
|
+
createVNode(_component_mrpTable, {
|
|
43345
|
+
th: $setup.tableOptionRef,
|
|
43346
|
+
contractExecDocList: $setup.tableData,
|
|
43347
|
+
pageSize: 1,
|
|
43348
|
+
currentPages: 1,
|
|
43349
|
+
totalPages: 0,
|
|
43350
|
+
setHeight: 20,
|
|
43351
|
+
isTableControl: false,
|
|
43352
|
+
onUpth: $setup.upth
|
|
43353
|
+
}, {
|
|
43354
|
+
versionDate: withCtx(({ item }) => [
|
|
43355
|
+
createTextVNode(toDisplayString(item.versionDate ? $setup.dayjs(item.versionDate).format("YYYY-MM-DD") : ""), 1)
|
|
43356
|
+
]),
|
|
43357
|
+
creationTime: withCtx(({ item }) => [
|
|
43358
|
+
createTextVNode(toDisplayString(item.creationTime ? $setup.dayjs(item.creationTime).format("YYYY-MM-DD") : ""), 1)
|
|
43359
|
+
]),
|
|
43360
|
+
files: withCtx(({ item }) => [
|
|
43361
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.files, (pic, i2) => {
|
|
43362
|
+
return openBlock(), createBlock(_component_a_image, {
|
|
43363
|
+
width: 30,
|
|
43364
|
+
key: i2,
|
|
43365
|
+
src: pic.url
|
|
43366
|
+
}, null, 8, ["src"]);
|
|
43367
|
+
}), 128))
|
|
43368
|
+
]),
|
|
43369
|
+
_: 1
|
|
43370
|
+
}, 8, ["th", "contractExecDocList", "onUpth"]),
|
|
43371
|
+
createElementVNode("div", _hoisted_96, [
|
|
43372
|
+
createVNode(_component_a_button, {
|
|
43373
|
+
class: "w-[140px] mr-[50px] btn1",
|
|
43374
|
+
style: { "border-radius": "5px" },
|
|
43375
|
+
onClick: $setup.onCancel
|
|
43376
|
+
}, {
|
|
43377
|
+
default: withCtx(() => [
|
|
43378
|
+
_hoisted_97
|
|
43379
|
+
]),
|
|
43380
|
+
_: 1
|
|
43381
|
+
}, 8, ["onClick"]),
|
|
43382
|
+
createVNode(_component_a_button, {
|
|
43383
|
+
class: "w-[140px] mr-[50px] btn2",
|
|
43384
|
+
type: "primary",
|
|
43385
|
+
onClick: $setup.onRead
|
|
43386
|
+
}, {
|
|
43387
|
+
default: withCtx(() => [
|
|
43388
|
+
_hoisted_98
|
|
43389
|
+
]),
|
|
43390
|
+
_: 1
|
|
43391
|
+
}, 8, ["onClick"])
|
|
43392
|
+
])
|
|
43393
|
+
])
|
|
43405
43394
|
]),
|
|
43406
43395
|
_: 1
|
|
43407
43396
|
}, 8, ["show"])
|
|
43408
43397
|
], 64);
|
|
43409
43398
|
}
|
|
43410
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
43399
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ebf6ce44"]]);
|
|
43411
43400
|
const components = [TSider];
|
|
43412
43401
|
installComponents();
|
|
43413
43402
|
function installComponents() {
|