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 this.show = true
}, },
openView(o) { 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('该场地只能分工会主席预约') vant.Toast('该场地只能分工会主席预约')
return return
} }
@@ -506,8 +506,8 @@ layout("/layouts/platform.html"){
this.formData.end_time = '' this.formData.end_time = ''
}, },
onReserve(data) { onReserve(data) {
if(data.reservetarget === 1 && "${@shiro.hasRole('gh01')}" === 'false' && "${@shiro.hasRole('sysadmin')}" === 'false') { if(data.reservetarget === 1 && "${@shiro.hasAnyRoles('gh01', 'H04')}" === 'false' && "${@shiro.hasRole('sysadmin')}" === 'false') {
this.$message.warning('该场地只能分工会主席预约') this.$message.warning('该场地只能分工会预约')
return return
} }
this.reverseData = data this.reverseData = data