huangbin hace 4 años
padre
commit
1569118f80

+ 1 - 0
src/views/information/account_info/compoments/interface.ts

@@ -2,6 +2,7 @@
 export interface BusinessFormState {
     logincode: string // 登录账号
     userid: string | undefined// 登录账号
+    loginname: string | undefined// 登录账号
     accountname: string // 账户名称
     password: string // 登录密码(明文)
     mobile?: string // 手机号码(明文)

+ 5 - 3
src/views/information/account_info/compoments/modify-business/index.vue

@@ -36,10 +36,10 @@
         </a-col>
         <a-col :span="12">
           <a-form-item label="账户名称"
-                       name="accountname">
+                       name="loginname">
             <a-input class="dialogInput"
                      style="width: 200px"
-                     v-model:value="formState.accountname"
+                     v-model:value="formState.loginname"
                      placeholder="请输入账户名称" />
           </a-form-item>
         </a-col>
@@ -102,17 +102,19 @@ export default defineComponent({
         });
         function submit() {
             validateAction<BusinessFormState>(formRef, formState).then((param) => {
+                const name = param.loginname;
                 const reqParam = {
                     operatetype: 2,
                     userid: props.selectedData.userid,
                     loginid: props.selectedData.loginid,
                     logincode: param.logincode,
                     areauserid: Number(getUserId()),
-                    accountname: param.accountname,
+                    accountname: name,
                     password: '',
                     logintaaccounts: [],
                 };
                 Object.assign(reqParam, param);
+                reqParam.accountname = name;
                 requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['修改账户成功', '修改账户失败:']).then(() => {
                     cancel();
                     context.emit('refresh');