huangbin 4 年 前
コミット
3acca4c37c

+ 3 - 1
src/views/order/commodity_contract/components/commodity_contract_summary/index.vue

@@ -29,7 +29,7 @@
       </template>
       <!-- 均价 -->
       <template #averageprice="{ text }">
-        <a>{{ text ? text : 0 }}</a>
+        <a>{{ handleNoneValue(text)}}</a>
       </template>
       <!-- 持仓盈亏 -->
       <template #profitloss="{ record }">
@@ -75,6 +75,7 @@ import { ref } from 'vue';
 import { QueryQuoteGoodsListRsp } from '@/services/go/Tjmd/interface';
 import Bus from '@/utils/eventBus/index';
 import { tabColumns } from './setup';
+import { handleNoneValue } from '@/common/setup/table/tableQuote';
 
 export default defineComponent({
     name: enumOrderComponents.commodity_contract_summary,
@@ -157,6 +158,7 @@ export default defineComponent({
             swapList,
             findGoodsCode,
             isDiaoQi,
+            handleNoneValue,
         };
     },
 });