Explorar el Código

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

Zimo hace 5 días
padre
commit
d89cea25e7
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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>