Ver Fonte

feat(equipment): 审批按钮需要判断权限

Zimo há 5 dias atrás
pai
commit
d89cea25e7
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      src/views/pms/iotrydailyreport/equipment.vue

+ 5 - 1
src/views/pms/iotrydailyreport/equipment.vue

@@ -185,7 +185,11 @@ onMounted(() => {
                     @click="handleOpenForm('edit', row)">
                     编辑
                   </el-button>
-                  <el-button link type="primary" @click="handleOpenForm('approval', row)">
+                  <el-button
+                    link
+                    type="primary"
+                    @click="handleOpenForm('approval', row)"
+                    v-hasPermi="['pms:iot-ry-improve-daily-report:approval']">
                     审批
                   </el-button>
                 </template>