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