This commit is contained in:
JyuHsin
2025-05-27 10:24:48 +08:00
parent 50b072b1e5
commit 42c957bc85
2 changed files with 3 additions and 3 deletions
@@ -291,7 +291,7 @@ layout("/mobile/platform.html"){
this.show = true
},
openView(o) {
if(o.reservetarget === 1 && "${@shiro.hasRole('gh01')}" === 'false' && "${@shiro.hasRole('sysadmin')}" === 'false') {
if(o.reservetarget === 1 && "${@shiro.hasAnyRoles('gh01', 'H04')}" === 'false' && "${@shiro.hasRole('sysadmin')}" === 'false') {
vant.Toast('该场地只能分工会主席预约')
return
}
@@ -506,8 +506,8 @@ layout("/layouts/platform.html"){
this.formData.end_time = ''
},
onReserve(data) {
if(data.reservetarget === 1 && "${@shiro.hasRole('gh01')}" === 'false' && "${@shiro.hasRole('sysadmin')}" === 'false') {
this.$message.warning('该场地只能分工会主席预约')
if(data.reservetarget === 1 && "${@shiro.hasAnyRoles('gh01', 'H04')}" === 'false' && "${@shiro.hasRole('sysadmin')}" === 'false') {
this.$message.warning('该场地只能分工会预约')
return
}
this.reverseData = data