@witlink/usercenter 1.2.53 → 1.2.54

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.
@@ -215,7 +215,6 @@ function handleResErr(error) {
215
215
  description: "Authorization verification failed"
216
216
  });
217
217
  if (token) {
218
- console.error("token is invalid");
219
218
  storage.set(ACCESS_TOKEN, "");
220
219
  }
221
220
  }
@@ -4901,7 +4900,6 @@ function getI18n$b(key, args) {
4901
4900
  }
4902
4901
  if (!checkInstall) {
4903
4902
  if (!langMaps[language]) {
4904
- console.error(`[vxe core] \u8BED\u8A00\u5305\u672A\u5B89\u88C5\u3002Language not installed. https://${VxeCore.uiVersion ? "vxeui.com" : "vxetable.cn"}/#/start/i18n`);
4905
4903
  }
4906
4904
  checkInstall = true;
4907
4905
  }
@@ -4938,7 +4936,6 @@ function getLanguage() {
4938
4936
  function createLog(type, name) {
4939
4937
  return function(key, args) {
4940
4938
  const msg = `[vxe ${name || ""}] ${getI18n$b(key, args)}`;
4941
- console[type](msg);
4942
4939
  return msg;
4943
4940
  };
4944
4941
  }
@@ -32816,7 +32813,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32816
32813
  return getRegionListAsync(params).then((res) => {
32817
32814
  if (res.code === 0) {
32818
32815
  const childs = res.result.list;
32819
- console.log("selfId", selfId.value, queryParam.value.id);
32820
32816
  if (queryParam.value.id && queryParam.value.id === selfId.value) {
32821
32817
  childs.push({
32822
32818
  id: parentRow.id + "_loadMore_" + (j - 1),
@@ -32852,16 +32848,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32852
32848
  }
32853
32849
  });
32854
32850
  const showMore = async (record) => {
32855
- console.log("showMore", record);
32856
32851
  const parentRow = tableRef.value.getRowById(record.parentId);
32857
- console.log("parentRow", parentRow);
32858
32852
  const recordIdStr = record.id.toString();
32859
32853
  const childs = await fetchChildListApi(
32860
32854
  parentRow,
32861
32855
  parseInt(recordIdStr.split("_loadMore_")[1]) + 1
32862
32856
  );
32863
- console.log("childs", childs);
32864
- console.log(childs, parentRow, record);
32865
32857
  if (queryParam.value.id) {
32866
32858
  for (let i = 0; i < childs.length; i++) {
32867
32859
  if (childs[i].id === queryParam.value.id) {
@@ -32889,7 +32881,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32889
32881
  showIF.value = false;
32890
32882
  await nextTick();
32891
32883
  showIF.value = true;
32892
- console.log("queryById", queryParam.value);
32893
32884
  const params = {};
32894
32885
  if (queryParam.value.id) {
32895
32886
  params.id = queryParam.value.id;
@@ -32900,12 +32891,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32900
32891
  arr.push(item.id);
32901
32892
  });
32902
32893
  hideButtonArr.value = arr.slice(0, -1);
32903
- console.log("arr", arr);
32904
32894
  for (let i = 0; i < arr.length - 1; i++) {
32905
32895
  const row = tableRef.value.getRowById(arr[i]);
32906
- console.log("row", row);
32907
32896
  selfId.value = arr[i + 1] || null;
32908
- console.log("selfId.value", selfId.value);
32909
32897
  if (row) {
32910
32898
  await tableRef.value.setTreeExpand([row], true);
32911
32899
  }
@@ -32918,13 +32906,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32918
32906
  }
32919
32907
  }
32920
32908
  const handleReset = () => {
32921
- console.log("handleReset", tableData.value);
32922
- queryParam.value = {
32923
- name: "",
32924
- id: null
32925
- };
32926
- hideButtonArr.value = [];
32927
- init2();
32928
32909
  };
32929
32910
  const onSwich = (key) => {
32930
32911
  size.value = key;
@@ -33001,27 +32982,18 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33001
32982
  handleUpdateBranchType(record);
33002
32983
  }
33003
32984
  });
33004
- console.log("record", record);
33005
32985
  };
33006
32986
  const onSubmit = async (actionType, form) => {
33007
- console.log("onSubmit", actionType, form);
33008
32987
  if (actionType === "update") {
33009
32988
  activeEditRow.value.name = form.name;
33010
32989
  tableRef.value.updateStatus(activeEditRow.value);
33011
32990
  }
33012
32991
  if (actionType === "add") {
33013
32992
  if (queryParam.value.id) {
33014
- console.log("queryParam id exist", queryParam.value.id);
33015
32993
  queryById();
33016
32994
  } else {
33017
- console.log("activeEditRow.value.hasChild", activeEditRow.value.hasChild);
33018
32995
  if (activeEditRow.value.hasChild) {
33019
- const treeExpandRecords = tableRef.value.getTreeExpandRecords();
33020
- console.log("treeExpandRecords", treeExpandRecords);
33021
- await tableRef.value.clearTreeExpandLoaded(activeEditRow.value);
33022
- nextTick(() => {
33023
- tableRef.value.setTreeExpand(treeExpandRecords, true);
33024
- });
32996
+ addOrDeleRefresh(activeEditRow.value);
33025
32997
  } else {
33026
32998
  activeEditRow.value.hasChild = true;
33027
32999
  activeEditRow.value.deleteStatus = "1";
@@ -33030,6 +33002,19 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33030
33002
  }
33031
33003
  }
33032
33004
  };
33005
+ async function addOrDeleRefresh(row) {
33006
+ if (row.children && row.children.length > 11) {
33007
+ delete row.children;
33008
+ await tableRef.value.setTreeExpand(row, false);
33009
+ await tableRef.value.setTreeExpand(row, true);
33010
+ } else {
33011
+ const treeExpandRecords = tableRef.value.getTreeExpandRecords();
33012
+ await tableRef.value.clearTreeExpandLoaded(row);
33013
+ nextTick(() => {
33014
+ tableRef.value.setTreeExpand(treeExpandRecords, true);
33015
+ });
33016
+ }
33017
+ }
33033
33018
  const onDelete = (record) => {
33034
33019
  if (record.type == "3") {
33035
33020
  Modal.confirm({
@@ -33043,12 +33028,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33043
33028
  if (queryParam.value.id) {
33044
33029
  queryById();
33045
33030
  } else {
33046
- const treeExpandRecords = tableRef.value.getTreeExpandRecords();
33047
33031
  const parentRow = tableRef.value.getRowById(record.parentId);
33048
- tableRef.value.clearTreeExpandLoaded(parentRow);
33049
- nextTick(() => {
33050
- tableRef.value.setTreeExpand(treeExpandRecords, true);
33051
- });
33032
+ addOrDeleRefresh(parentRow);
33052
33033
  }
33053
33034
  message.success(
33054
33035
  `${record.name} ${t2("uc_organ.del_successtip")}`,
@@ -33065,17 +33046,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33065
33046
  content: t2("uc_organ.deleteTipInfo"),
33066
33047
  okType: "danger",
33067
33048
  async onOk() {
33068
- setOrganDeleteBranch({ id: record.id }).then((res) => {
33049
+ setOrganDeleteBranch({ id: record.id }).then(async (res) => {
33069
33050
  if (res == null ? void 0 : res.result) {
33070
33051
  if (queryParam.value.id) {
33071
33052
  queryById();
33072
33053
  } else {
33073
- const treeExpandRecords = tableRef.value.getTreeExpandRecords();
33074
33054
  const parentRow = tableRef.value.getRowById(record.parentId);
33075
- tableRef.value.clearTreeExpandLoaded(parentRow);
33076
- nextTick(() => {
33077
- tableRef.value.setTreeExpand(treeExpandRecords, true);
33078
- });
33055
+ addOrDeleRefresh(parentRow);
33079
33056
  }
33080
33057
  message.success(
33081
33058
  `${record.name} ${t2("uc_organ.del_successtip")}`,
@@ -34942,7 +34919,6 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
34942
34919
  formData.roleId = formData.roleId[0];
34943
34920
  formData.roleIdOthers = formData.roleIdOthers.join(",");
34944
34921
  formData.branchId = formData.branchId.length ? formData.branchId[formData.branchId.length - 1] : "";
34945
- console.log("form", form, formData);
34946
34922
  if (props.params.opType == "2") {
34947
34923
  const res = await setUserUpdate(formData);
34948
34924
  if (res.result) {
@@ -34967,14 +34943,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
34967
34943
  }
34968
34944
  };
34969
34945
  const rolesList = computed(() => {
34970
- var _a, _b;
34971
- console.log("rolesList", roles.value);
34946
+ var _a;
34972
34947
  if (props.params.roleId || roleId.value) {
34973
- console.log(
34974
- "rolesList",
34975
- (_a = roles.value) == null ? void 0 : _a.filter((item) => item.value != roleId.value)
34976
- );
34977
- return ((_b = roles.value) == null ? void 0 : _b.filter((item) => item.value != roleId.value)) || [];
34948
+ return ((_a = roles.value) == null ? void 0 : _a.filter((item) => item.value != roleId.value)) || [];
34978
34949
  }
34979
34950
  return roles.value || [];
34980
34951
  });
@@ -35023,16 +34994,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35023
34994
  ]);
35024
34995
  };
35025
34996
  onMounted(async () => {
35026
- console.log("props??", props);
35027
34997
  const { result } = await getRolePublicTimezone({});
35028
- console.log("result", result);
35029
34998
  roles.value = Object.keys(result).map((key) => {
35030
34999
  return {
35031
35000
  label: result[key],
35032
35001
  value: key
35033
35002
  };
35034
35003
  });
35035
- console.log("roles", roles, "rolesLisyt", rolesList);
35036
35004
  roleId.value = props.params.roleId;
35037
35005
  initModel(props.params);
35038
35006
  });
@@ -37111,9 +37079,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
37111
37079
  };
37112
37080
  watchEffect(async () => {
37113
37081
  if (props) {
37114
- console.log("props", props);
37115
37082
  const { result } = await getUserDetail({ userId: props == null ? void 0 : props.data.userId });
37116
- console.log("result", result);
37117
37083
  info.value.attrRoleName = result.roleIdOthers || "-";
37118
37084
  info.value.telephone = result.mobile || "-";
37119
37085
  info.value.email = result.email || "-";
@@ -37389,7 +37355,6 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37389
37355
  message.success(t2("uc_user.updateUserSucc"));
37390
37356
  }
37391
37357
  } catch (error) {
37392
- console.log("error", error);
37393
37358
  } finally {
37394
37359
  modalStore.drawerDestroy();
37395
37360
  tableRef.value && tableRef.value.refresh();
@@ -37417,7 +37382,6 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37417
37382
  message.success(t2("uc_user.updateUserSucc"));
37418
37383
  }
37419
37384
  } catch (error) {
37420
- console.log("error", error);
37421
37385
  } finally {
37422
37386
  modalStore.drawerDestroy();
37423
37387
  tableRef.value && tableRef.value.refresh();
@@ -37696,7 +37660,6 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37696
37660
  loading.value = false;
37697
37661
  };
37698
37662
  const showModal = (data2) => {
37699
- console.log("shjowM");
37700
37663
  Object.assign(form, {
37701
37664
  userName: "",
37702
37665
  oldPwd: "",
@@ -37709,9 +37672,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37709
37672
  userCode: ""
37710
37673
  });
37711
37674
  Object.assign(params, data2);
37712
- if (data2.opType == "2") {
37713
- console.log("\u8FD9\u91CC\u70B9\u51FB\u4E86\u4FEE\u6539\u624B\u673A\u53F7");
37714
- } else {
37675
+ if (data2.opType == "2")
37676
+ ;
37677
+ else {
37715
37678
  initData1();
37716
37679
  }
37717
37680
  visible.value = true;
@@ -37727,7 +37690,6 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37727
37690
  formRef.value.validate().then(async () => {
37728
37691
  loading.value = true;
37729
37692
  let res = null;
37730
- console.log("modela");
37731
37693
  if (params.opType == "1") {
37732
37694
  res = await setUpdateUserName({ userName: form.userName });
37733
37695
  if ((res == null ? void 0 : res.code) == 0) {
@@ -37753,7 +37715,6 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37753
37715
  method: "post",
37754
37716
  params: data.value
37755
37717
  }).then((res2) => {
37756
- console.log("res", res2);
37757
37718
  loading.value = false;
37758
37719
  if (res2.code == 0) {
37759
37720
  emit("ok");
@@ -37859,7 +37820,6 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37859
37820
  return;
37860
37821
  }
37861
37822
  if (btnClass.value === "sendBtn") {
37862
- console.log("sendBtn");
37863
37823
  change.value = false;
37864
37824
  btnClass.value = "disabled";
37865
37825
  let seconds = 60;
@@ -37880,14 +37840,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37880
37840
  }
37881
37841
  }).then((result) => {
37882
37842
  if (result) {
37883
- console.log(result);
37843
+ message.success(t2("uc_profile.changeEmailSucc"));
37884
37844
  }
37885
37845
  });
37886
37846
  }
37887
37847
  }
37888
37848
  };
37889
37849
  onMounted(() => {
37890
- console.log("rpops", params);
37891
37850
  return () => {
37892
37851
  };
37893
37852
  });
@@ -39512,7 +39471,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
39512
39471
  const initData = async () => {
39513
39472
  const { result } = await getUserInfoSearchBase({});
39514
39473
  const res = await getUserInfoAll();
39515
- console.log("res", res);
39516
39474
  Object.assign(form, result, {
39517
39475
  sex: [result.sex]
39518
39476
  });
@@ -39556,16 +39514,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
39556
39514
  modalRef.value && modalRef.value.edit(option2);
39557
39515
  };
39558
39516
  const handleFinish = (values2) => {
39559
- console.log(values2, formState);
39560
39517
  };
39561
39518
  const handleFinishFailed = (errors) => {
39562
- console.log(errors);
39563
39519
  };
39564
39520
  const resetForm = () => {
39565
39521
  formRef.value.resetFields();
39566
39522
  };
39567
39523
  const handleValidate = (...args) => {
39568
- console.log(args);
39569
39524
  };
39570
39525
  const submitPwd = () => {
39571
39526
  formRef.value && formRef.value.validate().then(() => {
@@ -39577,16 +39532,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
39577
39532
  data.value.newPwd = hash.sha256().update(formState.newPwd).digest("hex");
39578
39533
  data.value.pwdStrength = pwdStrength.value;
39579
39534
  delete data.value.userPwd1;
39580
- console.log("data", data);
39581
39535
  handleRespPost({
39582
39536
  url: "/api/sys/userinfo/update-pwd",
39583
39537
  method: "post",
39584
39538
  params: data.value
39585
39539
  }).then((res) => {
39586
39540
  loading.value = false;
39587
- console.log("ok", res);
39588
39541
  if (res.code == 0) {
39589
- console.log("ok", res);
39542
+ message.success(t2("uc_profile.editPasswordSucc"));
39590
39543
  Object.assign(formState, {
39591
39544
  oldPwd: "",
39592
39545
  newPwd: "",
@@ -42146,7 +42099,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42146
42099
  orgId: props.params.orgId
42147
42100
  });
42148
42101
  loading.value = false;
42149
- console.log("\u70ED\u997F\u6C34\u6C34\u6C34\u6C34", result);
42150
42102
  Object.assign(defaultForm, result, {
42151
42103
  mobile: result.sysUser.mobile,
42152
42104
  email: result.sysUser.email,
@@ -42187,7 +42139,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42187
42139
  const onSubmit = () => {
42188
42140
  formRef.value && formRef.value.validate().then(async () => {
42189
42141
  var _a;
42190
- console.log("pppprops", props);
42191
42142
  const paramsData = {
42192
42143
  sysUser: {
42193
42144
  mobile: form.mobile,
@@ -43018,7 +42969,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43018
42969
  orgId: ""
43019
42970
  });
43020
42971
  const loadData = async (parameter) => {
43021
- console.log("loadData", parameter, queryParam);
43022
42972
  const params = Object.assign(parameter, queryParam);
43023
42973
  const { result } = await orgConditionalSeach(params);
43024
42974
  return result;
@@ -43081,13 +43031,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43081
43031
  message.success("uc_org.updateOrgSucc");
43082
43032
  }
43083
43033
  } catch (error) {
43084
- console.log("error", error);
43085
43034
  } finally {
43086
43035
  modalStore.drawerDestroy();
43087
43036
  }
43088
43037
  },
43089
43038
  onCancel: () => {
43090
- console.log("quxiao2");
43091
43039
  modalStore.drawerDestroy();
43092
43040
  },
43093
43041
  params: { ...row, opType }
@@ -43104,7 +43052,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43104
43052
  showResetPwdModal.value = true;
43105
43053
  };
43106
43054
  const onDetail = (record = null) => {
43107
- console.log("dianjiledetaik");
43108
43055
  modalStore.drawerComp({
43109
43056
  title: t2("uc_org.orgInfo"),
43110
43057
  comp: OrgDetail,
@@ -43501,12 +43448,9 @@ const _sfc_main$b = {
43501
43448
  Object.assign(securityForm, originalData);
43502
43449
  break;
43503
43450
  }
43504
- console.log("securityForm", securityForm);
43505
43451
  if (selectedKey.value[0].key == "security") {
43506
43452
  formSecurity.value.validate().then(() => {
43507
- console.log("values\u6821\u9A8C");
43508
43453
  }).catch((error) => {
43509
- console.log("error", error);
43510
43454
  });
43511
43455
  }
43512
43456
  isEditing.value = false;
@@ -43528,7 +43472,6 @@ const _sfc_main$b = {
43528
43472
  isEditing.value = false;
43529
43473
  }
43530
43474
  }).catch((error) => {
43531
- console.log("error", error);
43532
43475
  });
43533
43476
  };
43534
43477
  onMounted(async () => {