Bläddra i källkod

供应商评级-按提交状态展示操作按钮

jingbb 6 timmar sedan
förälder
incheckning
740fe86559
1 ändrade filer med 13 tillägg och 12 borttagningar
  1. 13 12
      src/views/cuspCode/SupplierEvaluation/CuspSupplierEvaluationList.vue

+ 13 - 12
src/views/cuspCode/SupplierEvaluation/CuspSupplierEvaluationList.vue

@@ -140,13 +140,23 @@
            label: '编辑(edit)',
            onClick: handleEdit.bind(null, record),
            auth: 'cuspCode:cusp_supplier_evaluation:edit',
-           ifShow: record.submit!==0
+           ifShow: record.submit!==1
          },
          {
           label: '详情(detail)',
           onClick: handleDetail.bind(null, record),
-          ifShow: record.submit==0
+          ifShow: record.submit==1
         },
+        {
+          label: '删除(delete)',
+          popConfirm: {
+            title: '是否确认删除',
+            confirm: handleDelete.bind(null, record),
+            placement: 'topLeft'
+          },
+          auth: 'cuspCode:cusp_supplier_evaluation:delete',
+          ifShow: record.submit!==1
+        }
        ]
    }
 
@@ -156,16 +166,7 @@
    */
   function getDropDownAction(record){
     return [
-       {
-        label: '删除(delete)',
-        popConfirm: {
-          title: '是否确认删除',
-          confirm: handleDelete.bind(null, record),
-          placement: 'topLeft'
-        },
-        auth: 'cuspCode:cusp_supplier_evaluation:delete',
-        ifShow: record.submit!==0
-      }
+       
     ]
   }
   function submit(){