tx-sider 2.2.2 → 2.2.4
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 +80 -89
- package/lib/TXUI.umd.js +3 -3
- 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" };
|
|
@@ -34554,10 +34554,10 @@ var axiosExports = axios$3.exports;
|
|
|
34554
34554
|
var axios = axiosExports;
|
|
34555
34555
|
const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios);
|
|
34556
34556
|
const routes = [
|
|
34557
|
-
{
|
|
34558
|
-
|
|
34559
|
-
|
|
34560
|
-
}
|
|
34557
|
+
// {
|
|
34558
|
+
// path: "/",
|
|
34559
|
+
// component: TSider,
|
|
34560
|
+
// },
|
|
34561
34561
|
];
|
|
34562
34562
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34563
34563
|
__proto__: null,
|
|
@@ -41397,16 +41397,18 @@ function useCcflowCall() {
|
|
|
41397
41397
|
ccflowData.newVersionList = res;
|
|
41398
41398
|
});
|
|
41399
41399
|
connection.value.onreconnected(async (id) => {
|
|
41400
|
+
var _a, _b;
|
|
41400
41401
|
await connection.value.invoke("Start");
|
|
41401
41402
|
await connection.value.invoke("MenuNums");
|
|
41402
|
-
await connection.value.invoke("NewVersion", "
|
|
41403
|
+
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);
|
|
41403
41404
|
});
|
|
41404
41405
|
if (connection.value.state !== HubConnectionState.Connected) {
|
|
41405
41406
|
connection.value.start().then(async () => {
|
|
41407
|
+
var _a, _b;
|
|
41406
41408
|
console.log("启动即时通信成功");
|
|
41407
41409
|
await connection.value.invoke("Start");
|
|
41408
41410
|
await connection.value.invoke("MenuNums");
|
|
41409
|
-
await connection.value.invoke("NewVersion", "
|
|
41411
|
+
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);
|
|
41410
41412
|
});
|
|
41411
41413
|
}
|
|
41412
41414
|
};
|
|
@@ -41460,13 +41462,8 @@ const _sfc_main = {
|
|
|
41460
41462
|
// 所属的模块
|
|
41461
41463
|
menuTitle: String,
|
|
41462
41464
|
// 模块名称
|
|
41463
|
-
modeuleType: String
|
|
41465
|
+
modeuleType: String
|
|
41464
41466
|
// 模块类型
|
|
41465
|
-
listenVersion: {
|
|
41466
|
-
type: Boolean,
|
|
41467
|
-
default: false
|
|
41468
|
-
}
|
|
41469
|
-
// 是否监听更新
|
|
41470
41467
|
},
|
|
41471
41468
|
emits: [
|
|
41472
41469
|
"routerReplace",
|
|
@@ -41502,8 +41499,7 @@ const _sfc_main = {
|
|
|
41502
41499
|
new_password: "",
|
|
41503
41500
|
new_too_password: ""
|
|
41504
41501
|
},
|
|
41505
|
-
userInfo: {}
|
|
41506
|
-
twoUrl: void 0
|
|
41502
|
+
userInfo: {}
|
|
41507
41503
|
});
|
|
41508
41504
|
const refData = toRefs(data5);
|
|
41509
41505
|
const iconUrl = process.env.NODE_ENV == "development" ? "https://basis.nacho.cn" : "https://basis.nacho.cn";
|
|
@@ -41568,15 +41564,11 @@ const _sfc_main = {
|
|
|
41568
41564
|
const menuList = ref();
|
|
41569
41565
|
const goUrl = ref();
|
|
41570
41566
|
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
|
-
}
|
|
41567
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
41576
41568
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
41577
|
-
isShowAllProductionBases.value = (
|
|
41569
|
+
isShowAllProductionBases.value = (_a2 = getModeuleInfoDataHandle(
|
|
41578
41570
|
window.location.hostname.split(".")[0]
|
|
41579
|
-
)) == null ? void 0 :
|
|
41571
|
+
)) == null ? void 0 : _a2.isAllProductionBases;
|
|
41580
41572
|
selectedSystems.value = isSystems.value;
|
|
41581
41573
|
await getPermissionModuleListData();
|
|
41582
41574
|
data5.userInfo = JSON.parse(localStorage.getItem("userInfos") || "{}");
|
|
@@ -41597,9 +41589,9 @@ const _sfc_main = {
|
|
|
41597
41589
|
}
|
|
41598
41590
|
}
|
|
41599
41591
|
if (isSystems.value) {
|
|
41600
|
-
moduleTestS.value = ((
|
|
41592
|
+
moduleTestS.value = ((_b = permissionModuleList.value.find(
|
|
41601
41593
|
(_x) => _x.permissionModuleName === selectedSystems.value
|
|
41602
|
-
)) == null ? void 0 :
|
|
41594
|
+
)) == null ? void 0 : _b.childGroups) ?? [];
|
|
41603
41595
|
}
|
|
41604
41596
|
if (permissionModuleList.value.length == 1) {
|
|
41605
41597
|
sysShow.value = false;
|
|
@@ -41627,7 +41619,7 @@ const _sfc_main = {
|
|
|
41627
41619
|
shortName: item.shortName
|
|
41628
41620
|
};
|
|
41629
41621
|
});
|
|
41630
|
-
if ((
|
|
41622
|
+
if ((_d = (_c = modeuleInfos.value) == null ? void 0 : _c.productionBases) == null ? void 0 : _d.includes(modeuleTypeValue.value)) {
|
|
41631
41623
|
const curSetofBook = await currentGet();
|
|
41632
41624
|
let baseRes = await baseOptions({ setOfBookId: curSetofBook });
|
|
41633
41625
|
if (!baseRes) {
|
|
@@ -41642,7 +41634,7 @@ const _sfc_main = {
|
|
|
41642
41634
|
};
|
|
41643
41635
|
});
|
|
41644
41636
|
}
|
|
41645
|
-
if ((
|
|
41637
|
+
if ((_f = (_e = modeuleInfos.value) == null ? void 0 : _e.projects) == null ? void 0 : _f.includes(modeuleTypeValue.value)) {
|
|
41646
41638
|
let dgRes = await getdungouList();
|
|
41647
41639
|
if (!dgRes) {
|
|
41648
41640
|
gjTest.value = [];
|
|
@@ -42151,8 +42143,12 @@ const _sfc_main = {
|
|
|
42151
42143
|
console.log(item);
|
|
42152
42144
|
}
|
|
42153
42145
|
const moduleVersion = ref();
|
|
42154
|
-
const getMaxVersionApi = async (
|
|
42155
|
-
|
|
42146
|
+
const getMaxVersionApi = async () => {
|
|
42147
|
+
var _a2;
|
|
42148
|
+
const twoUrl = (_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location;
|
|
42149
|
+
if (twoUrl) {
|
|
42150
|
+
moduleVersion.value = await getMaxVersion(twoUrl);
|
|
42151
|
+
}
|
|
42156
42152
|
};
|
|
42157
42153
|
const isModuleVersionUpdate = ref(
|
|
42158
42154
|
((_a = ccflowData.newVersionList) == null ? void 0 : _a.length) ? true : false
|
|
@@ -42304,12 +42300,13 @@ const _sfc_main = {
|
|
|
42304
42300
|
upth,
|
|
42305
42301
|
onCancel,
|
|
42306
42302
|
onRead,
|
|
42307
|
-
ccflowInit: () => init()
|
|
42303
|
+
ccflowInit: () => init(),
|
|
42304
|
+
getNewVersion: () => getMaxVersionApi()
|
|
42308
42305
|
/*******end*****/
|
|
42309
42306
|
};
|
|
42310
42307
|
}
|
|
42311
42308
|
};
|
|
42312
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
42309
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-ebf6ce44"), n2 = n2(), popScopeId(), n2);
|
|
42313
42310
|
const _hoisted_1 = {
|
|
42314
42311
|
class: "bg-white defaultTS funcTC relative",
|
|
42315
42312
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -42742,7 +42739,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42742
42739
|
const _component_a_image = __unplugin_components_7;
|
|
42743
42740
|
const _component_mrpTable = __unplugin_components_8;
|
|
42744
42741
|
const _component_a_button = Button;
|
|
42745
|
-
const _component_a_spin = Spin;
|
|
42746
42742
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
42747
42743
|
createElementVNode("div", {
|
|
42748
42744
|
class: "w-[325px] h-[800px] overflow-y-auto sider scrollbar",
|
|
@@ -43346,68 +43342,63 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43346
43342
|
])
|
|
43347
43343
|
]),
|
|
43348
43344
|
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
|
-
})
|
|
43345
|
+
createElementVNode("div", _hoisted_95, [
|
|
43346
|
+
createVNode(_component_mrpTable, {
|
|
43347
|
+
th: $setup.tableOptionRef,
|
|
43348
|
+
contractExecDocList: $setup.tableData,
|
|
43349
|
+
pageSize: 1,
|
|
43350
|
+
currentPages: 1,
|
|
43351
|
+
totalPages: 0,
|
|
43352
|
+
setHeight: 20,
|
|
43353
|
+
isTableControl: false,
|
|
43354
|
+
onUpth: $setup.upth
|
|
43355
|
+
}, {
|
|
43356
|
+
versionDate: withCtx(({ item }) => [
|
|
43357
|
+
createTextVNode(toDisplayString(item.versionDate ? $setup.dayjs(item.versionDate).format("YYYY-MM-DD") : ""), 1)
|
|
43358
|
+
]),
|
|
43359
|
+
creationTime: withCtx(({ item }) => [
|
|
43360
|
+
createTextVNode(toDisplayString(item.creationTime ? $setup.dayjs(item.creationTime).format("YYYY-MM-DD") : ""), 1)
|
|
43361
|
+
]),
|
|
43362
|
+
files: withCtx(({ item }) => [
|
|
43363
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.files, (pic, i2) => {
|
|
43364
|
+
return openBlock(), createBlock(_component_a_image, {
|
|
43365
|
+
width: 30,
|
|
43366
|
+
key: i2,
|
|
43367
|
+
src: pic.url
|
|
43368
|
+
}, null, 8, ["src"]);
|
|
43369
|
+
}), 128))
|
|
43370
|
+
]),
|
|
43371
|
+
_: 1
|
|
43372
|
+
}, 8, ["th", "contractExecDocList", "onUpth"]),
|
|
43373
|
+
createElementVNode("div", _hoisted_96, [
|
|
43374
|
+
createVNode(_component_a_button, {
|
|
43375
|
+
class: "w-[140px] mr-[50px] btn1",
|
|
43376
|
+
style: { "border-radius": "5px" },
|
|
43377
|
+
onClick: $setup.onCancel
|
|
43378
|
+
}, {
|
|
43379
|
+
default: withCtx(() => [
|
|
43380
|
+
_hoisted_97
|
|
43381
|
+
]),
|
|
43382
|
+
_: 1
|
|
43383
|
+
}, 8, ["onClick"]),
|
|
43384
|
+
createVNode(_component_a_button, {
|
|
43385
|
+
class: "w-[140px] mr-[50px] btn2",
|
|
43386
|
+
type: "primary",
|
|
43387
|
+
onClick: $setup.onRead
|
|
43388
|
+
}, {
|
|
43389
|
+
default: withCtx(() => [
|
|
43390
|
+
_hoisted_98
|
|
43391
|
+
]),
|
|
43392
|
+
_: 1
|
|
43393
|
+
}, 8, ["onClick"])
|
|
43394
|
+
])
|
|
43395
|
+
])
|
|
43405
43396
|
]),
|
|
43406
43397
|
_: 1
|
|
43407
43398
|
}, 8, ["show"])
|
|
43408
43399
|
], 64);
|
|
43409
43400
|
}
|
|
43410
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
43401
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ebf6ce44"]]);
|
|
43411
43402
|
const components = [TSider];
|
|
43412
43403
|
installComponents();
|
|
43413
43404
|
function installComponents() {
|