Răsfoiți Sursa

feat: 印刷任务删除逻辑调整

zhangjie 11 luni în urmă
părinte
comite
53cae33430
1 a modificat fișierele cu 5 adăugiri și 2 ștergeri
  1. 5 2
      src/modules/print/views/PrintPlanManage.vue

+ 5 - 2
src/modules/print/views/PrintPlanManage.vue

@@ -137,7 +137,7 @@
               type="text"
               @click="toEdit(scope.row)"
               v-if="
-                scope.row.createId === curUserId &&
+                (isSchoolAdmin || scope.row.createId === curUserId) &&
                 scope.row.status === 'NEW' &&
                 checkPrivilege('link', 'edit')
               "
@@ -148,7 +148,7 @@
               type="text"
               @click="toDelete(scope.row)"
               v-if="
-                scope.row.createId === curUserId &&
+                (isSchoolAdmin || scope.row.createId === curUserId) &&
                 scope.row.status === 'NEW' &&
                 checkPrivilege('link', 'delete')
               "
@@ -254,6 +254,9 @@ export default {
       editType: "ADD",
       PRINT_PLAN_STATUS,
       curUserId: this.$ls.get("user", { id: "" }).id,
+      isSchoolAdmin: this.$ls
+        .get("user", { role: [] })
+        .role.includes("SCHOOL_ADMIN"),
       modalIsShow: false,
       PRINT_PLAN_TYPE,
       // date-picker