Jelajahi Sumber

commit 个人账户修改

yu.jie 4 tahun lalu
induk
melakukan
cc77d4077c
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/views/information/custom/compoments/modify/index.vue

+ 2 - 2
src/views/information/custom/compoments/modify/index.vue

@@ -330,11 +330,11 @@ export default defineComponent({
         function submit(OperateType: 1 | 2) {
             validateAction<FormState>(formRef, formState).then((param) => {
                 const reqParam: ModifyUserInfoApplyReq = {
-                    customername: param.customername, // 必填
+                    customername: Number(param.userinfotype) === 1 ? param.username : param.customername, // 必填
+                    username: param.username,
                     userid: userid.value,
                     memberareaid: getUserId(),
                     userinfotype: Number(param.userinfotype),
-                    username: param.customername,
                     userstate: OperateType, // 1: 保存草稿 2: 新增
                     cardtype: param.cardtype, // 证件类型
                     cardnum: param.cardnum, // 证件号码