huangbin 4 gadi atpakaļ
vecāks
revīzija
d52eeabb6d

+ 11 - 2
src/views/information/account_info/list/account_info_futures/index.vue

@@ -51,7 +51,7 @@
                 <a-col :span="12">{{getAccountStatus(sub.tradestatus)}}</a-col>
               </a-row>
             </template>
-            <BtnList :btnList="thirdBtn"
+            <BtnList :btnList="getBtnList(sub.tradestatus)"
                      @onClick="thirdClick(item, sub)" />
           </a-collapse-panel>
         </a-collapse>
@@ -88,7 +88,6 @@ import Cancel from '../../compoments/cancel-futures/index.vue';
 import Credit from '../../compoments/credit-futures/index.vue';
 import { ErmcpTaAccountEx } from '@/services/go/ermcp/account/interface';
 import { ref } from 'vue';
-import { openModal } from '@/common/setup/modal';
 
 export default defineComponent({
     name: 'account_info_futures',
@@ -123,6 +122,15 @@ export default defineComponent({
           firstData.value = item
           secondeData.value = sub
         }
+        function getBtnList(type: number) {
+            if(type === 1) { // 1:正常 
+                return thirdBtn
+            } else {
+              return thirdBtn.filter(el => {
+                return el.lable === '详情'
+              })
+            }
+        }
         // 查询
         function search(value: any) {}
 
@@ -141,6 +149,7 @@ export default defineComponent({
             getAccountStatus,
             getUserName,
             queryTable,
+            getBtnList,
             firstBtn,
             secondBtn,
             thirdBtn,