@witlink/usercenter 1.2.77 → 1.2.78

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.
@@ -38120,9 +38120,9 @@ const _hoisted_2$a = {
38120
38120
  key: 0,
38121
38121
  class: "left-syslist"
38122
38122
  };
38123
- const _hoisted_3$6 = { class: "page-title" };
38123
+ const _hoisted_3$7 = { class: "page-title" };
38124
38124
  const _hoisted_4$6 = ["onClick"];
38125
- const _hoisted_5$4 = ["src"];
38125
+ const _hoisted_5$5 = ["src"];
38126
38126
  const _hoisted_6$4 = { class: "sys-item-name" };
38127
38127
  const _hoisted_7$4 = { class: "sys-item-name" };
38128
38128
  const _hoisted_8$4 = { class: "sys-item-desc" };
@@ -38333,7 +38333,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38333
38333
  default: withCtx(() => [
38334
38334
  createElementVNode("div", _hoisted_1$i, [
38335
38335
  unref(systemId) == 1 ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
38336
- createElementVNode("div", _hoisted_3$6, toDisplayString(_ctx.$t("uc_fun.syslist")), 1),
38336
+ createElementVNode("div", _hoisted_3$7, toDisplayString(_ctx.$t("uc_fun.syslist")), 1),
38337
38337
  (openBlock(true), createElementBlock(Fragment, null, renderList(sysList.value, (item) => {
38338
38338
  return openBlock(), createElementBlock("div", {
38339
38339
  class: normalizeClass(["sys-item", { "sys-item-active": selectedSys.value === item.systemId }]),
@@ -38344,7 +38344,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38344
38344
  src: item.icon,
38345
38345
  alt: "icon",
38346
38346
  class: "sys-item-icon"
38347
- }, null, 8, _hoisted_5$4),
38347
+ }, null, 8, _hoisted_5$5),
38348
38348
  createElementVNode("div", _hoisted_6$4, [
38349
38349
  createElementVNode("div", _hoisted_7$4, toDisplayString(item.systemName), 1),
38350
38350
  createElementVNode("div", _hoisted_8$4, toDisplayString(item.description), 1)
@@ -39494,9 +39494,9 @@ const DeptDetail_vue_vue_type_style_index_0_scoped_7ab63a77_lang = "";
39494
39494
  const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
39495
39495
  const _hoisted_1$d = { class: "organ-wrap" };
39496
39496
  const _hoisted_2$9 = { class: "topInfo" };
39497
- const _hoisted_3$5 = { class: "form-btns" };
39497
+ const _hoisted_3$6 = { class: "form-btns" };
39498
39498
  const _hoisted_4$5 = ["onClick"];
39499
- const _hoisted_5$3 = { class: "show_more_button" };
39499
+ const _hoisted_5$4 = { class: "show_more_button" };
39500
39500
  const _hoisted_6$3 = { key: 1 };
39501
39501
  const _hoisted_7$3 = { class: "ant-dropdown-link" };
39502
39502
  const _hoisted_8$3 = {
@@ -39919,7 +39919,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
39919
39919
  ]),
39920
39920
  _: 1
39921
39921
  }, 8, ["label"]),
39922
- createElementVNode("div", _hoisted_3$5, [
39922
+ createElementVNode("div", _hoisted_3$6, [
39923
39923
  createCommentVNode(' <uc-btn-search\r\n @click="queryById"\r\n :showInput="false"\r\n ></uc-btn-search> '),
39924
39924
  createVNode(_component_a_button, {
39925
39925
  onClick: handleReset,
@@ -39971,7 +39971,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
39971
39971
  style: { "cursor": "pointer", "color": "#1890ff" },
39972
39972
  onClick: ($event) => showMore(row)
39973
39973
  }, [
39974
- createElementVNode("div", _hoisted_5$3, toDisplayString(row.name), 1)
39974
+ createElementVNode("div", _hoisted_5$4, toDisplayString(row.name), 1)
39975
39975
  ], 8, _hoisted_4$5)) : (openBlock(), createElementBlock("span", _hoisted_6$3, [
39976
39976
  createElementVNode("div", {
39977
39977
  class: normalizeClass("organ_type" + row.type)
@@ -40599,12 +40599,12 @@ const _hoisted_1$c = {
40599
40599
  class: "role-wrap"
40600
40600
  };
40601
40601
  const _hoisted_2$8 = { class: "form-btns" };
40602
- const _hoisted_3$4 = { style: { "height": "32px", "margin-bottom": "10px" } };
40602
+ const _hoisted_3$5 = { style: { "height": "32px", "margin-bottom": "10px" } };
40603
40603
  const _hoisted_4$4 = {
40604
40604
  key: 1,
40605
40605
  class: "role-auth"
40606
40606
  };
40607
- const _hoisted_5$2 = { class: "header-auth" };
40607
+ const _hoisted_5$3 = { class: "header-auth" };
40608
40608
  const _hoisted_6$2 = { class: "title" };
40609
40609
  const _hoisted_7$2 = {
40610
40610
  key: 0,
@@ -40655,6 +40655,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40655
40655
  const systemId = storage.get("systemId") || 1;
40656
40656
  const appStore = useAppStore();
40657
40657
  const userStore = useUserStore();
40658
+ const { hasPermissionId } = usePermissionId();
40658
40659
  initUserInfo();
40659
40660
  const { t: t2 } = useI18n();
40660
40661
  const prefixCls = "uc";
@@ -40663,6 +40664,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40663
40664
  const isDetail = ref(false);
40664
40665
  const isCreate = ref(false);
40665
40666
  const currentRow = ref({});
40667
+ const detailShow = ref(false);
40666
40668
  const { formatDate } = useSysParams();
40667
40669
  const queryParam = ref({
40668
40670
  name: "",
@@ -40711,7 +40713,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40711
40713
  title: t2("uc_role.action"),
40712
40714
  key: "action",
40713
40715
  fixed: "right",
40714
- width: "150px"
40716
+ width: "80px"
40715
40717
  }
40716
40718
  ]);
40717
40719
  const formState = ref({
@@ -41190,6 +41192,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41190
41192
  }
41191
41193
  }
41192
41194
  );
41195
+ onMounted(() => {
41196
+ detailShow.value = hasPermissionId("005");
41197
+ });
41193
41198
  return (_ctx, _cache) => {
41194
41199
  const _component_a_input = Input;
41195
41200
  const _component_a_form_item = FormItem;
@@ -41199,8 +41204,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41199
41204
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
41200
41205
  const _component_uc_btn_switch = resolveComponent("uc-btn-switch");
41201
41206
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
41202
- const _component_a_divider = Divider;
41203
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
41204
41207
  const _component_a_col = Col;
41205
41208
  const _component_a_row = Row;
41206
41209
  const _component_a_checkbox = Checkbox;
@@ -41265,7 +41268,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41265
41268
  ]),
41266
41269
  _: 1
41267
41270
  }),
41268
- createElementVNode("div", _hoisted_3$4, [
41271
+ createElementVNode("div", _hoisted_3$5, [
41269
41272
  createVNode(_component_uc_btn_add, {
41270
41273
  onClick: _cache[2] || (_cache[2] = ($event) => handleAddRole()),
41271
41274
  text: _ctx.$t("uc_role.create_role"),
@@ -41283,10 +41286,24 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41283
41286
  class: "table-bordered"
41284
41287
  }, {
41285
41288
  bodyCell: withCtx(({ record, column }) => [
41286
- column.key === "name" ? (openBlock(), createBlock(TextEllipsis, {
41287
- key: 0,
41288
- text: record.name
41289
- }, null, 8, ["text"])) : createCommentVNode("v-if", true),
41289
+ column.key === "name" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
41290
+ detailShow.value ? (openBlock(), createBlock(_component_a_button, {
41291
+ key: 0,
41292
+ onClick: ($event) => handleDetail(record),
41293
+ type: "link",
41294
+ style: { "padding": "0", "height": "auto" }
41295
+ }, {
41296
+ default: withCtx(() => [
41297
+ createVNode(TextEllipsis, {
41298
+ text: record.name
41299
+ }, null, 8, ["text"])
41300
+ ]),
41301
+ _: 2
41302
+ }, 1032, ["onClick"])) : (openBlock(), createBlock(TextEllipsis, {
41303
+ key: 1,
41304
+ text: record.name
41305
+ }, null, 8, ["text"]))
41306
+ ], 64)) : createCommentVNode("v-if", true),
41290
41307
  column.key === "status" ? (openBlock(), createBlock(_component_uc_btn_switch, {
41291
41308
  key: 1,
41292
41309
  checked: record.status == 0,
@@ -41299,22 +41316,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41299
41316
  column.key === "createTime" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
41300
41317
  createTextVNode(toDisplayString(unref(formatDate)(record.createTime) || "-"), 1)
41301
41318
  ], 64)) : createCommentVNode("v-if", true),
41302
- column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
41303
- createVNode(_component_uc_btn_edit, {
41304
- onClick: ($event) => handleEdit(record),
41305
- type: "link"
41306
- }, null, 8, ["onClick"]),
41307
- createVNode(_component_a_divider, { type: "vertical" }),
41308
- createVNode(_component_uc_btn_detail, {
41309
- onClick: ($event) => handleDetail(record),
41310
- type: "link"
41311
- }, null, 8, ["onClick"])
41312
- ], 64)) : createCommentVNode("v-if", true)
41319
+ column.key === "action" ? (openBlock(), createBlock(_component_uc_btn_edit, {
41320
+ key: 4,
41321
+ onClick: ($event) => handleEdit(record),
41322
+ type: "link"
41323
+ }, null, 8, ["onClick"])) : createCommentVNode("v-if", true)
41313
41324
  ]),
41314
41325
  _: 1
41315
41326
  }, 8, ["columns"])
41316
41327
  ])) : (openBlock(), createElementBlock("div", _hoisted_4$4, [
41317
- createElementVNode("div", _hoisted_5$2, [
41328
+ createElementVNode("div", _hoisted_5$3, [
41318
41329
  createElementVNode("div", _hoisted_6$2, [
41319
41330
  createVNode(unref(LeftOutlined), {
41320
41331
  style: { "font-size": "14px", "margin-right": "4px", "cursor": "pointer" },
@@ -41784,7 +41795,7 @@ function getUserDetail(params) {
41784
41795
  }
41785
41796
  const _hoisted_1$b = { class: "add-user" };
41786
41797
  const _hoisted_2$7 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
41787
- const _hoisted_3$3 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
41798
+ const _hoisted_3$4 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
41788
41799
  const _hoisted_4$3 = ["onClick"];
41789
41800
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
41790
41801
  __name: "UserEdit",
@@ -42066,7 +42077,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42066
42077
  }, {
42067
42078
  label: withCtx(() => [
42068
42079
  createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
42069
- createElementVNode("span", _hoisted_3$3, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
42080
+ createElementVNode("span", _hoisted_3$4, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
42070
42081
  ]),
42071
42082
  default: withCtx(() => [
42072
42083
  createVNode(_component_a_input, {
@@ -42697,6 +42708,7 @@ const UserDetail_vue_vue_type_style_index_0_scoped_167248a6_lang = "";
42697
42708
  const UserDetail = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-167248a6"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserDetail.vue"]]);
42698
42709
  const _hoisted_1$8 = { class: "user-info" };
42699
42710
  const _hoisted_2$6 = { class: "form-btns" };
42711
+ const _hoisted_3$3 = { key: 1 };
42700
42712
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
42701
42713
  __name: "index",
42702
42714
  setup(__props) {
@@ -42707,11 +42719,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42707
42719
  const modalStore = useModalStore();
42708
42720
  const prefixCls = "uc";
42709
42721
  const { formatDate } = useSysParams();
42722
+ const { hasPermissionId } = usePermissionId();
42710
42723
  const queryParam = ref({});
42711
42724
  const editParams = reactive({});
42712
42725
  const tableRef = ref();
42713
42726
  const userEditRef = ref();
42714
42727
  const resetPwdModalRef = ref();
42728
+ const detailShow = ref(false);
42715
42729
  const showUserEditDrawer = ref(false);
42716
42730
  const loadData = async (parameter) => {
42717
42731
  var _a;
@@ -42770,7 +42784,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42770
42784
  title: t2("uc_user.action"),
42771
42785
  key: "action",
42772
42786
  fixed: "right",
42773
- width: "180px"
42787
+ width: "130px"
42774
42788
  }
42775
42789
  ]);
42776
42790
  const onSwitch = async (checked, record) => {
@@ -42877,6 +42891,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42877
42891
  queryParam.value = {};
42878
42892
  handleSearchTable();
42879
42893
  };
42894
+ onMounted(() => {
42895
+ detailShow.value = hasPermissionId("005");
42896
+ });
42880
42897
  return (_ctx, _cache) => {
42881
42898
  const _component_a_input = Input;
42882
42899
  const _component_a_form_item = FormItem;
@@ -42888,7 +42905,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42888
42905
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
42889
42906
  const _component_a_divider = Divider;
42890
42907
  const _component_uc_btn_reset_pwd = resolveComponent("uc-btn-reset-pwd");
42891
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
42892
42908
  const _component_a_config_provider = ConfigProvider$1;
42893
42909
  return openBlock(), createBlock(_component_a_config_provider, {
42894
42910
  locale: unref(antLocaleMap)[unref(userStore).userLanguage],
@@ -43012,7 +43028,17 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
43012
43028
  text: record.name
43013
43029
  }, null, 8, ["text"])) : createCommentVNode("v-if", true),
43014
43030
  column.key === "userCode" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
43015
- createTextVNode(toDisplayString(record.code), 1)
43031
+ detailShow.value ? (openBlock(), createBlock(_component_a_button, {
43032
+ key: 0,
43033
+ type: "link",
43034
+ onClick: ($event) => onDetail(record),
43035
+ style: { "padding": "0", "height": "auto" }
43036
+ }, {
43037
+ default: withCtx(() => [
43038
+ createTextVNode(toDisplayString(record.code), 1)
43039
+ ]),
43040
+ _: 2
43041
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(record.code), 1))
43016
43042
  ], 64)) : createCommentVNode("v-if", true),
43017
43043
  column.key === "userStatus" ? (openBlock(), createBlock(_component_uc_btn_switch, {
43018
43044
  key: 3,
@@ -43031,11 +43057,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
43031
43057
  createVNode(_component_uc_btn_reset_pwd, {
43032
43058
  onClick: ($event) => onRsPwd(record),
43033
43059
  type: "link"
43034
- }, null, 8, ["onClick"]),
43035
- createVNode(_component_a_divider, { type: "vertical" }),
43036
- createVNode(_component_uc_btn_detail, {
43037
- type: "link",
43038
- onClick: ($event) => onDetail(record)
43039
43060
  }, null, 8, ["onClick"])
43040
43061
  ], 64)) : createCommentVNode("v-if", true)
43041
43062
  ]),
@@ -44820,7 +44841,7 @@ const _hoisted_1$6 = { class: "userinfo-page" };
44820
44841
  const _hoisted_2$4 = { class: "userinfo-container" };
44821
44842
  const _hoisted_3$2 = { class: "userinfo-menu" };
44822
44843
  const _hoisted_4$2 = { class: "userinfo-header" };
44823
- const _hoisted_5$1 = { class: "username" };
44844
+ const _hoisted_5$2 = { class: "username" };
44824
44845
  const _hoisted_6$1 = { class: "menu-tabs" };
44825
44846
  const _hoisted_7$1 = ["onClick"];
44826
44847
  const _hoisted_8$1 = { class: "userinfo-content" };
@@ -45065,7 +45086,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
45065
45086
  ]),
45066
45087
  _: 1
45067
45088
  }, 8, ["title"]),
45068
- createElementVNode("div", _hoisted_5$1, [
45089
+ createElementVNode("div", _hoisted_5$2, [
45069
45090
  createVNode(TextEllipsis, {
45070
45091
  text: userInfo.userName
45071
45092
  }, null, 8, ["text"])
@@ -46477,11 +46498,13 @@ const _hoisted_3$1 = {
46477
46498
  style: { "margin-bottom": "16px" }
46478
46499
  };
46479
46500
  const _hoisted_4$1 = { key: 0 };
46501
+ const _hoisted_5$1 = { key: 1 };
46480
46502
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
46481
46503
  __name: "index",
46482
46504
  setup(__props) {
46483
46505
  const appStore = useAppStore();
46484
46506
  const userStore = useUserStore();
46507
+ const { hasPermissionId } = usePermissionId();
46485
46508
  initUserInfo();
46486
46509
  const modalStore = useModalStore();
46487
46510
  const { formatDate } = useSysParams();
@@ -46491,6 +46514,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46491
46514
  const showResetPwdModal = ref(false);
46492
46515
  const resetPwdParams = ref({});
46493
46516
  const queryParam = reactive({});
46517
+ const detailShow = ref(false);
46494
46518
  const loadData = async (parameter) => {
46495
46519
  const params = Object.assign(parameter, queryParam);
46496
46520
  const { result } = await getSearchList(params);
@@ -46661,6 +46685,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46661
46685
  fixed: "right"
46662
46686
  }
46663
46687
  ]);
46688
+ onMounted(() => {
46689
+ detailShow.value = hasPermissionId("005");
46690
+ });
46664
46691
  return (_ctx, _cache) => {
46665
46692
  const _component_a_input = Input;
46666
46693
  const _component_a_form_item = FormItem;
@@ -46669,7 +46696,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46669
46696
  const _component_a_form = Form;
46670
46697
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
46671
46698
  const _component_a_tooltip = Tooltip;
46672
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
46673
46699
  const _component_a_switch = Switch;
46674
46700
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
46675
46701
  const _component_a_divider = Divider;
@@ -46771,16 +46797,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46771
46797
  ])) : createCommentVNode("v-if", true)
46772
46798
  ]),
46773
46799
  bodyCell: withCtx(({ record, column }) => [
46774
- column.key === "id" ? (openBlock(), createBlock(_component_uc_btn_detail, {
46775
- key: 0,
46776
- type: "link",
46777
- onClick: ($event) => onDetail(record)
46778
- }, {
46779
- default: withCtx(() => [
46780
- createTextVNode(toDisplayString(record.id), 1)
46781
- ]),
46782
- _: 2
46783
- }, 1032, ["onClick"])) : createCommentVNode("v-if", true),
46800
+ column.key === "id" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
46801
+ detailShow.value ? (openBlock(), createBlock(_component_a_button, {
46802
+ key: 0,
46803
+ type: "link",
46804
+ onClick: ($event) => onDetail(record),
46805
+ style: { "padding": "0", "height": "auto" }
46806
+ }, {
46807
+ default: withCtx(() => [
46808
+ createTextVNode(toDisplayString(record.id), 1)
46809
+ ]),
46810
+ _: 2
46811
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(record.id), 1))
46812
+ ], 64)) : createCommentVNode("v-if", true),
46784
46813
  column.key === "name" ? (openBlock(), createBlock(TextEllipsis, {
46785
46814
  key: 1,
46786
46815
  text: record.name