huangbin %!s(int64=4) %!d(string=hai) anos
pai
achega
ce6c1ed5ca

+ 16 - 14
src/views/information/account_info/list/account_info_futures/index.vue

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