tx-sider 2.3.26 → 2.3.28
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 +47 -29
- package/lib/TXUI.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -54446,6 +54446,7 @@ function useCcflowCall() {
|
|
|
54446
54446
|
const ccflowData = reactive({
|
|
54447
54447
|
todoList: 0,
|
|
54448
54448
|
messageList: 0,
|
|
54449
|
+
lingDangList: 0,
|
|
54449
54450
|
menuNumsList: [],
|
|
54450
54451
|
newVersionList: []
|
|
54451
54452
|
});
|
|
@@ -54454,9 +54455,6 @@ function useCcflowCall() {
|
|
|
54454
54455
|
connection.value.on("GetNum", (res) => {
|
|
54455
54456
|
ccflowData.todoList = res;
|
|
54456
54457
|
});
|
|
54457
|
-
connection.value.on("MenuNums", (res) => {
|
|
54458
|
-
ccflowData.menuNumsList = JSON.parse(res);
|
|
54459
|
-
});
|
|
54460
54458
|
connection.value.on("PublishNewVersion", (res) => {
|
|
54461
54459
|
ccflowData.newVersionList = res;
|
|
54462
54460
|
});
|
|
@@ -54465,29 +54463,21 @@ function useCcflowCall() {
|
|
|
54465
54463
|
ccflowData.messageList = "";
|
|
54466
54464
|
ccflowData.messageList = res;
|
|
54467
54465
|
});
|
|
54466
|
+
connection.value.on("UpdateTodoCount", (res) => {
|
|
54467
|
+
console.log("UpdateTodoCount", "获取数据:", res);
|
|
54468
|
+
ccflowData.lingDangList = "";
|
|
54469
|
+
ccflowData.lingDangList = res;
|
|
54470
|
+
});
|
|
54468
54471
|
connection.value.onreconnected(async (id2) => {
|
|
54469
54472
|
var _a2, _b2;
|
|
54470
|
-
await connection.value.invoke("Start");
|
|
54471
|
-
await connection.value.invoke("MenuNums");
|
|
54472
54473
|
await connection.value.invoke(
|
|
54473
54474
|
"NewVersion",
|
|
54474
54475
|
(_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location,
|
|
54475
54476
|
(_b2 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b2.userId
|
|
54476
54477
|
);
|
|
54477
54478
|
});
|
|
54478
|
-
if (connection.value.state !== HubConnectionState.Connected)
|
|
54479
|
-
|
|
54480
|
-
var _a2, _b2;
|
|
54481
|
-
console.log("启动即时通信成功");
|
|
54482
|
-
await connection.value.invoke("Start");
|
|
54483
|
-
await connection.value.invoke("MenuNums");
|
|
54484
|
-
await connection.value.invoke(
|
|
54485
|
-
"NewVersion",
|
|
54486
|
-
(_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location,
|
|
54487
|
-
(_b2 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b2.userId
|
|
54488
|
-
);
|
|
54489
|
-
});
|
|
54490
|
-
}
|
|
54479
|
+
if (connection.value.state !== HubConnectionState.Connected)
|
|
54480
|
+
;
|
|
54491
54481
|
};
|
|
54492
54482
|
const onClickTodo = () => {
|
|
54493
54483
|
const md2 = localStorage.getItem("loginForm");
|
|
@@ -54649,13 +54639,19 @@ const _sfc_main = {
|
|
|
54649
54639
|
const menuList = ref();
|
|
54650
54640
|
const goUrl = ref();
|
|
54651
54641
|
const unReadCount = ref();
|
|
54652
|
-
const
|
|
54653
|
-
|
|
54654
|
-
|
|
54642
|
+
const unLingDangCount = ref();
|
|
54643
|
+
const getUnReadMessage = async (type4) => {
|
|
54644
|
+
const result = await GetUnReadCountList({ type: type4 });
|
|
54645
|
+
if (type4 === 0) {
|
|
54646
|
+
unReadCount.value = result ?? 0;
|
|
54647
|
+
} else {
|
|
54648
|
+
unLingDangCount.value = result ?? 0;
|
|
54649
|
+
}
|
|
54655
54650
|
};
|
|
54656
54651
|
onMounted(async () => {
|
|
54657
54652
|
var _a3, _b2, _c2, _d2, _e2, _f2;
|
|
54658
|
-
await getUnReadMessage();
|
|
54653
|
+
await getUnReadMessage(0);
|
|
54654
|
+
await getUnReadMessage(1);
|
|
54659
54655
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
54660
54656
|
isShowAllProductionBases.value = (_a3 = getModeuleInfoDataHandle(
|
|
54661
54657
|
window.location.hostname.split(".")[0]
|
|
@@ -54913,7 +54909,9 @@ const _sfc_main = {
|
|
|
54913
54909
|
const setOfBookId = ref();
|
|
54914
54910
|
const baseId = ref();
|
|
54915
54911
|
const refreshSystemHostname = window.location.hostname.split(".");
|
|
54916
|
-
const refreshSystemDomain = refreshSystemHostname.length === 1 ? "localhost" : "." + [refreshSystemHostname.at(-2), refreshSystemHostname.at(-1)].join(
|
|
54912
|
+
const refreshSystemDomain = refreshSystemHostname.length === 1 ? "localhost" : "." + [refreshSystemHostname.at(-2), refreshSystemHostname.at(-1)].join(
|
|
54913
|
+
"."
|
|
54914
|
+
);
|
|
54917
54915
|
const isChangeTokenRefreshFlag = () => location.hash.includes("changeTokenRefreshFlag");
|
|
54918
54916
|
const setCureentSetOfBookId = (res) => {
|
|
54919
54917
|
setSetOfBookIdToLocalAndPage(res);
|
|
@@ -55273,7 +55271,24 @@ const _sfc_main = {
|
|
|
55273
55271
|
);
|
|
55274
55272
|
if (newVal && newVal == ((_b2 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b2.userId)) {
|
|
55275
55273
|
console.log("相等");
|
|
55276
|
-
await getUnReadMessage();
|
|
55274
|
+
await getUnReadMessage(0);
|
|
55275
|
+
}
|
|
55276
|
+
},
|
|
55277
|
+
{ deep: true }
|
|
55278
|
+
);
|
|
55279
|
+
watch(
|
|
55280
|
+
() => ccflowData.lingDangList,
|
|
55281
|
+
async (newVal) => {
|
|
55282
|
+
var _a3, _b2;
|
|
55283
|
+
console.log("ccflowData.lingDangList", ccflowData.lingDangList);
|
|
55284
|
+
console.log("newVal", newVal);
|
|
55285
|
+
console.log(
|
|
55286
|
+
'JSON.parse(localStorage.getItem("userInfos"))?.userId',
|
|
55287
|
+
(_a3 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _a3.userId
|
|
55288
|
+
);
|
|
55289
|
+
if (newVal && newVal == ((_b2 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b2.userId)) {
|
|
55290
|
+
console.log("相等");
|
|
55291
|
+
await getUnReadMessage(1);
|
|
55277
55292
|
}
|
|
55278
55293
|
},
|
|
55279
55294
|
{ deep: true }
|
|
@@ -55340,7 +55355,9 @@ const _sfc_main = {
|
|
|
55340
55355
|
var _a3;
|
|
55341
55356
|
console.log("已读");
|
|
55342
55357
|
try {
|
|
55343
|
-
await setUserRead(
|
|
55358
|
+
await setUserRead(
|
|
55359
|
+
(_a3 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _a3.userId
|
|
55360
|
+
);
|
|
55344
55361
|
isModuleVersionUpdate.value = false;
|
|
55345
55362
|
} catch (error) {
|
|
55346
55363
|
isModuleVersionUpdate.value = false;
|
|
@@ -55419,12 +55436,13 @@ const _sfc_main = {
|
|
|
55419
55436
|
content,
|
|
55420
55437
|
changeTab,
|
|
55421
55438
|
editorRef,
|
|
55422
|
-
unReadCount
|
|
55439
|
+
unReadCount,
|
|
55440
|
+
unLingDangCount
|
|
55423
55441
|
/*******end*****/
|
|
55424
55442
|
};
|
|
55425
55443
|
}
|
|
55426
55444
|
};
|
|
55427
|
-
const _withScopeId = (n10) => (pushScopeId("data-v-
|
|
55445
|
+
const _withScopeId = (n10) => (pushScopeId("data-v-a2934da0"), n10 = n10(), popScopeId(), n10);
|
|
55428
55446
|
const _hoisted_1 = {
|
|
55429
55447
|
class: "bg-white defaultTS funcTC relative",
|
|
55430
55448
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -55961,7 +55979,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55961
55979
|
}, 8, ["onClick", "count"]),
|
|
55962
55980
|
createVNode(_component_a_badge, {
|
|
55963
55981
|
onClick: $setup.onClickTodo,
|
|
55964
|
-
count: $setup.
|
|
55982
|
+
count: $setup.unLingDangCount,
|
|
55965
55983
|
"number-style": {
|
|
55966
55984
|
backgroundColor: "#52c41a",
|
|
55967
55985
|
fontSize: "12px",
|
|
@@ -56581,7 +56599,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56581
56599
|
}, 8, ["show"])
|
|
56582
56600
|
], 64);
|
|
56583
56601
|
}
|
|
56584
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
56602
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a2934da0"]]);
|
|
56585
56603
|
const style = "";
|
|
56586
56604
|
const components = [TSider];
|
|
56587
56605
|
installComponents();
|