|
@@ -13,85 +13,26 @@
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
@click="submit">解锁</a-button>
|
|
@click="submit">解锁</a-button>
|
|
|
</template>
|
|
</template>
|
|
|
- <a-form class="inlineForm"
|
|
|
|
|
- :model="formState">
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="所属用户"
|
|
|
|
|
- name="">
|
|
|
|
|
- <span class="white">{{firstBtnData.rolename}}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="账户名称"
|
|
|
|
|
- name="accountname">
|
|
|
|
|
- <a-input class="dialogInput"
|
|
|
|
|
- readonly
|
|
|
|
|
- style="width: 200px"
|
|
|
|
|
- v-model:value="formState.accountname"
|
|
|
|
|
- placeholder="请输入账户名称" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="登录账号"
|
|
|
|
|
- name="logincode">
|
|
|
|
|
- <a-input class="dialogInput"
|
|
|
|
|
- style="width: 200px"
|
|
|
|
|
- readonly
|
|
|
|
|
- v-model:value="formState.logincode"
|
|
|
|
|
- placeholder="请输入登录账号" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="手机号码"
|
|
|
|
|
- name="mobile">
|
|
|
|
|
- <a-input class="dialogInput"
|
|
|
|
|
- v-model:value="formState.mobile"
|
|
|
|
|
- style="width: 200px"
|
|
|
|
|
- readonly
|
|
|
|
|
- placeholder="请输入手机号码" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <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 selectedData.acclist"
|
|
|
|
|
- :key="index">
|
|
|
|
|
- <a-checkbox disabled
|
|
|
|
|
- :value="item.accountid">
|
|
|
|
|
- {{item.accountname}}/{{item.accountid}}
|
|
|
|
|
- </a-checkbox>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </a-checkbox-group>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </a-form>
|
|
|
|
|
|
|
+ <Detail :firstBtnData="firstBtnData"
|
|
|
|
|
+ :selectedData="selectedData" />
|
|
|
</a-modal>
|
|
</a-modal>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
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 } from 'vue';
|
|
|
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 { LoginaccountOperateReq } from '@/services/proto/accountinfo/interface';
|
|
import { LoginaccountOperateReq } from '@/services/proto/accountinfo/interface';
|
|
|
-import { ErmcpLoginUser, ErmcpLoginUserEx, ErmcpTaAccount } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
|
|
+import { ErmcpLoginUser, ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
import { Modal } from 'ant-design-vue';
|
|
import { Modal } from 'ant-design-vue';
|
|
|
-import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
|
|
-import { handleBusinessForm, } from '../setup';
|
|
|
|
|
|
|
+import Detail from '../detail-commom-trader/index.vue';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_trade_btn_child_unlocked',
|
|
name: 'account_info_trade_btn_child_unlocked',
|
|
|
- components: {},
|
|
|
|
|
|
|
+ components: { Detail },
|
|
|
props: {
|
|
props: {
|
|
|
- firstBtnData: {
|
|
|
|
|
|
|
+ firstBtnData: {
|
|
|
type: Object as PropType<ErmcpLoginUserEx>,
|
|
type: Object as PropType<ErmcpLoginUserEx>,
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
@@ -99,28 +40,11 @@ export default defineComponent({
|
|
|
type: Object as PropType<ErmcpLoginUser>,
|
|
type: Object as PropType<ErmcpLoginUser>,
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
|
- tableList: {
|
|
|
|
|
- type: Array as PropType<ErmcpLoginUserEx[]>,
|
|
|
|
|
- default: [],
|
|
|
|
|
- },
|
|
|
|
|
- accountList: {
|
|
|
|
|
- default: [],
|
|
|
|
|
- type: Object as PropType<ErmcpTaAccount[]>,
|
|
|
|
|
- },
|
|
|
|
|
},
|
|
},
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
// 控制关闭弹窗
|
|
// 控制关闭弹窗
|
|
|
const { visible, cancel } = closeModal('account_info_trade_btn_child_unlocked');
|
|
const { visible, cancel } = closeModal('account_info_trade_btn_child_unlocked');
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
- const { formState } = handleBusinessForm();
|
|
|
|
|
- watchEffect(() => {
|
|
|
|
|
- if (visible.value && props.selectedData) {
|
|
|
|
|
- const { selectedData } = props;
|
|
|
|
|
- mergeTwoObj(formState, selectedData);
|
|
|
|
|
- formState.logintaaccounts = selectedData.acclist?.map((e) => e.accountid);
|
|
|
|
|
- formState.accountname = props.selectedData.loginname;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
function submit() {
|
|
function submit() {
|
|
|
Modal.confirm({
|
|
Modal.confirm({
|
|
|
title: '是否确认解锁该账户',
|
|
title: '是否确认解锁该账户',
|
|
@@ -142,7 +66,6 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
- formState,
|
|
|
|
|
visible,
|
|
visible,
|
|
|
cancel,
|
|
cancel,
|
|
|
submit,
|
|
submit,
|