|
@@ -67,6 +67,23 @@
|
|
|
placeholder="请输入手机号码" />
|
|
placeholder="请输入手机号码" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
+ <a-form-item label="授权期货账户"
|
|
|
|
|
+ class="checkboxGroupItem"
|
|
|
|
|
+ name="logintaaccounts">
|
|
|
|
|
+ <a-checkbox-group class="commonCheckboxGroup"
|
|
|
|
|
+ v-model:value="formState.logintaaccounts">
|
|
|
|
|
+ <a-row>
|
|
|
|
|
+ <a-col :span="12"
|
|
|
|
|
+ v-for="(item, index) in accountList"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :class="[index > 1 ? 'mt10' : '']">
|
|
|
|
|
+ <a-checkbox :value="item.accountid"
|
|
|
|
|
+ v-if="item.tradestatus === 1">{{item.accountname}}/{{item.accountid}}
|
|
|
|
|
+ </a-checkbox>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </a-checkbox-group>
|
|
|
|
|
+ </a-form-item>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</a-form>
|
|
</a-form>
|
|
|
</a-modal>
|
|
</a-modal>
|
|
@@ -76,12 +93,13 @@
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { defineComponent, ref, PropType } from 'vue';
|
|
import { defineComponent, ref, PropType } from 'vue';
|
|
|
import { handleBusinessForm } from '../setup';
|
|
import { handleBusinessForm } from '../setup';
|
|
|
-import { ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
|
|
+import { ErmcpLoginUser, ErmcpLoginUserEx, ErmcpTaAccount } from '@/services/go/ermcp/account/interface';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { BusinessFormState } from '../interface';
|
|
import { BusinessFormState } from '../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 { useTaAccount } from '../../list/setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_manager_btn_child_add',
|
|
name: 'account_info_manager_btn_child_add',
|
|
@@ -97,7 +115,8 @@ export default defineComponent({
|
|
|
const { visible, cancel } = closeModal('account_info_manager_btn_child_add');
|
|
const { visible, cancel } = closeModal('account_info_manager_btn_child_add');
|
|
|
const { rules, formState, formRef } = handleBusinessForm();
|
|
const { rules, formState, formRef } = handleBusinessForm();
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
-
|
|
|
|
|
|
|
+ // 期货账户
|
|
|
|
|
+ const { accountList } = useTaAccount();
|
|
|
function submit() {
|
|
function submit() {
|
|
|
validateAction<BusinessFormState>(formRef, formState).then((res) => {
|
|
validateAction<BusinessFormState>(formRef, formState).then((res) => {
|
|
|
const reqParam: LoginaccountOperateReq = {
|
|
const reqParam: LoginaccountOperateReq = {
|
|
@@ -123,6 +142,7 @@ export default defineComponent({
|
|
|
cancel,
|
|
cancel,
|
|
|
submit,
|
|
submit,
|
|
|
loading,
|
|
loading,
|
|
|
|
|
+ accountList,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|