tx-sider 2.4.5 → 2.4.6
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 +13 -26
- package/lib/TXUI.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -55053,7 +55053,9 @@ const _sfc_main = {
|
|
|
55053
55053
|
var _a3, _b3, _c2, _d2, _e2, _f2;
|
|
55054
55054
|
await getUnReadMessage(0);
|
|
55055
55055
|
await getUserFlowData();
|
|
55056
|
-
|
|
55056
|
+
if (route.path !== "/login") {
|
|
55057
|
+
GetUserOperationTotalApi("default");
|
|
55058
|
+
}
|
|
55057
55059
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
55058
55060
|
isShowAllProductionBases.value = (_a3 = getModeuleInfoDataHandle(
|
|
55059
55061
|
window.location.hostname.split(".")[0]
|
|
@@ -55760,24 +55762,17 @@ const _sfc_main = {
|
|
|
55760
55762
|
moduleManageVisible.value = true;
|
|
55761
55763
|
}
|
|
55762
55764
|
};
|
|
55763
|
-
const getLocalIsRead = () => {
|
|
55764
|
-
const isRead = localStorage.getItem("yearReviewIsRead");
|
|
55765
|
-
return isRead === null ? true : JSON.parse(isRead);
|
|
55766
|
-
};
|
|
55767
|
-
const isDecember = () => {
|
|
55768
|
-
return (/* @__PURE__ */ new Date()).getMonth() === 11;
|
|
55769
|
-
};
|
|
55770
55765
|
const showYearReview = ref(false);
|
|
55771
55766
|
const reviewData = ref(null);
|
|
55772
|
-
const showYearReviewBtn = ref(
|
|
55767
|
+
const showYearReviewBtn = ref(false);
|
|
55773
55768
|
const openYearReview = () => {
|
|
55774
55769
|
showYearReview.value = true;
|
|
55775
|
-
GetUserOperationTotalApi();
|
|
55770
|
+
GetUserOperationTotalApi("onClick");
|
|
55776
55771
|
};
|
|
55777
55772
|
const handleClose = () => {
|
|
55778
55773
|
console.log("年历回顾已关闭");
|
|
55779
55774
|
};
|
|
55780
|
-
const GetUserOperationTotalApi = async () => {
|
|
55775
|
+
const GetUserOperationTotalApi = async (type4) => {
|
|
55781
55776
|
var _a3;
|
|
55782
55777
|
try {
|
|
55783
55778
|
const res = await GetUserOperationTotal({
|
|
@@ -55786,24 +55781,17 @@ const _sfc_main = {
|
|
|
55786
55781
|
});
|
|
55787
55782
|
if (res) {
|
|
55788
55783
|
reviewData.value = res;
|
|
55784
|
+
showYearReviewBtn.value = !res.isExpired;
|
|
55789
55785
|
const isRead = res.isRead;
|
|
55790
55786
|
localStorage.setItem("yearReviewIsRead", JSON.stringify(isRead));
|
|
55791
|
-
|
|
55787
|
+
if (type4 === "default") {
|
|
55788
|
+
showYearReview.value = !isRead;
|
|
55789
|
+
}
|
|
55792
55790
|
}
|
|
55793
55791
|
} catch (error) {
|
|
55794
55792
|
console.log(error);
|
|
55795
55793
|
}
|
|
55796
55794
|
};
|
|
55797
|
-
const checkYearReviewShow = () => {
|
|
55798
|
-
console.log("~~~checkYearReviewShow");
|
|
55799
|
-
if (isDecember()) {
|
|
55800
|
-
const isRead = getLocalIsRead();
|
|
55801
|
-
if (!isRead) {
|
|
55802
|
-
showYearReview.value = true;
|
|
55803
|
-
GetUserOperationTotalApi();
|
|
55804
|
-
}
|
|
55805
|
-
}
|
|
55806
|
-
};
|
|
55807
55795
|
return {
|
|
55808
55796
|
...refData,
|
|
55809
55797
|
// 管理端
|
|
@@ -55893,13 +55881,12 @@ const _sfc_main = {
|
|
|
55893
55881
|
openYearReview,
|
|
55894
55882
|
reviewData,
|
|
55895
55883
|
showYearReviewBtn,
|
|
55896
|
-
handleClose
|
|
55897
|
-
checkYearReviewShow
|
|
55884
|
+
handleClose
|
|
55898
55885
|
/*******end*****/
|
|
55899
55886
|
};
|
|
55900
55887
|
}
|
|
55901
55888
|
};
|
|
55902
|
-
const _withScopeId = (n10) => (pushScopeId("data-v-
|
|
55889
|
+
const _withScopeId = (n10) => (pushScopeId("data-v-93616350"), n10 = n10(), popScopeId(), n10);
|
|
55903
55890
|
const _hoisted_1 = {
|
|
55904
55891
|
class: "bg-white defaultTS funcTC relative",
|
|
55905
55892
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -57306,7 +57293,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
57306
57293
|
}, null, 8, ["visible", "onClose", "review-data"])
|
|
57307
57294
|
], 64);
|
|
57308
57295
|
}
|
|
57309
|
-
const TSider = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
57296
|
+
const TSider = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-93616350"]]);
|
|
57310
57297
|
const style = "";
|
|
57311
57298
|
const components = [TSider];
|
|
57312
57299
|
installComponents();
|