Browse Source

feat:table 详情备注字段

ljc 1 month ago
parent
commit
4d6752c4a1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      components/cwg-detail-popup.vue

+ 4 - 0
components/cwg-detail-popup.vue

@@ -77,6 +77,10 @@ const formatTagText = (value, column) => {
     return value || '-'
     return value || '-'
 }
 }
 const formatCellValue = (value, column, row) => {
 const formatCellValue = (value, column, row) => {
+    // note , 详情展示备注
+    if (column.type === 'note') {
+       return row.note
+    }
     if (column.formatter) {
     if (column.formatter) {
         return column.formatter({ value, row })
         return column.formatter({ value, row })
     }
     }