Jelajahi Sumber

港大班次配置列表调整

zhonghuizhen 1 Minggu lalu
induk
melakukan
7cbf6a9d8a
1 mengubah file dengan 20 tambahan dan 13 penghapusan
  1. 20 13
      src/views/business/​scheduleManage/banciConfigList.vue

+ 20 - 13
src/views/business/​scheduleManage/banciConfigList.vue

@@ -26,9 +26,19 @@
           :multiple="false"
           size="mini"
           :filter="filter"
+          style="width: 150px;"
           filtrate
         />
       </template>
+
+      <template slot="shiFouKuaRiSlot" slot-scope="scope">
+        <span>{{ scope.row.shiFouKuaRi === 'Y' ? '是' : '否' }}</span>
+      </template>
+
+      <template slot="shengXiaoBiaoZhiSlot" slot-scope="scope">
+        <span>{{ scope.row.shengXiaoBiaoZhi === 'Y' ? '生效' : '失效' }}</span>
+      </template>
+
     </ibps-crud>
 
     <ScheduleConfigEdit
@@ -118,7 +128,7 @@ export default {
           {
             key: 'remove',
             icon: 'ibps-icon-trash',
-            label: '批量删除',
+            label: '删除',
             type: 'danger',
             hidden: () => {
               return !this.listData || this.listData.length === 0
@@ -126,8 +136,8 @@ export default {
           }
         ],
         searchForm: {
-          labelWidth: 100,
-          itemWidth: 200,
+          labelWidth: 70,
+          itemWidth: 150,
           forms: [
             {
               prop: 'bianZhiBuMen',
@@ -209,18 +219,15 @@ export default {
             label: '是否跨日',
             width: 90,
             align: 'center',
-            formatter: (row) => {
-              return row.shiFouKuaRi === 'Y' ? '是' : '否'
-            }
+            slotName: 'shiFouKuaRiSlot'
+           
           },
           {
             prop: 'shengXiaoBiaoZhi',
             label: '生效标志',
             width: 90,
             align: 'center',
-            formatter: (row) => {
-              return row.shengXiaoBiaoZhi === 'Y' ? '生效' : '失效'
-            }
+            slotName: 'shengXiaoBiaoZhiSlot'
           },
           {
             prop: 'bianZhiBuMen',
@@ -254,7 +261,7 @@ export default {
           }
         ],
         rowHandle: {
-          effect: 'default',
+          effect: 'display',
           actions: [
             {
               key: 'edit',
@@ -264,8 +271,8 @@ export default {
             },
             {
               key: 'detail',
-              label: '详情',
-              type: 'info',
+              label: '查阅',
+              type: 'primary',
               icon: 'ibps-icon-list-alt'
             }
             /*
@@ -384,7 +391,7 @@ export default {
       this.showEditDialog = true
     },
     /**
-     * 详情
+     * 查阅
      */
     handleDetail(data) {
       this.editData = { ...data }