@witlink/usercenter 1.2.70 → 1.2.72

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.
@@ -1,4 +1,4 @@
1
- import './assets/main.fd32ea2f.css';var __defProp = Object.defineProperty;
1
+ import './assets/main.71f2a74d.css';var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -32103,7 +32103,7 @@ function useRequiredMessage() {
32103
32103
  }
32104
32104
  const _hoisted_1$m = { class: "add-menu" };
32105
32105
  const _hoisted_2$d = { class: "actions-wrap" };
32106
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
32106
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
32107
32107
  __name: "AddMenu",
32108
32108
  props: {
32109
32109
  data: {
@@ -32322,7 +32322,7 @@ const _export_sfc = (sfc, props) => {
32322
32322
  }
32323
32323
  return target;
32324
32324
  };
32325
- const AddMenu = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-1d0da3f2"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/AddMenu.vue"]]);
32325
+ const AddMenu = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-1d0da3f2"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/AddMenu.vue"]]);
32326
32326
  const cssvar = "";
32327
32327
  const _hoisted_1$l = { class: "sys-functions" };
32328
32328
  const _hoisted_2$c = {
@@ -32345,7 +32345,7 @@ const _hoisted_10$4 = {
32345
32345
  };
32346
32346
  const _hoisted_11$4 = { class: "no-data-text" };
32347
32347
  const _hoisted_12$4 = { style: { "height": "32px", "margin-bottom": "10px" } };
32348
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
32348
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32349
32349
  __name: "index",
32350
32350
  setup(__props) {
32351
32351
  const { t: t2 } = useI18n();
@@ -32805,7 +32805,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
32805
32805
  }
32806
32806
  });
32807
32807
  const index_vue_vue_type_style_index_0_scoped_04710d5f_lang = "";
32808
- const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-04710d5f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/index.vue"]]);
32808
+ const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-04710d5f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/index.vue"]]);
32809
32809
  function usePermissionId() {
32810
32810
  const hasPermissionId = (id) => {
32811
32811
  const hasPermission$1 = hasPermission(id);
@@ -32999,7 +32999,7 @@ function getRegionListById(params) {
32999
32999
  });
33000
33000
  }
33001
33001
  const _hoisted_1$k = { class: "textarea-wrapper" };
33002
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
33002
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
33003
33003
  __name: "InputTextarea",
33004
33004
  props: {
33005
33005
  showCount: {
@@ -33045,9 +33045,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
33045
33045
  }
33046
33046
  });
33047
33047
  const InputTextarea_vue_vue_type_style_index_0_scoped_939f274f_lang = "";
33048
- const InputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/input/InputTextarea.vue"]]);
33048
+ const InputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/input/InputTextarea.vue"]]);
33049
33049
  const _hoisted_1$j = ["spinning"];
33050
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
33050
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
33051
33051
  __name: "DeptEdit",
33052
33052
  emits: ["ok"],
33053
33053
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -33260,9 +33260,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
33260
33260
  }
33261
33261
  });
33262
33262
  const DeptEdit_vue_vue_type_style_index_0_scoped_58074060_lang = "";
33263
- const DeptEdit = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptEdit.vue"]]);
33263
+ const DeptEdit = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptEdit.vue"]]);
33264
33264
  const _hoisted_1$i = ["spinning"];
33265
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
33265
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
33266
33266
  __name: "BranchEdit",
33267
33267
  emits: ["ok"],
33268
33268
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -33481,9 +33481,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33481
33481
  }
33482
33482
  });
33483
33483
  const BranchEdit_vue_vue_type_style_index_0_scoped_db8da10b_lang = "";
33484
- const BranchEdit = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranchEdit.vue"]]);
33484
+ const BranchEdit = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranchEdit.vue"]]);
33485
33485
  const _hoisted_1$h = { class: "branch-detail-wrap" };
33486
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
33486
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33487
33487
  __name: "BranDetail",
33488
33488
  props: {
33489
33489
  type: {
@@ -33601,7 +33601,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
33601
33601
  }
33602
33602
  });
33603
33603
  const BranDetail_vue_vue_type_style_index_0_scoped_207f1e3e_lang = "";
33604
- const BranDetail = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranDetail.vue"]]);
33604
+ const BranDetail = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranDetail.vue"]]);
33605
33605
  const _hoisted_1$g = { class: "pay_info" };
33606
33606
  const _hoisted_2$b = { class: "pay_span" };
33607
33607
  const _hoisted_3$8 = { class: "pay_span1" };
@@ -33630,7 +33630,7 @@ const _hoisted_18$2 = { style: {
33630
33630
  textAlign: "center",
33631
33631
  zIndex: 1
33632
33632
  } };
33633
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
33633
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
33634
33634
  __name: "DeptDetail",
33635
33635
  setup(__props, { expose: __expose }) {
33636
33636
  const { formatDate } = useSysParams();
@@ -33717,7 +33717,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
33717
33717
  }
33718
33718
  });
33719
33719
  const DeptDetail_vue_vue_type_style_index_0_scoped_7ab63a77_lang = "";
33720
- 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"]]);
33720
+ const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
33721
33721
  function useInitUserinfo() {
33722
33722
  onBeforeMount(async () => {
33723
33723
  var _a;
@@ -33744,7 +33744,7 @@ const _hoisted_9$3 = {
33744
33744
  class: "ant-dropdown-link",
33745
33745
  style: { "color": "rgba(0, 0, 0, 0.25)" }
33746
33746
  };
33747
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
33747
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
33748
33748
  __name: "index",
33749
33749
  setup(__props, { expose: __expose }) {
33750
33750
  const { formatDate } = useSysParams();
@@ -34542,9 +34542,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
34542
34542
  }
34543
34543
  });
34544
34544
  const index_vue_vue_type_style_index_0_scoped_32a76766_lang = "";
34545
- const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/index.vue"]]);
34545
+ const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/index.vue"]]);
34546
34546
  const index_vue_vue_type_style_index_0_scoped_6ed6a16f_lang = "";
34547
- const _sfc_main$z = Object.assign({
34547
+ const _sfc_main$A = Object.assign({
34548
34548
  inheritAttrs: false
34549
34549
  }, {
34550
34550
  __name: "index",
@@ -34646,7 +34646,7 @@ const _sfc_main$z = Object.assign({
34646
34646
  };
34647
34647
  }
34648
34648
  });
34649
- const STable = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-6ed6a16f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/table/index.vue"]]);
34649
+ const STable = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-6ed6a16f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/table/index.vue"]]);
34650
34650
  function getSearchList$1(params) {
34651
34651
  return handleRespPost({
34652
34652
  url: "/api/sys/role/search-list",
@@ -34763,7 +34763,7 @@ const _hoisted_24$1 = {
34763
34763
  key: 3,
34764
34764
  class: "no-auth-permission"
34765
34765
  };
34766
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
34766
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
34767
34767
  __name: "index",
34768
34768
  setup(__props) {
34769
34769
  const { hasPermissionId } = usePermissionId();
@@ -35652,7 +35652,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35652
35652
  }
35653
35653
  });
35654
35654
  const index_vue_vue_type_style_index_0_scoped_79d9b716_lang = "";
35655
- const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/index.vue"]]);
35655
+ const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/index.vue"]]);
35656
35656
  function getSearchList(params) {
35657
35657
  return handleRespPost({
35658
35658
  url: "/api/sys/user/search-list",
@@ -35716,7 +35716,7 @@ function setUserResetPwd(params) {
35716
35716
  params
35717
35717
  });
35718
35718
  }
35719
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
35719
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35720
35720
  __name: "RoleSelect",
35721
35721
  props: {
35722
35722
  mode: {
@@ -35818,8 +35818,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
35818
35818
  };
35819
35819
  }
35820
35820
  });
35821
- const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RoleSelect.vue"]]);
35822
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
35821
+ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RoleSelect.vue"]]);
35822
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
35823
35823
  __name: "BranchSelect",
35824
35824
  setup(__props) {
35825
35825
  const options = ref([]);
@@ -35844,8 +35844,80 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
35844
35844
  };
35845
35845
  }
35846
35846
  });
35847
- const BranchSelect = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelect.vue"]]);
35848
- const _hoisted_1$d = { class: "add-menu" };
35847
+ const BranchSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelect.vue"]]);
35848
+ const _sfc_main$w = {
35849
+ __name: "BranchSelectEdit",
35850
+ props: {
35851
+ initValue: {
35852
+ type: String,
35853
+ default: ""
35854
+ }
35855
+ },
35856
+ emits: ["customChange"],
35857
+ setup(__props, { emit: __emit }) {
35858
+ const emits = __emit;
35859
+ const props = __props;
35860
+ const options = ref([]);
35861
+ const selectedPath = ref([]);
35862
+ const initSelect = async () => {
35863
+ options.value = [];
35864
+ const { result } = await getPublicBranchRoot();
35865
+ if (result) {
35866
+ options.value = cloneDeep(result);
35867
+ }
35868
+ if (props.initValue) {
35869
+ selectedPath.value = findPathById(options.value, props.initValue) || [];
35870
+ }
35871
+ };
35872
+ onMounted(() => {
35873
+ initSelect();
35874
+ });
35875
+ watch(
35876
+ () => props.initValue,
35877
+ (newVal) => {
35878
+ if (newVal) {
35879
+ selectedPath.value = findPathById(options.value, props.initValue) || [];
35880
+ }
35881
+ }
35882
+ );
35883
+ function findPathById(tree, targetId, path = []) {
35884
+ for (const node of tree) {
35885
+ path.push(node.value);
35886
+ if (node.value === targetId) {
35887
+ return path;
35888
+ }
35889
+ if (node.children && node.children.length) {
35890
+ const result = findPathById(node.children, targetId, path);
35891
+ if (result)
35892
+ return result;
35893
+ }
35894
+ path.pop();
35895
+ }
35896
+ return null;
35897
+ }
35898
+ const handleChange = (value) => {
35899
+ if (value && value.length) {
35900
+ emits("customChange", value[value.length - 1]);
35901
+ } else {
35902
+ emits("customChange", "");
35903
+ }
35904
+ };
35905
+ return (_ctx, _cache) => {
35906
+ const _component_a_cascader = Cascader;
35907
+ return openBlock(), createBlock(_component_a_cascader, mergeProps({
35908
+ value: selectedPath.value,
35909
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => selectedPath.value = $event),
35910
+ options: options.value,
35911
+ "expand-trigger": "hover",
35912
+ placeholder: _ctx.$t("uc_common.plsSelect"),
35913
+ "change-on-select": "",
35914
+ onChange: handleChange
35915
+ }, _ctx.$attrs), null, 16, ["value", "options", "placeholder"]);
35916
+ };
35917
+ }
35918
+ };
35919
+ const BranchSelect = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelectEdit.vue"]]);
35920
+ const _hoisted_1$d = { class: "add-user" };
35849
35921
  const _hoisted_2$8 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
35850
35922
  const _hoisted_3$5 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
35851
35923
  const _hoisted_4$4 = ["onClick"];
@@ -35869,7 +35941,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
35869
35941
  orgName: "",
35870
35942
  userCode: "",
35871
35943
  userName: "",
35872
- branchId: [],
35944
+ branchId: "",
35873
35945
  deptId: [],
35874
35946
  userDesc: "",
35875
35947
  mobile: "",
@@ -35877,7 +35949,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
35877
35949
  roleId: [],
35878
35950
  roleIdOthers: []
35879
35951
  });
35880
- const data = reactive({});
35952
+ const data = ref({});
35881
35953
  const roleId = ref("");
35882
35954
  const roleIdOthers = ref([]);
35883
35955
  const roles = ref([]);
@@ -35933,44 +36005,40 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
35933
36005
  const resetForm = () => {
35934
36006
  formRef.value && formRef.value.resetFields();
35935
36007
  };
35936
- function handleBranchInit(str) {
35937
- if (!str) {
35938
- return [];
35939
- }
35940
- const result = [];
35941
- for (let i = 0; i < str.length; i += 3) {
35942
- result.push(str.substring(0, i + 3));
35943
- }
35944
- return result;
36008
+ function handleBranchSelectChange(val) {
36009
+ form.value.branchId = val || "";
35945
36010
  }
35946
36011
  const initData = async () => {
35947
- const { result } = await getUserUpdateLoad({ userId: props.params.userId });
35948
- Object.assign(data, result, {
36012
+ const { result = {} } = await getUserUpdateLoad({
36013
+ userId: props.params.userId
36014
+ });
36015
+ data.value = {
36016
+ ...result,
35949
36017
  deptId: result.deptId ? [result.deptId + ""] : [],
35950
36018
  roleId: result.roleId ? [result.roleId + ""] : [],
35951
36019
  roleIdOthers: result.roleIdOthers ? result.roleIdOthers.split(",") : [],
35952
- branchId: handleBranchInit(result.branchId)
35953
- });
36020
+ branchId: result.branchId
36021
+ };
35954
36022
  branchDisabled.value = result.businessFlag === "1";
35955
36023
  roleId.value = result.roleId;
35956
36024
  roleIdOthers.value = !result.roleIdOthers ? [] : result.roleIdOthers.split(",");
35957
- Object.assign(form.value, data);
36025
+ form.value = data.value;
35958
36026
  };
35959
36027
  const onCancel = () => {
35960
36028
  visible.value = false;
35961
36029
  roleId.value = "";
35962
36030
  resetForm();
35963
- Object.assign(data, {
36031
+ data.value = {
35964
36032
  userCode: "",
35965
36033
  userName: "",
35966
- branchId: [],
36034
+ branchId: "",
35967
36035
  deptId: [],
35968
36036
  userDesc: "",
35969
36037
  mobile: "",
35970
36038
  email: "",
35971
36039
  roleId: [],
35972
36040
  roleIdOthers: []
35973
- });
36041
+ };
35974
36042
  emit("cancel");
35975
36043
  };
35976
36044
  const onSubmit = () => {
@@ -35978,7 +36046,6 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
35978
36046
  const formData = Object.assign({}, form.value);
35979
36047
  formData.roleId = formData.roleId[0];
35980
36048
  formData.roleIdOthers = formData.roleIdOthers.join(",");
35981
- formData.branchId = formData.branchId.length ? formData.branchId[formData.branchId.length - 1] : "";
35982
36049
  if (props.params.opType == "2") {
35983
36050
  const res = await setUserUpdate(formData);
35984
36051
  if (res.result) {
@@ -36080,299 +36147,294 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36080
36147
  const _component_a_form = Form;
36081
36148
  const _component_a_button = Button$1;
36082
36149
  const _component_a_space = Space;
36083
- return openBlock(), createElementBlock(Fragment, null, [
36084
- createCommentVNode(` <a-drawer v-model:open="visible" @close="onCancel" :width="432" :title="$t('uc_user.title' + params.opType)"\r
36085
- :destroyOnClose="true"> `),
36086
- createElementVNode("div", _hoisted_1$d, [
36087
- createVNode(_component_a_form, {
36088
- model: form.value,
36089
- ref_key: "formRef",
36090
- ref: formRef,
36091
- rules: rules.value,
36092
- style: { "padding-bottom": "30px" },
36093
- layout: "vertical"
36094
- }, {
36095
- default: withCtx(() => [
36096
- props.params.opType == "2" ? (openBlock(), createBlock(_component_a_row, { key: 0 }, {
36097
- default: withCtx(() => [
36098
- createVNode(_component_a_col, { span: 24 }, {
36099
- default: withCtx(() => [
36100
- createVNode(_component_a_form_item, { name: "userCode" }, {
36101
- label: withCtx(() => [
36102
- createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
36103
- createElementVNode("span", _hoisted_2$8, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
36104
- ]),
36105
- default: withCtx(() => [
36106
- createVNode(_component_a_input, {
36107
- placeholder: _ctx.$t("uc_common.plsEnter"),
36108
- disabled: true,
36109
- value: form.value.userCode,
36110
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.value.userCode = $event),
36111
- autocomplete: "off"
36112
- }, null, 8, ["placeholder", "value"])
36113
- ]),
36114
- _: 1
36115
- })
36116
- ]),
36117
- _: 1
36118
- })
36119
- ]),
36120
- _: 1
36121
- })) : createCommentVNode("v-if", true),
36122
- props.params.opType == "1" ? (openBlock(), createBlock(_component_a_row, { key: 1 }, {
36123
- default: withCtx(() => [
36124
- createVNode(_component_a_col, { span: 24 }, {
36125
- default: withCtx(() => [
36126
- createVNode(_component_a_form_item, {
36127
- name: "userCode",
36128
- rules: [
36129
- {
36130
- required: true,
36131
- trigger: ["blur", "change"],
36132
- validator: handleUserCodeValidator
36133
- }
36134
- ]
36135
- }, {
36136
- label: withCtx(() => [
36137
- createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
36138
- createElementVNode("span", _hoisted_3$5, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
36139
- ]),
36140
- default: withCtx(() => [
36141
- createVNode(_component_a_input, {
36142
- placeholder: _ctx.$t("uc_common.plsEnter"),
36143
- value: form.value.userCode,
36144
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.value.userCode = $event),
36145
- maxlength: 64,
36146
- autocomplete: "off"
36147
- }, null, 8, ["placeholder", "value"])
36148
- ]),
36149
- _: 1
36150
- }, 8, ["rules"])
36151
- ]),
36152
- _: 1
36153
- })
36154
- ]),
36155
- _: 1
36156
- })) : createCommentVNode("v-if", true),
36157
- createVNode(_component_a_row, null, {
36158
- default: withCtx(() => [
36159
- createVNode(_component_a_col, { span: 24 }, {
36160
- default: withCtx(() => [
36161
- createVNode(_component_a_form_item, {
36162
- label: _ctx.$t("uc_user.userName"),
36163
- name: "userName"
36164
- }, {
36165
- default: withCtx(() => [
36166
- createVNode(_component_a_input, {
36167
- placeholder: _ctx.$t("uc_common.plsEnter"),
36168
- value: form.value.userName,
36169
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.value.userName = $event),
36170
- maxlength: 64,
36171
- autocomplete: "off"
36172
- }, null, 8, ["placeholder", "value"])
36173
- ]),
36174
- _: 1
36175
- }, 8, ["label"])
36176
- ]),
36177
- _: 1
36178
- })
36179
- ]),
36180
- _: 1
36181
- }),
36182
- createVNode(_component_a_row, null, {
36183
- default: withCtx(() => [
36184
- createVNode(_component_a_col, { span: 24 }, {
36185
- default: withCtx(() => [
36186
- createVNode(_component_a_form_item, {
36187
- label: _ctx.$t("uc_user.deptBelong"),
36188
- name: "branchId"
36189
- }, {
36190
- default: withCtx(() => [
36191
- createVNode(BranchSelect, {
36192
- disabled: branchDisabled.value,
36193
- value: form.value.branchId,
36194
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.value.branchId = $event),
36195
- placeholder: _ctx.$t("uc_common.plsSelect")
36196
- }, null, 8, ["disabled", "value", "placeholder"])
36197
- ]),
36198
- _: 1
36199
- }, 8, ["label"])
36200
- ]),
36201
- _: 1
36202
- })
36203
- ]),
36204
- _: 1
36205
- }),
36206
- createVNode(_component_a_row, null, {
36207
- default: withCtx(() => [
36208
- createVNode(_component_a_col, { span: 24 }, {
36209
- default: withCtx(() => [
36210
- createVNode(_component_a_form_item, {
36211
- label: _ctx.$t("uc_user.roleMain"),
36212
- name: "roleId"
36213
- }, {
36214
- default: withCtx(() => [
36215
- createVNode(__unplugin_components_2, {
36216
- placeholder: _ctx.$t("uc_common.plsSelect"),
36217
- mode: "combobox",
36218
- value: form.value.roleId,
36219
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.value.roleId = $event),
36220
- onChange: handleRoleSelectChange
36221
- }, null, 8, ["placeholder", "value"])
36222
- ]),
36223
- _: 1
36224
- }, 8, ["label"])
36225
- ]),
36226
- _: 1
36227
- })
36228
- ]),
36229
- _: 1
36230
- }),
36231
- createVNode(_component_a_row, null, {
36232
- default: withCtx(() => [
36233
- createVNode(_component_a_col, { span: 24 }, {
36234
- default: withCtx(() => [
36235
- createVNode(_component_a_form_item, {
36236
- label: _ctx.$t("uc_user.othersRole"),
36237
- name: "roleIdOthers",
36238
- style: { "width": "400px" }
36239
- }, {
36240
- default: withCtx(() => [
36241
- createVNode(_component_a_select, {
36242
- value: form.value.roleIdOthers,
36243
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.roleIdOthers = $event),
36244
- mode: "multiple",
36245
- placeholder: _ctx.$t("uc_common.plsSelect"),
36246
- options: rolesList.value,
36247
- allowClear: "",
36248
- showArrow: "",
36249
- dropdownRender,
36250
- class: "smart-tags-select",
36251
- "show-search": "",
36252
- "filter-option": filterOption
36253
- }, {
36254
- optionRender: withCtx(({ label, value }) => [
36255
- createElementVNode("div", {
36256
- onClick: withModifiers(() => toggleOption(value), ["stop"])
36257
- }, [
36258
- createVNode(_component_a_checkbox, {
36259
- checked: form.value.roleIdOthers.includes(value),
36260
- style: { "margin-right": "8px" },
36261
- onClick: _cache[5] || (_cache[5] = withModifiers(() => {
36262
- }, ["stop"]))
36263
- }, null, 8, ["checked"]),
36264
- createElementVNode("span", null, toDisplayString(label), 1)
36265
- ], 8, _hoisted_4$4)
36266
- ]),
36267
- _: 1
36268
- }, 8, ["value", "placeholder", "options"])
36269
- ]),
36270
- _: 1
36271
- }, 8, ["label"])
36272
- ]),
36273
- _: 1
36274
- })
36275
- ]),
36276
- _: 1
36277
- }),
36278
- createVNode(_component_a_row, null, {
36279
- default: withCtx(() => [
36280
- createVNode(_component_a_col, { span: 24 }, {
36281
- default: withCtx(() => [
36282
- createVNode(_component_a_form_item, {
36283
- label: _ctx.$t("uc_user.mobile"),
36284
- name: "mobile"
36285
- }, {
36286
- default: withCtx(() => [
36287
- createVNode(_component_a_input, {
36288
- placeholder: _ctx.$t("uc_common.plsEnter"),
36289
- value: form.value.mobile,
36290
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.mobile = $event),
36291
- autocomplete: "off"
36292
- }, null, 8, ["placeholder", "value"])
36293
- ]),
36294
- _: 1
36295
- }, 8, ["label"])
36296
- ]),
36297
- _: 1
36298
- })
36299
- ]),
36300
- _: 1
36301
- }),
36302
- createVNode(_component_a_row, null, {
36303
- default: withCtx(() => [
36304
- createVNode(_component_a_col, { span: 24 }, {
36305
- default: withCtx(() => [
36306
- createVNode(_component_a_form_item, {
36307
- label: _ctx.$t("uc_user.email"),
36308
- name: "email"
36309
- }, {
36310
- default: withCtx(() => [
36311
- createVNode(_component_a_input, {
36312
- placeholder: _ctx.$t("uc_common.plsEnter"),
36313
- value: form.value.email,
36314
- "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.value.email = $event),
36315
- autocomplete: "off"
36316
- }, null, 8, ["placeholder", "value"])
36317
- ]),
36318
- _: 1
36319
- }, 8, ["label"])
36320
- ]),
36321
- _: 1
36322
- })
36323
- ]),
36324
- _: 1
36325
- }),
36326
- createVNode(_component_a_row, null, {
36327
- default: withCtx(() => [
36328
- createVNode(_component_a_col, { span: 24 }, {
36329
- default: withCtx(() => [
36330
- createVNode(_component_a_form_item, {
36331
- label: _ctx.$t("uc_user.userDesc"),
36332
- name: "userDesc"
36333
- }, {
36334
- default: withCtx(() => [
36335
- createVNode(_component_a_input, {
36336
- placeholder: _ctx.$t("uc_common.plsEnter"),
36337
- value: form.value.userDesc,
36338
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => form.value.userDesc = $event),
36339
- autocomplete: "off"
36340
- }, null, 8, ["placeholder", "value"])
36341
- ]),
36342
- _: 1
36343
- }, 8, ["label"])
36344
- ]),
36345
- _: 1
36346
- })
36347
- ]),
36348
- _: 1
36349
- })
36350
- ]),
36351
- _: 1
36352
- }, 8, ["model", "rules"]),
36353
- createVNode(_component_a_space, { class: "drawer-btns" }, {
36354
- default: withCtx(() => [
36355
- createVNode(_component_a_button, { onClick: onCancel }, {
36356
- default: withCtx(() => [
36357
- createTextVNode(toDisplayString(_ctx.$t("uc_common.btnCancel")), 1)
36358
- ]),
36359
- _: 1
36360
- }),
36361
- createVNode(_component_a_button, {
36362
- onClick: onSubmit,
36363
- type: "primary"
36364
- }, {
36365
- default: withCtx(() => [
36366
- createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
36367
- ]),
36368
- _: 1
36369
- })
36370
- ]),
36371
- _: 1
36372
- })
36373
- ]),
36374
- createCommentVNode(" </a-drawer> ")
36375
- ], 2112);
36150
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
36151
+ createVNode(_component_a_form, {
36152
+ model: form.value,
36153
+ ref_key: "formRef",
36154
+ ref: formRef,
36155
+ rules: rules.value,
36156
+ style: { "padding-bottom": "30px" },
36157
+ layout: "vertical"
36158
+ }, {
36159
+ default: withCtx(() => [
36160
+ props.params.opType == "2" ? (openBlock(), createBlock(_component_a_row, { key: 0 }, {
36161
+ default: withCtx(() => [
36162
+ createVNode(_component_a_col, { span: 24 }, {
36163
+ default: withCtx(() => [
36164
+ createVNode(_component_a_form_item, { name: "userCode" }, {
36165
+ label: withCtx(() => [
36166
+ createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
36167
+ createElementVNode("span", _hoisted_2$8, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
36168
+ ]),
36169
+ default: withCtx(() => [
36170
+ createVNode(_component_a_input, {
36171
+ placeholder: _ctx.$t("uc_common.plsEnter"),
36172
+ disabled: true,
36173
+ value: form.value.userCode,
36174
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.value.userCode = $event),
36175
+ autocomplete: "off"
36176
+ }, null, 8, ["placeholder", "value"])
36177
+ ]),
36178
+ _: 1
36179
+ })
36180
+ ]),
36181
+ _: 1
36182
+ })
36183
+ ]),
36184
+ _: 1
36185
+ })) : createCommentVNode("v-if", true),
36186
+ props.params.opType == "1" ? (openBlock(), createBlock(_component_a_row, { key: 1 }, {
36187
+ default: withCtx(() => [
36188
+ createVNode(_component_a_col, { span: 24 }, {
36189
+ default: withCtx(() => [
36190
+ createVNode(_component_a_form_item, {
36191
+ name: "userCode",
36192
+ rules: [
36193
+ {
36194
+ required: true,
36195
+ trigger: ["blur", "change"],
36196
+ validator: handleUserCodeValidator
36197
+ }
36198
+ ]
36199
+ }, {
36200
+ label: withCtx(() => [
36201
+ createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
36202
+ createElementVNode("span", _hoisted_3$5, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
36203
+ ]),
36204
+ default: withCtx(() => [
36205
+ createVNode(_component_a_input, {
36206
+ placeholder: _ctx.$t("uc_common.plsEnter"),
36207
+ value: form.value.userCode,
36208
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.value.userCode = $event),
36209
+ maxlength: 64,
36210
+ autocomplete: "off"
36211
+ }, null, 8, ["placeholder", "value"])
36212
+ ]),
36213
+ _: 1
36214
+ }, 8, ["rules"])
36215
+ ]),
36216
+ _: 1
36217
+ })
36218
+ ]),
36219
+ _: 1
36220
+ })) : createCommentVNode("v-if", true),
36221
+ createVNode(_component_a_row, null, {
36222
+ default: withCtx(() => [
36223
+ createVNode(_component_a_col, { span: 24 }, {
36224
+ default: withCtx(() => [
36225
+ createVNode(_component_a_form_item, {
36226
+ label: _ctx.$t("uc_user.userName"),
36227
+ name: "userName"
36228
+ }, {
36229
+ default: withCtx(() => [
36230
+ createVNode(_component_a_input, {
36231
+ placeholder: _ctx.$t("uc_common.plsEnter"),
36232
+ value: form.value.userName,
36233
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.value.userName = $event),
36234
+ maxlength: 64,
36235
+ autocomplete: "off"
36236
+ }, null, 8, ["placeholder", "value"])
36237
+ ]),
36238
+ _: 1
36239
+ }, 8, ["label"])
36240
+ ]),
36241
+ _: 1
36242
+ })
36243
+ ]),
36244
+ _: 1
36245
+ }),
36246
+ createVNode(_component_a_row, null, {
36247
+ default: withCtx(() => [
36248
+ createVNode(_component_a_col, { span: 24 }, {
36249
+ default: withCtx(() => [
36250
+ createVNode(_component_a_form_item, {
36251
+ label: _ctx.$t("uc_user.deptBelong"),
36252
+ name: "branchId"
36253
+ }, {
36254
+ default: withCtx(() => [
36255
+ createVNode(BranchSelect, {
36256
+ disabled: branchDisabled.value,
36257
+ initValue: form.value.branchId,
36258
+ placeholder: _ctx.$t("uc_common.plsSelect"),
36259
+ onCustomChange: handleBranchSelectChange
36260
+ }, null, 8, ["disabled", "initValue", "placeholder"])
36261
+ ]),
36262
+ _: 1
36263
+ }, 8, ["label"])
36264
+ ]),
36265
+ _: 1
36266
+ })
36267
+ ]),
36268
+ _: 1
36269
+ }),
36270
+ createVNode(_component_a_row, null, {
36271
+ default: withCtx(() => [
36272
+ createVNode(_component_a_col, { span: 24 }, {
36273
+ default: withCtx(() => [
36274
+ createVNode(_component_a_form_item, {
36275
+ label: _ctx.$t("uc_user.roleMain"),
36276
+ name: "roleId"
36277
+ }, {
36278
+ default: withCtx(() => [
36279
+ createVNode(__unplugin_components_2, {
36280
+ placeholder: _ctx.$t("uc_common.plsSelect"),
36281
+ mode: "combobox",
36282
+ value: form.value.roleId,
36283
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.value.roleId = $event),
36284
+ onChange: handleRoleSelectChange
36285
+ }, null, 8, ["placeholder", "value"])
36286
+ ]),
36287
+ _: 1
36288
+ }, 8, ["label"])
36289
+ ]),
36290
+ _: 1
36291
+ })
36292
+ ]),
36293
+ _: 1
36294
+ }),
36295
+ createVNode(_component_a_row, null, {
36296
+ default: withCtx(() => [
36297
+ createVNode(_component_a_col, { span: 24 }, {
36298
+ default: withCtx(() => [
36299
+ createVNode(_component_a_form_item, {
36300
+ label: _ctx.$t("uc_user.othersRole"),
36301
+ name: "roleIdOthers",
36302
+ style: { "width": "400px" }
36303
+ }, {
36304
+ default: withCtx(() => [
36305
+ createVNode(_component_a_select, {
36306
+ value: form.value.roleIdOthers,
36307
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.value.roleIdOthers = $event),
36308
+ mode: "multiple",
36309
+ placeholder: _ctx.$t("uc_common.plsSelect"),
36310
+ options: rolesList.value,
36311
+ allowClear: "",
36312
+ showArrow: "",
36313
+ dropdownRender,
36314
+ class: "smart-tags-select",
36315
+ "show-search": "",
36316
+ "filter-option": filterOption
36317
+ }, {
36318
+ optionRender: withCtx(({ label, value }) => [
36319
+ createElementVNode("div", {
36320
+ onClick: withModifiers(() => toggleOption(value), ["stop"])
36321
+ }, [
36322
+ createVNode(_component_a_checkbox, {
36323
+ checked: form.value.roleIdOthers.includes(value),
36324
+ style: { "margin-right": "8px" },
36325
+ onClick: _cache[4] || (_cache[4] = withModifiers(() => {
36326
+ }, ["stop"]))
36327
+ }, null, 8, ["checked"]),
36328
+ createElementVNode("span", null, toDisplayString(label), 1)
36329
+ ], 8, _hoisted_4$4)
36330
+ ]),
36331
+ _: 1
36332
+ }, 8, ["value", "placeholder", "options"])
36333
+ ]),
36334
+ _: 1
36335
+ }, 8, ["label"])
36336
+ ]),
36337
+ _: 1
36338
+ })
36339
+ ]),
36340
+ _: 1
36341
+ }),
36342
+ createVNode(_component_a_row, null, {
36343
+ default: withCtx(() => [
36344
+ createVNode(_component_a_col, { span: 24 }, {
36345
+ default: withCtx(() => [
36346
+ createVNode(_component_a_form_item, {
36347
+ label: _ctx.$t("uc_user.mobile"),
36348
+ name: "mobile"
36349
+ }, {
36350
+ default: withCtx(() => [
36351
+ createVNode(_component_a_input, {
36352
+ placeholder: _ctx.$t("uc_common.plsEnter"),
36353
+ value: form.value.mobile,
36354
+ "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.value.mobile = $event),
36355
+ autocomplete: "off"
36356
+ }, null, 8, ["placeholder", "value"])
36357
+ ]),
36358
+ _: 1
36359
+ }, 8, ["label"])
36360
+ ]),
36361
+ _: 1
36362
+ })
36363
+ ]),
36364
+ _: 1
36365
+ }),
36366
+ createVNode(_component_a_row, null, {
36367
+ default: withCtx(() => [
36368
+ createVNode(_component_a_col, { span: 24 }, {
36369
+ default: withCtx(() => [
36370
+ createVNode(_component_a_form_item, {
36371
+ label: _ctx.$t("uc_user.email"),
36372
+ name: "email"
36373
+ }, {
36374
+ default: withCtx(() => [
36375
+ createVNode(_component_a_input, {
36376
+ placeholder: _ctx.$t("uc_common.plsEnter"),
36377
+ value: form.value.email,
36378
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.email = $event),
36379
+ autocomplete: "off"
36380
+ }, null, 8, ["placeholder", "value"])
36381
+ ]),
36382
+ _: 1
36383
+ }, 8, ["label"])
36384
+ ]),
36385
+ _: 1
36386
+ })
36387
+ ]),
36388
+ _: 1
36389
+ }),
36390
+ createVNode(_component_a_row, null, {
36391
+ default: withCtx(() => [
36392
+ createVNode(_component_a_col, { span: 24 }, {
36393
+ default: withCtx(() => [
36394
+ createVNode(_component_a_form_item, {
36395
+ label: _ctx.$t("uc_user.userDesc"),
36396
+ name: "userDesc"
36397
+ }, {
36398
+ default: withCtx(() => [
36399
+ createVNode(_component_a_input, {
36400
+ placeholder: _ctx.$t("uc_common.plsEnter"),
36401
+ value: form.value.userDesc,
36402
+ "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.value.userDesc = $event),
36403
+ autocomplete: "off"
36404
+ }, null, 8, ["placeholder", "value"])
36405
+ ]),
36406
+ _: 1
36407
+ }, 8, ["label"])
36408
+ ]),
36409
+ _: 1
36410
+ })
36411
+ ]),
36412
+ _: 1
36413
+ })
36414
+ ]),
36415
+ _: 1
36416
+ }, 8, ["model", "rules"]),
36417
+ createVNode(_component_a_space, { class: "drawer-btns" }, {
36418
+ default: withCtx(() => [
36419
+ createVNode(_component_a_button, { onClick: onCancel }, {
36420
+ default: withCtx(() => [
36421
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnCancel")), 1)
36422
+ ]),
36423
+ _: 1
36424
+ }),
36425
+ createVNode(_component_a_button, {
36426
+ onClick: onSubmit,
36427
+ type: "primary"
36428
+ }, {
36429
+ default: withCtx(() => [
36430
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
36431
+ ]),
36432
+ _: 1
36433
+ })
36434
+ ]),
36435
+ _: 1
36436
+ })
36437
+ ]);
36376
36438
  };
36377
36439
  }
36378
36440
  });
@@ -38692,7 +38754,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
38692
38754
  name: "branchId"
38693
38755
  }, {
38694
38756
  default: withCtx(() => [
38695
- createVNode(BranchSelect, {
38757
+ createVNode(BranchSelect$1, {
38696
38758
  value: queryParam.branchId,
38697
38759
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => queryParam.branchId = $event)
38698
38760
  }, null, 8, ["value"])