Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
schedule
Commits
f9a38726
Commit
f9a38726
authored
Feb 27, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改会议室周几失效
parent
b10426fa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
44 deletions
+44
-44
mwSelectTimeModal.acss
components/mwSelectTimeModal/mwSelectTimeModal.acss
+1
-1
selectArea.acss
components/selectArea/selectArea.acss
+1
-1
createOrEditSchedule.js
pages/createOrEditSchedule/createOrEditSchedule.js
+3
-2
meetingRoomList.acss
pages/meetingRoomList/meetingRoomList.acss
+1
-1
meetingRoomList.axml
pages/meetingRoomList/meetingRoomList.axml
+30
-32
meetingRoomList.js
pages/meetingRoomList/meetingRoomList.js
+8
-7
No files found.
components/mwSelectTimeModal/mwSelectTimeModal.acss
View file @
f9a38726
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
width: 100%;
width: 100%;
height: 100%;
height: 100%;
display: flex;
display: flex;
background: rgba(
25, 31, 37, 0.4
);
background: rgba(
0, 0, 0, 0.15
);
flex-direction: column-reverse;
flex-direction: column-reverse;
}
}
.mwModalBox{
.mwModalBox{
...
...
components/selectArea/selectArea.acss
View file @
f9a38726
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
top: 0;
top: 0;
width: 100%;
width: 100%;
height: 100%;
height: 100%;
background: rgba(0,0,0,.1);
background: rgba(0,0,0,.1
5
);
display: flex;
display: flex;
align-items: flex-end;
align-items: flex-end;
z-index: 999;
z-index: 999;
...
...
pages/createOrEditSchedule/createOrEditSchedule.js
View file @
f9a38726
...
@@ -431,6 +431,7 @@ create.Page({
...
@@ -431,6 +431,7 @@ create.Page({
},
},
// 编辑时获取详情页内容
// 编辑时获取详情页内容
getScheduleInfo
()
{
getScheduleInfo
()
{
let
that
=
this
let
data
=
{
let
data
=
{
id
:
this
.
data
.
scheduleItem
.
id
,
id
:
this
.
data
.
scheduleItem
.
id
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
...
@@ -462,8 +463,8 @@ create.Page({
...
@@ -462,8 +463,8 @@ create.Page({
title
:
res
.
data
.
data
.
title
,
title
:
res
.
data
.
data
.
title
,
time1
:
res
.
data
.
data
.
startTime
.
replace
(
/-/g
,
'/'
),
time1
:
res
.
data
.
data
.
startTime
.
replace
(
/-/g
,
'/'
),
time2
:
res
.
data
.
data
.
endTime
.
replace
(
/-/g
,
'/'
),
time2
:
res
.
data
.
data
.
endTime
.
replace
(
/-/g
,
'/'
),
week1
:
th
is
.
data
.
weekList
[
new
Date
(
res
.
data
.
data
.
startTime
.
replace
(
/-/g
,
"/"
)).
getDay
()],
week1
:
th
at
.
data
.
weekList
[
new
Date
(
res
.
data
.
data
.
startTime
.
replace
(
/-/g
,
"/"
)).
getDay
()],
week2
:
th
is
.
data
.
weekList
[
new
Date
(
res
.
data
.
data
.
endTime
.
replace
(
/-/g
,
"/"
)).
getDay
()],
week2
:
th
at
.
data
.
weekList
[
new
Date
(
res
.
data
.
data
.
endTime
.
replace
(
/-/g
,
"/"
)).
getDay
()],
})
})
this
.
update
()
this
.
update
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
pages/meetingRoomList/meetingRoomList.acss
View file @
f9a38726
...
@@ -177,7 +177,7 @@
...
@@ -177,7 +177,7 @@
height: 100%;
height: 100%;
display: flex;
display: flex;
align-items: flex-end;
align-items: flex-end;
background: rgba(0,0,0,.1
)
background: rgba(0,0,0,.1
5);
}
}
.modalContent{
.modalContent{
width: 100%;
width: 100%;
...
...
pages/meetingRoomList/meetingRoomList.axml
View file @
f9a38726
...
@@ -33,45 +33,43 @@
...
@@ -33,45 +33,43 @@
</view>
</view>
<scroll-view scroll-y="{{canScroll}}" class="roomScrollView">
<scroll-view scroll-y="{{canScroll}}" class="roomScrollView">
<view class="reserveMeeting">
<view class="reserveMeeting">
<scroll-view scroll-y='{{true}}' scroll-into-view='searchList' class="reserveMeetingScrollView">
<view class="meetingRoomContent" a:for="{{reserveRoomList}}" data-roomid="{{item.meetingRoomId}}" data-roomname="{{item.name}}" onTap="changeRoomTime">
<view class="meetingRoomContent" a:for="{{reserveRoomList}}" data-roomid="{{item.meetingRoomId}}" data-roomname="{{item.name}}" onTap="changeRoomTime">
<view class="roomMessage">
<view class="roomMessage">
<view class="reserveRoomMsg">
<view class="reserveRoomMsg">
<view class="reserveRoomTitle">
<view class="reserveRoomTitle">
{{item.name}}
{{item.name}}
</view>
</view>
<view class="reserveRoomEquipFacility">
<view class="reserveRoomEquipFacility">
<text class="locationIcon iconfont iconshebei"></text> <text a:for="{{item.equipFacilityNames}}" a:if="{{item2 !== null}}" a:for-item="item2" a:for-index="index2">{{item2}}{{index2 === item.equipFacilityNames.length-1 ? '' : '/'}}</text>
<text class="locationIcon iconfont iconshebei"></text> <text a:for="{{item.equipFacilityNames}}" a:if="{{item2 !== null}}" a:for-item="item2" a:for-index="index2">{{item2}}{{index2 === item.equipFacilityNames.length-1 ? '' : '/'}}</text>
</view>
<view class="reserveRoomNumAndLocation">
<view class="reserveRoomNum">
<text class="locationIcon iconfont icondingwei1"></text>{{item.capacityNum}}
</view>
</view>
<view class="reserveRoomNumAndLocation">
<view class="reserveRoomLocation">
<view class="reserveRoomNum">
<text class="locationIcon iconfont iconcanhuiren"></text>{{item.locationName}}
<text class="locationIcon iconfont icondingwei1"></text>{{item.capacityNum}}
</view>
<view class="reserveRoomLocation">
<text class="locationIcon iconfont iconcanhuiren"></text>{{item.locationName}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="reserveRoomTimeBar">
</view>
<view class="reserveRoomTimeBarBg">
<view class="reserveRoomTimeBar">
<block a:for="{{item.timeSlotWithMeetingVOS}}" a:for-item="item2" a:for-index="index2">
<view class="reserveRoomTimeBarBg">
<view class="expired" a:if="{{item2.reserveStatus === 'expired'}}">
<block a:for="{{item.timeSlotWithMeetingVOS}}" a:for-item="item2" a:for-index="index2">
</view>
<view class="expired" a:if="{{item2.reserveStatus === 'expired'}}">
<view class="occupied" a:if="{{item2.reserveStatus === 'occupied'}}">
</view>
<view class="reservation" a:if="{{item2.reserveStatus === 'reservation'}}">
</view>
</block>
</view>
<view class="reserveRoomTimeBarNum">
<view a:for="{{timeListStr}}" a:for-item="item2" a:for-index="index2">
{{item2}}
</view>
</view>
<view class="occupied" a:if="{{item2.reserveStatus === 'occupied'}}">
</view>
<view class="reservation" a:if="{{item2.reserveStatus === 'reservation'}}">
</view>
</block>
</view>
<view class="reserveRoomTimeBarNum">
<view a:for="{{timeListStr}}" a:for-item="item2" a:for-index="index2">
{{item2}}
</view>
</view>
</view>
</view>
</view>
</view>
</
scroll-
view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<view a:if="{{isShowModal}}" class="modal">
<view a:if="{{isShowModal}}" class="modal">
...
@@ -90,7 +88,7 @@
...
@@ -90,7 +88,7 @@
<view class="{{dataNum == '2' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="2">后天</view>
<view class="{{dataNum == '2' ? 'dataNumSelected' : ''}}" onTap="chooseDate" data-num="2">后天</view>
<!-- <view onTap="selectDate">自定义</view> -->
<!-- <view onTap="selectDate">自定义</view> -->
</view>
</view>
<scroll-view scroll-y='{{true}}' class="modalOccupyTimeSlot" onScroll="modalScroll" scroll-into-view="{{
modalOccupyTimeSlot
Time}}">
<scroll-view scroll-y='{{true}}' class="modalOccupyTimeSlot" onScroll="modalScroll" scroll-into-view="{{
toThis
Time}}">
<view class="OccupyTimeList" a:for="{{modalList}}" data-index="{{index}}" onTap="onChangeModalTime" id="{{item.reserveStartTime.substr(10,15)}}">
<view class="OccupyTimeList" a:for="{{modalList}}" data-index="{{index}}" onTap="onChangeModalTime" id="{{item.reserveStartTime.substr(10,15)}}">
<!-- <view data-status="{{item.reserveStatus}}" data-index="{{index}}">
<!-- <view data-status="{{item.reserveStatus}}" data-index="{{index}}">
<timecheckmodal
<timecheckmodal
...
...
pages/meetingRoomList/meetingRoomList.js
View file @
f9a38726
...
@@ -34,7 +34,7 @@ create.Page({
...
@@ -34,7 +34,7 @@ create.Page({
meetingRoomName
:
''
meetingRoomName
:
''
},
},
canScroll
:
true
,
canScroll
:
true
,
modalOccupyTimeSlot
Time
:
'123'
toThis
Time
:
'123'
},
},
onLoad
(
query
)
{
onLoad
(
query
)
{
let
date
=
new
Date
(
this
.
store
.
data
.
startTime
.
replace
(
/-/g
,
"/"
))
let
date
=
new
Date
(
this
.
store
.
data
.
startTime
.
replace
(
/-/g
,
"/"
))
...
@@ -156,14 +156,14 @@ create.Page({
...
@@ -156,14 +156,14 @@ create.Page({
that
.
setData
({
that
.
setData
({
modalList
:
modalList
,
modalList
:
modalList
,
isShowModal
:
true
,
isShowModal
:
true
,
// modalOccupyTimeSlotTime: `${modalHour}:${modalMins<30? '30' : '00'}`
toThisTime
:
`
${
modalHour
}
:
${
modalMins
<
30
?
'30'
:
'00'
}
`
,
modalOccupyTimeSlotTime
:
'10:30'
canScroll
:
false
})
})
})
})
},
},
modalScroll
(){
modalScroll
(){
this
.
setData
({
this
.
setData
({
modalOccupyTimeSlot
Time
:
'12312312'
toThis
Time
:
'12312312'
})
})
},
},
// 修改弹框checkBox
// 修改弹框checkBox
...
@@ -480,13 +480,13 @@ create.Page({
...
@@ -480,13 +480,13 @@ create.Page({
that
.
setData
({
that
.
setData
({
modalList
:
modalList2
,
modalList
:
modalList2
,
dataNum
:
num
,
dataNum
:
num
,
modalOccupyTimeSlot
Time
:
`
${
modalHour
}
:
${
modalMins
<
30
?
'30'
:
'00'
}
`
toThis
Time
:
`
${
modalHour
}
:
${
modalMins
<
30
?
'30'
:
'00'
}
`
})
})
}
else
{
}
else
{
that
.
setData
({
that
.
setData
({
modalList
:
modalList
,
modalList
:
modalList
,
dataNum
:
num
,
dataNum
:
num
,
modalOccupyTimeSlot
Time
:
`
${
modalHour
}
:
${
modalMins
<
30
?
'30'
:
'00'
}
`
toThis
Time
:
`
${
modalHour
}
:
${
modalMins
<
30
?
'30'
:
'00'
}
`
})
})
}
}
})
})
...
@@ -501,7 +501,8 @@ create.Page({
...
@@ -501,7 +501,8 @@ create.Page({
date
:
''
,
date
:
''
,
meetingRoomId
:
''
meetingRoomId
:
''
},
},
dataNum
:
0
dataNum
:
0
,
canScroll
:
true
})
})
},
},
onDetermine
(){
onDetermine
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment