修复普通人员单位认证BUG

This commit is contained in:
471615499@qq.com 2024-10-25 22:02:43 +08:00
parent e18408b7f4
commit 9aee7cd51d
2 changed files with 35 additions and 14 deletions

View File

@ -140,8 +140,8 @@
@cancel='onCloseCancel'
>
<a-textarea
v-model='rejectReason'
placeholder='请输入驳回原因'
v-model='cancelReason'
placeholder='请输入取消原因'
:auto-size='{ minRows: 3, maxRows: 5 }'
/>
</a-modal>
@ -255,6 +255,11 @@ export default {
} else {
this.queryParam.filterDate = ''
}
if (this.isAdmin) {
this.queryParam.role = 5
} else {
this.queryParam.role = 1
}
return getMeetingReservationList(Object.assign(parameter, this.queryParam)).then(res => {
for (let key in res.rows) {
let startTime = res.rows[key].start
@ -403,6 +408,7 @@ export default {
cancelConfirm(id) {
this.cancelId = id
this.showCancelReason = true
this.cancelReason = ''
},
onCloseCancel() {
this.cancelId = ''

View File

@ -143,6 +143,7 @@ import moment from 'moment'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import { getMeetingDict } from '@/api/admin/meeting/roomContent'
import { checkPermission } from '@/utils/permissions'
import deptList from '@/views/system/DeptList.vue'
export default {
name: 'RoomOrderModal',
@ -221,6 +222,7 @@ export default {
})
},
getAllDep() {
if (this.isAdmin) {
getDep().then(res => {
let dep = res.data
let depList = []
@ -233,6 +235,13 @@ export default {
}
this.depList = depList
})
} else {
this.depList = [{
id: this.depId.toString(),
name: this.dep
}]
}
},
add(data) {
console.log(data)
@ -339,6 +348,12 @@ export default {
if (this.timeRange == 4) {
this.timeRangeText = '全天'
}
this.depId = res.mr.userOrgId
this.dep = res.mr.userOrg
this.depList = [{
id: this.depId.toString(),
name: this.dep
}]
this.date = moment(res.mr.start).format('YYYY-MM-DD')
this.getRoomInfo()
res.mr.start = moment(res.mr.start)