소스 검색

bug修复 箭冠产品 特约价--显示

chenrui 3 년 전
부모
커밋
fd22151f2f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/productManagement/productInfoJg/list.vue

+ 1 - 1
src/views/productManagement/productInfoJg/list.vue

@@ -188,7 +188,7 @@ export default {
             )
           }
           if (res.data.isShowSpecialPrice && res.data.isShowSpecialPrice == '1') { //  是否展示特约价
-            this.columns.push({ title: '特约价', dataIndex: 'specialPrice', width: 100, align: 'center' })
+            this.columns.push({ title: '特约价', dataIndex: 'specialPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
           }
           this.columns = [...this.columns, ...cArr]
         }