|
|
@@ -87,16 +87,21 @@
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
-import { defineComponent, ref, reactive, toRaw, UnwrapRef } from 'vue';
|
|
|
+import {defineComponent, ref, reactive, toRaw, UnwrapRef, PropType} from 'vue';
|
|
|
import { AllEnums } from '@/services/go/commonService/interface';
|
|
|
import { RuleObject, ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
|
|
+import {ErmcpLoginUser} from "@/services/go/ermcp/account/interface";
|
|
|
+import {LoginaccountOperateReq, LoginTaaccount} from "@/services/proto/accountinfo/interface";
|
|
|
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
|
|
|
+import {loginAccountOperate} from "@/services/proto/accountinfo";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'add-custom',
|
|
|
components: {},
|
|
|
- setup() {
|
|
|
+ setup(name, context) {
|
|
|
// 控制关闭弹窗
|
|
|
const { visible, cancel } = closeModal('account_info_trade_btn_modify');
|
|
|
+ const loading = ref<boolean>(false);
|
|
|
// 证件类型
|
|
|
// const cardTypeList = ref<AllEnums[]>(getCardType());
|
|
|
// // 表单
|
|
|
@@ -113,18 +118,28 @@ export default defineComponent({
|
|
|
// function isPersonal(): boolean {
|
|
|
// return formState.userinfotype === '1';
|
|
|
// }
|
|
|
- // function submit() {
|
|
|
- // formRef.value
|
|
|
- // .validate()
|
|
|
- // .then(() => {
|
|
|
- // const param = toRaw(formState);
|
|
|
- // applyAction(param);
|
|
|
- // console.log('values', formState);
|
|
|
- // })
|
|
|
- // .catch((error: ValidateErrorEntity<FormState>) => {
|
|
|
- // console.log('error', error);
|
|
|
- // });
|
|
|
- // }
|
|
|
+ function submit() {
|
|
|
+ const reqParam: LoginaccountOperateReq = {
|
|
|
+ operatetype: 13, // uint32 操作类型-1:新增 2:修改 3:新增管理员 4:修改管理员 5:锁定 6:解锁 7:注销 8:恢复 9:重置密码 10:新增登录帐号 11:停用用户 12:恢复用户 13:修改用户信息
|
|
|
+ // logincode: res.logincode, // string 登录账号
|
|
|
+ // accountname: res.accountname, // string 账户名称
|
|
|
+ // password: res.password, // string 登录密码(明文)
|
|
|
+ // mobile: res.mobile, // string 手机号码(明文)
|
|
|
+ // roleids: [props.selectedData.roleid], // uint64 账号角色
|
|
|
+ // loginid = obj.loginid
|
|
|
+ // userid = obj.userid
|
|
|
+ // logintaaccounts: res.logintaaccounts.map(res => {
|
|
|
+ // const taAccount: LoginTaaccount = {
|
|
|
+ // accountid: res
|
|
|
+ // };
|
|
|
+ // return taAccount
|
|
|
+ // }), // LoginTaaccount 期货账户(勾选交易员必填)
|
|
|
+ }
|
|
|
+ requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['修改交易员成功', '修改交易员失败:']).then(() => {
|
|
|
+ cancel();
|
|
|
+ context.emit('refresh');
|
|
|
+ });
|
|
|
+ }
|
|
|
return {
|
|
|
// formState,
|
|
|
// rules,
|