mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 21:19:37 +08:00
修复
1. 修复管理员选择上午后不能选择其他时段的BUG 2. 放开管理员预约记录,点击首页预约记录查看所
This commit is contained in:
parent
dc6952a381
commit
22ecf2636f
@ -169,7 +169,7 @@ Page({
|
|||||||
item.visible = true
|
item.visible = true
|
||||||
}
|
}
|
||||||
if (item.type == 'record') {
|
if (item.type == 'record') {
|
||||||
item.path = '/pages/meeting/reservationRecord/approve/approve'
|
item.path = '/pages/meeting/reservationRecord/approve/approve?act=show'
|
||||||
item.visible = true
|
item.visible = true
|
||||||
}
|
}
|
||||||
return item
|
return item
|
||||||
|
@ -93,10 +93,16 @@ Page({
|
|||||||
} else if (valueArr[0] == '17') {
|
} else if (valueArr[0] == '17') {
|
||||||
_minMintue = 0
|
_minMintue = 0
|
||||||
_maxMintue = 30
|
_maxMintue = 30
|
||||||
|
if (this.data.userDetail.roomRole == 5) {
|
||||||
|
// 管理员全天可选
|
||||||
|
_minMintue = 0
|
||||||
|
_maxMintue = 59
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
_minMintue = 0
|
_minMintue = 0
|
||||||
_maxMintue = 59
|
_maxMintue = 59
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setData({
|
this.setData({
|
||||||
minMinute: _minMintue,
|
minMinute: _minMintue,
|
||||||
maxMinute: _maxMintue,
|
maxMinute: _maxMintue,
|
||||||
@ -170,7 +176,7 @@ Page({
|
|||||||
// 提前占用
|
// 提前占用
|
||||||
console.log('占用!')
|
console.log('占用!')
|
||||||
// 获取当下
|
// 获取当下
|
||||||
let nowTime = selfFormatTimeYMD(_this.data.date)
|
let nowTime = selfFormatTimeYMD(parseInt(date))
|
||||||
let data = {
|
let data = {
|
||||||
"mr": {
|
"mr": {
|
||||||
"roomId": meetingRoomId,
|
"roomId": meetingRoomId,
|
||||||
|
@ -303,6 +303,10 @@ Page({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let timeFormat = _this.data.timeRange
|
||||||
|
if (timeFormat == 4) {
|
||||||
|
timeFormat = 0
|
||||||
|
}
|
||||||
let data = {
|
let data = {
|
||||||
"mr": {
|
"mr": {
|
||||||
"id": _this.data.rId,
|
"id": _this.data.rId,
|
||||||
@ -310,7 +314,7 @@ Page({
|
|||||||
"start": _this.data.startTime,
|
"start": _this.data.startTime,
|
||||||
"end": _this.data.endTime,
|
"end": _this.data.endTime,
|
||||||
"mrdate": _this.data.selectDay,
|
"mrdate": _this.data.selectDay,
|
||||||
"timeFormat": _this.data.timeRange,
|
"timeFormat": timeFormat,
|
||||||
"title": _this.data.detail.title,
|
"title": _this.data.detail.title,
|
||||||
"personNum": _this.data.detail.personNum,
|
"personNum": _this.data.detail.personNum,
|
||||||
"leader": _this.data.detail.leader,
|
"leader": _this.data.detail.leader,
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<view class="resView">
|
<view class="resView">
|
||||||
<view class="leftLineTitle">预约情况</view>
|
<view class="leftLineTitle">预约情况</view>
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-cell bind:click="goResInfo" data-id="{{item.id}}" wx:for="{{recordList}}" title="{{item.date}}" value="{{item.time}}" title-width="70%" label="{{item.userOrg}} | {{item.bookingUserName}} | {{item.bookingUserPhone}}" />
|
<van-cell bind:click="goResInfo" data-id="{{item.id}}" wx:for="{{recordList}}" title="{{item.date}}" value="{{item.time}}" title-width="70%" label="{{ item.userOrg ? item.userOrg + ' | ' + item.bookingUserName + ' | ' + item.bookingUserPhone : '占用' }}" />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Page({
|
|||||||
if (this.data.userDetail.roomRole == 5) {
|
if (this.data.userDetail.roomRole == 5) {
|
||||||
// 管理员,跳到审核列表
|
// 管理员,跳到审核列表
|
||||||
wx.reLaunch({
|
wx.reLaunch({
|
||||||
url: "/pages/meeting/reservationRecord/approve/approve",
|
url: "/pages/meeting/reservationRecord/approve/approve?act=show",
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
wx.reLaunch({
|
wx.reLaunch({
|
||||||
|
@ -145,6 +145,15 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
let act = options.act
|
||||||
|
if (act == 'show') {
|
||||||
|
wx.setNavigationBarTitle({
|
||||||
|
title: '预约记录',
|
||||||
|
})
|
||||||
|
this.setData({
|
||||||
|
'search.status.value': ''
|
||||||
|
})
|
||||||
|
}
|
||||||
let _this = this;
|
let _this = this;
|
||||||
_this.setData({
|
_this.setData({
|
||||||
userData: wx.getStorageSync('user'),
|
userData: wx.getStorageSync('user'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user