|
@@ -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
|