Pārlūkot izejas kodu

性能验证整改6654

zhonghuizhen 5 mēneši atpakaļ
vecāks
revīzija
83ea3a7f33
1 mainītis faili ar 25 papildinājumiem un 18 dzēšanām
  1. 25 18
      src/views/business/performance/recordVerify.vue

+ 25 - 18
src/views/business/performance/recordVerify.vue

@@ -78,6 +78,17 @@
             :disabled="true"
           />
         </template>
+        <template slot="operation" slot-scope="scope">
+          <el-button
+            type="text"
+            size="mini"
+            icon="ibps-icon-edit"
+            @click="handleEdit(scope.row, 'edit')"
+          >
+            {{ scope.row.shiFouGuoShen === '已编制' ? '审核' : '审批' }}
+          </el-button>
+      </template>
+
     </ibps-crud>
     <ExperimentalView
       v-if="showConfig"
@@ -151,7 +162,7 @@ export default {
     
     return {
       userOption,
-      title: '快速评价审核',
+      title: '快速评价审核/审批',
       pkKey: 'id', // 主键  如果主键不是pk需要传主键
       loading: true,
       height: document.clientHeight,
@@ -184,11 +195,11 @@ export default {
             prop: 'fangAnLeiXing',
             label: '方案类型',
             tags: [],
-            minWidth: 125
+            minWidth: 140
           },
           
-          { prop: 'shiYanXiangMu', label: '实验项目', slotName: 'shiYanXiangMu', width: 120 },
-            { prop: 'shiYanFangFa', label: '实验方法', slotName: 'shiYanFangFa', width: 180 },
+          { prop: 'shiYanXiangMu', label: '实验项目', slotName: 'shiYanXiangMu', minWidth: 140 },
+            { prop: 'shiYanFangFa', label: '实验方法', slotName: 'shiYanFangFa', minWidth: 140 },
           { prop: 'yangBenLeiXing', label: '样本类型', width: 100 },
           { prop: 'shiYanYiQi', label: '实验仪器', width: 120 },
           {
@@ -211,21 +222,17 @@ export default {
             dateFormat: 'yyyy-MM-dd HH:mm',
             sortable: 'custom',
             width: 130
-          }
-        ],
-        rowHandle: {
-          effect: 'display',
-          width: 90,
-          actions: [
-            {
-              key: 'edit',
-              label: '审核',
-              type: 'primary',
-              icon: 'ibps-icon-edit'
+          },
+           {
+              prop: 'operation',
+              label: '操作',
+              slotName: 'operation',
+              width: 90,
+              fixed: 'right'
             }
-          
-          ]
-        }
+        ]
+ 
+
       }
     }
   },