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
666fb6f7
Commit
666fb6f7
authored
Feb 27, 2020
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参加不参加
parent
b10426fa
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 @
666fb6f7
...
...
@@ -3,7 +3,7 @@
<view class="headImg">
<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: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 class="info">
<text class="name">{{item.participator.username}}</text>
...
...
pages/createOrEditSchedule/createOrEditSchedule.js
View file @
666fb6f7
...
...
@@ -229,12 +229,12 @@ create.Page({
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
})
}
else
{
_that
.
store
.
data
.
participatorList
=
[]
_that
.
store
.
data
.
participatorUserId
=
[]
_that
.
data
.
requireUsersInfo
.
forEach
((
item
,
index
)
=>
{
_that
.
store
.
data
.
participatorList
.
push
({
userId
:
item
.
userId
,
username
:
item
.
username
,
headUrl
:
item
.
headUrl
})
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
})
_that
.
store
.
data
.
participatorList
=
[]
_that
.
store
.
data
.
participatorUserId
=
[]
res
.
users
.
forEach
((
item
,
index
)
=>
{
_that
.
store
.
data
.
participatorList
.
push
({
userId
:
item
.
userId
,
username
:
item
.
name
,
headUrl
:
item
.
avatar
})
_that
.
store
.
data
.
participatorUserId
.
push
(
item
.
userId
)
...
...
pages/index/index.axml
View file @
666fb6f7
<!-- <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}}">
<block a:for="{{scheduleList}}" a:for-item="scheduleYearList">
<block a:for="{{scheduleYearList}}">
...
...
@@ -47,5 +47,4 @@
</block>
</scroll-view>
<view class="createSchedule iconfont iconjiahao " onTap="nextPage">
</view>
pages/remind/remind.acss
View file @
666fb6f7
...
...
@@ -40,7 +40,7 @@ page {
border: 1prx solid rgba(25, 31, 37, 0.12);
border-radius: 48rpx;
}
.iconxuanzhong {
.iconxuanzhong
1
{
color: #fff;
}
.select {
...
...
pages/remind/remind.axml
View file @
666fb6f7
...
...
@@ -4,7 +4,7 @@
<view class="remindText">
{{item.text}}
</view>
<view class="iconfont iconxuanzhong {{aheadTimes.includes(item.time)?'select':''}}">
<view class="iconfont iconxuanzhong
1
{{aheadTimes.includes(item.time)?'select':''}}">
</view>
</view>
</view>
...
...
pages/scheduleDetail/scheduleDetail.acss
View file @
666fb6f7
...
...
@@ -391,4 +391,16 @@ page {
.line {
color: rgba(25, 31, 37, 0.12)!important;
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 @
666fb6f7
...
...
@@ -51,7 +51,7 @@
<text>
<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: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">
<text class="number">{{userList.length}}人参与</text>
<text class="iconyoujinru iconfont"></text></view></view>
...
...
@@ -125,27 +125,31 @@
</view>
<!-- 底部按钮 -->
<view class="bottom">
<view class="buttonGroup" data-value=0 onTap="confirmAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 0}}">
<text class="iconcanjia3 iconfont"></text>
<text>参加</text>
<view class="buttonGroup" data-value=1 onTap="confirmAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 0}}">
<text class="iconcanjia2 iconfont" a:if="{{currentParStaus == 1}}"></text>
<text class="iconcanjia3 iconfont" a:else ></text>
<text class="{{currentParStaus == 1?'green': ''}}">参加</text>
</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 class="buttonGroup">
<text class="iconcanjia3 iconfont"></text>
<text>参加</text>
<text class="iconcanjia2 iconfont" a:if="{{currentParStaus == 1}}"></text>
<text class="iconcanjia3 iconfont" a:else></text>
<text class="{{currentParStaus == 1?'green': ''}}">参加</text>
</view>
</view>
</picker>
<view class="buttonGroup" data-value=1 onTap="confirmAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 0}}">
<text class="iconbucanjia3 iconfont"></text>
<text>不参加</text>
<view class="buttonGroup" data-value=0 onTap="confirmAtten" a:if="{{!(organizer == pemissions)&&isRepeatable == 0}}">
<text class="iconbucanjia2 iconfont" a:if="{{currentParStaus == 0}}" ></text>
<text class="iconbucanjia3 iconfont" a:else></text>
<text class="{{currentParStaus == 0?'red': ''}}">不参加</text>
</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 class="buttonGroup">
<text class="iconbutanjia3 iconfont"></text>
<text>不参加</text>
<text class="iconbucanjia2 iconfont" a:if="{{currentParStaus == 0}}"></text>
<text class="iconbucanjia3 iconfont" a:else></text>
<text class="{{currentParStaus == 0?'red': ''}}">不参加</text>
</view>
</view>
</picker>
...
...
pages/scheduleDetail/scheduleDetail.js
View file @
666fb6f7
...
...
@@ -24,7 +24,8 @@ create.Page({
pemissions
:
''
,
isRepeatable
:
''
,
recModel
:
''
,
showPage
:
false
showPage
:
false
,
currentParStaus
:
''
},
onLoad
(
event
)
{
let
scheduleItem
=
JSON
.
parse
(
event
.
scheduleItem
)
...
...
@@ -43,6 +44,13 @@ create.Page({
templateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
}
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
({
title
:
res
.
data
.
data
.
title
,
isRepeatable
:
res
.
data
.
data
.
repeatable
,
...
...
@@ -145,6 +153,9 @@ create.Page({
meetingLogId
:
''
})
let
data
=
event
.
target
.
dataset
.
file
.
id
console
.
log
(
111111
)
console
.
log
(
event
.
target
.
dataset
.
file
.
id
)
console
.
log
(
22222222
)
dd
.
confirm
({
title
:
'温馨提示'
,
content
:
'确认删除本次上传文件吗'
,
...
...
@@ -154,6 +165,7 @@ create.Page({
if
(
!!
success
.
confirm
)
{
if
(
!!
this
.
data
.
scheduleItem
.
id
)
{
delFile
(
data
).
then
(
res
=>
{
console
.
log
(
JSON
.
stringify
(
res
))
_that
.
showFile
(
this
.
data
.
scheduleItem
.
id
)
})
}
else
{
...
...
@@ -242,7 +254,6 @@ create.Page({
timeResule
=
creatTime
.
substring
(
0
,
16
)
}
return
timeResule
},
// 确认参加不参加 单次的会议
confirmAtten
(
event
)
{
...
...
@@ -261,32 +272,85 @@ create.Page({
}
isParticipate
(
data
).
then
(
res
=>
{
getScheduleDetail
(
data1
).
then
(
success
=>
{
this
.
store
.
data
.
userList
=
re
s
.
data
.
data
.
userList
this
.
store
.
data
.
userList
=
succes
s
.
data
.
data
.
userList
this
.
update
()
success
.
data
.
data
.
userList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
participator
.
userId
==
getApp
().
globalData
.
userid
)
{
this
.
setData
({
currentParStaus
:
item
.
confirmAttendance
})
}
})
})
})
},
// 重复会议的参加
confirmRepeatAtten
(
event
)
{
let
type
=
''
let
type
=
'only'
if
(
event
.
detail
.
value
==
0
)
{
type
=
'only'
}
else
{
type
=
'all'
}
let
data
=
{
value
:
0
,
value
:
1
,
scheduleId
:
this
.
data
.
scheduleItem
.
id
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
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
)
{
let
type
=
'only'
if
(
event
.
detail
.
value
==
0
)
{
type
=
'only'
}
else
{
type
=
'all'
}
let
data
=
{
value
:
1
,
value
:
0
,
scheduleId
:
this
.
data
.
scheduleItem
.
id
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
,
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