Commit a15b1efd by xiexiaoqin
parents 62ecd275 278ffddb
...@@ -168,6 +168,8 @@ create.Component({ ...@@ -168,6 +168,8 @@ create.Component({
}); });
}, },
nextPage(event) { nextPage(event) {
this.$store.data.tabBarIndex = '0'
this.update()
dd.navigateTo({ url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify(event.currentTarget.dataset.item)}` }); dd.navigateTo({ url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify(event.currentTarget.dataset.item)}` });
}, },
} }
......
...@@ -46,9 +46,9 @@ create.Component({ ...@@ -46,9 +46,9 @@ create.Component({
this.getDate(); this.getDate();
} }
}, },
didUnmount() {}, didUnmount() { },
methods: { methods: {
getDate: throttle(function(e) { getDate: throttle(function (e) {
let data = { let data = {
startTime: "2020-01-01 00:00:00", startTime: "2020-01-01 00:00:00",
endTime: "2025-12-30 23:59:59" endTime: "2025-12-30 23:59:59"
...@@ -82,7 +82,9 @@ create.Component({ ...@@ -82,7 +82,9 @@ create.Component({
}); });
}); });
}, 1000), }, 1000),
nextDetail: throttle(function(e) { nextDetail: throttle(function (e) {
this.$store.data.tabBarIndex = '1'
this.update()
let item = e.target.dataset.item; let item = e.target.dataset.item;
dd.navigateTo({ dd.navigateTo({
url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify( url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify(
...@@ -244,7 +246,7 @@ create.Component({ ...@@ -244,7 +246,7 @@ create.Component({
); );
} }
}); });
scheduleMap.forEach(function(value, key, map) { scheduleMap.forEach(function (value, key, map) {
scheduleList.push(value); scheduleList.push(value);
}); });
return scheduleList; return scheduleList;
...@@ -323,7 +325,7 @@ create.Component({ ...@@ -323,7 +325,7 @@ create.Component({
// 第一个月的第一天 // 第一个月的第一天
let listWeek = new Date(year, 0, 1).getDay() === 0 ? 0 : 1; let listWeek = new Date(year, 0, 1).getDay() === 0 ? 0 : 1;
let thisDay = new Date().toLocaleDateString(); let thisDay = new Date().toLocaleDateString();
DateMap.forEach(function(value, key, map) { DateMap.forEach(function (value, key, map) {
const keyDate = new Date(key); const keyDate = new Date(key);
if (keyDate.getDay() === 0) { if (keyDate.getDay() === 0) {
let rangeYear1 = keyDate.getFullYear(); let rangeYear1 = keyDate.getFullYear();
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<view class="desc" a:if='{{fileView.description}}'> <view class="desc" a:if='{{fileView.description}}'>
{{fileView.description}} {{fileView.description}}
</view> </view>
<view class="task-list" a:if="{{fileView.fileInfos && fileView.fileInfos.length > 0}}"> <view class="task-list" a:if="{{fileView.fileInfos && fileView.fileInfos.length > 0}}" a:for="{{ fileView.fileInfos}}">
<view class="file-box {{isCanDelete ? 'file-box-close': ''}}" a:for="{{ fileView.fileInfos}}" catchTap="preview" data-file="{{item}}"> <view class="file-box {{isCanDelete ? 'file-box-close': ''}}" catchTap="preview" data-file="{{item}}">
<view class="file-icon {{item.fileType}}"></view> <view class="file-icon {{item.fileType}}"></view>
<view class="file-title"> <view class="file-title">
<text>{{item.fileName.slice(0, item.fileName.length - 5)}}</text> <text>{{item.fileName.slice(0, item.fileName.length - 5)}}</text>
......
...@@ -24,6 +24,7 @@ Component({ ...@@ -24,6 +24,7 @@ Component({
didUnmount() { }, didUnmount() { },
methods: { methods: {
comSelectList(event) { comSelectList(event) {
console.log(event, 2222)
if (this.props.multiple && event.currentTarget.dataset.item.id != -1) { if (this.props.multiple && event.currentTarget.dataset.item.id != -1) {
if (this.data.comSelectList.includes(-1)) { if (this.data.comSelectList.includes(-1)) {
this.setData({ this.setData({
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.iconfont { .iconfont {
font-family: "iconfont" !important; font-family: "iconfont" !important;
font-size: 16px; font-size: 36rpx;
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
......
...@@ -15,8 +15,8 @@ create.Page({ ...@@ -15,8 +15,8 @@ create.Page({
], ],
meetingWayList: [ meetingWayList: [
// { id: 0, text: 'Webex meeting', imageUrl: '../../assests/Webex.png', meetingWayModel: { model: 'webex' } }, // { id: 0, text: 'Webex meeting', imageUrl: '../../assests/Webex.png', meetingWayModel: { model: 'webex' } },
{ id: 1, text: 'Zoom Meeting', imageUrl: '../../assests/Zoom.png', meetingWayModel: { model: 'zoom' } }, { id: 0, text: 'Zoom Meeting', imageUrl: '../../assests/Zoom.png', meetingWayModel: { model: 'zoom' } },
{ id: 2, text: '钉钉', imageUrl: '../../assests/dingding.png', meetingWayModel: { model: 'dingtalk' } } { id: 1, text: '钉钉', imageUrl: '../../assests/dingding.png', meetingWayModel: { model: 'dingtalk' } }
], ],
comSelectListId: 0, comSelectListId: 0,
meetingWayModelId: null, meetingWayModelId: null,
...@@ -183,7 +183,7 @@ create.Page({ ...@@ -183,7 +183,7 @@ create.Page({
value.recurrenceModel.initialTime = this.$store.data.startTime.replace(/\//g, "-").substring(0, 10) value.recurrenceModel.initialTime = this.$store.data.startTime.replace(/\//g, "-").substring(0, 10)
value.recurrenceModel.terminateTime = this.getTwoYearToday(this.$store.data.startTime) value.recurrenceModel.terminateTime = this.getTwoYearToday(this.$store.data.startTime)
if (index === 2) { if (index === 2) {
value.recurrenceModel.weekDayList = [this.data.repeatWeek[new Date().getDay()]] value.recurrenceModel.weekDayList = [this.data.repeatWeek[new Date(this.$store.data.startTime).getDay()]]
} else if (index === 4) { } else if (index === 4) {
value.recurrenceModel.daysOfMonth = [this.$store.data.startTime.replace(/\//g, "-").substring(8, 10)] value.recurrenceModel.daysOfMonth = [this.$store.data.startTime.replace(/\//g, "-").substring(8, 10)]
} }
...@@ -193,7 +193,7 @@ create.Page({ ...@@ -193,7 +193,7 @@ create.Page({
} }
this.setData({ this.setData({
'comListData.repeatList': repeatList, 'comListData.repeatList': repeatList,
week: this.data.weekList[new Date(this.$store.data.startTime.replace(/\//g, "-")).getDay()] week: this.data.weekList[new Date(this.$store.data.startTime).getDay()]
}) })
}, },
...@@ -315,12 +315,12 @@ create.Page({ ...@@ -315,12 +315,12 @@ create.Page({
this.$store.data.endTime = `${event.endTime}:00` this.$store.data.endTime = `${event.endTime}:00`
this.update() this.update()
this.acrossDay(this.$store.data.startTime, this.$store.data.endTime) this.acrossDay(this.$store.data.startTime, this.$store.data.endTime)
this.setData({ this.setData({
popupShow: false, popupShow: false,
week: this.data.weekList[new Date(this.$store.data.startTime).getDay()], week: this.data.weekList[new Date(this.$store.data.startTime).getDay()],
}) })
this.conflictPeople() this.conflictPeople()
this.resetRepeatList()
}, },
addSchedule: throttle(function () { addSchedule: throttle(function () {
let data = { let data = {
......
...@@ -28,7 +28,7 @@ create.Page({ ...@@ -28,7 +28,7 @@ create.Page({
let title = "动态"; let title = "动态";
switch (e.currentTarget.dataset.tabbar) { switch (e.currentTarget.dataset.tabbar) {
case '0': case '0':
title = '动态181'; title = '动态185';
break; break;
case "1": case "1":
title = "日程"; title = "日程";
......
@import "../../template/affairBlank/index.acss"; @import "../../template/affairBlank/index.acss";
page {
background: rgba(232, 237, 240, 1);
}
.affair-list { .affair-list {
background: #fff; background: #fff;
padding: 48rpx 32rpx 220rpx 32rpx; padding: 48rpx 32rpx 220rpx 32rpx;
...@@ -438,6 +434,7 @@ input { ...@@ -438,6 +434,7 @@ input {
.participate>text { .participate>text {
margin-right: 10rpx; margin-right: 10rpx;
color: #15BC83; color: #15BC83;
vertical-align: middle;
} }
.noParticipateStatus { .noParticipateStatus {
...@@ -583,3 +580,7 @@ input { ...@@ -583,3 +580,7 @@ input {
.iconicon_repeat1 { .iconicon_repeat1 {
color: rgba(10, 10, 10, 0.4) color: rgba(10, 10, 10, 0.4)
} }
.participateText {
vertical-align: middle
}
\ No newline at end of file
...@@ -149,11 +149,12 @@ ...@@ -149,11 +149,12 @@
<view class="originStaus" a:if="{{confirmAttendance === -9}}"> <view class="originStaus" a:if="{{confirmAttendance === -9}}">
<view catchTap="participate"> <view catchTap="participate">
<text class="iconfont iconicon_Agreed1"></text> <text class="iconfont iconicon_Agreed1"></text>
<text>参加</text></view> <text class="participateText">参加</text>
</view>
<text class="devider"></text> <text class="devider"></text>
<view catchTap="noParticipate"> <view catchTap="noParticipate">
<text class="iconfont iconicon_noAgreed1"></text> <text class="iconfont iconicon_noAgreed1"></text>
<text>不参加</text> <text class="participateText">不参加</text>
</view> </view>
</view> </view>
<!--参加状态--> <!--参加状态-->
...@@ -171,13 +172,13 @@ ...@@ -171,13 +172,13 @@
<text class="devider"></text> <text class="devider"></text>
<view class="participate" catchTap="initialState"> <view class="participate" catchTap="initialState">
<text class="iconfont iconicon_Agreed1"></text> <text class="iconfont iconicon_Agreed1"></text>
<text>参加</text> <text class="participateText">参加</text>
</view> </view>
</view> </view>
<!--不参加状态 --> <!--不参加状态 -->
<view class="noParticipateStatus" a:if="{{confirmAttendance === 0}}" catchTap="initialState"> <view class="noParticipateStatus" a:if="{{confirmAttendance === 0}}" catchTap="initialState">
<text class="iconfont iconicon_noAgreed1"></text> <text class="iconfont iconicon_noAgreed1"></text>
<text>不参加</text> <text class="participateText">不参加</text>
</view> </view>
</view> </view>
<view class="footerBottom"> <view class="footerBottom">
......
...@@ -30,9 +30,8 @@ create.Page({ ...@@ -30,9 +30,8 @@ create.Page({
{ id: 4, text: '每月', icon: '', repeatable: 1, recurrenceModel: { model: 'absoluteMonthly', daysOfMonth: ['23'], interval: 1, initialTime: `2020-03-23`, terminateTime: `2022-03-23`, weekDayList: null } } { id: 4, text: '每月', icon: '', repeatable: 1, recurrenceModel: { model: 'absoluteMonthly', daysOfMonth: ['23'], interval: 1, initialTime: `2020-03-23`, terminateTime: `2022-03-23`, weekDayList: null } }
], ],
meetingWayList: [ meetingWayList: [
// { id: 0, text: 'Webex meeting', imageUrl: '../../assests/Webex.png', meetingWayModel: { model: 'webex' } }, { id: 0, text: 'Zoom Meeting', imageUrl: '../../assests/Zoom.png', meetingWayModel: { model: 'zoom' } },
{ id: 1, text: 'Zoom Meeting', imageUrl: '../../assests/Zoom.png', meetingWayModel: { model: 'zoom' } }, { id: 1, text: '钉钉', imageUrl: '../../assests/dingding.png', meetingWayModel: { model: 'dingtalk' } }
{ id: 2, text: '钉钉', imageUrl: '../../assests/dingding.png', meetingWayModel: { model: 'dingtalk' } }
], ],
aheadTimesList: [ aheadTimesList: [
{ id: -1, text: '不提醒', icon: 'iconicon_cycle' }, { id: -1, text: '不提醒', icon: 'iconicon_cycle' },
...@@ -124,7 +123,6 @@ create.Page({ ...@@ -124,7 +123,6 @@ create.Page({
} }
}, },
onLoad(event) { onLoad(event) {
this.reset() this.reset()
dd.setNavigationBar({ dd.setNavigationBar({
title: `会议详情` title: `会议详情`
...@@ -179,9 +177,7 @@ create.Page({ ...@@ -179,9 +177,7 @@ create.Page({
this.setData({ this.setData({
confirmAttendance: res.data.data.confirmAttendance === null ? -9 : res.data.data.confirmAttendance, confirmAttendance: res.data.data.confirmAttendance === null ? -9 : res.data.data.confirmAttendance,
organizer: res.data.data.organizer, organizer: res.data.data.organizer,
'comListData.meetingWayModelId': res.data.data.meetingWayModel.model === null ? null : (res.data.data.meetingWayModel.model === 'dingtalk' ? 2 : (res.data.data.meetingWayModel.model === 'zoom' ? 1 : 0)), 'comListData.meetingWayModelId': res.data.data.meetingWayModel.model === null ? null : (res.data.data.meetingWayModel.model === 'dingtalk' ? 1 : 0),
// 'scheduleItem.id': res.data.data.id,
// 'scheduleItem.groupId': res.data.data.groupId,
repeatable: res.data.data.repeatable, repeatable: res.data.data.repeatable,
recurrenceModel: res.data.data.repeatable ? { model: res.data.data.recurrenceModel.model, daysOfMonth: res.data.data.recurrenceModel.daysOfMonth, interval: 1, initialTime: res.data.data.recurrenceModel.initialTime, terminateTime: res.data.data.recurrenceModel.terminateTime, weekDayList: res.data.data.recurrenceModel.weekDayList } : { model: 'no_repeat' }, recurrenceModel: res.data.data.repeatable ? { model: res.data.data.recurrenceModel.model, daysOfMonth: res.data.data.recurrenceModel.daysOfMonth, interval: 1, initialTime: res.data.data.recurrenceModel.initialTime, terminateTime: res.data.data.recurrenceModel.terminateTime, weekDayList: res.data.data.recurrenceModel.weekDayList } : { model: 'no_repeat' },
title: res.data.data.title, title: res.data.data.title,
...@@ -212,6 +208,7 @@ create.Page({ ...@@ -212,6 +208,7 @@ create.Page({
this.store.data.groupId = res.data.data.groupId; this.store.data.groupId = res.data.data.groupId;
this.update(); this.update();
this.reload(this.data.scheduleItem.id); this.reload(this.data.scheduleItem.id);
this.resetRepeatList()
} else { } else {
} }
...@@ -384,7 +381,7 @@ create.Page({ ...@@ -384,7 +381,7 @@ create.Page({
value.recurrenceModel.initialTime = this.$store.data.startTime.replace(/\//g, "-").substring(0, 10) value.recurrenceModel.initialTime = this.$store.data.startTime.replace(/\//g, "-").substring(0, 10)
value.recurrenceModel.terminateTime = this.getTwoYearToday(this.$store.data.startTime) value.recurrenceModel.terminateTime = this.getTwoYearToday(this.$store.data.startTime)
if (index === 2) { if (index === 2) {
value.recurrenceModel.weekDayList = [this.data.repeatWeek[new Date().getDay()]] value.recurrenceModel.weekDayList = [this.data.repeatWeek[new Date(this.$store.data.startTime).getDay()]]
} else if (index === 4) { } else if (index === 4) {
value.recurrenceModel.daysOfMonth = [this.$store.data.startTime.replace(/\//g, "-").substring(8, 10)] value.recurrenceModel.daysOfMonth = [this.$store.data.startTime.replace(/\//g, "-").substring(8, 10)]
} }
...@@ -394,9 +391,8 @@ create.Page({ ...@@ -394,9 +391,8 @@ create.Page({
} }
this.setData({ this.setData({
'comListData.repeatList': repeatList, 'comListData.repeatList': repeatList,
week: this.data.weekList[new Date(this.$store.data.startTime.replace(/\//g, "-")).getDay()] week: this.data.weekList[new Date(this.$store.data.startTime).getDay()]
}) })
}, },
// 选择完comList后的回调 重复 会议方式 // 选择完comList后的回调 重复 会议方式
selectComList(event) { selectComList(event) {
...@@ -420,6 +416,7 @@ create.Page({ ...@@ -420,6 +416,7 @@ create.Page({
this.resetRepeatList() this.resetRepeatList()
this.setData({ this.setData({
popupShow: false, popupShow: false,
'conSelectPopupData.selectType': 'common',
'comListData.comSelectListId': event.currentTarget.dataset.item.id, 'comListData.comSelectListId': event.currentTarget.dataset.item.id,
repeatable: event.currentTarget.dataset.item.repeatable, repeatable: event.currentTarget.dataset.item.repeatable,
recurrenceModel: event.currentTarget.dataset.item.recurrenceModel recurrenceModel: event.currentTarget.dataset.item.recurrenceModel
...@@ -545,11 +542,12 @@ create.Page({ ...@@ -545,11 +542,12 @@ create.Page({
this.acrossDay(this.$store.data.startTime, this.$store.data.endTime) this.acrossDay(this.$store.data.startTime, this.$store.data.endTime)
this.setData({ this.setData({
popupShow: false, popupShow: false,
'conSelectPopupData.selectType': 'common',
week: this.data.weekList[new Date(this.$store.data.startTime).getDay()], week: this.data.weekList[new Date(this.$store.data.startTime).getDay()],
editType: '', editType: '',
forbiddenScroll: false forbiddenScroll: false
}) })
this.conflictPeople() this.resetRepeatList()
if (this.data.repeatable) { if (this.data.repeatable) {
this.setData({ this.setData({
'conSelectPopupData.showSelectPopup': true, 'conSelectPopupData.showSelectPopup': true,
...@@ -588,7 +586,6 @@ create.Page({ ...@@ -588,7 +586,6 @@ create.Page({
modifySchedule(Object.assign(data, obj)).then(res => { modifySchedule(Object.assign(data, obj)).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
that.$store.data.indexNeedUpdate = true that.$store.data.indexNeedUpdate = true
that.$store.data.tabBarIndex = '1'
that.update() that.update()
if (this.$store.data.originalData.repeatable === 1 && !!res.data.data) { if (this.$store.data.originalData.repeatable === 1 && !!res.data.data) {
observer.notice(res.data.data) observer.notice(res.data.data)
...@@ -681,7 +678,6 @@ create.Page({ ...@@ -681,7 +678,6 @@ create.Page({
isParticipate(data1).then(res => { isParticipate(data1).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: 0 confirmAttendance: 0
...@@ -701,7 +697,6 @@ create.Page({ ...@@ -701,7 +697,6 @@ create.Page({
isParticipate(data).then(res => { isParticipate(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: 1 confirmAttendance: 1
...@@ -1003,6 +998,38 @@ create.Page({ ...@@ -1003,6 +998,38 @@ create.Page({
this.$store.data.originalData.startTime = this.$store.data.startTime.replace(/\//g, "-") this.$store.data.originalData.startTime = this.$store.data.startTime.replace(/\//g, "-")
this.$store.data.originalData.endTime = this.$store.data.endTime.replace(/\//g, "-") this.$store.data.originalData.endTime = this.$store.data.endTime.replace(/\//g, "-")
this.update() this.update()
this.resetRepeatList()
if (this.data.recurrenceModel.model === 'weekly' && this.data.recurrenceModel.weekDayList.length === 1) {
let dataRepeat4 = {
startTime: this.$store.data.startTime.replace(/\//g, "-"),
endTime: this.$store.data.endTime.replace(/\//g, "-"),
modifyModel: modifyModel,
modifyContent: 'change_rule',
recurrenceModel: this.data.comListData.repeatList[2].recurrenceModel,
repeatable: this.data.repeatable
}
this.modifySchedule(dataRepeat4).then(() => {
this.setData({
recurrenceModel: this.data.comListData.repeatList[2].recurrenceModel
})
})
} else if (this.data.recurrenceModel.model === 'absoluteMonthly') {
let dataRepeat5 = {
startTime: this.$store.data.startTime.replace(/\//g, "-"),
endTime: this.$store.data.endTime.replace(/\//g, "-"),
modifyModel: modifyModel,
modifyContent: 'change_rule',
recurrenceModel: this.data.comListData.repeatList[4].recurrenceModel,
repeatable: this.data.repeatable
}
this.modifySchedule(dataRepeat5).then(() => {
this.setData({
recurrenceModel: this.data.comListData.repeatList[4].recurrenceModel
})
})
}
this.modifySchedule(data, needNotice)
}) })
break break
case 'aheadTimes': case 'aheadTimes':
...@@ -1113,7 +1140,6 @@ create.Page({ ...@@ -1113,7 +1140,6 @@ create.Page({
isParticipate(data).then(res => { isParticipate(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: 1 confirmAttendance: 1
...@@ -1139,7 +1165,6 @@ create.Page({ ...@@ -1139,7 +1165,6 @@ create.Page({
isParticipate(data).then(res => { isParticipate(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: 0 confirmAttendance: 0
...@@ -1166,7 +1191,6 @@ create.Page({ ...@@ -1166,7 +1191,6 @@ create.Page({
isParticipate(data).then(res => { isParticipate(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: -9 confirmAttendance: -9
......
<view class="outLookContact"> <view class="outLookContact">
<!-- 输入邮箱联系人 --> <!-- 输入邮箱联系人 -->
<view class="addContact"> <view class="addContact">
<input placeholder="请输入邮箱" onInput="onInput" value="{{value}}" focus="{{false}}" /> <input placeholder="请输入邮箱" onInput="onInput" value="{{value}}" onConfirm="addEmail" onBlur="addEmail"/>
<view class="icon iconfont iconicon_add " onTap="addEmail"> <view class="icon iconfont iconicon_add " onTap="addEmail">
</view> </view>
</view> </view>
......
...@@ -96,7 +96,9 @@ create.Page({ ...@@ -96,7 +96,9 @@ create.Page({
outlookContact: outlookContact outlookContact: outlookContact
}) })
this.conflictPeople() this.conflictPeople()
} else { }
else if (!!this.data.value) { }
else {
dd.alert({ dd.alert({
content: '请输入正确的邮箱格式', content: '请输入正确的邮箱格式',
buttonText: '确定' buttonText: '确定'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment