Commit 2591e215 by liang ce

Merge branch 'dev' of http://gitlab.roboming.com/fengzhaoyu/schedule into dev

parents f48e7316 3605b0f9
...@@ -161,4 +161,8 @@ ...@@ -161,4 +161,8 @@
top: 0; top: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
}
.icon-color {
opacity: 0.4;
} }
\ No newline at end of file
...@@ -2,19 +2,19 @@ ...@@ -2,19 +2,19 @@
<import src="../../template/loading/loading.axml"/> <import src="../../template/loading/loading.axml"/>
<view class="{{isStopBodyScroll ? 'scroll-lock' : ''}}" onTap="closeSwipe" onTouchStart="closeSwipe" onTouchMove="closeSwipe" onTouchEnd="closeSwipe"> <view class="{{isStopBodyScroll ? 'scroll-lock' : ''}}" onTap="closeSwipe" onTouchStart="closeSwipe" onTouchMove="closeSwipe" onTouchEnd="closeSwipe">
<block a:if="{{!loading}}"> <block a:if="{{!loading}}">
<scroll-view a:if="{{dynamicList.length > 0}}" scroll-y="{{true}}" class="dynamicBox" onScrollToLower="onScrollToLower"> <scroll-view a:if="{{dynamicList.length > 0}}" scroll-y="{{true}}" lower-threshold="{{600}}" class="dynamicBox" onScrollToLower="onScrollToLower">
<view class="dynamicList"> <view class="dynamicList">
<swipe onSetBodyDisableScroll="setBodyDisableScroll" rightWidth="{{ 78 }}" leftWidth="{{ 0 }}" a:for="{{dynamicList}}" class="dynamicContent"> <swipe onSetBodyDisableScroll="setBodyDisableScroll" rightWidth="{{ 78 }}" leftWidth="{{ 0 }}" a:for="{{dynamicList}}" class="dynamicContent" key="{{item.scheduleId}}">
<view class="dynamicDetails"> <view class="dynamicDetails">
<view class="meetingtitle" catchTap="nextPage" data-item="{{item}}"> <view class="meetingtitle" catchTap="nextPage" data-item="{{item}}">
<view> <view>
{{item.title}} {{item.title}}
</view> </view>
<view> <view>
<text a:if="{{item.traceTime !== traceTime}}" class="iconfont iconicon_top1"></text> <text a:if="{{item.traceTime !== traceTime}}" class="iconfont iconicon_top1 icon-color"></text>
</view> </view>
</view> </view>
<block a:for="{{item.meetingLogDataList.slice(0,2)}}" a:for-item="dynamicItem"> <block a:for="{{item.meetingLogDataList.slice(0,2)}}" a:for-item="dynamicItem" key="{{item.id}}">
<view class="userDynamic"> <view class="userDynamic">
<view class="dynamicTime" catchTap="nextPage" data-item="{{dynamicItem}}"> <view class="dynamicTime" catchTap="nextPage" data-item="{{dynamicItem}}">
<text>{{dynamicItem.content}}</text> <text>{{dynamicItem.content}}</text>
......
...@@ -3,7 +3,7 @@ import { ...@@ -3,7 +3,7 @@ import {
meetingCollection, meetingCollection,
updateMeetingTask updateMeetingTask
} from "../../api/request"; } from "../../api/request";
import { getCreateShowTime, uniqueObject } from "../../utils/utils"; import { getCreateShowTime } from "../../utils/utils";
import create from 'dd-store'; import create from 'dd-store';
create.Component({ create.Component({
...@@ -14,8 +14,6 @@ create.Component({ ...@@ -14,8 +14,6 @@ create.Component({
dynamicList: [], dynamicList: [],
current: 1, current: 1,
pages: 1, pages: 1,
size: 10,
noData: false,
loading: true loading: true
}, },
props: {}, props: {},
...@@ -36,7 +34,7 @@ create.Component({ ...@@ -36,7 +34,7 @@ create.Component({
this.$store.closeActiveSwipe() this.$store.closeActiveSwipe()
} }
}, },
getPages(current) { getPages(current, callBack) {
getDynamicList({ getDynamicList({
current, current,
size: 10 size: 10
...@@ -47,12 +45,7 @@ create.Component({ ...@@ -47,12 +45,7 @@ create.Component({
}) })
return; return;
} }
// 第一层日程数据处理
const dynamicList = res.data.data.records.map((item, index) => { const dynamicList = res.data.data.records.map((item, index) => {
// 第二层日程下的动态数据处理
let meetingLogDataList = {};
let meetingLogDataListArr = [];
for (let i = 0; i < item.meetingLogDataList.length; i++) { for (let i = 0; i < item.meetingLogDataList.length; i++) {
if (item.meetingLogDataList[i].creatorInfo) { if (item.meetingLogDataList[i].creatorInfo) {
item.meetingLogDataList[i].creatorInfo = JSON.parse( item.meetingLogDataList[i].creatorInfo = JSON.parse(
...@@ -82,12 +75,7 @@ create.Component({ ...@@ -82,12 +75,7 @@ create.Component({
} }
} }
} }
return { return item
scheduleId: item.scheduleId,
title: item.title,
traceTime: item.traceTime,
meetingLogDataList: item.meetingLogDataList
};
}); });
//第一页数据会重新请求需要替换 //第一页数据会重新请求需要替换
...@@ -106,6 +94,9 @@ create.Component({ ...@@ -106,6 +94,9 @@ create.Component({
current: res.data.data.current, current: res.data.data.current,
pages: res.data.data.pages, pages: res.data.data.pages,
}); });
if (callBack) {
callBack()
}
}); });
}, },
changeCollection(e) { changeCollection(e) {
...@@ -117,7 +108,11 @@ create.Component({ ...@@ -117,7 +108,11 @@ create.Component({
//取消置顶 //取消置顶
if (collection === "N") { if (collection === "N") {
// 重新获取第一页的数据 // 重新获取第一页的数据
this.getPages(1); this.getPages(1, () => {
dd.showToast({
content: '取消成功'
})
});
} else { } else {
//置顶 //置顶
const dynamicList = this.data.dynamicList; const dynamicList = this.data.dynamicList;
...@@ -127,6 +122,10 @@ create.Component({ ...@@ -127,6 +122,10 @@ create.Component({
dynamicList.unshift(replaceItem); dynamicList.unshift(replaceItem);
this.setData({ this.setData({
dynamicList: dynamicList dynamicList: dynamicList
}, () => {
dd.showToast({
content: '置顶成功'
})
}); });
} }
}); });
...@@ -137,8 +136,7 @@ create.Component({ ...@@ -137,8 +136,7 @@ create.Component({
} }
}, },
onChangeTaskStatusOnList(e) { onChangeTaskStatusOnList(e) {
let that = this; const data = {
let data = {
groupId: e.groupId, groupId: e.groupId,
scheduleId: e.scheduleId, scheduleId: e.scheduleId,
resourceType: "task", resourceType: "task",
...@@ -152,25 +150,24 @@ create.Component({ ...@@ -152,25 +150,24 @@ create.Component({
if (res.data.code === 0) { if (res.data.code === 0) {
let dataIndex1 = ""; let dataIndex1 = "";
let dataIndex2 = ""; let dataIndex2 = "";
that.data.dynamicList.map((item, index) => { this.data.dynamicList.forEach((item, index) => {
if (item.scheduleId === e.scheduleId) { if (item.scheduleId === e.scheduleId) {
dataIndex1 = index; dataIndex1 = index;
item.meetingLogDataList.map((it, index2) => { item.meetingLogDataList.forEach((it, index2) => {
if (it.meetingLogResource.id == e.id) { if (it.meetingLogResource.id == e.id) {
dataIndex2 = index2; dataIndex2 = index2;
} }
}); });
} }
}); });
let setData = `dynamicList[${dataIndex1}].meetingLogDataList[${dataIndex2}].meetingLogResource.taskStatus`; const setData = `dynamicList[${dataIndex1}].meetingLogDataList[${dataIndex2}].meetingLogResource.taskStatus`;
that.setData({ this.setData({
[setData]: e.status [setData]: e.status
}); });
} }
}); });
}, },
nextPage(event) { nextPage(event) {
console.log(event.currentTarget.dataset.item)
dd.navigateTo({ url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify(event.currentTarget.dataset.item)}` }); dd.navigateTo({ url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify(event.currentTarget.dataset.item)}` });
}, },
} }
......
@import "./assests/font/iconfont.acss"; @import "./fonts/iconfont.acss";
page { page {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
background: #F6F6F6; background: #F6F6F6;
} }
picker-view {
background: #F6F6F6;
}
view { view {
box-sizing: border-box; box-sizing: border-box;
} }
\ No newline at end of file
...@@ -12,5 +12,8 @@ ...@@ -12,5 +12,8 @@
"pages/participantsDetail/participantsDetail", "pages/participantsDetail/participantsDetail",
"pages/applicationDetails/applicationDetails", "pages/applicationDetails/applicationDetails",
"pages/attendeeList/attendeeList" "pages/attendeeList/attendeeList"
] ],
} "window": {
"allowsBounceVertical": "NO"
}
}
\ No newline at end of file
@import "../../assests/font/iconfont.acss";
/* 区域选择样式 */ /* 区域选择样式 */
.lableTreeBox{
.lableTreeBox {
position: fixed; position: fixed;
left: 0; left: 0;
top: 0; top: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(0,0,0,.15); background: rgba(0, 0, 0, .15);
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
z-index: 999; z-index: 999;
} }
.lableTreeContent{
.lableTreeContent {
width: 100%; width: 100%;
height: 527rpx; height: 527rpx;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0 -2rpx 20rpx 0 rgba(25,31,37,0.12); box-shadow: 0 -2rpx 20rpx 0 rgba(25, 31, 37, 0.12);
border-radius: 19rpx 19rpx 0px 0px; border-radius: 19rpx 19rpx 0px 0px;
} }
.lableTreeHeader{
.lableTreeHeader {
width: 100%; width: 100%;
height: 104rpx; height: 104rpx;
padding: 0 32rpx; padding: 0 32rpx;
...@@ -26,36 +28,44 @@ ...@@ -26,36 +28,44 @@
font-size: 34rpx; font-size: 34rpx;
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid rgba(25,31,37,0.12); border-bottom: 1px solid rgba(25, 31, 37, 0.12);
} }
.lableTreeHeader>view{
.lableTreeHeader>view {
flex: 1; flex: 1;
height: 104rpx; height: 104rpx;
} }
.lableTreeHeader>view:nth-of-type(1) { .lableTreeHeader>view:nth-of-type(1) {
color: #191F25; color: #191F25;
} }
.lableTreeHeader>view:nth-of-type(2) { .lableTreeHeader>view:nth-of-type(2) {
color: #3296FA; color: #3296FA;
text-align: right text-align: right
} }
.lableTreeModal{
.lableTreeModal {
width: 100%; width: 100%;
padding-right: 32rpx; padding-right: 32rpx;
box-sizing: border-box; box-sizing: border-box;
} }
/* tree样式 */ /* tree样式 */
.treeUl { .treeUl {
position: relative; position: relative;
padding-left: 32rpx; padding-left: 32rpx;
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
} }
.treeLi { .treeLi {
display: block; display: block;
font-size: 28rpx; font-size: 28rpx;
line-height: 70rpx; line-height: 70rpx;
} }
.treeName { .treeName {
height: 70rpx; height: 70rpx;
font-size: 28rpx; font-size: 28rpx;
...@@ -63,63 +73,78 @@ ...@@ -63,63 +73,78 @@
width: 100%; width: 100%;
display: flex; display: flex;
} }
.labelIsShow { .labelIsShow {
width: 24rpx; width: 24rpx;
margin-right: 24rpx; margin-right: 24rpx;
} }
.treeLabel { .treeLabel {
flex: 1; flex: 1;
display: flex; display: flex;
padding-right: 32rpx; padding-right: 32rpx;
box-sizing: border-box; box-sizing: border-box;
} }
.treeLabel > view:nth-of-type(1) {
.treeLabel>view:nth-of-type(1) {
flex: 1; flex: 1;
} }
.lableTreeChecked { .lableTreeChecked {
background: rgba(25,31,37,0.05); background: rgba(25, 31, 37, 0.05);
border-radius: 4rpx; border-radius: 4rpx;
} }
/* icon */ /* icon */
.labelIsShow .iconsanjiao{
.labelIsShow .iconsanjiao {
font-size: 20rpx; font-size: 20rpx;
color: #D8D8D8; color: #D8D8D8;
} }
.labelIsShow .iconsanjiao1{
.labelIsShow .iconsanjiao1 {
font-size: 20rpx; font-size: 20rpx;
color: #D8D8D8; color: #D8D8D8;
} }
.labelIsShow .iconxuanzhong1{
.labelIsShow .iconxuanzhong1 {
font-size: 32rpx; font-size: 32rpx;
color: #3296FA; color: #3296FA;
} }
.treeLabel .iconchengshi-{
.treeLabel .iconchengshi- {
font-size: 24rpx; font-size: 24rpx;
margin-right: 16rpx; margin-right: 16rpx;
color: #191F25; color: #191F25;
} }
.treeLabel .iconjiangzhu1{
.treeLabel .iconjiangzhu1 {
font-size: 24rpx; font-size: 24rpx;
margin-right: 16rpx; margin-right: 16rpx;
color: #191F25; color: #191F25;
} }
.treeLabel .iconlouceng-{
.treeLabel .iconlouceng- {
font-size: 24rpx; font-size: 24rpx;
margin-right: 16rpx; margin-right: 16rpx;
color: #191F25; color: #191F25;
margin-left: 8rpx; margin-left: 8rpx;
} }
.treeLabel .iconjianzhu1 { .treeLabel .iconjianzhu1 {
font-size: 24rpx; font-size: 24rpx;
margin-right: 16rpx; margin-right: 16rpx;
color: #191F25; color: #191F25;
} }
.labelIsShow{
.labelIsShow {
padding-left: 4rpx; padding-left: 4rpx;
} }
.cancelSelectAre{
.cancelSelectAre {
font-size: 32rpx; font-size: 32rpx;
} }
.sureSelectAre{
.sureSelectAre {
font-size: 32rpx; font-size: 32rpx;
} }
\ No newline at end of file
...@@ -37,4 +37,5 @@ ...@@ -37,4 +37,5 @@
top: 16rpx; top: 16rpx;
line-height: 48rpx; line-height: 48rpx;
overflow: hidden; overflow: hidden;
font-size: 24rpx;
} }
\ No newline at end of file
@import "../../assests/font/iconfont.acss";
.toast { .toast {
width: 188rpx; width: 188rpx;
height: 60rpx; height: 60rpx;
...@@ -10,6 +9,7 @@ ...@@ -10,6 +9,7 @@
position: fixed; position: fixed;
top: 400rpx; top: 400rpx;
left: 50%; left: 50%;
z-index: 102;
margin-left: -94rpx; margin-left: -94rpx;
vertical-align: top; vertical-align: top;
} }
......
@import "../../assests/font/iconfont.acss";
page { page {
background: #fff; background: #fff;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
...@@ -213,7 +212,6 @@ input { ...@@ -213,7 +212,6 @@ input {
right: 0; right: 0;
padding: 32rpx; padding: 32rpx;
background: #fff; background: #fff;
box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.04);
position: fixed; position: fixed;
bottom: 0; bottom: 0;
} }
...@@ -250,4 +248,12 @@ input { ...@@ -250,4 +248,12 @@ input {
vertical-align: top; vertical-align: top;
width: 100%; width: 100%;
height: 100%; height: 100%;
}
.iconicon_description1 {
color: rgba(10, 10, 10, 0.4)
}
.iconicon_repeat1 {
color: rgba(10, 10, 10, 0.4)
} }
\ No newline at end of file
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
{{comListData.repeatList[comListData.comSelectListId].text}}重复 {{comListData.repeatList[comListData.comSelectListId].text}}重复
</view> </view>
</view> </view>
<view class="icon iconfont iconicon_open " catchTap="showPopup" data-type='repeat' a:if="{{comListData.comSelectListId == 0}}"> <view class="icon iconfont iconicon_repeat1 " catchTap="showPopup" data-type='repeat' a:if="{{comListData.comSelectListId == 0}}">
</view> </view>
</view> </view>
</view> </view>
......
...@@ -14,7 +14,7 @@ create.Page({ ...@@ -14,7 +14,7 @@ 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: 'Webex meeting', imageUrl: '../../assests/Webex.png', meetingWayModel: { model: 'webex' } },
{ id: 1, text: 'Zoom Meeting', imageUrl: '../../assests/Zoom.png', meetingWayModel: { model: 'zoom' } }, { id: 1, text: 'Zoom Meeting', imageUrl: '../../assests/Zoom.png', meetingWayModel: { model: 'zoom' } },
{ id: 2, text: '钉钉', imageUrl: '../../assests/dingding.png', meetingWayModel: { model: 'dingtalk' } } { id: 2, text: '钉钉', imageUrl: '../../assests/dingding.png', meetingWayModel: { model: 'dingtalk' } }
], ],
...@@ -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().getDay()] week: this.data.weekList[new Date(this.$store.data.startTime.replace(/\//g, "-")).getDay()]
}) })
}, },
......
...@@ -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 = '动态180'; title = '动态181';
break; break;
case "1": case "1":
title = "日程"; title = "日程";
......
...@@ -49,12 +49,14 @@ page { ...@@ -49,12 +49,14 @@ page {
.compose-column .title { .compose-column .title {
color: rgba(27, 38, 61, 1); color: rgba(27, 38, 61, 1);
font-size: 32rpx; font-size: 32rpx;
font-family: PingFangSC-Medium;
} }
.compose-column .title>text { .compose-column .title>text {
color: rgba(25, 31, 37, 0.4); color: rgba(25, 31, 37, 0.4);
font-size: 28rpx; font-size: 28rpx;
margin-left: 32rpx; margin-left: 16rpx;
font-family: PingFangSC-Regular;
} }
.checkbox { .checkbox {
...@@ -576,4 +578,8 @@ input { ...@@ -576,4 +578,8 @@ input {
text-align: center; text-align: center;
background: url(../../assests/loading.gif) center / 100% 100%; background: url(../../assests/loading.gif) center / 100% 100%;
vertical-align: middle; vertical-align: middle;
}
.iconicon_repeat1 {
color: rgba(10, 10, 10, 0.4)
} }
\ No newline at end of file
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<view class="hasplace" onTap="nextPage" data-nextPage="location" a:else> <view class="hasplace" onTap="nextPage" data-nextPage="location" a:else>
{{$data.locationName}} {{$data.locationName}}
</view> </view>
<view class=" icon iconfont iconicon_close close" a:if="{{!!$data.locationName}}" data-close="location" catchTap="close"> <view class=" icon iconfont iconicon_close close" a:if="{{!!$data.locationName&&(currentPeople == organizer)}}" data-close="location" catchTap="close">
</view> </view>
</view> </view>
</view> </view>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
{{comListData.repeatList[comListData.comSelectListId].text}}重复 {{comListData.repeatList[comListData.comSelectListId].text}}重复
</view> </view>
</view> </view>
<view class="icon iconfont iconicon_open" catchTap="showPopup" data-type='repeat' a:if="{{comListData.comSelectListId == 0}}"> <view class="icon iconfont iconicon_repeat1" catchTap="showPopup" data-type='repeat' a:if="{{comListData.comSelectListId == 0}}">
</view> </view>
</view> </view>
</view> </view>
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<view class="hasWay" a:else catchTap="showPopup" data-type='meetingWayModel'> <view class="hasWay" a:else catchTap="showPopup" data-type='meetingWayModel'>
{{comListData.meetingWayList[comListData.meetingWayModelId].text}} {{comListData.meetingWayList[comListData.meetingWayModelId].text}}
</view> </view>
<view class=" icon iconfont iconicon_close close" a:if="{{comListData.meetingWayModelId !== null}}" data-close="meetingWayModel" catchTap="close"> <view class=" icon iconfont iconicon_close close" a:if="{{comListData.meetingWayModelId !== null&&(currentPeople == organizer)}}" data-close="meetingWayModel" catchTap="close">
</view> </view>
</view> </view>
</view> </view>
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
</view> </view>
<!-- 底部导航栏 --> <!-- 底部导航栏 -->
<view class="footNav"> <view class="footNav">
<view class="footNavTop" a:if="{{!isExpand}}"> <view class="footNavTop" a:if="{{!isExpand&&$data.participatorList.length>1}}">
<!-- 待定状态 --> <!-- 待定状态 -->
<view class="originStaus" a:if="{{confirmAttendance === -9}}"> <view class="originStaus" a:if="{{confirmAttendance === -9}}">
<view catchTap="participate"> <view catchTap="participate">
......
...@@ -30,7 +30,7 @@ create.Page({ ...@@ -30,7 +30,7 @@ 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: 'Webex meeting', imageUrl: '../../assests/Webex.png', meetingWayModel: { model: 'webex' } },
{ id: 1, text: 'Zoom Meeting', imageUrl: '../../assests/Zoom.png', meetingWayModel: { model: 'zoom' } }, { id: 1, text: 'Zoom Meeting', imageUrl: '../../assests/Zoom.png', meetingWayModel: { model: 'zoom' } },
{ id: 2, text: '钉钉', imageUrl: '../../assests/dingding.png', meetingWayModel: { model: 'dingtalk' } } { id: 2, text: '钉钉', imageUrl: '../../assests/dingding.png', meetingWayModel: { model: 'dingtalk' } }
], ],
...@@ -117,6 +117,10 @@ create.Page({ ...@@ -117,6 +117,10 @@ create.Page({
}, 100) }, 100)
if (this.store.data.isNeedReloadList) { if (this.store.data.isNeedReloadList) {
this.reload(this.data.scheduleItem.id); this.reload(this.data.scheduleItem.id);
this.setData({
'conToastData.showToast': true,
'conToastData.title': '保存成功',
})
} }
}, },
onLoad(event) { onLoad(event) {
...@@ -173,7 +177,7 @@ create.Page({ ...@@ -173,7 +177,7 @@ create.Page({
} }
} }
this.setData({ this.setData({
confirmAttendance: 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' ? 2 : (res.data.data.meetingWayModel.model === 'zoom' ? 1 : 0)),
// 'scheduleItem.id': res.data.data.id, // 'scheduleItem.id': res.data.data.id,
...@@ -390,7 +394,7 @@ create.Page({ ...@@ -390,7 +394,7 @@ create.Page({
} }
this.setData({ this.setData({
'comListData.repeatList': repeatList, 'comListData.repeatList': repeatList,
week: this.data.weekList[new Date().getDay()] week: this.data.weekList[new Date(this.$store.data.startTime.replace(/\//g, "-")).getDay()]
}) })
}, },
...@@ -784,6 +788,9 @@ create.Page({ ...@@ -784,6 +788,9 @@ create.Page({
this.$store.data.startTime = this.$store.data.originalData.startTime.replace(/'-'/g, '/') this.$store.data.startTime = this.$store.data.originalData.startTime.replace(/'-'/g, '/')
this.$store.data.endTime = this.$store.data.originalData.endTime.replace(/'-'/g, '/') this.$store.data.endTime = this.$store.data.originalData.endTime.replace(/'-'/g, '/')
this.update() this.update()
this.setData({
week: this.data.weekList[new Date(this.$store.data.originalData.startTime).getDay()],
})
}, },
// 重置地点 // 重置地点
reSetLocation() { reSetLocation() {
...@@ -989,6 +996,9 @@ create.Page({ ...@@ -989,6 +996,9 @@ create.Page({
this.$store.data.startTime = this.$store.data.originalData.startTime.replace(/'-'/g, '/') this.$store.data.startTime = this.$store.data.originalData.startTime.replace(/'-'/g, '/')
this.$store.data.endTime = this.$store.data.originalData.endTime.replace(/'-'/g, '/') this.$store.data.endTime = this.$store.data.originalData.endTime.replace(/'-'/g, '/')
this.update() this.update()
this.setData({
week: this.data.weekList[new Date(this.$store.data.originalData.startTime.replace(/-/g, "/")).getDay()],
})
}).then(res => { }).then(res => {
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, "-")
...@@ -1255,6 +1265,10 @@ create.Page({ ...@@ -1255,6 +1265,10 @@ create.Page({
console.log(this.store.data.isNeedReloadList) console.log(this.store.data.isNeedReloadList)
if (this.store.data.isNeedReloadList) { if (this.store.data.isNeedReloadList) {
this.reload(this.data.scheduleItem.id); this.reload(this.data.scheduleItem.id);
this.setData({
'conToastData.showToast': true,
'conToastData.title': '编辑成功',
})
} }
}, 500) }, 500)
} }
...@@ -1422,6 +1436,10 @@ create.Page({ ...@@ -1422,6 +1436,10 @@ create.Page({
if (res.data.code == 0) { if (res.data.code == 0) {
this.reload(this.data.scheduleItem.id); this.reload(this.data.scheduleItem.id);
this.closePop(); this.closePop();
this.setData({
'conToastData.showToast': true,
'conToastData.title': '保存成功',
})
//重置 //重置
this.store.data.currentTask = {}; this.store.data.currentTask = {};
this.update(); this.update();
......
@import "../../assests/font/iconfont.acss";
page { page {
background: #fff; background: #fff;
} }
...@@ -49,7 +48,7 @@ input { ...@@ -49,7 +48,7 @@ input {
.contactImage { .contactImage {
position: relative; position: relative;
color: #fff; color: #fff;
font-size: 28rpx; font-size: 30rpx;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
text-align: center; text-align: center;
......
@import "../../assests/font/iconfont.acss";
page { page {
background: #f6f6f6; background: #fff;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 34rpx; font-size: 34rpx;
color: #191F25; color: #191F25;
......
@import "../../assests/font/iconfont.acss";
page { page {
background: #f6f6f6; background: #f6f6f6;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
......
class Store { class Store {
data = { data = {
locationName: '', locationName: '',
participatorList: [],
participatorUserId: [], // 参会人的userId participatorUserId: [], // 参会人的userId
roomId: '', roomId: '',
startTime: '', startTime: '',
......
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