|
@@ -37,6 +37,7 @@
|
|
|
<a-form-item label="登录账号"
|
|
<a-form-item label="登录账号"
|
|
|
name="logincode">
|
|
name="logincode">
|
|
|
<a-input class="dialogInput"
|
|
<a-input class="dialogInput"
|
|
|
|
|
+ readonly
|
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
|
v-model:value="formState.logincode"
|
|
v-model:value="formState.logincode"
|
|
|
placeholder="请输入登录账号" />
|
|
placeholder="请输入登录账号" />
|
|
@@ -115,20 +116,20 @@ export default defineComponent({
|
|
|
const { selectedData } = props;
|
|
const { selectedData } = props;
|
|
|
mergeTwoObj(formState, selectedData);
|
|
mergeTwoObj(formState, selectedData);
|
|
|
formState.logintaaccounts = selectedData.acclist.map((e) => e.accountid);
|
|
formState.logintaaccounts = selectedData.acclist.map((e) => e.accountid);
|
|
|
- formState.accountname = props.selectedData.loginname;
|
|
|
|
|
|
|
+ formState.accountname = selectedData.loginname;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
function submit() {
|
|
function submit() {
|
|
|
validateAction<BusinessFormState>(formRef, formState).then((res) => {
|
|
validateAction<BusinessFormState>(formRef, formState).then((res) => {
|
|
|
const reqParam: LoginaccountOperateReq = {
|
|
const reqParam: LoginaccountOperateReq = {
|
|
|
- operatetype: 13, // uint32 操作类型-1:新增 2:修改 3:新增管理员 4:修改管理员 5:锁定 6:解锁 7:注销 8:恢复 9:重置密码 10:新增登录帐号 11:停用用户 12:恢复用户 13:修改用户信息
|
|
|
|
|
|
|
+ operatetype: 2, // uint32 操作类型-1:新增 2:修改 3:新增管理员 4:修改管理员 5:锁定 6:解锁 7:注销 8:恢复 9:重置密码 10:新增登录帐号 11:停用用户 12:恢复用户 13:修改用户信息
|
|
|
logincode: res.logincode, // string 登录账号
|
|
logincode: res.logincode, // string 登录账号
|
|
|
accountname: res.accountname, // string 账户名称
|
|
accountname: res.accountname, // string 账户名称
|
|
|
password: res.password, // string 登录密码(明文)
|
|
password: res.password, // string 登录密码(明文)
|
|
|
mobile: res.mobile, // string 手机号码(明文)
|
|
mobile: res.mobile, // string 手机号码(明文)
|
|
|
roleids: [24], // uint64 账号角色
|
|
roleids: [24], // uint64 账号角色
|
|
|
- userid: props.selectedData.userid,
|
|
|
|
|
- loginid: props.selectedData.loginid,
|
|
|
|
|
|
|
+ userid: +props.selectedData.userid,
|
|
|
|
|
+ loginid: +props.selectedData.loginid,
|
|
|
logintaaccounts: res.logintaaccounts.map(res => {
|
|
logintaaccounts: res.logintaaccounts.map(res => {
|
|
|
const taAccount: LoginTaaccount = {
|
|
const taAccount: LoginTaaccount = {
|
|
|
accountid: res
|
|
accountid: res
|
|
@@ -136,7 +137,6 @@ export default defineComponent({
|
|
|
return taAccount
|
|
return taAccount
|
|
|
}), // LoginTaaccount 期货账户(勾选交易员必填)
|
|
}), // LoginTaaccount 期货账户(勾选交易员必填)
|
|
|
};
|
|
};
|
|
|
- debugger
|
|
|
|
|
requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['修改交易员成功', '修改交易员失败:']).then(() => {
|
|
requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['修改交易员成功', '修改交易员失败:']).then(() => {
|
|
|
cancel();
|
|
cancel();
|
|
|
context.emit('refresh');
|
|
context.emit('refresh');
|