tx-sider 2.4.5 → 2.4.7
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 +35 -42
- package/lib/TXUI.umd.js +15 -15
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -22218,10 +22218,10 @@ const __unplugin_components_0 = _extends$1(Upload, {
|
|
|
22218
22218
|
}
|
|
22219
22219
|
});
|
|
22220
22220
|
const routes = [
|
|
22221
|
-
{
|
|
22222
|
-
|
|
22223
|
-
|
|
22224
|
-
}
|
|
22221
|
+
// {
|
|
22222
|
+
// path: "/",
|
|
22223
|
+
// component: TSider,
|
|
22224
|
+
// },
|
|
22225
22225
|
];
|
|
22226
22226
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22227
22227
|
__proto__: null,
|
|
@@ -27938,9 +27938,9 @@ const SetUserOperationTotalIsRead = (data3) => {
|
|
|
27938
27938
|
requestBase: "USER_BASE_URL"
|
|
27939
27939
|
});
|
|
27940
27940
|
};
|
|
27941
|
-
const
|
|
27941
|
+
const index_scss_vue_type_style_index_0_src_6a6c50b6_scoped_true_lang = "";
|
|
27942
27942
|
const YearReview_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
27943
|
-
const
|
|
27943
|
+
const common_scss_vue_type_style_index_2_src_6a6c50b6_lang = "";
|
|
27944
27944
|
const _export_sfc$1 = (sfc, props) => {
|
|
27945
27945
|
const target = sfc.__vccOpts || sfc;
|
|
27946
27946
|
for (const [key2, val] of props) {
|
|
@@ -27948,7 +27948,7 @@ const _export_sfc$1 = (sfc, props) => {
|
|
|
27948
27948
|
}
|
|
27949
27949
|
return target;
|
|
27950
27950
|
};
|
|
27951
|
-
const _withScopeId$3 = (n10) => (pushScopeId("data-v-
|
|
27951
|
+
const _withScopeId$3 = (n10) => (pushScopeId("data-v-6a6c50b6"), n10 = n10(), popScopeId(), n10);
|
|
27952
27952
|
const _hoisted_1$4 = {
|
|
27953
27953
|
key: 0,
|
|
27954
27954
|
class: "year-review-overlay"
|
|
@@ -27960,7 +27960,7 @@ const _hoisted_5$3 = { class: "section_1 flex-row" };
|
|
|
27960
27960
|
const _hoisted_6$3 = { class: "group_2 flex-col hover-section" };
|
|
27961
27961
|
const _hoisted_7$3 = { class: "group_3 flex-col" };
|
|
27962
27962
|
const _hoisted_8$3 = { class: "text_1" };
|
|
27963
|
-
const _hoisted_9$3 = /* @__PURE__ */ createStaticVNode('<div class="text-wrapper_1" data-v-
|
|
27963
|
+
const _hoisted_9$3 = /* @__PURE__ */ createStaticVNode('<div class="text-wrapper_1" data-v-6a6c50b6><span class="text_2" data-v-6a6c50b6>我是</span><span class="text_3" data-v-6a6c50b6>构AI~</span></div><div class="block_1 flex-col" data-v-6a6c50b6><div class="text-wrapper_2" data-v-6a6c50b6><span class="text_4" data-v-6a6c50b6>构AI</span><span class="text_5" data-v-6a6c50b6>~</span></div></div><div class="block_2 flex-col" data-v-6a6c50b6></div><img class="image_1" referrerpolicy="no-referrer" src="' + _imports_0$1 + '" data-v-6a6c50b6>', 4);
|
|
27964
27964
|
const _hoisted_13$3 = { class: "group_4 flex-col hover-section" };
|
|
27965
27965
|
const _hoisted_14$2 = { class: "block_3 flex-col" };
|
|
27966
27966
|
const _hoisted_15$2 = { class: "box_7 flex-row" };
|
|
@@ -27980,7 +27980,7 @@ const _hoisted_24$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ creat
|
|
|
27980
27980
|
const _hoisted_25$1 = /* @__PURE__ */ createTextVNode(" 在这一年里, ");
|
|
27981
27981
|
const _hoisted_26$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
|
|
27982
27982
|
const _hoisted_27$1 = /* @__PURE__ */ createTextVNode(" 你与数字构件系统携手同行 ");
|
|
27983
|
-
const _hoisted_28$1 = /* @__PURE__ */ createStaticVNode('<span class="paragraph_2" data-v-
|
|
27983
|
+
const _hoisted_28$1 = /* @__PURE__ */ createStaticVNode('<span class="paragraph_2" data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_7" data-v-6a6c50b6>每一次登录...</span><span class="paragraph_3" data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_8" data-v-6a6c50b6>每一次操作 ...</span><span class="paragraph_4" data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_9" data-v-6a6c50b6>每一次审批 ...</span><span class="paragraph_5" data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_10" data-v-6a6c50b6>都为工作的高效推进注入了</span>', 8);
|
|
27984
27984
|
const _hoisted_36$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "text-wrapper_10 flex-row" }, [
|
|
27985
27985
|
/* @__PURE__ */ createElementVNode("span", { class: "text_11" }, "「力量」!")
|
|
27986
27986
|
], -1));
|
|
@@ -28010,9 +28010,9 @@ const _hoisted_51$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ creat
|
|
|
28010
28010
|
], -1));
|
|
28011
28011
|
const _hoisted_52$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "text_22" }, null, -1));
|
|
28012
28012
|
const _hoisted_53$1 = { class: "text_23" };
|
|
28013
|
-
const _hoisted_54$1 = /* @__PURE__ */ createStaticVNode('<span class="paragraph_8" data-v-
|
|
28013
|
+
const _hoisted_54$1 = /* @__PURE__ */ createStaticVNode('<span class="paragraph_8" data-v-6a6c50b6></span><span class="text_24" data-v-6a6c50b6>次报账,</span><span class="text_25" data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_26" data-v-6a6c50b6>·发起了</span><span class="text_27" data-v-6a6c50b6></span>', 5);
|
|
28014
28014
|
const _hoisted_59$1 = { class: "text_28" };
|
|
28015
|
-
const _hoisted_60$1 = /* @__PURE__ */ createStaticVNode('<span class="paragraph_9" data-v-
|
|
28015
|
+
const _hoisted_60$1 = /* @__PURE__ */ createStaticVNode('<span class="paragraph_9" data-v-6a6c50b6></span><span class="text_29" data-v-6a6c50b6>次报销,</span><span class="text_30" data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_31" data-v-6a6c50b6> <br data-v-6a6c50b6> ·参与了 </span><span class="text_32" data-v-6a6c50b6></span>', 5);
|
|
28016
28016
|
const _hoisted_65$1 = { class: "paragraph_10" };
|
|
28017
28017
|
const _hoisted_66$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "paragraph_11" }, null, -1));
|
|
28018
28018
|
const _hoisted_67$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "text_33" }, [
|
|
@@ -28030,7 +28030,7 @@ const _hoisted_71$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ creat
|
|
|
28030
28030
|
], -1));
|
|
28031
28031
|
const _hoisted_72$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "text_37" }, null, -1));
|
|
28032
28032
|
const _hoisted_73$1 = { class: "text_38" };
|
|
28033
|
-
const _hoisted_74$1 = /* @__PURE__ */ createStaticVNode('<span class="text_39" data-v-
|
|
28033
|
+
const _hoisted_74$1 = /* @__PURE__ */ createStaticVNode('<span class="text_39" data-v-6a6c50b6></span><span class="text_40" data-v-6a6c50b6>次,</span><span class="paragraph_13" data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_41" data-v-6a6c50b6>·通过</span><span class="text_42" data-v-6a6c50b6></span>', 5);
|
|
28034
28034
|
const _hoisted_79$1 = { class: "text_43" };
|
|
28035
28035
|
const _hoisted_80$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "text_44" }, null, -1));
|
|
28036
28036
|
const _hoisted_81$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "text_45" }, "次。", -1));
|
|
@@ -28040,7 +28040,7 @@ const _hoisted_83$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ creat
|
|
|
28040
28040
|
referrerpolicy: "no-referrer",
|
|
28041
28041
|
src: _imports_1
|
|
28042
28042
|
}, null, -1));
|
|
28043
|
-
const _hoisted_84$1 = /* @__PURE__ */ createStaticVNode('<div class="group_8 flex-col hover-section" data-v-
|
|
28043
|
+
const _hoisted_84$1 = /* @__PURE__ */ createStaticVNode('<div class="group_8 flex-col hover-section" data-v-6a6c50b6><div class="box_4 flex-row" data-v-6a6c50b6><div class="text-wrapper_6" data-v-6a6c50b6><span class="text_46" data-v-6a6c50b6>2025</span><span class="paragraph_14" data-v-6a6c50b6> 年 <br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="paragraph_15" data-v-6a6c50b6> 数字构件系统 <br data-v-6a6c50b6> 也在不断 </span><span class="text_47" data-v-6a6c50b6>优化升级</span><span class="paragraph_16" data-v-6a6c50b6> , <br data-v-6a6c50b6> 只为更好地适配你的工作需求。 <br data-v-6a6c50b6></span><span class="paragraph_17" data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="paragraph_18" data-v-6a6c50b6> 而你 <br data-v-6a6c50b6> 在使用过程中的每一次互动, <br data-v-6a6c50b6> 都为系统的完善提供了 <br data-v-6a6c50b6></span><span class="text_48" data-v-6a6c50b6>宝贵的方向</span><span class="text_49" data-v-6a6c50b6>。</span></div><div class="section_2 flex-col" data-v-6a6c50b6></div><div class="section_3 flex-col" data-v-6a6c50b6></div></div></div>', 1);
|
|
28044
28044
|
const _hoisted_85$1 = { class: "group_9 flex-col hover-section" };
|
|
28045
28045
|
const _hoisted_86$1 = { class: "box_5 flex-col" };
|
|
28046
28046
|
const _hoisted_87$1 = { class: "text-wrapper_7" };
|
|
@@ -28050,7 +28050,7 @@ const _hoisted_88$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ creat
|
|
|
28050
28050
|
/* @__PURE__ */ createElementVNode("br")
|
|
28051
28051
|
], -1));
|
|
28052
28052
|
const _hoisted_89$1 = { class: "text_50" };
|
|
28053
|
-
const _hoisted_90$1 = /* @__PURE__ */ createStaticVNode('<span class="text_51" data-v-
|
|
28053
|
+
const _hoisted_90$1 = /* @__PURE__ */ createStaticVNode('<span class="text_51" data-v-6a6c50b6></span><span class="paragraph_20" data-v-6a6c50b6> 年 <br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_52" data-v-6a6c50b6>工作顺利!</span><span class="paragraph_21" data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="text_53" data-v-6a6c50b6>事事顺心!</span><span class="paragraph_22" data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="paragraph_23" data-v-6a6c50b6> 在新的一年里收获更多 <br data-v-6a6c50b6></span><span class="text_54" data-v-6a6c50b6>成长与成就!</span><span class="paragraph_24" data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="paragraph_25" data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6><br data-v-6a6c50b6></span><span class="paragraph_26" data-v-6a6c50b6> 未来我们很快就会见面~ <br data-v-6a6c50b6></span><span class="text_55" data-v-6a6c50b6>加油~</span>', 12);
|
|
28054
28054
|
const _hoisted_102$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "group_10 flex-col" }, null, -1));
|
|
28055
28055
|
const _hoisted_103$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "group_11 flex-col" }, null, -1));
|
|
28056
28056
|
const _hoisted_104$1 = { class: "text-wrapper_8" };
|
|
@@ -28095,6 +28095,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
28095
28095
|
const getOperationCount = (operateType) => {
|
|
28096
28096
|
if (!props.reviewData)
|
|
28097
28097
|
return 0;
|
|
28098
|
+
if (operateType === 5) {
|
|
28099
|
+
const initiateCount = getOperationCount(6);
|
|
28100
|
+
const rejectCount = getOperationCount(7);
|
|
28101
|
+
const passCount = getOperationCount(8);
|
|
28102
|
+
return initiateCount + rejectCount + passCount;
|
|
28103
|
+
}
|
|
28098
28104
|
const operation = props.reviewData.userOperationTotalDtos.find(
|
|
28099
28105
|
(item) => parseInt(item.operateType) === operateType
|
|
28100
28106
|
);
|
|
@@ -28242,7 +28248,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
28242
28248
|
};
|
|
28243
28249
|
}
|
|
28244
28250
|
});
|
|
28245
|
-
const __unplugin_components_11 = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-
|
|
28251
|
+
const __unplugin_components_11 = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-6a6c50b6"]]);
|
|
28246
28252
|
const _default = "";
|
|
28247
28253
|
const index$a = "";
|
|
28248
28254
|
const index$9 = "";
|
|
@@ -55053,7 +55059,9 @@ const _sfc_main = {
|
|
|
55053
55059
|
var _a3, _b3, _c2, _d2, _e2, _f2;
|
|
55054
55060
|
await getUnReadMessage(0);
|
|
55055
55061
|
await getUserFlowData();
|
|
55056
|
-
|
|
55062
|
+
if ((route == null ? void 0 : route.path) !== "/login") {
|
|
55063
|
+
GetUserOperationTotalApi("default");
|
|
55064
|
+
}
|
|
55057
55065
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
55058
55066
|
isShowAllProductionBases.value = (_a3 = getModeuleInfoDataHandle(
|
|
55059
55067
|
window.location.hostname.split(".")[0]
|
|
@@ -55760,50 +55768,36 @@ const _sfc_main = {
|
|
|
55760
55768
|
moduleManageVisible.value = true;
|
|
55761
55769
|
}
|
|
55762
55770
|
};
|
|
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
55771
|
const showYearReview = ref(false);
|
|
55771
55772
|
const reviewData = ref(null);
|
|
55772
|
-
const showYearReviewBtn = ref(
|
|
55773
|
+
const showYearReviewBtn = ref(false);
|
|
55773
55774
|
const openYearReview = () => {
|
|
55774
55775
|
showYearReview.value = true;
|
|
55775
|
-
GetUserOperationTotalApi();
|
|
55776
|
+
GetUserOperationTotalApi("onClick");
|
|
55776
55777
|
};
|
|
55777
55778
|
const handleClose = () => {
|
|
55778
55779
|
console.log("年历回顾已关闭");
|
|
55779
55780
|
};
|
|
55780
|
-
const GetUserOperationTotalApi = async () => {
|
|
55781
|
+
const GetUserOperationTotalApi = async (type4) => {
|
|
55781
55782
|
var _a3;
|
|
55782
55783
|
try {
|
|
55783
55784
|
const res = await GetUserOperationTotal({
|
|
55784
|
-
year: dayjs().year(),
|
|
55785
|
+
// year: dayjs().year(),
|
|
55785
55786
|
userId: (_a3 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _a3.userId
|
|
55786
55787
|
});
|
|
55787
55788
|
if (res) {
|
|
55788
55789
|
reviewData.value = res;
|
|
55790
|
+
showYearReviewBtn.value = !res.isExpired;
|
|
55789
55791
|
const isRead = res.isRead;
|
|
55790
55792
|
localStorage.setItem("yearReviewIsRead", JSON.stringify(isRead));
|
|
55791
|
-
|
|
55793
|
+
if (type4 === "default") {
|
|
55794
|
+
showYearReview.value = !isRead;
|
|
55795
|
+
}
|
|
55792
55796
|
}
|
|
55793
55797
|
} catch (error) {
|
|
55794
55798
|
console.log(error);
|
|
55795
55799
|
}
|
|
55796
55800
|
};
|
|
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
55801
|
return {
|
|
55808
55802
|
...refData,
|
|
55809
55803
|
// 管理端
|
|
@@ -55893,13 +55887,12 @@ const _sfc_main = {
|
|
|
55893
55887
|
openYearReview,
|
|
55894
55888
|
reviewData,
|
|
55895
55889
|
showYearReviewBtn,
|
|
55896
|
-
handleClose
|
|
55897
|
-
checkYearReviewShow
|
|
55890
|
+
handleClose
|
|
55898
55891
|
/*******end*****/
|
|
55899
55892
|
};
|
|
55900
55893
|
}
|
|
55901
55894
|
};
|
|
55902
|
-
const _withScopeId = (n10) => (pushScopeId("data-v-
|
|
55895
|
+
const _withScopeId = (n10) => (pushScopeId("data-v-74f09673"), n10 = n10(), popScopeId(), n10);
|
|
55903
55896
|
const _hoisted_1 = {
|
|
55904
55897
|
class: "bg-white defaultTS funcTC relative",
|
|
55905
55898
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -57306,7 +57299,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
57306
57299
|
}, null, 8, ["visible", "onClose", "review-data"])
|
|
57307
57300
|
], 64);
|
|
57308
57301
|
}
|
|
57309
|
-
const TSider = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
57302
|
+
const TSider = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-74f09673"]]);
|
|
57310
57303
|
const style = "";
|
|
57311
57304
|
const components = [TSider];
|
|
57312
57305
|
installComponents();
|