|
@@ -33,7 +33,8 @@
|
|
|
<a-collapse-panel>
|
|
<a-collapse-panel>
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<a-row class="headRow">
|
|
<a-row class="headRow">
|
|
|
- <a-col :span="12">{{item.mainAcc.accountname}} {{ '-' + item.mainAcc.hedgeaccountcode}} ({{item.subacclist.length}})</a-col>
|
|
|
|
|
|
|
+ <a-col :span="12">{{item.mainAcc.accountname}} {{ '-' + item.mainAcc.hedgeaccountcode}}
|
|
|
|
|
+ ({{item.subacclist.length}}){{item.mainAcc.fcname}}</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<BtnList :btnList="secondBtn"
|
|
<BtnList :btnList="secondBtn"
|
|
|
@onClick="secondeClick(item)" />
|
|
@onClick="secondeClick(item)" />
|
|
@@ -92,7 +93,7 @@
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, initData, _getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
import { defineComponent, initData, _getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
import filterCustomTable from '@/views/information/goods/components/filterTable/index.vue';
|
|
import filterCustomTable from '@/views/information/goods/components/filterTable/index.vue';
|
|
|
-import {getAccountStatus, getTaAccountStatus, handleModalData} from '../setup';
|
|
|
|
|
|
|
+import { getAccountStatus, getTaAccountStatus, handleModalData } from '../setup';
|
|
|
import { handleTradeTemplate, queryTableList } from './setup';
|
|
import { handleTradeTemplate, queryTableList } from './setup';
|
|
|
import { getUserName } from '@/services/bus/user';
|
|
import { getUserName } from '@/services/bus/user';
|
|
|
import Add from '../../compoments/add-futures/index.vue';
|
|
import Add from '../../compoments/add-futures/index.vue';
|
|
@@ -123,31 +124,32 @@ export default defineComponent({
|
|
|
setup() {
|
|
setup() {
|
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
|
const [firstBtn, secondBtn, thirdBtn] = _getBtnList('account_info_futures', true).value;
|
|
const [firstBtn, secondBtn, thirdBtn] = _getBtnList('account_info_futures', true).value;
|
|
|
- // 交易用户
|
|
|
|
|
|
|
+ // 交易用户
|
|
|
const { tableList: userList, queryTable: queryUserList } = handlerManagerList(loading, 2);
|
|
const { tableList: userList, queryTable: queryUserList } = handlerManagerList(loading, 2);
|
|
|
// 交易模板
|
|
// 交易模板
|
|
|
const { marginList, feeList, queryTemplate } = handleTradeTemplate();
|
|
const { marginList, feeList, queryTemplate } = handleTradeTemplate();
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
queryTable();
|
|
queryTable();
|
|
|
queryUserList();
|
|
queryUserList();
|
|
|
- queryTemplate()
|
|
|
|
|
|
|
+ queryTemplate();
|
|
|
});
|
|
});
|
|
|
- const firstData = ref<ErmcpTaAccountEx | null>(null)
|
|
|
|
|
- const secondeData = ref<ErmcpTaAccountEx | null>(null)
|
|
|
|
|
|
|
+ const firstData = ref<ErmcpTaAccountEx | null>(null);
|
|
|
|
|
+ const secondeData = ref<ErmcpTaAccountEx | null>(null);
|
|
|
function secondeClick(item: ErmcpTaAccountEx) {
|
|
function secondeClick(item: ErmcpTaAccountEx) {
|
|
|
- firstData.value = item
|
|
|
|
|
|
|
+ firstData.value = item;
|
|
|
}
|
|
}
|
|
|
function thirdClick(item: ErmcpTaAccountEx, sub: ErmcpTaAccountEx) {
|
|
function thirdClick(item: ErmcpTaAccountEx, sub: ErmcpTaAccountEx) {
|
|
|
- firstData.value = item
|
|
|
|
|
- secondeData.value = sub
|
|
|
|
|
|
|
+ firstData.value = item;
|
|
|
|
|
+ secondeData.value = sub;
|
|
|
}
|
|
}
|
|
|
function getBtnList(type: number) {
|
|
function getBtnList(type: number) {
|
|
|
- if(type === 1) { // 1:正常
|
|
|
|
|
- return thirdBtn
|
|
|
|
|
|
|
+ if (type === 1) {
|
|
|
|
|
+ // 1:正常
|
|
|
|
|
+ return thirdBtn;
|
|
|
} else {
|
|
} else {
|
|
|
- return thirdBtn.filter(el => {
|
|
|
|
|
- return el.lable === '详情'
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ return thirdBtn.filter((el) => {
|
|
|
|
|
+ return el.lable === '详情';
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 查询
|
|
// 查询
|