Sfoglia il codice sorgente

高级查询-表格格式化修改

zhongxiaoyu 1 anno fa
parent
commit
50f220de18

+ 1 - 1
src/views/advancedQuery/views/advancedHome.vue

@@ -859,7 +859,7 @@ export default {
         case 'deleted':
           return cellValue === 'DEL' ? cellValue : ''
         case 'activated':
-          return cellValue === 1 ? '激活' : '未激活'
+          return Number(cellValue) === 1 ? '激活' : '未激活'
         default:
           return cellValue ?? ''
       }

+ 1 - 1
src/views/advancedQuery/views/advancedNew.vue

@@ -918,7 +918,7 @@ export default {
           case 'deleted':
             return cellValue === 'DEL' ? cellValue : ''
           case 'activated':
-            return cellValue === 1 ? '激活' : '未激活'
+            return Number(cellValue) === 1 ? '激活' : '未激活'
           default:
             return cellValue ?? ''
         }