@witlink/usercenter 1.2.77 → 1.2.79

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)
@@ -40364,7 +40364,6 @@ const _sfc_main$z = Object.assign({
40364
40364
  emits: ["refresh"],
40365
40365
  setup(__props, { expose: __expose, emit: __emit }) {
40366
40366
  const { t: t2 } = useI18n();
40367
- const emit = __emit;
40368
40367
  const props = __props;
40369
40368
  const slots = useSlots();
40370
40369
  const dataSource = ref([]);
@@ -40412,12 +40411,8 @@ const _sfc_main$z = Object.assign({
40412
40411
  }).finally(() => localLoading.value = false);
40413
40412
  }
40414
40413
  };
40415
- const refresh = (isInit = false) => {
40416
- if (isInit) {
40417
- localPagination.current = 1;
40418
- localPagination.total = 0;
40419
- emit("refresh");
40420
- }
40414
+ const refresh = () => {
40415
+ localPagination.current = 1;
40421
40416
  loadData();
40422
40417
  };
40423
40418
  onMounted(() => {
@@ -40599,12 +40594,12 @@ const _hoisted_1$c = {
40599
40594
  class: "role-wrap"
40600
40595
  };
40601
40596
  const _hoisted_2$8 = { class: "form-btns" };
40602
- const _hoisted_3$4 = { style: { "height": "32px", "margin-bottom": "10px" } };
40597
+ const _hoisted_3$5 = { style: { "height": "32px", "margin-bottom": "10px" } };
40603
40598
  const _hoisted_4$4 = {
40604
40599
  key: 1,
40605
40600
  class: "role-auth"
40606
40601
  };
40607
- const _hoisted_5$2 = { class: "header-auth" };
40602
+ const _hoisted_5$3 = { class: "header-auth" };
40608
40603
  const _hoisted_6$2 = { class: "title" };
40609
40604
  const _hoisted_7$2 = {
40610
40605
  key: 0,
@@ -40655,6 +40650,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40655
40650
  const systemId = storage.get("systemId") || 1;
40656
40651
  const appStore = useAppStore();
40657
40652
  const userStore = useUserStore();
40653
+ const { hasPermissionId } = usePermissionId();
40658
40654
  initUserInfo();
40659
40655
  const { t: t2 } = useI18n();
40660
40656
  const prefixCls = "uc";
@@ -40663,6 +40659,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40663
40659
  const isDetail = ref(false);
40664
40660
  const isCreate = ref(false);
40665
40661
  const currentRow = ref({});
40662
+ const detailShow = ref(false);
40666
40663
  const { formatDate } = useSysParams();
40667
40664
  const queryParam = ref({
40668
40665
  name: "",
@@ -40711,7 +40708,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
40711
40708
  title: t2("uc_role.action"),
40712
40709
  key: "action",
40713
40710
  fixed: "right",
40714
- width: "150px"
40711
+ width: "80px"
40715
40712
  }
40716
40713
  ]);
40717
40714
  const formState = ref({
@@ -41190,6 +41187,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41190
41187
  }
41191
41188
  }
41192
41189
  );
41190
+ onMounted(() => {
41191
+ detailShow.value = hasPermissionId("005");
41192
+ });
41193
41193
  return (_ctx, _cache) => {
41194
41194
  const _component_a_input = Input;
41195
41195
  const _component_a_form_item = FormItem;
@@ -41199,8 +41199,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41199
41199
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
41200
41200
  const _component_uc_btn_switch = resolveComponent("uc-btn-switch");
41201
41201
  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
41202
  const _component_a_col = Col;
41205
41203
  const _component_a_row = Row;
41206
41204
  const _component_a_checkbox = Checkbox;
@@ -41265,7 +41263,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41265
41263
  ]),
41266
41264
  _: 1
41267
41265
  }),
41268
- createElementVNode("div", _hoisted_3$4, [
41266
+ createElementVNode("div", _hoisted_3$5, [
41269
41267
  createVNode(_component_uc_btn_add, {
41270
41268
  onClick: _cache[2] || (_cache[2] = ($event) => handleAddRole()),
41271
41269
  text: _ctx.$t("uc_role.create_role"),
@@ -41283,10 +41281,24 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41283
41281
  class: "table-bordered"
41284
41282
  }, {
41285
41283
  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),
41284
+ column.key === "name" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
41285
+ detailShow.value ? (openBlock(), createBlock(_component_a_button, {
41286
+ key: 0,
41287
+ onClick: ($event) => handleDetail(record),
41288
+ type: "link",
41289
+ style: { "padding": "0", "height": "auto" }
41290
+ }, {
41291
+ default: withCtx(() => [
41292
+ createVNode(TextEllipsis, {
41293
+ text: record.name
41294
+ }, null, 8, ["text"])
41295
+ ]),
41296
+ _: 2
41297
+ }, 1032, ["onClick"])) : (openBlock(), createBlock(TextEllipsis, {
41298
+ key: 1,
41299
+ text: record.name
41300
+ }, null, 8, ["text"]))
41301
+ ], 64)) : createCommentVNode("v-if", true),
41290
41302
  column.key === "status" ? (openBlock(), createBlock(_component_uc_btn_switch, {
41291
41303
  key: 1,
41292
41304
  checked: record.status == 0,
@@ -41299,22 +41311,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
41299
41311
  column.key === "createTime" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
41300
41312
  createTextVNode(toDisplayString(unref(formatDate)(record.createTime) || "-"), 1)
41301
41313
  ], 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)
41314
+ column.key === "action" ? (openBlock(), createBlock(_component_uc_btn_edit, {
41315
+ key: 4,
41316
+ onClick: ($event) => handleEdit(record),
41317
+ type: "link"
41318
+ }, null, 8, ["onClick"])) : createCommentVNode("v-if", true)
41313
41319
  ]),
41314
41320
  _: 1
41315
41321
  }, 8, ["columns"])
41316
41322
  ])) : (openBlock(), createElementBlock("div", _hoisted_4$4, [
41317
- createElementVNode("div", _hoisted_5$2, [
41323
+ createElementVNode("div", _hoisted_5$3, [
41318
41324
  createElementVNode("div", _hoisted_6$2, [
41319
41325
  createVNode(unref(LeftOutlined), {
41320
41326
  style: { "font-size": "14px", "margin-right": "4px", "cursor": "pointer" },
@@ -41784,7 +41790,7 @@ function getUserDetail(params) {
41784
41790
  }
41785
41791
  const _hoisted_1$b = { class: "add-user" };
41786
41792
  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" } };
41793
+ const _hoisted_3$4 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
41788
41794
  const _hoisted_4$3 = ["onClick"];
41789
41795
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
41790
41796
  __name: "UserEdit",
@@ -41820,9 +41826,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
41820
41826
  form.value.roleIdOthers = [];
41821
41827
  };
41822
41828
  const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
41823
- const handleMobileInput = (e) => {
41824
- const target = e.target;
41825
- form.value.mobile = normalizeMobile((target == null ? void 0 : target.value) || "");
41829
+ const handleMobileInput = (value) => {
41830
+ form.value.mobile = normalizeMobile(value);
41826
41831
  };
41827
41832
  const handleUserCodeValidator = (rule, value) => {
41828
41833
  if (!value) {
@@ -42066,7 +42071,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42066
42071
  }, {
42067
42072
  label: withCtx(() => [
42068
42073
  createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
42069
- createElementVNode("span", _hoisted_3$3, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
42074
+ createElementVNode("span", _hoisted_3$4, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
42070
42075
  ]),
42071
42076
  default: withCtx(() => [
42072
42077
  createVNode(_component_a_input, {
@@ -42216,11 +42221,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42216
42221
  createVNode(_component_a_input, {
42217
42222
  placeholder: _ctx.$t("uc_common.plsEnter"),
42218
42223
  value: form.value.mobile,
42219
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.mobile = $event),
42220
42224
  disabled: props.params.opType == "2",
42221
42225
  autocomplete: "off",
42222
42226
  maxlength: 15,
42223
- onInput: handleMobileInput
42227
+ "onUpdate:value": handleMobileInput
42224
42228
  }, null, 8, ["placeholder", "value", "disabled"])
42225
42229
  ]),
42226
42230
  _: 1
@@ -42243,7 +42247,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42243
42247
  createVNode(_component_a_input, {
42244
42248
  placeholder: _ctx.$t("uc_common.plsEnter"),
42245
42249
  value: form.value.email,
42246
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.email = $event),
42250
+ "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.email = $event),
42247
42251
  disabled: props.params.opType == "2",
42248
42252
  autocomplete: "off",
42249
42253
  maxlength: 32
@@ -42269,7 +42273,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42269
42273
  createVNode(_component_a_input, {
42270
42274
  placeholder: _ctx.$t("uc_common.plsEnter"),
42271
42275
  value: form.value.remarks,
42272
- "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.value.remarks = $event),
42276
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.remarks = $event),
42273
42277
  autocomplete: "off",
42274
42278
  maxlength: 200
42275
42279
  }, null, 8, ["placeholder", "value"])
@@ -42697,6 +42701,7 @@ const UserDetail_vue_vue_type_style_index_0_scoped_167248a6_lang = "";
42697
42701
  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
42702
  const _hoisted_1$8 = { class: "user-info" };
42699
42703
  const _hoisted_2$6 = { class: "form-btns" };
42704
+ const _hoisted_3$3 = { key: 1 };
42700
42705
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
42701
42706
  __name: "index",
42702
42707
  setup(__props) {
@@ -42707,11 +42712,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42707
42712
  const modalStore = useModalStore();
42708
42713
  const prefixCls = "uc";
42709
42714
  const { formatDate } = useSysParams();
42715
+ const { hasPermissionId } = usePermissionId();
42710
42716
  const queryParam = ref({});
42711
42717
  const editParams = reactive({});
42712
42718
  const tableRef = ref();
42713
42719
  const userEditRef = ref();
42714
42720
  const resetPwdModalRef = ref();
42721
+ const detailShow = ref(false);
42715
42722
  const showUserEditDrawer = ref(false);
42716
42723
  const loadData = async (parameter) => {
42717
42724
  var _a;
@@ -42770,7 +42777,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42770
42777
  title: t2("uc_user.action"),
42771
42778
  key: "action",
42772
42779
  fixed: "right",
42773
- width: "180px"
42780
+ width: "130px"
42774
42781
  }
42775
42782
  ]);
42776
42783
  const onSwitch = async (checked, record) => {
@@ -42877,6 +42884,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42877
42884
  queryParam.value = {};
42878
42885
  handleSearchTable();
42879
42886
  };
42887
+ onMounted(() => {
42888
+ detailShow.value = hasPermissionId("005");
42889
+ });
42880
42890
  return (_ctx, _cache) => {
42881
42891
  const _component_a_input = Input;
42882
42892
  const _component_a_form_item = FormItem;
@@ -42888,7 +42898,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42888
42898
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
42889
42899
  const _component_a_divider = Divider;
42890
42900
  const _component_uc_btn_reset_pwd = resolveComponent("uc-btn-reset-pwd");
42891
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
42892
42901
  const _component_a_config_provider = ConfigProvider$1;
42893
42902
  return openBlock(), createBlock(_component_a_config_provider, {
42894
42903
  locale: unref(antLocaleMap)[unref(userStore).userLanguage],
@@ -43012,7 +43021,17 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
43012
43021
  text: record.name
43013
43022
  }, null, 8, ["text"])) : createCommentVNode("v-if", true),
43014
43023
  column.key === "userCode" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
43015
- createTextVNode(toDisplayString(record.code), 1)
43024
+ detailShow.value ? (openBlock(), createBlock(_component_a_button, {
43025
+ key: 0,
43026
+ type: "link",
43027
+ onClick: ($event) => onDetail(record),
43028
+ style: { "padding": "0", "height": "auto" }
43029
+ }, {
43030
+ default: withCtx(() => [
43031
+ createTextVNode(toDisplayString(record.code), 1)
43032
+ ]),
43033
+ _: 2
43034
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(record.code), 1))
43016
43035
  ], 64)) : createCommentVNode("v-if", true),
43017
43036
  column.key === "userStatus" ? (openBlock(), createBlock(_component_uc_btn_switch, {
43018
43037
  key: 3,
@@ -43031,11 +43050,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
43031
43050
  createVNode(_component_uc_btn_reset_pwd, {
43032
43051
  onClick: ($event) => onRsPwd(record),
43033
43052
  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
43053
  }, null, 8, ["onClick"])
43040
43054
  ], 64)) : createCommentVNode("v-if", true)
43041
43055
  ]),
@@ -43206,9 +43220,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
43206
43220
  mobile: ""
43207
43221
  });
43208
43222
  const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
43209
- const handleMobileInput = (e) => {
43210
- const target = e.target;
43211
- formState.mobile = normalizeMobile((target == null ? void 0 : target.value) || "");
43223
+ const handleMobileInput = (value) => {
43224
+ formState.mobile = normalizeMobile(value);
43212
43225
  };
43213
43226
  const rules = computed(() => ({
43214
43227
  pwd: [
@@ -43274,7 +43287,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
43274
43287
  return openBlock(), createBlock(_component_a_modal, {
43275
43288
  title: isBind.value ? _ctx.$t("uc_profile.bandMobile") : _ctx.$t("uc_profile.editMobile"),
43276
43289
  open: visible.value,
43277
- "onUpdate:open": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
43290
+ "onUpdate:open": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
43278
43291
  destroyOnClose: true,
43279
43292
  onCancel: handleClose
43280
43293
  }, {
@@ -43326,11 +43339,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
43326
43339
  default: withCtx(() => [
43327
43340
  createVNode(_component_a_input, {
43328
43341
  value: formState.mobile,
43329
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.mobile = $event),
43330
43342
  placeholder: _ctx.$t("uc_common.plsEnter"),
43331
43343
  maxlength: 15,
43332
43344
  autocomplete: "off",
43333
- onInput: handleMobileInput
43345
+ "onUpdate:value": handleMobileInput
43334
43346
  }, null, 8, ["value", "placeholder"])
43335
43347
  ]),
43336
43348
  _: 1
@@ -44820,7 +44832,7 @@ const _hoisted_1$6 = { class: "userinfo-page" };
44820
44832
  const _hoisted_2$4 = { class: "userinfo-container" };
44821
44833
  const _hoisted_3$2 = { class: "userinfo-menu" };
44822
44834
  const _hoisted_4$2 = { class: "userinfo-header" };
44823
- const _hoisted_5$1 = { class: "username" };
44835
+ const _hoisted_5$2 = { class: "username" };
44824
44836
  const _hoisted_6$1 = { class: "menu-tabs" };
44825
44837
  const _hoisted_7$1 = ["onClick"];
44826
44838
  const _hoisted_8$1 = { class: "userinfo-content" };
@@ -45065,7 +45077,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
45065
45077
  ]),
45066
45078
  _: 1
45067
45079
  }, 8, ["title"]),
45068
- createElementVNode("div", _hoisted_5$1, [
45080
+ createElementVNode("div", _hoisted_5$2, [
45069
45081
  createVNode(TextEllipsis, {
45070
45082
  text: userInfo.userName
45071
45083
  }, null, 8, ["text"])
@@ -45740,9 +45752,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
45740
45752
  return "";
45741
45753
  });
45742
45754
  const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
45743
- const handlePhoneInput = (e) => {
45744
- const target = e.target;
45745
- form.userMobile = normalizeMobile((target == null ? void 0 : target.value) || "");
45755
+ const handlePhoneInput = (value) => {
45756
+ form.userMobile = normalizeMobile(value);
45746
45757
  };
45747
45758
  const initData = () => {
45748
45759
  Object.assign(form, {
@@ -46166,9 +46177,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
46166
46177
  autocomplete: "off",
46167
46178
  placeholder: _ctx.$t("uc_common.plsEnter"),
46168
46179
  value: form.userMobile,
46169
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.userMobile = $event),
46170
46180
  maxlength: 15,
46171
- onInput: handlePhoneInput
46181
+ "onUpdate:value": handlePhoneInput
46172
46182
  }, null, 8, ["disabled", "placeholder", "value"])
46173
46183
  ]),
46174
46184
  _: 1
@@ -46193,7 +46203,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
46193
46203
  autocomplete: "off",
46194
46204
  placeholder: _ctx.$t("uc_common.plsEnter"),
46195
46205
  value: form.userEmail,
46196
- "onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.userEmail = $event),
46206
+ "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.userEmail = $event),
46197
46207
  maxlength: 32
46198
46208
  }, null, 8, ["disabled", "placeholder", "value"])
46199
46209
  ]),
@@ -46223,7 +46233,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
46223
46233
  disabled: isEdit.value,
46224
46234
  autocomplete: "off",
46225
46235
  value: form.userCode,
46226
- "onUpdate:value": _cache[12] || (_cache[12] = ($event) => form.userCode = $event)
46236
+ "onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.userCode = $event)
46227
46237
  }, null, 8, ["placeholder", "disabled", "value"])
46228
46238
  ]),
46229
46239
  _: 1
@@ -46477,11 +46487,13 @@ const _hoisted_3$1 = {
46477
46487
  style: { "margin-bottom": "16px" }
46478
46488
  };
46479
46489
  const _hoisted_4$1 = { key: 0 };
46490
+ const _hoisted_5$1 = { key: 1 };
46480
46491
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
46481
46492
  __name: "index",
46482
46493
  setup(__props) {
46483
46494
  const appStore = useAppStore();
46484
46495
  const userStore = useUserStore();
46496
+ const { hasPermissionId } = usePermissionId();
46485
46497
  initUserInfo();
46486
46498
  const modalStore = useModalStore();
46487
46499
  const { formatDate } = useSysParams();
@@ -46491,6 +46503,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46491
46503
  const showResetPwdModal = ref(false);
46492
46504
  const resetPwdParams = ref({});
46493
46505
  const queryParam = reactive({});
46506
+ const detailShow = ref(false);
46494
46507
  const loadData = async (parameter) => {
46495
46508
  const params = Object.assign(parameter, queryParam);
46496
46509
  const { result } = await getSearchList(params);
@@ -46661,6 +46674,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46661
46674
  fixed: "right"
46662
46675
  }
46663
46676
  ]);
46677
+ onMounted(() => {
46678
+ detailShow.value = hasPermissionId("005");
46679
+ });
46664
46680
  return (_ctx, _cache) => {
46665
46681
  const _component_a_input = Input;
46666
46682
  const _component_a_form_item = FormItem;
@@ -46669,7 +46685,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46669
46685
  const _component_a_form = Form;
46670
46686
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
46671
46687
  const _component_a_tooltip = Tooltip;
46672
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
46673
46688
  const _component_a_switch = Switch;
46674
46689
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
46675
46690
  const _component_a_divider = Divider;
@@ -46771,16 +46786,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46771
46786
  ])) : createCommentVNode("v-if", true)
46772
46787
  ]),
46773
46788
  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),
46789
+ column.key === "id" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
46790
+ detailShow.value ? (openBlock(), createBlock(_component_a_button, {
46791
+ key: 0,
46792
+ type: "link",
46793
+ onClick: ($event) => onDetail(record),
46794
+ style: { "padding": "0", "height": "auto" }
46795
+ }, {
46796
+ default: withCtx(() => [
46797
+ createTextVNode(toDisplayString(record.id), 1)
46798
+ ]),
46799
+ _: 2
46800
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(record.id), 1))
46801
+ ], 64)) : createCommentVNode("v-if", true),
46784
46802
  column.key === "name" ? (openBlock(), createBlock(TextEllipsis, {
46785
46803
  key: 1,
46786
46804
  text: record.name