@witlink/usercenter 1.2.76 → 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.
@@ -13119,6 +13119,15 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
13119
13119
  const onReset = () => {
13120
13120
  resetForm();
13121
13121
  };
13122
+ const onSwitchAccount = () => {
13123
+ visible.value = false;
13124
+ resetForm();
13125
+ storage.set(FORCE_RESET_PWD_SYNC_KEY$1, Date.now());
13126
+ emit("success");
13127
+ if (resetCallback) {
13128
+ resetCallback();
13129
+ }
13130
+ };
13122
13131
  const onSubmit = () => {
13123
13132
  formRef.value && formRef.value.validate().then(async () => {
13124
13133
  loading.value = true;
@@ -13167,6 +13176,15 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
13167
13176
  createElementVNode("span", null, toDisplayString(_ctx.$t("uc_user.resetPwd")), 1)
13168
13177
  ]),
13169
13178
  footer: withCtx(() => [
13179
+ createVNode(_component_a_button, {
13180
+ key: "switch",
13181
+ onClick: onSwitchAccount
13182
+ }, {
13183
+ default: withCtx(() => [
13184
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.switchAccount")), 1)
13185
+ ]),
13186
+ _: 1
13187
+ }),
13170
13188
  createVNode(_component_a_button, {
13171
13189
  key: "reset",
13172
13190
  onClick: onReset
@@ -38104,7 +38122,7 @@ const _hoisted_2$a = {
38104
38122
  };
38105
38123
  const _hoisted_3$7 = { class: "page-title" };
38106
38124
  const _hoisted_4$6 = ["onClick"];
38107
- const _hoisted_5$4 = ["src"];
38125
+ const _hoisted_5$5 = ["src"];
38108
38126
  const _hoisted_6$4 = { class: "sys-item-name" };
38109
38127
  const _hoisted_7$4 = { class: "sys-item-name" };
38110
38128
  const _hoisted_8$4 = { class: "sys-item-desc" };
@@ -38326,7 +38344,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38326
38344
  src: item.icon,
38327
38345
  alt: "icon",
38328
38346
  class: "sys-item-icon"
38329
- }, null, 8, _hoisted_5$4),
38347
+ }, null, 8, _hoisted_5$5),
38330
38348
  createElementVNode("div", _hoisted_6$4, [
38331
38349
  createElementVNode("div", _hoisted_7$4, toDisplayString(item.systemName), 1),
38332
38350
  createElementVNode("div", _hoisted_8$4, toDisplayString(item.description), 1)
@@ -39478,7 +39496,7 @@ const _hoisted_1$d = { class: "organ-wrap" };
39478
39496
  const _hoisted_2$9 = { class: "topInfo" };
39479
39497
  const _hoisted_3$6 = { class: "form-btns" };
39480
39498
  const _hoisted_4$5 = ["onClick"];
39481
- const _hoisted_5$3 = { class: "show_more_button" };
39499
+ const _hoisted_5$4 = { class: "show_more_button" };
39482
39500
  const _hoisted_6$3 = { key: 1 };
39483
39501
  const _hoisted_7$3 = { class: "ant-dropdown-link" };
39484
39502
  const _hoisted_8$3 = {
@@ -39509,6 +39527,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
39509
39527
  const addShow = ref(false);
39510
39528
  const removeShow = ref(false);
39511
39529
  const editShow = ref(false);
39530
+ const detailShow = ref(false);
39512
39531
  ref([]);
39513
39532
  const tableRef = ref();
39514
39533
  const systemId = storage.get("systemId");
@@ -39854,6 +39873,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
39854
39873
  addShow.value = hasPermissionId("002");
39855
39874
  editShow.value = hasPermissionId("003");
39856
39875
  removeShow.value = hasPermissionId("004");
39876
+ detailShow.value = hasPermissionId("005");
39857
39877
  init2();
39858
39878
  });
39859
39879
  return (_ctx, _cache) => {
@@ -39951,13 +39971,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
39951
39971
  style: { "cursor": "pointer", "color": "#1890ff" },
39952
39972
  onClick: ($event) => showMore(row)
39953
39973
  }, [
39954
- createElementVNode("div", _hoisted_5$3, toDisplayString(row.name), 1)
39974
+ createElementVNode("div", _hoisted_5$4, toDisplayString(row.name), 1)
39955
39975
  ], 8, _hoisted_4$5)) : (openBlock(), createElementBlock("span", _hoisted_6$3, [
39956
39976
  createElementVNode("div", {
39957
39977
  class: normalizeClass("organ_type" + row.type)
39958
39978
  }, toDisplayString(_ctx.$t("uc_organ.type" + row.type)), 3),
39959
39979
  withDirectives(createVNode(_component_a_button, {
39960
39980
  type: "link",
39981
+ disabled: !detailShow.value,
39982
+ style: { "padding-left": "8px" },
39961
39983
  onClick: ($event) => onDetail(row),
39962
39984
  class: "wrap-btn"
39963
39985
  }, {
@@ -39965,21 +39987,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
39965
39987
  createTextVNode(toDisplayString(row.name), 1)
39966
39988
  ]),
39967
39989
  _: 2
39968
- }, 1032, ["onClick"]), [
39969
- [vShow, row.hasOperationPermissions && row.type != "3"]
39970
- ]),
39971
- withDirectives(createVNode(_component_a_button, {
39972
- type: "link",
39973
- style: { "padding-left": "16px" },
39974
- onClick: ($event) => onDetail(row),
39975
- class: "wrap-btn"
39976
- }, {
39977
- default: withCtx(() => [
39978
- createTextVNode(toDisplayString(row.name), 1)
39979
- ]),
39980
- _: 2
39981
- }, 1032, ["onClick"]), [
39982
- [vShow, row.hasOperationPermissions && row.type == "3"]
39990
+ }, 1032, ["disabled", "onClick"]), [
39991
+ [vShow, row.hasOperationPermissions]
39983
39992
  ]),
39984
39993
  createVNode(_component_a_tooltip, { placement: "top" }, {
39985
39994
  title: withCtx(() => [
@@ -40595,7 +40604,7 @@ const _hoisted_4$4 = {
40595
40604
  key: 1,
40596
40605
  class: "role-auth"
40597
40606
  };
40598
- const _hoisted_5$2 = { class: "header-auth" };
40607
+ const _hoisted_5$3 = { class: "header-auth" };
40599
40608
  const _hoisted_6$2 = { class: "title" };
40600
40609
  const _hoisted_7$2 = {
40601
40610
  key: 0,
@@ -40646,6 +40655,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40646
40655
  const systemId = storage.get("systemId") || 1;
40647
40656
  const appStore = useAppStore();
40648
40657
  const userStore = useUserStore();
40658
+ const { hasPermissionId } = usePermissionId();
40649
40659
  initUserInfo();
40650
40660
  const { t: t2 } = useI18n();
40651
40661
  const prefixCls = "uc";
@@ -40654,6 +40664,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40654
40664
  const isDetail = ref(false);
40655
40665
  const isCreate = ref(false);
40656
40666
  const currentRow = ref({});
40667
+ const detailShow = ref(false);
40657
40668
  const { formatDate } = useSysParams();
40658
40669
  const queryParam = ref({
40659
40670
  name: "",
@@ -40702,7 +40713,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40702
40713
  title: t2("uc_role.action"),
40703
40714
  key: "action",
40704
40715
  fixed: "right",
40705
- width: "150px"
40716
+ width: "80px"
40706
40717
  }
40707
40718
  ]);
40708
40719
  const formState = ref({
@@ -41181,6 +41192,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41181
41192
  }
41182
41193
  }
41183
41194
  );
41195
+ onMounted(() => {
41196
+ detailShow.value = hasPermissionId("005");
41197
+ });
41184
41198
  return (_ctx, _cache) => {
41185
41199
  const _component_a_input = Input;
41186
41200
  const _component_a_form_item = FormItem;
@@ -41188,7 +41202,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41188
41202
  const _component_a_button = Button$1;
41189
41203
  const _component_a_form = Form;
41190
41204
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
41191
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
41192
41205
  const _component_uc_btn_switch = resolveComponent("uc-btn-switch");
41193
41206
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
41194
41207
  const _component_a_col = Col;
@@ -41273,12 +41286,24 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41273
41286
  class: "table-bordered"
41274
41287
  }, {
41275
41288
  bodyCell: withCtx(({ record, column }) => [
41276
- column.key === "name" ? (openBlock(), createBlock(_component_uc_btn_detail, {
41277
- key: 0,
41278
- onClick: ($event) => handleDetail(record),
41279
- type: "link",
41280
- text: record.name
41281
- }, null, 8, ["onClick", "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),
41282
41307
  column.key === "status" ? (openBlock(), createBlock(_component_uc_btn_switch, {
41283
41308
  key: 1,
41284
41309
  checked: record.status == 0,
@@ -41300,7 +41325,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41300
41325
  _: 1
41301
41326
  }, 8, ["columns"])
41302
41327
  ])) : (openBlock(), createElementBlock("div", _hoisted_4$4, [
41303
- createElementVNode("div", _hoisted_5$2, [
41328
+ createElementVNode("div", _hoisted_5$3, [
41304
41329
  createElementVNode("div", _hoisted_6$2, [
41305
41330
  createVNode(unref(LeftOutlined), {
41306
41331
  style: { "font-size": "14px", "margin-right": "4px", "cursor": "pointer" },
@@ -41800,18 +41825,22 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
41800
41825
  roleIdOthers: []
41801
41826
  });
41802
41827
  const roleId = ref("");
41803
- const roleIdOthers = ref([]);
41804
41828
  const roles = ref([]);
41805
41829
  const handleRoleSelectChange = (val) => {
41806
41830
  roleId.value = val;
41807
41831
  form.value.roleIdOthers = [];
41808
41832
  };
41833
+ const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
41834
+ const handleMobileInput = (e) => {
41835
+ const target = e.target;
41836
+ form.value.mobile = normalizeMobile((target == null ? void 0 : target.value) || "");
41837
+ };
41809
41838
  const handleUserCodeValidator = (rule, value) => {
41810
41839
  if (!value) {
41811
41840
  return Promise.reject(t2("uc_user.user_code_msg1"));
41812
41841
  }
41813
41842
  if (/^[a-zA-Z0-9]+$/.test(value)) {
41814
- if (/^.{1,20}$/.test(value)) {
41843
+ if (/^.{1,50}$/.test(value)) {
41815
41844
  return Promise.resolve();
41816
41845
  } else {
41817
41846
  return Promise.reject(t2("uc_user.user_code_msg3"));
@@ -41965,11 +41994,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
41965
41994
  });
41966
41995
  branchDisabled.value = result.businessFlag === "1";
41967
41996
  roleId.value = result.roleId;
41968
- roleIdOthers.value = !result.roleIdOthers ? [] : result.roleIdOthers.split(",");
41969
41997
  form.value = {
41970
41998
  ...result,
41999
+ mobile: normalizeMobile(result.mobile || ""),
41971
42000
  roleId: result.roleId,
41972
- roleIdOthers: result.roleIdOthers ? result.roleIdOthers.split(",") : [],
42001
+ roleIdOthers: result.roleIdOthers ? result.roleIdOthers.split(",").map((item) => Number(item)) : [],
41973
42002
  branchId: result.branchId
41974
42003
  };
41975
42004
  };
@@ -42201,7 +42230,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42201
42230
  "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.mobile = $event),
42202
42231
  disabled: props.params.opType == "2",
42203
42232
  autocomplete: "off",
42204
- maxlength: 15
42233
+ maxlength: 15,
42234
+ onInput: handleMobileInput
42205
42235
  }, null, 8, ["placeholder", "value", "disabled"])
42206
42236
  ]),
42207
42237
  _: 1
@@ -42678,7 +42708,7 @@ const UserDetail_vue_vue_type_style_index_0_scoped_167248a6_lang = "";
42678
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"]]);
42679
42709
  const _hoisted_1$8 = { class: "user-info" };
42680
42710
  const _hoisted_2$6 = { class: "form-btns" };
42681
- const _hoisted_3$3 = { key: 5 };
42711
+ const _hoisted_3$3 = { key: 1 };
42682
42712
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
42683
42713
  __name: "index",
42684
42714
  setup(__props) {
@@ -42689,11 +42719,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42689
42719
  const modalStore = useModalStore();
42690
42720
  const prefixCls = "uc";
42691
42721
  const { formatDate } = useSysParams();
42722
+ const { hasPermissionId } = usePermissionId();
42692
42723
  const queryParam = ref({});
42693
42724
  const editParams = reactive({});
42694
42725
  const tableRef = ref();
42695
42726
  const userEditRef = ref();
42696
42727
  const resetPwdModalRef = ref();
42728
+ const detailShow = ref(false);
42697
42729
  const showUserEditDrawer = ref(false);
42698
42730
  const loadData = async (parameter) => {
42699
42731
  var _a;
@@ -42752,7 +42784,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42752
42784
  title: t2("uc_user.action"),
42753
42785
  key: "action",
42754
42786
  fixed: "right",
42755
- width: "120px"
42787
+ width: "130px"
42756
42788
  }
42757
42789
  ]);
42758
42790
  const onSwitch = async (checked, record) => {
@@ -42859,6 +42891,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42859
42891
  queryParam.value = {};
42860
42892
  handleSearchTable();
42861
42893
  };
42894
+ onMounted(() => {
42895
+ detailShow.value = hasPermissionId("005");
42896
+ });
42862
42897
  return (_ctx, _cache) => {
42863
42898
  const _component_a_input = Input;
42864
42899
  const _component_a_form_item = FormItem;
@@ -42866,7 +42901,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42866
42901
  const _component_a_button = Button$1;
42867
42902
  const _component_a_form = Form;
42868
42903
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
42869
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
42870
42904
  const _component_uc_btn_switch = resolveComponent("uc-btn-switch");
42871
42905
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
42872
42906
  const _component_a_divider = Divider;
@@ -42993,27 +43027,28 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42993
43027
  key: 1,
42994
43028
  text: record.name
42995
43029
  }, null, 8, ["text"])) : createCommentVNode("v-if", true),
42996
- column.key === "userCode" ? (openBlock(), createBlock(_component_uc_btn_detail, {
42997
- key: 2,
42998
- type: "link",
42999
- onClick: ($event) => onDetail(record)
43000
- }, {
43001
- default: withCtx(() => [
43002
- createTextVNode(toDisplayString(record.code), 1)
43003
- ]),
43004
- _: 2
43005
- }, 1032, ["onClick"])) : createCommentVNode("v-if", true),
43006
- column.key === "userStatus" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
43007
- [0, 1].includes(Number(record.status)) ? (openBlock(), createBlock(_component_uc_btn_switch, {
43030
+ column.key === "userCode" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
43031
+ detailShow.value ? (openBlock(), createBlock(_component_a_button, {
43008
43032
  key: 0,
43009
- checked: record.status == 0,
43010
- onClick: (checked) => onSwitch(checked, record)
43011
- }, null, 8, ["checked", "onClick"])) : createCommentVNode("v-if", true)
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))
43012
43042
  ], 64)) : createCommentVNode("v-if", true),
43043
+ column.key === "userStatus" ? (openBlock(), createBlock(_component_uc_btn_switch, {
43044
+ key: 3,
43045
+ checked: record.status == 0,
43046
+ onClick: (checked) => onSwitch(checked, record)
43047
+ }, null, 8, ["checked", "onClick"])) : createCommentVNode("v-if", true),
43013
43048
  column.key === "createTime" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
43014
43049
  createTextVNode(toDisplayString(unref(formatDate)(record.createTime) || "-"), 1)
43015
43050
  ], 64)) : createCommentVNode("v-if", true),
43016
- column.key === "action" ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3$3, [
43051
+ column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
43017
43052
  createVNode(_component_uc_btn_edit, {
43018
43053
  onClick: ($event) => onUpdate(record),
43019
43054
  type: "link"
@@ -43023,9 +43058,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
43023
43058
  onClick: ($event) => onRsPwd(record),
43024
43059
  type: "link"
43025
43060
  }, null, 8, ["onClick"])
43026
- ], 512)), [
43027
- [vShow, record.status != 2]
43028
- ]) : createCommentVNode("v-if", true)
43061
+ ], 64)) : createCommentVNode("v-if", true)
43029
43062
  ]),
43030
43063
  _: 1
43031
43064
  }, 8, ["columns"]),
@@ -43193,6 +43226,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
43193
43226
  pwd: "",
43194
43227
  mobile: ""
43195
43228
  });
43229
+ const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
43230
+ const handleMobileInput = (e) => {
43231
+ const target = e.target;
43232
+ formState.mobile = normalizeMobile((target == null ? void 0 : target.value) || "");
43233
+ };
43196
43234
  const rules = computed(() => ({
43197
43235
  pwd: [
43198
43236
  {
@@ -43311,7 +43349,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
43311
43349
  value: formState.mobile,
43312
43350
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.mobile = $event),
43313
43351
  placeholder: _ctx.$t("uc_common.plsEnter"),
43314
- maxlength: 15
43352
+ maxlength: 15,
43353
+ autocomplete: "off",
43354
+ onInput: handleMobileInput
43315
43355
  }, null, 8, ["value", "placeholder"])
43316
43356
  ]),
43317
43357
  _: 1
@@ -44801,7 +44841,7 @@ const _hoisted_1$6 = { class: "userinfo-page" };
44801
44841
  const _hoisted_2$4 = { class: "userinfo-container" };
44802
44842
  const _hoisted_3$2 = { class: "userinfo-menu" };
44803
44843
  const _hoisted_4$2 = { class: "userinfo-header" };
44804
- const _hoisted_5$1 = { class: "username" };
44844
+ const _hoisted_5$2 = { class: "username" };
44805
44845
  const _hoisted_6$1 = { class: "menu-tabs" };
44806
44846
  const _hoisted_7$1 = ["onClick"];
44807
44847
  const _hoisted_8$1 = { class: "userinfo-content" };
@@ -45046,7 +45086,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
45046
45086
  ]),
45047
45087
  _: 1
45048
45088
  }, 8, ["title"]),
45049
- createElementVNode("div", _hoisted_5$1, [
45089
+ createElementVNode("div", _hoisted_5$2, [
45050
45090
  createVNode(TextEllipsis, {
45051
45091
  text: userInfo.userName
45052
45092
  }, null, 8, ["text"])
@@ -45720,6 +45760,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
45720
45760
  }
45721
45761
  return "";
45722
45762
  });
45763
+ const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
45764
+ const handlePhoneInput = (e) => {
45765
+ const target = e.target;
45766
+ form.userMobile = normalizeMobile((target == null ? void 0 : target.value) || "");
45767
+ };
45723
45768
  const initData = () => {
45724
45769
  Object.assign(form, {
45725
45770
  organType: props.params.organType,
@@ -46143,7 +46188,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
46143
46188
  placeholder: _ctx.$t("uc_common.plsEnter"),
46144
46189
  value: form.userMobile,
46145
46190
  "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.userMobile = $event),
46146
- maxlength: 15
46191
+ maxlength: 15,
46192
+ onInput: handlePhoneInput
46147
46193
  }, null, 8, ["disabled", "placeholder", "value"])
46148
46194
  ]),
46149
46195
  _: 1
@@ -46452,11 +46498,13 @@ const _hoisted_3$1 = {
46452
46498
  style: { "margin-bottom": "16px" }
46453
46499
  };
46454
46500
  const _hoisted_4$1 = { key: 0 };
46501
+ const _hoisted_5$1 = { key: 1 };
46455
46502
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
46456
46503
  __name: "index",
46457
46504
  setup(__props) {
46458
46505
  const appStore = useAppStore();
46459
46506
  const userStore = useUserStore();
46507
+ const { hasPermissionId } = usePermissionId();
46460
46508
  initUserInfo();
46461
46509
  const modalStore = useModalStore();
46462
46510
  const { formatDate } = useSysParams();
@@ -46466,6 +46514,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46466
46514
  const showResetPwdModal = ref(false);
46467
46515
  const resetPwdParams = ref({});
46468
46516
  const queryParam = reactive({});
46517
+ const detailShow = ref(false);
46469
46518
  const loadData = async (parameter) => {
46470
46519
  const params = Object.assign(parameter, queryParam);
46471
46520
  const { result } = await getSearchList(params);
@@ -46636,6 +46685,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46636
46685
  fixed: "right"
46637
46686
  }
46638
46687
  ]);
46688
+ onMounted(() => {
46689
+ detailShow.value = hasPermissionId("005");
46690
+ });
46639
46691
  return (_ctx, _cache) => {
46640
46692
  const _component_a_input = Input;
46641
46693
  const _component_a_form_item = FormItem;
@@ -46644,7 +46696,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46644
46696
  const _component_a_form = Form;
46645
46697
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
46646
46698
  const _component_a_tooltip = Tooltip;
46647
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
46648
46699
  const _component_a_switch = Switch;
46649
46700
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
46650
46701
  const _component_a_divider = Divider;
@@ -46746,16 +46797,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46746
46797
  ])) : createCommentVNode("v-if", true)
46747
46798
  ]),
46748
46799
  bodyCell: withCtx(({ record, column }) => [
46749
- column.key === "id" ? (openBlock(), createBlock(_component_uc_btn_detail, {
46750
- key: 0,
46751
- type: "link",
46752
- onClick: ($event) => onDetail(record)
46753
- }, {
46754
- default: withCtx(() => [
46755
- createTextVNode(toDisplayString(record.id), 1)
46756
- ]),
46757
- _: 2
46758
- }, 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),
46759
46813
  column.key === "name" ? (openBlock(), createBlock(TextEllipsis, {
46760
46814
  key: 1,
46761
46815
  text: record.name
@@ -47739,15 +47793,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47739
47793
  return visible.value ? (openBlock(), createBlock(_component_a_button, mergeProps({
47740
47794
  key: 0,
47741
47795
  type: props.type
47742
- }, _ctx.$attrs, {
47743
- class: curLinkClass.value,
47744
- style: { "width": "100%", "text-align": "left" }
47745
- }), {
47796
+ }, _ctx.$attrs, { class: curLinkClass.value }), {
47746
47797
  default: withCtx(() => [
47747
47798
  renderSlot(_ctx.$slots, "default", {}, () => [
47748
- createVNode(TextEllipsis, {
47749
- text: props.text || _ctx.$t("usercenter_button._005")
47750
- }, null, 8, ["text"])
47799
+ createTextVNode(toDisplayString(props.text || _ctx.$t("usercenter_button._005")), 1)
47751
47800
  ], true)
47752
47801
  ]),
47753
47802
  _: 3
@@ -47771,7 +47820,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
47771
47820
  });
47772
47821
  return (_ctx, _cache) => {
47773
47822
  const _component_a_switch = Switch;
47774
- return visible.value ? (openBlock(), createBlock(_component_a_switch, normalizeProps(mergeProps({ key: 0 }, _ctx.$attrs)), null, 16)) : createCommentVNode("v-if", true);
47823
+ return openBlock(), createBlock(_component_a_switch, mergeProps(_ctx.$attrs, {
47824
+ disabled: !visible.value
47825
+ }), null, 16, ["disabled"]);
47775
47826
  };
47776
47827
  }
47777
47828
  });