Jelajahi Sumber

fix: 默认字段配置问题修复

johnsen 9 bulan lalu
induk
melakukan
1de2efe28d

+ 5 - 5
src/business/platform/data/templaterender/templates/list.vue

@@ -1577,24 +1577,24 @@ export default {
         // 修改宽度
         switch (col.name) {
           case 'di_dian_':
-            col.width = '110'
+            col.width = col.width || '110'
             break
           case 'bian_zhi_bu_men_':
             col.width =
               this.$store.getters?.setting?.foundation?.version == '病理'
-                ? '120'
-                : '100'
+                ? col.width || '120'
+                : col.width || '100'
             col.label = '部门'
             break
           case 'bian_zhi_shi_jian':
             // col.width = '120'
             break
           case 'bian_zhi_ren_':
-            col.width = '100'
+            col.width = col.width || '120'
             break
           case 'shi_fou_guo_shen_':
             if (col.label === '状态') {
-              col.width = '75'
+              col.width = col.width || '75'
             }
             break
         }