diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue
index 439367e..434836f 100644
--- a/src/components/Template/CustomTable.vue
+++ b/src/components/Template/CustomTable.vue
@@ -90,7 +90,7 @@
{{ row[col.prop] }}
-
+
-
+
{{ row[col.bodySubKey] }}
@@ -240,9 +240,11 @@ export default {
//和凡哥商量,只要value为负数都显示其他
return arr.some(item => item < 0);
},
- isShowBodySub(col) {
+ isShowBodySub(col,row) {
if (col.hasOwnProperty("disabled")) {
return col.showBodySub
+ }else if(col.bodySubType === 'span'&&row[col.bodySubKey]){//如果是span没有值的话就隐藏
+ return false;
}
return col.bodySubType && col.bodySubKey;
},