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
024fd7ec
Commit
024fd7ec
authored
Feb 27, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.roboming.com/fengzhaoyu/schedule
parents
f9a38726
666fb6f7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
109 additions
and
29 deletions
+109
-29
attendingSituation.axml
pages/attendingSituation/attendingSituation.axml
+1
-1
createOrEditSchedule.js
pages/createOrEditSchedule/createOrEditSchedule.js
+2
-2
index.axml
pages/index/index.axml
+1
-2
remind.acss
pages/remind/remind.acss
+1
-1
remind.axml
pages/remind/remind.axml
+1
-1
scheduleDetail.acss
pages/scheduleDetail/scheduleDetail.acss
+13
-0
scheduleDetail.axml
pages/scheduleDetail/scheduleDetail.axml
+17
-13
scheduleDetail.js
pages/scheduleDetail/scheduleDetail.js
+73
-9
No files found.
pages/attendingSituation/attendingSituation.axml
View file @
024fd7ec
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="headImg">
<view class="headImg">
<image mode="scaleToFill" src="{{item.participator.headUrl}}" a:if="{{item.participator.headUrl.length}}"/>
<image mode="scaleToFill" src="{{item.participator.headUrl}}" a:if="{{item.participator.headUrl.length}}"/>
<text a:else>{{item.participator.username.substring(0,1)}}</text>
<text a:else>{{item.participator.username.substring(0,1)}}</text>
<text a:if="{{item.confirmAttendance!=null}}" class="participatorStaus {{item.confirmAttendance==
0
|| item.participator.userId == organizer?'accept':'cancel'}} " ></text>
<text a:if="{{item.confirmAttendance!=null}}" class="participatorStaus {{item.confirmAttendance==
1
|| item.participator.userId == organizer?'accept':'cancel'}} " ></text>
</view>
</view>
<view class="info">
<view class="info">
<text class="name">{{item.participator.username}}</text>
<text class="name">{{item.participator.username}}</text>
...
...
pages/createOrEditSchedule/createOrEditSchedule.js
View file @
024fd7ec
...
@@ -229,12 +229,12 @@ create.Page({
...
@@ -229,12 +229,12 @@ create.Page({
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
})
})
}
else
{
}
else
{
_that
.
store
.
data
.
participatorList
=
[]
_that
.
store
.
data
.
participatorUserId
=
[]
_that
.
data
.
requireUsersInfo
.
forEach
((
item
,
index
)
=>
{
_that
.
data
.
requireUsersInfo
.
forEach
((
item
,
index
)
=>
{
_that
.
store
.
data
.
participatorList
.
push
({
userId
:
item
.
userId
,
username
:
item
.
username
,
headUrl
:
item
.
headUrl
})
_that
.
store
.
data
.
participatorList
.
push
({
userId
:
item
.
userId
,
username
:
item
.
username
,
headUrl
:
item
.
headUrl
})
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
})
})
_that
.
store
.
data
.
participatorList
=
[]
_that
.
store
.
data
.
participatorUserId
=
[]
res
.
users
.
forEach
((
item
,
index
)
=>
{
res
.
users
.
forEach
((
item
,
index
)
=>
{
_that
.
store
.
data
.
participatorList
.
push
({
userId
:
item
.
userId
,
username
:
item
.
name
,
headUrl
:
item
.
avatar
})
_that
.
store
.
data
.
participatorList
.
push
({
userId
:
item
.
userId
,
username
:
item
.
name
,
headUrl
:
item
.
avatar
})
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
...
...
pages/index/index.axml
View file @
024fd7ec
<!-- <mw-select></mw-select> -->
<!-- <mw-select></mw-select> -->
版本号:1
09
版
版本号:1
12
版
<scroll-view a:if="{{todayStr !== ''}}" scroll-y="{{true}}" upper-threshold="50" lower-threshold="50" onScrollToLower="lower" onScroll="onScroll" style="height: 100vh;" scroll-into-view="{{todayStr}}">
<scroll-view a:if="{{todayStr !== ''}}" scroll-y="{{true}}" upper-threshold="50" lower-threshold="50" onScrollToLower="lower" onScroll="onScroll" style="height: 100vh;" scroll-into-view="{{todayStr}}">
<block a:for="{{scheduleList}}" a:for-item="scheduleYearList">
<block a:for="{{scheduleList}}" a:for-item="scheduleYearList">
<block a:for="{{scheduleYearList}}">
<block a:for="{{scheduleYearList}}">
...
@@ -47,5 +47,4 @@
...
@@ -47,5 +47,4 @@
</block>
</block>
</scroll-view>
</scroll-view>
<view class="createSchedule iconfont iconjiahao " onTap="nextPage">
<view class="createSchedule iconfont iconjiahao " onTap="nextPage">
</view>
</view>
pages/remind/remind.acss
View file @
024fd7ec
...
@@ -40,7 +40,7 @@ page {
...
@@ -40,7 +40,7 @@ page {
border: 1prx solid rgba(25, 31, 37, 0.12);
border: 1prx solid rgba(25, 31, 37, 0.12);
border-radius: 48rpx;
border-radius: 48rpx;
}
}
.iconxuanzhong {
.iconxuanzhong
1
{
color: #fff;
color: #fff;
}
}
.select {
.select {
...
...
pages/remind/remind.axml
View file @
024fd7ec
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="remindText">
<view class="remindText">
{{item.text}}
{{item.text}}
</view>
</view>
<view class="iconfont iconxuanzhong {{aheadTimes.includes(item.time)?'select':''}}">
<view class="iconfont iconxuanzhong
1
{{aheadTimes.includes(item.time)?'select':''}}">
</view>
</view>
</view>
</view>
</view>
</view>
...
...
pages/scheduleDetail/scheduleDetail.acss
View file @
024fd7ec
...
@@ -391,4 +391,16 @@ page {
...
@@ -391,4 +391,16 @@ page {
.line {
.line {
color: rgba(25, 31, 37, 0.12)!important;
color: rgba(25, 31, 37, 0.12)!important;
margin-right: 32rpx;
margin-right: 32rpx;
}
.iconcanjia2 {
color: #15BC83;
}
.iconbucanjia2 {
color: #E60012;
}
.red {
color: #E60012;
}
.green {
color: #15BC83;
}
}
\ No newline at end of file
pages/scheduleDetail/scheduleDetail.axml
View file @
024fd7ec
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<text>
<text>
<image a:if="{{!!item.participator.headUrl}}" mode="scaleToFill" src="{{item.participator.headUrl}}"/>
<image a:if="{{!!item.participator.headUrl}}" mode="scaleToFill" src="{{item.participator.headUrl}}"/>
<text a:else class="name">{{item.participator.username.substring(item.participator.username.length - 2, item.participator.username.length)}}</text>
<text a:else class="name">{{item.participator.username.substring(item.participator.username.length - 2, item.participator.username.length)}}</text>
<text a:if="{{item.confirmAttendance!=null}}"class="participatorStaus {{item.confirmAttendance==
0
|| item.participator.userId == organizer?'accept':'cancel'}} "></text></text></text></view>
<text a:if="{{item.confirmAttendance!=null}}"class="participatorStaus {{item.confirmAttendance==
1
|| item.participator.userId == organizer?'accept':'cancel'}} "></text></text></text></view>
<view class="right">
<view class="right">
<text class="number">{{userList.length}}人参与</text>
<text class="number">{{userList.length}}人参与</text>
<text class="iconyoujinru iconfont"></text></view></view>
<text class="iconyoujinru iconfont"></text></view></view>
...
@@ -125,27 +125,31 @@
...
@@ -125,27 +125,31 @@
</view>
</view>
<!-- 底部按钮 -->
<!-- 底部按钮 -->
<view class="bottom">
<view class="bottom">
<view class="buttonGroup" data-value=0 onTap="confirmAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 0}}">
<view class="buttonGroup" data-value=1 onTap="confirmAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 0}}">
<text class="iconcanjia3 iconfont"></text>
<text class="iconcanjia2 iconfont" a:if="{{currentParStaus == 1}}"></text>
<text>参加</text>
<text class="iconcanjia3 iconfont" a:else ></text>
<text class="{{currentParStaus == 1?'green': ''}}">参加</text>
</view>
</view>
<picker range="{{['仅参加本次', '参加所有']}}" a:if="{{!(organizer == pemissions)&&isRepeatable == 1}}" data-value=
0 onTap
="confirmRepeatAtten">
<picker range="{{['仅参加本次', '参加所有']}}" a:if="{{!(organizer == pemissions)&&isRepeatable == 1}}" data-value=
1 onChange
="confirmRepeatAtten">
<view>
<view>
<view class="buttonGroup">
<view class="buttonGroup">
<text class="iconcanjia3 iconfont"></text>
<text class="iconcanjia2 iconfont" a:if="{{currentParStaus == 1}}"></text>
<text>参加</text>
<text class="iconcanjia3 iconfont" a:else></text>
<text class="{{currentParStaus == 1?'green': ''}}">参加</text>
</view>
</view>
</view>
</view>
</picker>
</picker>
<view class="buttonGroup" data-value=1 onTap="confirmAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 0}}">
<view class="buttonGroup" data-value=0 onTap="confirmAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 0}}">
<text class="iconbucanjia3 iconfont"></text>
<text class="iconbucanjia2 iconfont" a:if="{{currentParStaus == 0}}" ></text>
<text>不参加</text>
<text class="iconbucanjia3 iconfont" a:else></text>
<text class="{{currentParStaus == 0?'red': ''}}">不参加</text>
</view>
</view>
<picker range="{{['仅不参加本次', '不参加所有']}}"
data-value=1 onTap="confirm
RepeatAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 1}}">
<picker range="{{['仅不参加本次', '不参加所有']}}"
data-value=0 onChange="cancel
RepeatAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 1}}">
<view>
<view>
<view class="buttonGroup">
<view class="buttonGroup">
<text class="iconbutanjia3 iconfont"></text>
<text class="iconbucanjia2 iconfont" a:if="{{currentParStaus == 0}}"></text>
<text>不参加</text>
<text class="iconbucanjia3 iconfont" a:else></text>
<text class="{{currentParStaus == 0?'red': ''}}">不参加</text>
</view>
</view>
</view>
</view>
</picker>
</picker>
...
...
pages/scheduleDetail/scheduleDetail.js
View file @
024fd7ec
...
@@ -24,7 +24,8 @@ create.Page({
...
@@ -24,7 +24,8 @@ create.Page({
pemissions
:
''
,
pemissions
:
''
,
isRepeatable
:
''
,
isRepeatable
:
''
,
recModel
:
''
,
recModel
:
''
,
showPage
:
false
showPage
:
false
,
currentParStaus
:
''
},
},
onLoad
(
event
)
{
onLoad
(
event
)
{
let
scheduleItem
=
JSON
.
parse
(
event
.
scheduleItem
)
let
scheduleItem
=
JSON
.
parse
(
event
.
scheduleItem
)
...
@@ -43,6 +44,13 @@ create.Page({
...
@@ -43,6 +44,13 @@ create.Page({
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
}
}
getScheduleDetail
(
data
).
then
(
res
=>
{
getScheduleDetail
(
data
).
then
(
res
=>
{
res
.
data
.
data
.
userList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
participator
.
userId
==
getApp
().
globalData
.
userid
)
{
this
.
setData
({
currentParStaus
:
item
.
confirmAttendance
})
}
})
this
.
setData
({
this
.
setData
({
title
:
res
.
data
.
data
.
title
,
title
:
res
.
data
.
data
.
title
,
isRepeatable
:
res
.
data
.
data
.
repeatable
,
isRepeatable
:
res
.
data
.
data
.
repeatable
,
...
@@ -145,6 +153,9 @@ create.Page({
...
@@ -145,6 +153,9 @@ create.Page({
meetingLogId
:
''
meetingLogId
:
''
})
})
let
data
=
event
.
target
.
dataset
.
file
.
id
let
data
=
event
.
target
.
dataset
.
file
.
id
console
.
log
(
111111
)
console
.
log
(
event
.
target
.
dataset
.
file
.
id
)
console
.
log
(
22222222
)
dd
.
confirm
({
dd
.
confirm
({
title
:
'温馨提示'
,
title
:
'温馨提示'
,
content
:
'确认删除本次上传文件吗'
,
content
:
'确认删除本次上传文件吗'
,
...
@@ -154,6 +165,7 @@ create.Page({
...
@@ -154,6 +165,7 @@ create.Page({
if
(
!!
success
.
confirm
)
{
if
(
!!
success
.
confirm
)
{
if
(
!!
this
.
data
.
scheduleItem
.
id
)
{
if
(
!!
this
.
data
.
scheduleItem
.
id
)
{
delFile
(
data
).
then
(
res
=>
{
delFile
(
data
).
then
(
res
=>
{
console
.
log
(
JSON
.
stringify
(
res
))
_that
.
showFile
(
this
.
data
.
scheduleItem
.
id
)
_that
.
showFile
(
this
.
data
.
scheduleItem
.
id
)
})
})
}
else
{
}
else
{
...
@@ -242,7 +254,6 @@ create.Page({
...
@@ -242,7 +254,6 @@ create.Page({
timeResule
=
creatTime
.
substring
(
0
,
16
)
timeResule
=
creatTime
.
substring
(
0
,
16
)
}
}
return
timeResule
return
timeResule
},
},
// 确认参加不参加 单次的会议
// 确认参加不参加 单次的会议
confirmAtten
(
event
)
{
confirmAtten
(
event
)
{
...
@@ -261,32 +272,85 @@ create.Page({
...
@@ -261,32 +272,85 @@ create.Page({
}
}
isParticipate
(
data
).
then
(
res
=>
{
isParticipate
(
data
).
then
(
res
=>
{
getScheduleDetail
(
data1
).
then
(
success
=>
{
getScheduleDetail
(
data1
).
then
(
success
=>
{
this
.
store
.
data
.
userList
=
re
s
.
data
.
data
.
userList
this
.
store
.
data
.
userList
=
succes
s
.
data
.
data
.
userList
this
.
update
()
this
.
update
()
success
.
data
.
data
.
userList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
participator
.
userId
==
getApp
().
globalData
.
userid
)
{
this
.
setData
({
currentParStaus
:
item
.
confirmAttendance
})
}
})
})
})
})
})
},
},
// 重复会议的参加
// 重复会议的参加
confirmRepeatAtten
(
event
)
{
confirmRepeatAtten
(
event
)
{
let
type
=
''
let
type
=
'only'
if
(
event
.
detail
.
value
==
0
)
{
type
=
'only'
}
else
{
type
=
'all'
}
let
data
=
{
let
data
=
{
value
:
0
,
value
:
1
,
scheduleId
:
this
.
data
.
scheduleItem
.
id
,
scheduleId
:
this
.
data
.
scheduleItem
.
id
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
,
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
,
type
:
'only'
type
:
type
}
}
let
data1
=
{
id
:
this
.
data
.
scheduleItem
.
id
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
}
isParticipate
(
data
).
then
(
res
=>
{
getScheduleDetail
(
data1
).
then
(
success
=>
{
this
.
store
.
data
.
userList
=
success
.
data
.
data
.
userList
this
.
update
()
success
.
data
.
data
.
userList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
participator
.
userId
==
getApp
().
globalData
.
userid
)
{
this
.
setData
({
currentParStaus
:
item
.
confirmAttendance
})
}
})
})
})
},
},
// 重复会议取消参加
// 重复会议取消参加
cancelRepeatAtten
(
event
)
{
cancelRepeatAtten
(
event
)
{
let
type
=
'only'
if
(
event
.
detail
.
value
==
0
)
{
type
=
'only'
}
else
{
type
=
'all'
}
let
data
=
{
let
data
=
{
value
:
1
,
value
:
0
,
scheduleId
:
this
.
data
.
scheduleItem
.
id
,
scheduleId
:
this
.
data
.
scheduleItem
.
id
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
,
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
,
type
:
'only'
type
:
type
}
}
let
data1
=
{
id
:
this
.
data
.
scheduleItem
.
id
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
}
isParticipate
(
data
).
then
(
res
=>
{
getScheduleDetail
(
data1
).
then
(
success
=>
{
this
.
store
.
data
.
userList
=
success
.
data
.
data
.
userList
this
.
update
()
success
.
data
.
data
.
userList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
participator
.
userId
==
getApp
().
globalData
.
userid
)
{
this
.
setData
({
currentParStaus
:
item
.
confirmAttendance
})
}
})
})
})
}
}
...
...
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