|
@@ -60,10 +60,11 @@
|
|
|
v-model:value="formState.logintaaccounts">
|
|
v-model:value="formState.logintaaccounts">
|
|
|
<a-row>
|
|
<a-row>
|
|
|
<a-col :span="12"
|
|
<a-col :span="12"
|
|
|
- v-for="(item, index) in accountList"
|
|
|
|
|
|
|
+ v-for="(item, index) in filerAccount()"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:class="[index > 1 ? 'mt10' : '']">
|
|
:class="[index > 1 ? 'mt10' : '']">
|
|
|
- <a-checkbox :value="item.accountid">{{item.accountname}}/{{item.accountid}}</a-checkbox>
|
|
|
|
|
|
|
+ <a-checkbox :value="item.accountid">{{item.accountname}}/{{item.accountid}}
|
|
|
|
|
+ </a-checkbox>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</a-checkbox-group>
|
|
</a-checkbox-group>
|
|
@@ -78,10 +79,10 @@
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { defineComponent, ref, PropType, watchEffect } from 'vue';
|
|
import { defineComponent, ref, PropType, watchEffect } from 'vue';
|
|
|
import { ErmcpLoginUser, ErmcpLoginUserEx, ErmcpTaAccount } from '@/services/go/ermcp/account/interface';
|
|
import { ErmcpLoginUser, ErmcpLoginUserEx, ErmcpTaAccount } from '@/services/go/ermcp/account/interface';
|
|
|
-import {LoginaccountOperateReq, LoginTaaccount} from '@/services/proto/accountinfo/interface';
|
|
|
|
|
|
|
+import { LoginaccountOperateReq, LoginTaaccount } from '@/services/proto/accountinfo/interface';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { loginAccountOperate } from '@/services/proto/accountinfo';
|
|
import { loginAccountOperate } from '@/services/proto/accountinfo';
|
|
|
-import { handleBusinessForm, } from '../setup';
|
|
|
|
|
|
|
+import { handleBusinessForm } from '../setup';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { BusinessFormState } from '../interface';
|
|
import { BusinessFormState } from '../interface';
|
|
@@ -89,7 +90,7 @@ import { BusinessFormState } from '../interface';
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_trade_btn_child_modify',
|
|
name: 'account_info_trade_btn_child_modify',
|
|
|
props: {
|
|
props: {
|
|
|
- firstBtnData: {
|
|
|
|
|
|
|
+ firstBtnData: {
|
|
|
type: Object as PropType<ErmcpLoginUserEx>,
|
|
type: Object as PropType<ErmcpLoginUserEx>,
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
@@ -111,6 +112,9 @@ export default defineComponent({
|
|
|
const { visible, cancel } = closeModal('account_info_trade_btn_child_modify');
|
|
const { visible, cancel } = closeModal('account_info_trade_btn_child_modify');
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const { rules, formState, formRef } = handleBusinessForm();
|
|
const { rules, formState, formRef } = handleBusinessForm();
|
|
|
|
|
+ function filerAccount() {
|
|
|
|
|
+ return props.accountList.filter((e) => e.relateduserid === props.firstBtnData.roleid);
|
|
|
|
|
+ }
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
|
if (visible.value && props.selectedData) {
|
|
if (visible.value && props.selectedData) {
|
|
|
const { selectedData } = props;
|
|
const { selectedData } = props;
|
|
@@ -130,11 +134,11 @@ export default defineComponent({
|
|
|
roleids: [24], // uint64 账号角色
|
|
roleids: [24], // uint64 账号角色
|
|
|
userid: +props.selectedData.userid,
|
|
userid: +props.selectedData.userid,
|
|
|
loginid: +props.selectedData.loginid,
|
|
loginid: +props.selectedData.loginid,
|
|
|
- logintaaccounts: res.logintaaccounts.map(res => {
|
|
|
|
|
|
|
+ logintaaccounts: res.logintaaccounts.map((res) => {
|
|
|
const taAccount: LoginTaaccount = {
|
|
const taAccount: LoginTaaccount = {
|
|
|
- accountid: res
|
|
|
|
|
|
|
+ accountid: res,
|
|
|
};
|
|
};
|
|
|
- return taAccount
|
|
|
|
|
|
|
+ return taAccount;
|
|
|
}), // LoginTaaccount 期货账户(勾选交易员必填)
|
|
}), // LoginTaaccount 期货账户(勾选交易员必填)
|
|
|
};
|
|
};
|
|
|
requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['修改交易员成功', '修改交易员失败:']).then(() => {
|
|
requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['修改交易员成功', '修改交易员失败:']).then(() => {
|
|
@@ -151,6 +155,7 @@ export default defineComponent({
|
|
|
cancel,
|
|
cancel,
|
|
|
submit,
|
|
submit,
|
|
|
loading,
|
|
loading,
|
|
|
|
|
+ filerAccount,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|