瀏覽代碼

bug 修复

lilei 3 年之前
父節點
當前提交
37ee9abdd7
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/financialManagement/fundAccountManagement/detail.vue

+ 3 - 3
src/views/financialManagement/fundAccountManagement/detail.vue

@@ -68,8 +68,8 @@
           :defaultLoadData="false"
           bordered>
           <!-- 结算金额 -->
-          <template slot="accountExpensesNo" slot-scope="text, record">
-            {{ text }}
+          <template slot="settleAmount" slot-scope="text, record">
+            <span :style="{color:text<0?'red':''}">{{ ((text || text == 0) ? (text) : '--') }}</span>
           </template>
         </s-table>
       </a-card>
@@ -125,7 +125,7 @@ export default {
         { title: '操作时间', dataIndex: 'settleTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '操作人', dataIndex: 'operateName', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '往来单位', dataIndex: 'settleClientName', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '结算金额', dataIndex: 'settleAmount', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? ('¥' + text) : '--') } }
+        { title: '结算金额', dataIndex: 'settleAmount', scopedSlots: { customRender: 'settleAmount' }, width: '10%', align: 'center' }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {