tx-sider 2.1.68 → 2.2.1

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 CHANGED
@@ -34405,10 +34405,10 @@ var axiosExports = axios$3.exports;
34405
34405
  var axios = axiosExports;
34406
34406
  const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios);
34407
34407
  const routes = [
34408
- {
34409
- path: "/",
34410
- component: TSider
34411
- }
34408
+ // {
34409
+ // path: "/",
34410
+ // component: TSider,
34411
+ // },
34412
34412
  ];
34413
34413
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34414
34414
  __proto__: null,
@@ -37534,8 +37534,15 @@ const getMaxVersion = (moduleType) => {
37534
37534
  requestBase: "USER_BASE_URL"
37535
37535
  });
37536
37536
  };
37537
+ const setUserRead = (id, moduleCode) => {
37538
+ return cwRequest({
37539
+ url: `/api/basis-management/versionManage/setUserRead/${id}/${moduleCode}`,
37540
+ method: "put",
37541
+ requestBase: "USER_BASE_URL"
37542
+ });
37543
+ };
37537
37544
  const VersionUpdateModal_vue_vue_type_style_index_0_scoped_true_lang = "";
37538
- const _withScopeId$3 = (n2) => (pushScopeId("data-v-268d99dc"), n2 = n2(), popScopeId(), n2);
37545
+ const _withScopeId$3 = (n2) => (pushScopeId("data-v-c31d9d32"), n2 = n2(), popScopeId(), n2);
37539
37546
  const _hoisted_1$4 = { class: "flex items-center h-[60px] pl-[40px] themeBGC" };
37540
37547
  const _hoisted_2$4 = { class: "relative w-[30px] h-[30px]" };
37541
37548
  const _hoisted_3$4 = {
@@ -37579,17 +37586,17 @@ const _hoisted_8$4 = [
37579
37586
  _hoisted_7$4
37580
37587
  ];
37581
37588
  const _hoisted_9$4 = { class: "text-xl cbd9e55 pl-2" };
37582
- const _hoisted_10$4 = { class: "flex flex-col px-28" };
37583
- const _hoisted_11$4 = { class: "flex" };
37584
- const _hoisted_12$3 = /* @__PURE__ */ createTextVNode("取消");
37585
- const _hoisted_13$1 = /* @__PURE__ */ createTextVNode("设为已读");
37589
+ const _hoisted_10$4 = { class: "flex flex-col px-28 mt-[50px]" };
37590
+ const _hoisted_11$4 = { class: "flex justify-center my-20" };
37591
+ const _hoisted_12$3 = /* @__PURE__ */ createTextVNode(" 取消 ");
37592
+ const _hoisted_13$1 = /* @__PURE__ */ createTextVNode(" 设为已读 ");
37586
37593
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
37587
37594
  __name: "VersionUpdateModal",
37588
37595
  props: {
37589
37596
  show: { type: Boolean },
37590
37597
  paramsQuery: null,
37591
37598
  title: null,
37592
- ccflowData: null
37599
+ newVersionList: null
37593
37600
  },
37594
37601
  emits: ["update:show", "getItem"],
37595
37602
  setup(__props, { emit }) {
@@ -37674,15 +37681,23 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
37674
37681
  console.log("关闭");
37675
37682
  inputV.value = false;
37676
37683
  };
37677
- const onRead = () => {
37684
+ const onRead = async () => {
37685
+ var _a, _b;
37678
37686
  console.log("已读");
37679
- inputV.value = false;
37687
+ try {
37688
+ await setUserRead(
37689
+ (_a = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _a.userId,
37690
+ (_b = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _b.location
37691
+ );
37692
+ inputV.value = false;
37693
+ } catch (error) {
37694
+ inputV.value = false;
37695
+ }
37680
37696
  };
37681
37697
  watch(
37682
- () => props2.ccflowData,
37698
+ () => props2.newVersionList,
37683
37699
  () => {
37684
- var _a;
37685
- tableData.value = (_a = props2.ccflowData) == null ? void 0 : _a.newVersionList;
37700
+ tableData.value = props2.newVersionList;
37686
37701
  },
37687
37702
  { deep: true }
37688
37703
  );
@@ -37743,10 +37758,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
37743
37758
  }, 8, ["th", "contractExecDocList", "pageSize", "currentPages"]),
37744
37759
  createElementVNode("div", _hoisted_11$4, [
37745
37760
  createVNode(_component_a_button, {
37746
- type: "primary",
37747
- class: "px-4 btn1",
37748
- onClick: moduleHandle,
37749
- style: { "margin-right": "50px" }
37761
+ class: "w-[140px] mr-[50px] btn1",
37762
+ style: { "border-radius": "5px" },
37763
+ onClick: moduleHandle
37750
37764
  }, {
37751
37765
  default: withCtx(() => [
37752
37766
  _hoisted_12$3
@@ -37754,8 +37768,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
37754
37768
  _: 1
37755
37769
  }),
37756
37770
  createVNode(_component_a_button, {
37771
+ class: "w-[140px] mr-[50px] btn2",
37757
37772
  type: "primary",
37758
- class: "px-4 btn2",
37759
37773
  onClick: onRead
37760
37774
  }, {
37761
37775
  default: withCtx(() => [
@@ -37774,7 +37788,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
37774
37788
  };
37775
37789
  }
37776
37790
  });
37777
- const __unplugin_components_7 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-268d99dc"]]);
37791
+ const __unplugin_components_7 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-c31d9d32"]]);
37778
37792
  const index$7 = "";
37779
37793
  const CPagination_vue_vue_type_style_index_0_scoped_true_lang = "";
37780
37794
  const _hoisted_1$3 = { class: "Pagination" };
@@ -42462,7 +42476,7 @@ const _sfc_main = {
42462
42476
  };
42463
42477
  }
42464
42478
  };
42465
- const _withScopeId = (n2) => (pushScopeId("data-v-0eacee9d"), n2 = n2(), popScopeId(), n2);
42479
+ const _withScopeId = (n2) => (pushScopeId("data-v-0fa29760"), n2 = n2(), popScopeId(), n2);
42466
42480
  const _hoisted_1 = {
42467
42481
  class: "bg-white defaultTS funcTC relative",
42468
42482
  style: { "padding-bottom": "10px", "margin-bottom": "10px" }
@@ -43439,11 +43453,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
43439
43453
  show: $setup.isModuleVersionUpdate,
43440
43454
  "onUpdate:show": _cache[26] || (_cache[26] = ($event) => $setup.isModuleVersionUpdate = $event),
43441
43455
  title: "系统更新通知",
43442
- ccflowData: $setup.ccflowData
43443
- }, null, 8, ["show", "ccflowData"])) : createCommentVNode("", true)
43456
+ newVersionList: $setup.ccflowData.newVersionList
43457
+ }, null, 8, ["show", "newVersionList"])) : createCommentVNode("", true)
43444
43458
  ], 64);
43445
43459
  }
43446
- const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0eacee9d"]]);
43460
+ const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0fa29760"]]);
43447
43461
  const components = [TSider];
43448
43462
  installComponents();
43449
43463
  function installComponents() {