@witlink/usercenter 1.2.85 → 1.2.87

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.
@@ -13,7 +13,7 @@ import { getUserInfo as getUserInfo$2, hasPermission } from "@witlink/components
13
13
  import en_US from "ant-design-vue/es/locale/en_US";
14
14
  import zh_CN from "ant-design-vue/es/locale/zh_CN";
15
15
  import fr_FR from "ant-design-vue/es/locale/fr_FR";
16
- import { InputPassword, FormItem, Form, Button as Button$1, Modal, Tooltip, DescriptionsItem, Descriptions, Space, Upload, ConfigProvider as ConfigProvider$1, Textarea, Input, InputGroup, AutoComplete, Alert, Divider, MenuItem, Menu, Dropdown, Table, Col, Row, Spin, Checkbox, Cascader, Select, Avatar, Tag, InputNumber, Switch, SelectOption, Radio, RadioGroup, InputSearch, DatePicker } from "ant-design-vue/es";
16
+ import { InputPassword, FormItem, Form, Button as Button$1, Modal, Tooltip, DescriptionsItem, Descriptions, Space, Upload, ConfigProvider as ConfigProvider$1, Textarea, Input, InputGroup, AutoComplete, Alert, Divider, MenuItem, Menu, Dropdown, Table, Col, Row, Spin, Checkbox, Cascader, Select, InputNumber, Avatar, Tag, Switch, SelectOption, Radio, RadioGroup, InputSearch, DatePicker } from "ant-design-vue/es";
17
17
  import Icon, { ImportOutlined, RedoOutlined, ExclamationCircleOutlined, DownOutlined, LeftOutlined, UploadOutlined, PlusOutlined, MinusOutlined, EditOutlined, InfoCircleOutlined, DeleteOutlined, DownloadOutlined } from "@ant-design/icons-vue";
18
18
  import dayjs from "dayjs";
19
19
  import { cloneDeep } from "lodash-es";
@@ -13285,7 +13285,6 @@ const _export_sfc = (sfc, props) => {
13285
13285
  };
13286
13286
  const ForceResetPwdModal = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/ForceResetPwdModal.vue"]]);
13287
13287
  const base = "";
13288
- const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATrSURBVHgB7ZtNbxtFGMefmX2LqZvYpIlIKMgGBXqgKFUviEvLB0AkZ5DaXOGSM5eUT0A4AMopkWjPphLXKoEDSEhILcqhJAebl9hBjlsHJ7H3bYZnNnXqbBLH3qy3zmp+0Xh2Jzvenf88M/PMzBpAIpFIJBJJRBCIKfl8PqUZydtYwBtAyGQznQMvcNd95Ch8Pjs2VvDni6Ug/xTLs4TCHJY+1f5KvmSB+0WrMLETZKO0tYgFvd15Dl5AUT5oikIhRhQ3y192J4aAZHRQlvP5p541xUaQUqmU4RxmIRAko+qWlzc2grhcCSjGPpSSW14MceGYDjQ1lPRiRVFg/JVLB+ejI2kvENLahZKM+IxVH9LKwIAOhq6DqqreuesyYIx7x+TZH+f8SD4V4gIhD/HzVvO00bAwPDn497/l44+boDg/ijg2FmIn1CWs9CoEhDFYEnFsBMmm01XXJTMQALSOr16/PLokjnvSZOr1egYiIJFIFFrPKWWpbn1NIcbl8dGDESp0QfYaZg4fagoioN4wC4kBI/s8BYdOQqqcsUc46hSIQj/CEh/rvos+gxNy57Xx0ZXW9NBd93rD4hAl3M02LeWvja0p11JWstn0QV/yd6l8k3CY5JylCKFVILxqN7TvW69pJVaChEHPh13TtLAHZxAGlFIwDB16Sc8F2d2tQ5homuoJ0yti66kGRQriQwriQwriQwriQwriQwriQwrio+eCHF6m67/v89NzT3VwMBma6y7EOPeCKAr1wnlB9iE+pCA+Qm0yX9/LTfrTGg0TbNuBMBCz3AsXEofSfvr19xsYFSAkQrOQbxdzGZXTnD9drIe4rhtKcBz3yH23nvw3L+4NIRGahVCNLmOU8acPDV2EnoJrpuLei4u5azMz04G3IZqEYiELd+/jrvtRMSIkY2tKDkLgzIIs3Ls/h9GJG82O43jNJoxgWfaJz8GB33xWMWfiTE1m4bvcFD7JnXbX1Gp7x+6hBiWdHmznnM1+czf356efTM9DQAIL4nVkhJ5aI1F7qgrQORztVj77ePohBCCwIG++8eqy7bgZf7ow7VbEorAIYSAszf/9o5fSkLIPddwpTaG5fP7ptZP2XtoReGKwUSx33A6SyZdA1zU4C8LKtrd3Om5+lulks9mjbxmeRiSeahiOmbCMMPuik4hEkHajQ6fYtgtREMkLM6JmxWij68FuJ4ZuEaIgsjeIbNv2Qr8jZ7s+pCA+pCA+pCA+pCA+uhZkdXVVL5fLY9DnGAYfFs8KXdKx6y5EME2WURTlLfQrDPQZF6CPIcA/x88KzgX/UFVYGxkZKXWSryMLKRaL19GF+BDXNK8KMfZvCHvQxzBGvFeX0Cd8Wzz75mblvU7ydSQIIfo7R9PgAfQpuEjwM65HH6ownBy+i5V5ahPqyFNVVf4LrvFexwnnwTwblf8BVangwfvQT3BYY5w/aH0NTVWJyRj9DddSrNOyd9OHCDHGbJteRb2H4RxAqVJjzF3b3a2uTkxMmJ3kCbQeIsRxHHWYMWscbzusaeRlx9nvW14Uwgoch+y4LqsMDBjFSsUsXbkyUoMuCW3neH193TCM1HAiYSRt27zIOUOB1CRak0EI1SklOtZWoD0JUdMixr2ZHTxD82eWokBN04wa7tVY29tOJUjhj+OF/Srz8eNyW3HCKqBEIpFEyf8CNUU/7iBL/wAAAABJRU5ErkJggg==";
13289
13288
  const defineVxeComponent = defineComponent;
13290
13289
  const reClsMap = {};
13291
13290
  let tpImgEl;
@@ -38134,12 +38133,7 @@ const _hoisted_9$3 = {
38134
38133
  key: 0,
38135
38134
  class: "page-title"
38136
38135
  };
38137
- const _hoisted_10$3 = {
38138
- key: 1,
38139
- class: "no-data"
38140
- };
38141
- const _hoisted_11$3 = { class: "no-data-text" };
38142
- const _hoisted_12$3 = { style: { "min-height": "32px", "margin-bottom": "10px" } };
38136
+ const _hoisted_10$3 = { style: { "min-height": "32px", "margin-bottom": "10px" } };
38143
38137
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
38144
38138
  __name: "index",
38145
38139
  setup(__props) {
@@ -38268,6 +38262,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38268
38262
  content: row.checked ? t2("uc_fun.disable_parent_content") : t2("uc_fun.enable_parent_content"),
38269
38263
  icon: h(ExclamationCircleOutlined),
38270
38264
  onOk: async () => {
38265
+ var _a;
38271
38266
  const res = await setFunctionsSwitch({
38272
38267
  id: row.id,
38273
38268
  status: row.checked ? 1 : 0
@@ -38278,7 +38273,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38278
38273
  );
38279
38274
  row.checked = !row.checked;
38280
38275
  row.status = row.checked ? 0 : 1;
38281
- row.children.forEach((item) => {
38276
+ (_a = row.children) == null ? void 0 : _a.forEach((item) => {
38282
38277
  item.checked = row.checked;
38283
38278
  item.status = row.status;
38284
38279
  });
@@ -38303,9 +38298,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38303
38298
  });
38304
38299
  };
38305
38300
  const init2 = async () => {
38301
+ var _a;
38306
38302
  const { result } = await getSysList({});
38307
38303
  sysList.value = result;
38308
- selectedSys.value = sysList.value[0].systemId;
38304
+ selectedSys.value = (_a = sysList.value[0]) == null ? void 0 : _a.systemId;
38309
38305
  await initTable();
38310
38306
  };
38311
38307
  function flattenTreeIterative(tree) {
@@ -38361,132 +38357,97 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
38361
38357
  style: normalizeStyle({ left: unref(systemId) == 1 ? "312px" : "0px" })
38362
38358
  }, [
38363
38359
  unref(systemId) == 1 ? (openBlock(), createElementBlock("div", _hoisted_9$3, toDisplayString(_ctx.$t("uc_fun.fun_configs")), 1)) : createCommentVNode("v-if", true),
38364
- tableData.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
38365
- _cache[0] || (_cache[0] = createElementVNode("img", {
38366
- src: _imports_0,
38367
- alt: "no data"
38368
- }, null, -1)),
38369
- createElementVNode("span", _hoisted_11$3, toDisplayString(_ctx.$t("uc_fun.no_sys_data")), 1)
38370
- ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
38371
- createCommentVNode(` <a-form layout="vertical" class="query-form">\r
38372
- <a-form-item :label="$t('uc_fun.fun_name')">\r
38373
- <a-input\r
38374
- v-model:value="queryParam.funName"\r
38375
- :placeholder="$t('uc_common.plsEnter')"\r
38376
- autocomplete="off"\r
38377
- />\r
38378
- </a-form-item>\r
38379
- <a-form-item :label="$t('uc_fun.status')">\r
38380
- <DictSelect\r
38381
- allowClear\r
38382
- v-model:value="queryParam.status"\r
38383
- :type="'CMS_STATUS'"\r
38384
- />\r
38385
- </a-form-item>\r
38386
- <div class="form-btns">\r
38387
- <uc-btn-search\r
38388
- @click="handleSearchTable"\r
38389
- :showInput="false"\r
38390
- ></uc-btn-search>\r
38391
- <a-button @click="handleReset" style="margin-left: 8px">\r
38392
- {{ $t('uc_common.btnReset') }}\r
38393
- </a-button>\r
38394
- </div>\r
38395
- </a-form> `),
38396
- createElementVNode("div", _hoisted_12$3, [
38397
- createVNode(ImportMenu, {
38398
- onSuccess: initTable,
38399
- systemId: selectedSys.value,
38400
- style: { "display": "inline-flex" }
38401
- }, null, 8, ["systemId"]),
38402
- createVNode(_component_a_button, {
38403
- onClick: handleRefreshLang,
38404
- type: "link",
38405
- icon: h(unref(RedoOutlined)),
38406
- style: { "margin-left": "8px" }
38407
- }, {
38408
- default: withCtx(() => [
38409
- createTextVNode(toDisplayString(_ctx.$t("uc_fun.refresh_lang")), 1)
38410
- ]),
38411
- _: 1
38412
- }, 8, ["icon"])
38413
- ]),
38414
- createElementVNode("div", {
38415
- class: normalizeClass([
38416
- unref(systemId) == 1 ? "table-container" : "table-container-other"
38417
- ])
38418
- }, [
38419
- createVNode(unref(VxeTable), {
38420
- ref_key: "tableRef",
38421
- ref: tableRef,
38422
- "row-config": rowConfig,
38423
- "row-drag-config": rowDragConfig,
38424
- "tree-config": treeConfig,
38425
- data: tableData.value,
38426
- onRowDragend: rowDragendEvent,
38427
- height: "100%"
38428
- }, {
38429
- default: withCtx(() => [
38430
- createVNode(unref(VxeColumn), {
38431
- width: "40",
38432
- "drag-sort": ""
38433
- }),
38434
- createVNode(unref(VxeColumn), {
38435
- field: "name",
38436
- title: _ctx.$t("uc_fun.fun_name"),
38437
- "tree-node": ""
38438
- }, null, 8, ["title"]),
38439
- createVNode(unref(VxeColumn), {
38440
- field: "type",
38441
- title: _ctx.$t("uc_fun.menu_type"),
38442
- width: "140"
38443
- }, {
38444
- default: withCtx(({ row }) => [
38445
- createVNode(DictLabel, {
38446
- type: "uc_menu_type",
38447
- value: row.type
38448
- }, null, 8, ["value"])
38449
- ]),
38450
- _: 1
38451
- }, 8, ["title"]),
38452
- createVNode(unref(VxeColumn), {
38453
- field: "status",
38454
- title: _ctx.$t("uc_fun.status"),
38455
- width: "120"
38456
- }, {
38457
- default: withCtx(({ row }) => [
38458
- createVNode(_component_uc_btn_switch, {
38459
- checked: row.checked,
38460
- onClick: (checked) => handleSwitch(checked, row)
38461
- }, null, 8, ["checked", "onClick"])
38462
- ]),
38463
- _: 1
38464
- }, 8, ["title"]),
38465
- createVNode(unref(VxeColumn), {
38466
- field: "url",
38467
- title: _ctx.$t("uc_fun.url")
38468
- }, null, 8, ["title"]),
38469
- createVNode(unref(VxeColumn), {
38470
- field: "icon",
38471
- title: _ctx.$t("uc_fun.image")
38472
- }, null, 8, ["title"]),
38473
- createVNode(unref(VxeColumn), {
38474
- field: "action",
38475
- title: _ctx.$t("uc_fun.action")
38476
- }, {
38477
- default: withCtx(({ row }) => [
38478
- createVNode(_component_uc_btn_detail, {
38479
- onClick: ($event) => handleDetail(row),
38480
- type: "link"
38481
- }, null, 8, ["onClick"])
38482
- ]),
38483
- _: 1
38484
- }, 8, ["title"])
38485
- ]),
38486
- _: 1
38487
- }, 8, ["row-config", "row-drag-config", "tree-config", "data"])
38488
- ], 2)
38489
- ], 64))
38360
+ createElementVNode("div", _hoisted_10$3, [
38361
+ createVNode(ImportMenu, {
38362
+ onSuccess: initTable,
38363
+ systemId: selectedSys.value,
38364
+ style: { "display": "inline-flex" }
38365
+ }, null, 8, ["systemId"]),
38366
+ createVNode(_component_a_button, {
38367
+ onClick: handleRefreshLang,
38368
+ type: "link",
38369
+ icon: h(unref(RedoOutlined)),
38370
+ style: { "margin-left": "8px" }
38371
+ }, {
38372
+ default: withCtx(() => [
38373
+ createTextVNode(toDisplayString(_ctx.$t("uc_fun.refresh_lang")), 1)
38374
+ ]),
38375
+ _: 1
38376
+ }, 8, ["icon"])
38377
+ ]),
38378
+ createElementVNode("div", {
38379
+ class: normalizeClass([unref(systemId) == 1 ? "table-container" : "table-container-other"])
38380
+ }, [
38381
+ createVNode(unref(VxeTable), {
38382
+ ref_key: "tableRef",
38383
+ ref: tableRef,
38384
+ "row-config": rowConfig,
38385
+ "row-drag-config": rowDragConfig,
38386
+ "tree-config": treeConfig,
38387
+ data: tableData.value,
38388
+ onRowDragend: rowDragendEvent,
38389
+ height: "100%"
38390
+ }, {
38391
+ default: withCtx(() => [
38392
+ createVNode(unref(VxeColumn), {
38393
+ width: "40",
38394
+ "drag-sort": ""
38395
+ }),
38396
+ createVNode(unref(VxeColumn), {
38397
+ field: "name",
38398
+ title: _ctx.$t("uc_fun.fun_name"),
38399
+ "tree-node": ""
38400
+ }, null, 8, ["title"]),
38401
+ createVNode(unref(VxeColumn), {
38402
+ field: "type",
38403
+ title: _ctx.$t("uc_fun.menu_type"),
38404
+ width: "140"
38405
+ }, {
38406
+ default: withCtx(({ row }) => [
38407
+ createVNode(DictLabel, {
38408
+ type: "uc_menu_type",
38409
+ value: row.type
38410
+ }, null, 8, ["value"])
38411
+ ]),
38412
+ _: 1
38413
+ }, 8, ["title"]),
38414
+ createVNode(unref(VxeColumn), {
38415
+ field: "status",
38416
+ title: _ctx.$t("uc_fun.status"),
38417
+ width: "120"
38418
+ }, {
38419
+ default: withCtx(({ row }) => [
38420
+ createVNode(_component_uc_btn_switch, {
38421
+ checked: row.checked,
38422
+ onClick: (checked) => handleSwitch(checked, row)
38423
+ }, null, 8, ["checked", "onClick"])
38424
+ ]),
38425
+ _: 1
38426
+ }, 8, ["title"]),
38427
+ createVNode(unref(VxeColumn), {
38428
+ field: "url",
38429
+ title: _ctx.$t("uc_fun.url")
38430
+ }, null, 8, ["title"]),
38431
+ createVNode(unref(VxeColumn), {
38432
+ field: "icon",
38433
+ title: _ctx.$t("uc_fun.image")
38434
+ }, null, 8, ["title"]),
38435
+ createVNode(unref(VxeColumn), {
38436
+ field: "action",
38437
+ title: _ctx.$t("uc_fun.action")
38438
+ }, {
38439
+ default: withCtx(({ row }) => [
38440
+ createVNode(_component_uc_btn_detail, {
38441
+ onClick: ($event) => handleDetail(row),
38442
+ type: "link"
38443
+ }, null, 8, ["onClick"])
38444
+ ]),
38445
+ _: 1
38446
+ }, 8, ["title"])
38447
+ ]),
38448
+ _: 1
38449
+ }, 8, ["row-config", "row-drag-config", "tree-config", "data"])
38450
+ ], 2)
38490
38451
  ], 4)
38491
38452
  ])
38492
38453
  ]),
@@ -41688,21 +41649,45 @@ function getRoleListByUser$1(params) {
41688
41649
  params
41689
41650
  });
41690
41651
  }
41652
+ function getRoleListByUserAll(params) {
41653
+ return handleRespPost({
41654
+ url: "/api/sys/role/search-list-by-user-all",
41655
+ method: "get",
41656
+ params
41657
+ });
41658
+ }
41691
41659
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
41692
41660
  __name: "RoleSelect",
41661
+ props: {
41662
+ urlType: {
41663
+ type: String,
41664
+ default: "1"
41665
+ }
41666
+ },
41693
41667
  setup(__props) {
41668
+ const props = __props;
41694
41669
  const options = ref([]);
41695
41670
  const filterOption = (input, option) => {
41696
41671
  return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
41697
41672
  };
41698
41673
  const init2 = async () => {
41699
- var _a;
41700
- const res = await getRoleListByUser$1({});
41701
- if (res.code == 0) {
41702
- options.value = (_a = res.result) == null ? void 0 : _a.map((item) => ({
41703
- label: item.name,
41704
- value: item.id
41705
- }));
41674
+ var _a, _b;
41675
+ if (props.urlType == "1") {
41676
+ const res = await getRoleListByUser$1({});
41677
+ if (res.code == 0) {
41678
+ options.value = (_a = res.result) == null ? void 0 : _a.map((item) => ({
41679
+ label: item.name,
41680
+ value: item.id
41681
+ }));
41682
+ }
41683
+ } else {
41684
+ const res = await getRoleListByUserAll({});
41685
+ if (res.code == 0) {
41686
+ options.value = (_b = res.result) == null ? void 0 : _b.map((item) => ({
41687
+ label: item.name,
41688
+ value: item.id
41689
+ }));
41690
+ }
41706
41691
  }
41707
41692
  };
41708
41693
  onMounted(() => {
@@ -41886,10 +41871,6 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
41886
41871
  roleId.value = val;
41887
41872
  form.value.roleIdOthers = [];
41888
41873
  };
41889
- const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
41890
- const handleMobileInput = (value) => {
41891
- form.value.mobile = normalizeMobile(value);
41892
- };
41893
41874
  const handleUserCodeValidator = (rule, value) => {
41894
41875
  if (!value) {
41895
41876
  return Promise.reject(t2("uc_user.user_code_msg1"));
@@ -42077,6 +42058,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42077
42058
  const _component_a_row = Row;
42078
42059
  const _component_a_checkbox = Checkbox;
42079
42060
  const _component_a_select = Select;
42061
+ const _component_a_input_number = InputNumber;
42080
42062
  const _component_a_form = Form;
42081
42063
  const _component_a_button = Button$1;
42082
42064
  const _component_a_space = Space;
@@ -42279,13 +42261,17 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42279
42261
  name: "mobile"
42280
42262
  }, {
42281
42263
  default: withCtx(() => [
42282
- createVNode(_component_a_input, {
42264
+ createVNode(_component_a_input_number, {
42283
42265
  placeholder: _ctx.$t("uc_common.plsEnter"),
42284
42266
  value: form.value.mobile,
42267
+ "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.mobile = $event),
42285
42268
  disabled: props.params.opType == "2",
42286
42269
  autocomplete: "off",
42287
42270
  maxlength: 15,
42288
- "onUpdate:value": handleMobileInput
42271
+ controls: false,
42272
+ min: 0,
42273
+ precision: 0,
42274
+ style: { "width": "100%" }
42289
42275
  }, null, 8, ["placeholder", "value", "disabled"])
42290
42276
  ]),
42291
42277
  _: 1
@@ -42308,7 +42294,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42308
42294
  createVNode(_component_a_input, {
42309
42295
  placeholder: _ctx.$t("uc_common.plsEnter"),
42310
42296
  value: form.value.email,
42311
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.email = $event),
42297
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.email = $event),
42312
42298
  disabled: props.params.opType == "2",
42313
42299
  autocomplete: "off",
42314
42300
  maxlength: 32
@@ -42334,7 +42320,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
42334
42320
  createVNode(_component_a_input, {
42335
42321
  placeholder: _ctx.$t("uc_common.plsEnter"),
42336
42322
  value: form.value.remarks,
42337
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.remarks = $event),
42323
+ "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.value.remarks = $event),
42338
42324
  autocomplete: "off",
42339
42325
  maxlength: 200
42340
42326
  }, null, 8, ["placeholder", "value"])
@@ -42762,7 +42748,10 @@ const UserDetail_vue_vue_type_style_index_0_scoped_167248a6_lang = "";
42762
42748
  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"]]);
42763
42749
  const _hoisted_1$8 = { class: "user-info" };
42764
42750
  const _hoisted_2$6 = { class: "form-btns" };
42765
- const _hoisted_3$3 = { key: 1 };
42751
+ const _hoisted_3$3 = {
42752
+ key: 1,
42753
+ style: { "display": "block", "padding": "0", "height": "auto", "width": "100%", "text-align": "left" }
42754
+ };
42766
42755
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
42767
42756
  __name: "index",
42768
42757
  setup(__props) {
@@ -42853,7 +42842,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
42853
42842
  id: record.id,
42854
42843
  status: checked ? 0 : 1
42855
42844
  });
42856
- record.status = checked ? 0 : 1;
42857
42845
  if (result) {
42858
42846
  record.status = checked ? 0 : 1;
42859
42847
  if (!checked) {
@@ -43021,7 +43009,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
43021
43009
  default: withCtx(() => [
43022
43010
  createVNode(RoleSelect, {
43023
43011
  value: queryParam.value.roleId,
43024
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => queryParam.value.roleId = $event)
43012
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => queryParam.value.roleId = $event),
43013
+ urlType: "2"
43025
43014
  }, null, 8, ["value"])
43026
43015
  ]),
43027
43016
  _: 1
@@ -43090,13 +43079,19 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
43090
43079
  key: 0,
43091
43080
  type: "link",
43092
43081
  onClick: ($event) => onDetail(record),
43093
- style: { "padding": "0", "height": "auto" }
43082
+ style: { "display": "block", "padding": "0", "height": "auto", "width": "100%", "text-align": "left" }
43094
43083
  }, {
43095
43084
  default: withCtx(() => [
43096
- createTextVNode(toDisplayString(record.code), 1)
43085
+ createVNode(TextEllipsis, {
43086
+ text: record.code
43087
+ }, null, 8, ["text"])
43097
43088
  ]),
43098
43089
  _: 2
43099
- }, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(record.code), 1))
43090
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_3$3, [
43091
+ createVNode(TextEllipsis, {
43092
+ text: record.code
43093
+ }, null, 8, ["text"])
43094
+ ]))
43100
43095
  ], 64)) : createCommentVNode("v-if", true),
43101
43096
  column.key === "userStatus" ? (openBlock(), createBlock(_component_uc_btn_switch, {
43102
43097
  key: 4,
@@ -43284,10 +43279,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
43284
43279
  pwd: "",
43285
43280
  mobile: ""
43286
43281
  });
43287
- const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
43288
- const handleMobileInput = (value) => {
43289
- formState.mobile = normalizeMobile(value);
43290
- };
43291
43282
  const rules = computed(() => ({
43292
43283
  pwd: [
43293
43284
  {
@@ -43346,13 +43337,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
43346
43337
  const _component_a_button = Button$1;
43347
43338
  const _component_a_input_password = InputPassword;
43348
43339
  const _component_a_form_item = FormItem;
43349
- const _component_a_input = Input;
43340
+ const _component_a_input_number = InputNumber;
43350
43341
  const _component_a_form = Form;
43351
43342
  const _component_a_modal = Modal;
43352
43343
  return openBlock(), createBlock(_component_a_modal, {
43353
43344
  title: isBind.value ? _ctx.$t("uc_profile.bandMobile") : _ctx.$t("uc_profile.editMobile"),
43354
43345
  open: visible.value,
43355
- "onUpdate:open": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
43346
+ "onUpdate:open": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
43356
43347
  destroyOnClose: true,
43357
43348
  onCancel: handleClose
43358
43349
  }, {
@@ -43402,12 +43393,16 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
43402
43393
  name: "mobile"
43403
43394
  }, {
43404
43395
  default: withCtx(() => [
43405
- createVNode(_component_a_input, {
43396
+ createVNode(_component_a_input_number, {
43406
43397
  value: formState.mobile,
43398
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.mobile = $event),
43407
43399
  placeholder: _ctx.$t("uc_common.plsEnter"),
43408
43400
  maxlength: 15,
43409
43401
  autocomplete: "off",
43410
- "onUpdate:value": handleMobileInput
43402
+ controls: false,
43403
+ min: 0,
43404
+ precision: 0,
43405
+ style: { "width": "100%" }
43411
43406
  }, null, 8, ["value", "placeholder"])
43412
43407
  ]),
43413
43408
  _: 1
@@ -43631,7 +43626,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
43631
43626
  default: withCtx(() => [
43632
43627
  createVNode(_component_a_button, {
43633
43628
  type: "primary",
43634
- disabled: countdown.value > 0 && countdown.value < 60,
43629
+ disabled: countdown.value !== null && countdown.value > 0,
43635
43630
  onClick: handleSendCode,
43636
43631
  style: { "width": "100%" }
43637
43632
  }, {
@@ -44729,15 +44724,30 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
44729
44724
  };
44730
44725
  return false;
44731
44726
  };
44727
+ const getCroppedFile = () => new Promise((resolve, reject) => {
44728
+ var _a;
44729
+ (_a = cropperRef.value) == null ? void 0 : _a.getCropBlob((blob) => {
44730
+ var _a2;
44731
+ if (!blob) {
44732
+ return;
44733
+ }
44734
+ const originalName = ((_a2 = fileList.value[0]) == null ? void 0 : _a2.name) || "avatar.png";
44735
+ const croppedFile = new File([blob], originalName, {
44736
+ type: blob.type || "image/png"
44737
+ });
44738
+ resolve(croppedFile);
44739
+ });
44740
+ });
44732
44741
  const handleFinish = async () => {
44733
- if (!fileList.value.length) {
44742
+ if (!cropperOptions.img) {
44734
44743
  message.info(t2("uc_personal_center.tips5"));
44735
44744
  return;
44736
44745
  }
44737
44746
  loading.value = true;
44738
44747
  try {
44748
+ const croppedFile = await getCroppedFile();
44739
44749
  const formData = new FormData();
44740
- formData.append("fileName", fileList.value[0]);
44750
+ formData.append("fileName", croppedFile);
44741
44751
  const res = await userInfoUpdateHead(formData);
44742
44752
  if (res.code === 0) {
44743
44753
  message.success(t2("uc_personal_center.tips1"));
@@ -44746,6 +44756,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
44746
44756
  } else {
44747
44757
  message.error(t2("uc_personal_center.tips2"));
44748
44758
  }
44759
+ } catch {
44760
+ message.error(t2("uc_personal_center.tips2"));
44749
44761
  } finally {
44750
44762
  loading.value = false;
44751
44763
  }
@@ -45588,11 +45600,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
45588
45600
  default: withCtx(() => [
45589
45601
  createVNode(_component_a_form_item, mergeProps(formItemLayout, {
45590
45602
  style: { "margin-bottom": "0" },
45591
- name: "userPwd"
45603
+ name: "userPwd",
45604
+ label: _ctx.$t("uc_org.orgNewPwd")
45592
45605
  }), {
45593
- label: withCtx(() => [
45594
- createTextVNode(toDisplayString(_ctx.$t("uc_org.orgNewPwd")), 1)
45595
- ]),
45596
45606
  default: withCtx(() => [
45597
45607
  createVNode(_component_a_input, {
45598
45608
  type: "password",
@@ -45603,7 +45613,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
45603
45613
  }, null, 8, ["placeholder", "value"])
45604
45614
  ]),
45605
45615
  _: 1
45606
- }, 16),
45616
+ }, 16, ["label"]),
45607
45617
  createElementVNode("div", _hoisted_2$3, toDisplayString(unref(passwordStrengthTip)), 1),
45608
45618
  createVNode(_component_a_form_item, mergeProps({
45609
45619
  label: _ctx.$t("uc_org.newPwd1")
@@ -45821,10 +45831,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
45821
45831
  }
45822
45832
  return "";
45823
45833
  });
45824
- const normalizeMobile = (value = "") => value.replace(/\D/g, "").slice(0, 15);
45825
- const handlePhoneInput = (value) => {
45826
- form.userMobile = normalizeMobile(value);
45827
- };
45828
45834
  const initData = () => {
45829
45835
  Object.assign(form, {
45830
45836
  organType: props.params.organType,
@@ -45868,7 +45874,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
45868
45874
  emit("cancel");
45869
45875
  };
45870
45876
  const onSubmit = () => {
45871
- formRef.value && formRef.value.validate().then(async () => {
45877
+ formRef.value && formRef.value.validate().then(() => {
45872
45878
  var _a;
45873
45879
  const paramsData = {
45874
45880
  id: props.params.opType == "1" ? void 0 : (_a = props.params) == null ? void 0 : _a.id,
@@ -45886,15 +45892,21 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
45886
45892
  };
45887
45893
  loading.value = true;
45888
45894
  if (props.params.opType == "1") {
45889
- const { result } = await orgInsert(paramsData);
45890
- if (result) {
45895
+ orgInsert(paramsData).then((res) => {
45896
+ if (res.code == 0) {
45897
+ emit("ok", res.result);
45898
+ }
45899
+ }).finally(() => {
45891
45900
  loading.value = false;
45892
- emit("ok", result);
45893
- }
45901
+ });
45894
45902
  } else if (props.params.opType == "2") {
45895
- const { result } = await orgUpdate(paramsData);
45896
- loading.value = false;
45897
- emit("ok", result);
45903
+ orgUpdate(paramsData).then((res) => {
45904
+ if (res.code == 0) {
45905
+ emit("ok", res.result);
45906
+ }
45907
+ }).finally(() => {
45908
+ loading.value = false;
45909
+ });
45898
45910
  }
45899
45911
  });
45900
45912
  };
@@ -46242,13 +46254,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
46242
46254
  name: "userMobile"
46243
46255
  }, {
46244
46256
  default: withCtx(() => [
46245
- createVNode(_component_a_input, {
46257
+ createVNode(_component_a_input_number, {
46246
46258
  disabled: isEdit.value,
46247
46259
  autocomplete: "off",
46248
46260
  placeholder: _ctx.$t("uc_common.plsEnter"),
46249
46261
  value: form.userMobile,
46262
+ "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.userMobile = $event),
46250
46263
  maxlength: 15,
46251
- "onUpdate:value": handlePhoneInput
46264
+ controls: false,
46265
+ min: 0,
46266
+ precision: 0,
46267
+ style: { "width": "100%" }
46252
46268
  }, null, 8, ["disabled", "placeholder", "value"])
46253
46269
  ]),
46254
46270
  _: 1
@@ -46273,7 +46289,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
46273
46289
  autocomplete: "off",
46274
46290
  placeholder: _ctx.$t("uc_common.plsEnter"),
46275
46291
  value: form.userEmail,
46276
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.userEmail = $event),
46292
+ "onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.userEmail = $event),
46277
46293
  maxlength: 32
46278
46294
  }, null, 8, ["disabled", "placeholder", "value"])
46279
46295
  ]),
@@ -46303,7 +46319,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
46303
46319
  disabled: isEdit.value,
46304
46320
  autocomplete: "off",
46305
46321
  value: form.userCode,
46306
- "onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.userCode = $event)
46322
+ "onUpdate:value": _cache[12] || (_cache[12] = ($event) => form.userCode = $event)
46307
46323
  }, null, 8, ["placeholder", "disabled", "value"])
46308
46324
  ]),
46309
46325
  _: 1