Commit ece1c00f by liang ce

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

# Conflicts:
#	PageComponents/scheduleList/scheduleList.axml
#	PageComponents/scheduleList/scheduleList.js
parents 5f231fd0 2e078179
@import "../../template/affairBlank/index.acss"; @import "../../template/affairBlank/index.acss";
@import "../../template/loading/loading.acss";
.dynamicBox { .dynamicBox {
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
......
<import src="../../template/affairBlank/index.axml"/> <import src="../../template/affairBlank/index.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}}" 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">
<view class="dynamicDetails"> <view class="dynamicDetails">
<view class="meetingtitle"> <view class="meetingtitle" catchTap="nextPage" data-item="{{item}}">
<view> <view>
{{item.title}} {{item.title}}
</view> </view>
...@@ -15,7 +16,7 @@ ...@@ -15,7 +16,7 @@
</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">
<view class="userDynamic"> <view class="userDynamic">
<view class="dynamicTime"> <view class="dynamicTime" catchTap="nextPage" data-item="{{dynamicItem}}">
<text>{{dynamicItem.content}}</text> <text>{{dynamicItem.content}}</text>
<text>{{dynamicItem.createTime}}</text> <text>{{dynamicItem.createTime}}</text>
</view> </view>
...@@ -36,7 +37,6 @@ ...@@ -36,7 +37,6 @@
<template is="affair-placeholder" data="{{title: '展示安排的所有动态', tip: '实时同步所有事件的最新动态,便于随时处理工作内容'}}"/> <template is="affair-placeholder" data="{{title: '展示安排的所有动态', tip: '实时同步所有事件的最新动态,便于随时处理工作内容'}}"/>
</view> </view>
</block> </block>
<view class="noDate" a:else> <template is="loading" a:else>
正在加载 </template>
</view>
</view> </view>
\ No newline at end of file
...@@ -11,12 +11,12 @@ create.Component({ ...@@ -11,12 +11,12 @@ create.Component({
data: { data: {
traceTime: '1970-03-01 00:00:00', traceTime: '1970-03-01 00:00:00',
isStopBodyScroll: false, isStopBodyScroll: false,
loading: true,
dynamicList: [], dynamicList: [],
current: 1, current: 1,
pages: 1, pages: 1,
size: 10 size: 10,
noData: false,
loading: true
}, },
props: {}, props: {},
didMount() { didMount() {
...@@ -41,11 +41,12 @@ create.Component({ ...@@ -41,11 +41,12 @@ create.Component({
current, current,
size: 10 size: 10
}).then(res => { }).then(res => {
if (!res.data.data) { if (!res.data.data) {
this.setData({
loading: false
})
return; return;
} }
// 第一层日程数据处理 // 第一层日程数据处理
const dynamicList = res.data.data.records.map((item, index) => { const dynamicList = res.data.data.records.map((item, index) => {
// 第二层日程下的动态数据处理 // 第二层日程下的动态数据处理
...@@ -101,9 +102,9 @@ create.Component({ ...@@ -101,9 +102,9 @@ create.Component({
}); });
} }
this.setData({ this.setData({
loading: false,
current: res.data.data.current, current: res.data.data.current,
pages: res.data.data.pages, pages: res.data.data.pages,
loading: false
}); });
}); });
}, },
...@@ -167,7 +168,11 @@ create.Component({ ...@@ -167,7 +168,11 @@ create.Component({
}); });
} }
}); });
} },
nextPage(event) {
console.log(event.currentTarget.dataset.item)
dd.navigateTo({ url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify(event.currentTarget.dataset.item)}` });
},
} }
}); });
@import "../../template/loading/loading.acss";
.index { .index {
background: #FFFFFF; background: #FFFFFF;
} }
......
<view class="scheduleHeader"> <import src="../../template/loading/loading.axml"/>
<view>2020年3月</view> <view a:if="{{!loading}}">
<view onTap="changesidebar" class="headerIcon"> <view class="scheduleHeader">
<text class="iconfont iconicon_app1"> <view>2020年3月</view>
</text> <view onTap="changesidebar" class="headerIcon">
<view> <text class="iconfont iconicon_app1">
</text>
<view>
</view>
</view> </view>
</view> </view>
</view> <scroll-view class="indexScrollView" scroll-y="{{true}}" style="background: #FFFFFF" lower-threshold="1000" onScrollToLower="lower" scroll-into-view="{{todayStr}}">
<scroll-view class="indexScrollView" scroll-y="{{true}}" style="background: #FFFFFF" lower-threshold="1000" onScrollToLower="lower" 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="{{scheduleList}}"> <block a:if="{{item.type == 'year'}}">
<block a:if="{{item.type == 'year'}}"> <view class="month">
<view class="month">
{{item.value}}年 {{item.value}}年
</view> </view>
</block> </block>
<block a:elif="{{item.type == 'month'}}"> <block a:elif="{{item.type == 'month'}}">
<view class="month"> <view class="month">
{{item.value}}月 {{item.value}}月
</view> </view>
</block> </block>
<block a:elif="{{item.type == 'week'}}"> <block a:elif="{{item.type == 'week'}}">
<view class="week" id="{{item.dayStr}}"> <view class="week" id="{{item.dayStr}}">
<view class="manyWeeks"> <view class="manyWeeks">
{{item.value}} {{item.value}}
</view> </view>
</view>
</block>
<block a:elif="{{item.type == 'day'}}">
<view class="date">
<view class="dateTime {{item.isThisDay}}">
<view>
{{item.value.week}}
</view> </view>
<text>{{item.value.day}}</text> </block>
</view> <block a:elif="{{item.type == 'day'}}">
<view class="dataSchedule"> <view class="date">
<view a:for="{{item.value.value}}" a:for-item="item2" data-item="{{item2}}" class="{{ item2.isBeOverdue ? 'overdue' : item2.confirmAttendance === 0 ? 'cancel' : '' }}" onTap="nextDetail"> <view class="dateTime {{item.isThisDay}}">
<view class="dataScheduleName"> <view>
<text>{{item2.title}}{{item2.isDaySpan ? `(第${item2.isFewDays}天,共${item2.duration}天)` : '' }}</text> {{item.value.week}}
</view>
<text>{{item.value.day}}</text>
</view> </view>
<view class="dataScheduleTime"> <view class="dataSchedule">
<text a:if="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '0'}}">{{item2.thisDayStartTime}}</text> <view a:for="{{item.value.value}}" a:for-item="item2" data-item="{{item2}}" class="{{ item2.isBeOverdue ? 'overdue' : item2.confirmAttendance === 0 ? 'cancel' : '' }}" onTap="nextDetail">
<text a:elif="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '1'}}">全天</text> <view class="dataScheduleName">
<text a:elif="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '2'}}">直到{{item2.thisDayEndTime}}</text> <text>{{item2.title}}{{item2.isDaySpan ? `(第${item2.isFewDays}天,共${item2.duration}天)` : '' }}</text>
<text a:else>{{item2.thisDayStartTime}} - {{item2.thisDayEndTime}}</text> </view>
<view class="dataScheduleTime">
<text a:if="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '0'}}">{{item2.thisDayStartTime}}</text>
<text a:elif="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '1'}}">全天</text>
<text a:elif="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '2'}}">直到{{item2.thisDayEndTime}}</text>
<text a:else>{{item2.thisDayStartTime}} - {{item2.thisDayEndTime}}</text>
</view>
</view>
</view> </view>
</view> </view>
</view> </block>
</view> <block a:elif="{{item.type == 'today'}}">
</block> <view class="date" id="{{item.value.dateStr}}">
<block a:elif="{{item.type == 'today'}}"> <view class="dateTime {{item.isThisDay}}">
<view class="date" id="{{item.value.dateStr}}"> <view>
<view class="dateTime {{item.isThisDay}}">
<view>
今天 今天
</view> </view>
<text>{{item.value.day}}</text> <text>{{item.value.day}}</text>
</view>
<view class="dataSchedule">
<!--<view class="thisDayLine thisDayHavaMeeting" style="margin-bottom: 7.5rpx"></view> -->
<view a:for="{{item.value.value}}" a:for-item="item2" data-item="{{item2}}" class="{{ item2.isBeOverdue ? 'overdue' : item2.confirmAttendance === 0 ? 'cancel' : '' }}" onTap="nextDetail">
<view class="dataScheduleName">
<text>{{item2.title}}{{item2.isDaySpan ? `(第${item2.isFewDays}天,共${item2.duration}天)` : '' }}</text>
</view> </view>
<view class="dataScheduleTime"> <view class="dataSchedule">
<text a:if="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '0'}}">{{item2.thisDayStartTime}}</text> <!--<view class="thisDayLine thisDayHavaMeeting" style="margin-bottom: 7.5rpx"></view> -->
<text a:elif="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '1'}}">全天</text> <view a:for="{{item.value.value}}" a:for-item="item2" data-item="{{item2}}" class="{{ item2.isBeOverdue ? 'overdue' : item2.confirmAttendance === 0 ? 'cancel' : '' }}" onTap="nextDetail">
<text a:elif="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '2'}}">直到{{item2.thisDayEndTime}}</text> <view class="dataScheduleName">
<text a:else>{{item2.thisDayStartTime}} - {{item2.thisDayEndTime}}</text> <text>{{item2.title}}{{item2.isDaySpan ? `(第${item2.isFewDays}天,共${item2.duration}天)` : '' }}</text>
</view>
<view class="dataScheduleTime">
<text a:if="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '0'}}">{{item2.thisDayStartTime}}</text>
<text a:elif="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '1'}}">全天</text>
<text a:elif="{{item2.isDaySpan && item2.isfirstDayOrEndDay === '2'}}">直到{{item2.thisDayEndTime}}</text>
<text a:else>{{item2.thisDayStartTime}} - {{item2.thisDayEndTime}}</text>
</view>
</view>
</view> </view>
</view> </view>
</view> </block>
</view> <block a:elif="{{item.type == 'thisDay'}}">
</block> <view class="date" id="{{item.value.dateStr}}">
<block a:elif="{{item.type == 'thisDay'}}"> <view class="dateTime thisDay">
<view class="date" id="{{item.value.dateStr}}"> <view>
<view class="dateTime thisDay">
<view>
{{item.value.week}} {{item.value.week}}
</view>
<text>{{item.value.day}}</text>
</view>
<view class="NoSchedule">
<view>
<text>暂无日程安排,</text>
<text onTap="nextPage">创建日程</text>
</view>
<!--<view class="thisDayLine"></view> -->
</view>
</view> </view>
<text>{{item.value.day}}</text> </block>
</block>
</block>
</scroll-view>
<popup show="{{show}}" onClose="closePop" position="left">
<view class="sidebarContent" catchTap="preventSort">
<view class="sidebarLogo">
<view>
<image a:if="{{userMsg.headUrl}}" mode="scaleToFill" src="{{userMsg.headUrl}}" />
<text a:else>{{ userMsg.userName.slice(-1) }}</text>
</view> </view>
<view class="NoSchedule"> <view>
<view> {{ userMsg.userName }}
<text>暂无日程安排,</text>
<text onTap="nextPage">创建日程</text>
</view>
<!--<view class="thisDayLine"></view> -->
</view> </view>
</view> </view>
</block> <view class="hasAssociated">
</block> <view class="associated">
<!--</block> -->
</scroll-view>
<popup show="{{show}}" onClose="closePop" position="left">
<view class="sidebarContent" catchTap="preventSort">
<view class="sidebarLogo">
<view>
<image a:if="{{userMsg.headUrl}}" mode="scaleToFill" src="{{userMsg.headUrl}}" />
<text a:else>{{ userMsg.userName.slice(-1) }}</text>
</view>
<view>
{{ userMsg.userName }}
</view>
</view>
<view class="hasAssociated">
<view class="associated">
已关联应用 已关联应用
</view>
<view class="applicationList">
<view class="applicationLogo">
</view> </view>
<view class="applicationMsg"> <view class="applicationList">
<view> <view class="applicationLogo">
</view>
<view class="applicationMsg">
<view> <view>
<view>
Outlook日历 Outlook日历
</view> </view>
<view> <view>
支持会议日程双向同步,实时同步日程信息等 支持会议日程双向同步,实时同步日程信息等
</view>
</view>
<view class="operateIcon">
<text class="iconfont iconright"></text>
</view> </view>
</view>
<view class="operateIcon">
<text class="iconfont iconright"></text>
</view> </view>
</view> </view>
</view> </view>
</view> <view class="unAssociated">
<view class="unAssociated"> <view class="associated">
<view class="associated">
可关联应用 可关联应用
</view>
<view class="applicationList">
<view class="applicationLogo">
</view> </view>
<view class="applicationMsg"> <view class="applicationList">
<view> <view class="applicationLogo">
</view>
<view class="applicationMsg">
<view> <view>
<view>
Outlook日历 Outlook日历
</view> </view>
<view> <view>
支持会议日程双向同步,实时同步日程信息等 支持会议日程双向同步,实时同步日程信息等
</view>
</view>
<view class="operateIcon">
<text class="iconfont iconright"></text>
</view> </view>
</view>
<view class="operateIcon">
<text class="iconfont iconright"></text>
</view> </view>
</view> </view>
</view> <view class="applicationList">
<view class="applicationList"> <view class="applicationLogo">
<view class="applicationLogo"> </view>
</view> <view class="applicationMsg">
<view class="applicationMsg">
<view>
<view> <view>
<view>
Outlook日历 Outlook日历
</view> </view>
<view> <view>
支持会议日程双向同步,实时同步日程信息等 支持会议日程双向同步,实时同步日程信息等
</view>
</view>
<view class="operateIcon">
<text class="iconfont iconright"></text>
</view> </view>
</view> </view>
<view class="operateIcon">
<text class="iconfont iconright"></text>
</view>
</view>
</view>
<view class="applicationList">
<view class="applicationLogo">
</view> </view>
<view class="applicationMsg"> <view class="applicationList">
<view> <view class="applicationLogo">
</view>
<view class="applicationMsg">
<view> <view>
<view>
Outlook日历 Outlook日历
</view> </view>
<view> <view>
支持会议日程双向同步,实时同步日程信息等 支持会议日程双向同步,实时同步日程信息等
</view>
</view>
<view class="operateIcon">
<text class="iconfont iconright"></text>
</view> </view>
</view>
<view class="operateIcon">
<text class="iconfont iconright"></text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </popup>
</popup> </view>
\ No newline at end of file <template is="loading" a:else>
</template>
\ No newline at end of file
...@@ -23,7 +23,8 @@ create.Component({ ...@@ -23,7 +23,8 @@ create.Component({
show: false, show: false,
scrollHeight: "", scrollHeight: "",
timeStamp: "", timeStamp: "",
userMsg: {} userMsg: {},
loading: true
}, },
props: {}, props: {},
didMount() { didMount() {
...@@ -60,13 +61,10 @@ create.Component({ ...@@ -60,13 +61,10 @@ create.Component({
}, },
() => { () => {
let now = new Date(); let now = new Date();
let year = now.getFullYear(); let year = now.getUTCFullYear();
let scheduleList = []; let scheduleList = [];
for (let i = -1; i <= year - 2020; i++) { for (let i = -1; i <= year - 2020; i++) {
scheduleList.push.apply( scheduleList.push(that.returnScheduleList(2020 + i));
scheduleList,
that.returnScheduleList(2020 + i)
);
} }
let scheduleList2 = scheduleList; let scheduleList2 = scheduleList;
// 第一次加载 // 第一次加载
...@@ -79,6 +77,9 @@ create.Component({ ...@@ -79,6 +77,9 @@ create.Component({
}); });
} }
); );
that.setData({
loading: false
});
}); });
}, 1000), }, 1000),
nextDetail: throttle(function(e) { nextDetail: throttle(function(e) {
...@@ -138,7 +139,7 @@ create.Component({ ...@@ -138,7 +139,7 @@ create.Component({
parseInt(initialTime[1]) - 1, parseInt(initialTime[1]) - 1,
parseInt(initialTime[2]) parseInt(initialTime[2])
); );
let initialTimeDateyear = initialTimeDate.getFullYear(); let initialTimeDateyear = new Date(initialTimeDate).getUTCFullYear();
let initialTimeDatemonth = let initialTimeDatemonth =
initialTimeDate.getMonth() + 1 < 10 initialTimeDate.getMonth() + 1 < 10
? "0" + (initialTimeDate.getMonth() + 1) ? "0" + (initialTimeDate.getMonth() + 1)
...@@ -160,24 +161,24 @@ create.Component({ ...@@ -160,24 +161,24 @@ create.Component({
item.excludePlanDates.split(",") item.excludePlanDates.split(",")
); );
rule.all().map(item2 => { rule.all().map(item2 => {
let excludeDate = getFormatDate(item2, "yyyyMMdd", "-");
let time = new Date(item2); let time = new Date(item2);
time.setHours(time.getHours() - 8); time.setHours(time.getHours() - 8);
let startTime =
getFormatDate(time, "yyyyMMdd") +
" " +
item.recurrenceModel.startTime;
let endTime = new Date(
getFormatDate(time, "yyyyMMdd") +
" " +
item.recurrenceModel.startTime
);
let excludeDate = getFormatDate(time, "yyyyMMdd", "-");
let hasExclude = let hasExclude =
excludeDateList.scheduleList.indexOf(excludeDate) === -1; excludeDateList.scheduleList.indexOf(excludeDate) === -1;
if ( if (
new Date(time).getTime() < excludeDateList.templateList && new Date(time).getTime() < excludeDateList.templateList &&
hasExclude hasExclude
) { ) {
let startTime =
getFormatDate(time, "yyyyMMdd") +
" " +
item.recurrenceModel.startTime;
let endTime = new Date(
getFormatDate(time, "yyyyMMdd") +
" " +
item.recurrenceModel.startTime
);
endTime.setMinutes( endTime.setMinutes(
endTime.getMinutes() + item.recurrenceModel.duration endTime.getMinutes() + item.recurrenceModel.duration
); );
...@@ -189,7 +190,7 @@ create.Component({ ...@@ -189,7 +190,7 @@ create.Component({
scheduleTemplateId: item.id, scheduleTemplateId: item.id,
startTime: startTime, startTime: startTime,
title: item.title, title: item.title,
planDate: getFormatDate(time, "yyyyMMdd", "-") planDate: getFormatDate(startTime, "yyyyMMdd", "-")
} }
); );
} }
...@@ -211,14 +212,14 @@ create.Component({ ...@@ -211,14 +212,14 @@ create.Component({
endTime.getMinutes() + item.recurrenceModel.duration endTime.getMinutes() + item.recurrenceModel.duration
); );
scheduleMap.set( scheduleMap.set(
`${new Date(item2).toLocaleDateString()}/${item.id}`, `${new Date(time).toLocaleDateString()}/${item.id}`,
{ {
confirmAttendance: item.confirmAttendance, confirmAttendance: item.confirmAttendance,
endTime: getFormatDate(endTime, "yyyyMMdd HH:mm:ss"), endTime: getFormatDate(endTime, "yyyyMMdd HH:mm:ss"),
scheduleTemplateId: item.id, scheduleTemplateId: item.id,
startTime: startTime, startTime: startTime,
title: item.title, title: item.title,
planDate: getFormatDate(item2, "yyyyMMdd", "-") planDate: getFormatDate(time, "yyyyMMdd", "-")
} }
); );
}); });
...@@ -326,7 +327,7 @@ create.Component({ ...@@ -326,7 +327,7 @@ create.Component({
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.getUTCFullYear();
let rangeMonth1 = keyDate.getMonth(); let rangeMonth1 = keyDate.getMonth();
let rangeDay1 = keyDate.getDate(); let rangeDay1 = keyDate.getDate();
let rangeDate = new Date(rangeYear1, rangeMonth1, rangeDay1 + 6); let rangeDate = new Date(rangeYear1, rangeMonth1, rangeDay1 + 6);
......
...@@ -15,11 +15,19 @@ export default function http(data) { ...@@ -15,11 +15,19 @@ export default function http(data) {
success: function (res) { success: function (res) {
if (res.data.code == 0) { if (res.data.code == 0) {
resolve(res); resolve(res);
} else {
dd.alert({
content: '网络异常',
buttonText: '确定'
})
} }
}, },
fail: function (res) { fail: function (res) {
dd.alert({
content: '网络异常',
buttonText: '确定'
})
rejects(res) rejects(res)
console.log(res)
} }
}) })
}) })
......
assests/all.png

888 Bytes | W: | H:

assests/all.png

962 Bytes | W: | H:

assests/all.png
assests/all.png
assests/all.png
assests/all.png
  • 2-up
  • Swipe
  • Onion skin
assests/docx.png

1.25 KB | W: | H:

assests/docx.png

939 Bytes | W: | H:

assests/docx.png
assests/docx.png
assests/docx.png
assests/docx.png
  • 2-up
  • Swipe
  • Onion skin
assests/image.png

1.25 KB | W: | H:

assests/image.png

1.58 KB | W: | H:

assests/image.png
assests/image.png
assests/image.png
assests/image.png
  • 2-up
  • Swipe
  • Onion skin
assests/mp4.png

974 Bytes | W: | H:

assests/mp4.png

902 Bytes | W: | H:

assests/mp4.png
assests/mp4.png
assests/mp4.png
assests/mp4.png
  • 2-up
  • Swipe
  • Onion skin
assests/pdf.png

1.52 KB | W: | H:

assests/pdf.png

1.95 KB | W: | H:

assests/pdf.png
assests/pdf.png
assests/pdf.png
assests/pdf.png
  • 2-up
  • Swipe
  • Onion skin
assests/xlsx.png

1.52 KB | W: | H:

assests/xlsx.png

982 Bytes | W: | H:

assests/xlsx.png
assests/xlsx.png
assests/xlsx.png
assests/xlsx.png
  • 2-up
  • Swipe
  • Onion skin
assests/zip.png

715 Bytes | W: | H:

assests/zip.png

1 KB | W: | H:

assests/zip.png
assests/zip.png
assests/zip.png
assests/zip.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
} }
.task-list { .task-list {
border: 1rpx solid rgba(245, 246, 247, 1); border: 1rpx solid rgba(10, 10, 10, 0.14);
border-radius: 16rpx; border-radius: 16rpx;
border-radius: 16rpx; border-radius: 16rpx;
padding: 24rpx 22rpx 0 22rpx; padding: 24rpx 22rpx 0 22rpx;
...@@ -107,41 +107,29 @@ ...@@ -107,41 +107,29 @@
} }
.pdf { .pdf {
background: url(../../assests/pdf.png) center /100% 100%; background: url(../../assests/pdf.png) center /100% 100% !important;
} }
.png, .jpg, .svg, .jpeg { .png, .jpg, .svg, .jpeg {
background: url(../../assests/image.png) center /100% 100%; background: url(../../assests/image.png) center /100% 100% !important;
} }
.docx { .docx, .txt, .doc, .pages, .wps {
background: url(../../assests/docx.png) center /100% 100%; background: url(../../assests/docx.png) center /100% 100% !important;
} }
.mov { .mov, .mp4 {
background: url(../../assests/mp4.png) center /100% 100%; background: url(../../assests/mp4.png) center /100% 100% !important;
} }
.mp4 { .pptx, .ppt, .key {
background: url(../../assests/mp4.png) center /100% 100%; background: url(../../assests/ppt.png) center /100% 100% !important;
} }
.ppt { .xlsx, .numbers {
background: url(../../assests/ppt.png) center /100% 100%; background: url(../../assests/xlsx.png) center /100% 100% !important;
} }
.pptx { .zip, .rar {
background: url(../../assests/ppt.png) center /100% 100%; background: url(../../assests/zip.png) center /100% 100% !important;
}
.pdf {
background: url(../../assests/pdf.png) center /100% 100%;
}
.xlsx {
background: url(../../assests/xlsx.png) center /100% 100%;
}
.zip {
background: url(../../assests/zip.png) center /100% 100%;
} }
\ No newline at end of file
@import "../../template/avater/index.acss"; @import "../../template/avater/index.acss";
@import "../../template/checkbox/index.acss"; @import "../../template/checkbox/index.acss";
.task-list { .task-list {
border: 1rpx solid rgba(245, 246, 247, 1); border: 1rpx solid rgba(10, 10, 10, 0.14);
border-radius: 16rpx; border-radius: 16rpx;
border-radius: 16rpx; border-radius: 16rpx;
padding: 14rpx 16rpx 0; padding: 14rpx 16rpx 0;
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
.task-list>.task-box { .task-list>.task-box {
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
border-radius: 8rpx; border-radius: 8rpx;
box-shadow: 0 0 8rpx 0rpx rgba(0, 0, 0, 0.04); box-shadow: 0 0 8rpx 0rpx rgba(0, 0, 0, 0.14);
padding: 0 16rpx; padding: 0 16rpx;
height: 80rpx; height: 80rpx;
color: rgba(27, 38, 61, 1); color: rgba(27, 38, 61, 1);
......
...@@ -9,7 +9,7 @@ page { ...@@ -9,7 +9,7 @@ page {
.icon { .icon {
vertical-align: middle; vertical-align: middle;
color: #0a0a0a; color: #0a0a0a;
font-size: 40rpx; font-size: 36rpx;
line-height: 50rpx; line-height: 50rpx;
} }
...@@ -43,9 +43,8 @@ input { ...@@ -43,9 +43,8 @@ input {
.remark>input { .remark>input {
padding-left: 0; padding-left: 0;
width: 100%; width: 100%;
opacity: 0.72;
font-size: 28rpx; font-size: 28rpx;
color: rgba(3, 3, 3, 1) color: rgba(10, 10, 10, 0.4)
} }
.placeholder { .placeholder {
...@@ -94,6 +93,11 @@ input { ...@@ -94,6 +93,11 @@ input {
color: #9599A2; color: #9599A2;
} }
.close {
font-size: 32rpx;
color: rgba(10, 10, 10, 0.4)
}
.repeatModal { .repeatModal {
color: #191F25; color: #191F25;
margin-top: 24rpx; margin-top: 24rpx;
...@@ -196,8 +200,8 @@ input { ...@@ -196,8 +200,8 @@ input {
text-align: center; text-align: center;
line-height: 78rpx; line-height: 78rpx;
font-size: 50rpx; font-size: 50rpx;
height: 80rpx; height: 78rpx;
border: 1rpx solid #F6F6F6; border: 1rpx solid rgba(10, 10, 10, 0.14);
border-radius: 50%; border-radius: 50%;
color: #BBBEC5; color: #BBBEC5;
} }
......
<!--<<<<<<< Updated upstream<view a:if="{{tabBarIndex === '0'}}">
=======<view style="position:absolute"></view> -->
<view a:if="{{$data.tabBarIndex === '0'}}"> <view a:if="{{$data.tabBarIndex === '0'}}">
<!-- >>>>>>> Stashed changes -->
<my-dynamic> <my-dynamic>
</my-dynamic> </my-dynamic>
</view> </view>
......
...@@ -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 = '动态177'; title = '动态180';
break; break;
case "1": case "1":
title = "日程"; title = "日程";
......
...@@ -143,7 +143,7 @@ page { ...@@ -143,7 +143,7 @@ page {
.icon { .icon {
vertical-align: middle; vertical-align: middle;
color: #0a0a0a; color: #0a0a0a;
font-size: 40rpx; font-size: 36rpx;
line-height: 50rpx; line-height: 50rpx;
line-height: 50rpx; line-height: 50rpx;
} }
...@@ -184,9 +184,8 @@ input { ...@@ -184,9 +184,8 @@ input {
.remark>input { .remark>input {
padding-left: 0; padding-left: 0;
width: 100%; width: 100%;
opacity: 0.72;
font-size: 28rpx; font-size: 28rpx;
color: rgba(3, 3, 3, 1) color: rgba(10, 10, 10, 0.4)
} }
.placeholder { .placeholder {
...@@ -239,6 +238,11 @@ input { ...@@ -239,6 +238,11 @@ input {
color: #9599A2; color: #9599A2;
} }
.close {
font-size: 32rpx;
color: rgba(10, 10, 10, 0.4)
}
.repeatModal { .repeatModal {
color: #191F25; color: #191F25;
margin-top: 24rpx; margin-top: 24rpx;
...@@ -341,8 +345,8 @@ input { ...@@ -341,8 +345,8 @@ input {
text-align: center; text-align: center;
line-height: 78rpx; line-height: 78rpx;
font-size: 50rpx; font-size: 50rpx;
height: 80rpx; height: 78rpx;
border: 1rpx solid #F6F6F6; border: 1rpx solid rgba(10, 10, 10, 0.14);
border-radius: 50%; border-radius: 50%;
color: #BBBEC5; color: #BBBEC5;
} }
...@@ -385,7 +389,7 @@ input { ...@@ -385,7 +389,7 @@ input {
.originStaus>view>.iconfont { .originStaus>view>.iconfont {
margin-right: 12rpx; margin-right: 12rpx;
color: #A9ACB4; color: rgba(10, 10, 10, 0.4);
vertical-align: middle; vertical-align: middle;
} }
...@@ -456,6 +460,7 @@ input { ...@@ -456,6 +460,7 @@ input {
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
width: 100%; width: 100%;
color: rgba(10, 10, 10, 0.4);
} }
.footerBottom>view { .footerBottom>view {
...@@ -548,4 +553,27 @@ input { ...@@ -548,4 +553,27 @@ input {
vertical-align: top; vertical-align: top;
width: 100%; width: 100%;
height: 100%; height: 100%;
}
.loading {
width: 100vw;
height: 100%;
background: #fff;
position: fixed;
top: 0;
left: 0;
right: 0;
}
.loading .image {
width: 56rpx;
height: 56rpx;
position: absolute;
left: 50%;
top: 50%;
margin-left: -28rpx;
margin-top: -28rpx;
text-align: center;
background: url(../../assests/loading.gif) center / 100% 100%;
vertical-align: middle;
} }
\ No newline at end of file
...@@ -241,4 +241,9 @@ ...@@ -241,4 +241,9 @@
<task-panel a:if="{{pop.type === 'updateTask'}}" action='update' onDeleteTask="deleteTask"/> <task-panel a:if="{{pop.type === 'updateTask'}}" action='update' onDeleteTask="deleteTask"/>
</popup> </popup>
</view> </view>
</block> </view>
\ No newline at end of file </block>
<view class="loading" a:if="{{loading || !getData}}">
<view class="image">
</view>
</view>
\ No newline at end of file
...@@ -19,6 +19,7 @@ create.Page({ ...@@ -19,6 +19,7 @@ create.Page({
title: '', title: '',
type: '' type: ''
}, },
loading: false,
// 传给组件list 的所有数据 comListData // 传给组件list 的所有数据 comListData
comListData: { comListData: {
repeatList: [ repeatList: [
...@@ -119,13 +120,14 @@ create.Page({ ...@@ -119,13 +120,14 @@ create.Page({
} }
}, },
onLoad(event) { onLoad(event) {
this.reset() this.reset()
dd.setNavigationBar({ dd.setNavigationBar({
title: `会议详情` title: `会议详情`
}) })
this.setData({ this.setData({
placeholder: `${getApp().globalData.name}创建的会议`, placeholder: `${getApp().globalData.name}创建的会议`,
scheduleItem: JSON.parse(event.scheduleItem), scheduleItem: JSON.parse(event.scheduleItem) || JSON.parse(Object.keys(event)[0].split('=')[1]),
currentPeople: getApp().globalData.userid currentPeople: getApp().globalData.userid
}) })
this.getDetail() this.getDetail()
...@@ -136,16 +138,15 @@ create.Page({ ...@@ -136,16 +138,15 @@ create.Page({
_that.setData({ _that.setData({
'scheduleItem.scheduleTemplateId': scheduleItem 'scheduleItem.scheduleTemplateId': scheduleItem
}) })
console.log(scheduleItem);
} }
}) })
}, },
// 获取详情 // 获取详情
getDetail() { getDetail() {
let data = { let data = {
id: this.data.scheduleItem.id, id: !!this.data.scheduleItem.scheduleId ? this.data.scheduleItem.scheduleId : this.data.scheduleItem.id,
scheduleTemplateId: this.data.scheduleItem.scheduleTemplateId, scheduleTemplateId: this.data.scheduleItem.scheduleTemplateId,
planDate: this.data.scheduleItem.planDate.replace(/\//g, '-') planDate: !!this.data.scheduleItem.planDate ? this.data.scheduleItem.planDate.replace(/\//g, '-') : null
} }
getScheduleDetail(data).then(res => { getScheduleDetail(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
...@@ -175,8 +176,8 @@ create.Page({ ...@@ -175,8 +176,8 @@ create.Page({
confirmAttendance: res.data.data.confirmAttendance, confirmAttendance: 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,
'scheduleItem.groupId': res.data.data.groupId, // '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,
...@@ -184,7 +185,8 @@ create.Page({ ...@@ -184,7 +185,8 @@ create.Page({
isExpand: res.data.data.confirmAttendance === 1 ? true : false, isExpand: res.data.data.confirmAttendance === 1 ? true : false,
isShowRemark: res.data.data.remark ? true : false, isShowRemark: res.data.data.remark ? true : false,
week: this.data.weekList[new Date(res.data.data.startTime.replace(/-/g, "/")).getDay()], week: this.data.weekList[new Date(res.data.data.startTime.replace(/-/g, "/")).getDay()],
getData: true getData: true,
scheduleItem: res.data.data
}) })
if (res.data.data.repeatable) { if (res.data.data.repeatable) {
this.setData({ this.setData({
...@@ -206,6 +208,8 @@ create.Page({ ...@@ -206,6 +208,8 @@ 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);
} else {
} }
}) })
}, },
...@@ -510,7 +514,6 @@ create.Page({ ...@@ -510,7 +514,6 @@ create.Page({
_that.conflictPeople() _that.conflictPeople()
if (_that.data.repeatable) { if (_that.data.repeatable) {
_that.setData({ _that.setData({
'conSelectPopupData.showSelectPopup': true, 'conSelectPopupData.showSelectPopup': true,
editType: 'operate_user' editType: 'operate_user'
}) })
...@@ -583,10 +586,6 @@ create.Page({ ...@@ -583,10 +586,6 @@ create.Page({
that.$store.data.indexNeedUpdate = true that.$store.data.indexNeedUpdate = true
that.$store.data.tabBarIndex = '1' that.$store.data.tabBarIndex = '1'
that.update() that.update()
this.setData({
'conToastData.showToast': true,
'conToastData.title': '保存成功'
})
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,10 +680,9 @@ create.Page({ ...@@ -681,10 +680,9 @@ create.Page({
this.$store.data.tabBarIndex = '1' this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: 0, confirmAttendance: 0
'conToastData.showToast': true,
'conToastData.title': '保存成功'
}) })
this.conflictPeople()
} }
}) })
break break
...@@ -702,10 +700,9 @@ create.Page({ ...@@ -702,10 +700,9 @@ create.Page({
this.$store.data.tabBarIndex = '1' this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: 1, confirmAttendance: 1
'conToastData.showToast': true,
'conToastData.title': '保存成功'
}) })
this.conflictPeople()
} }
}) })
break break
...@@ -827,9 +824,7 @@ create.Page({ ...@@ -827,9 +824,7 @@ create.Page({
} }
this.modifySchedule(dataTitle).catch(err => { this.modifySchedule(dataTitle).catch(err => {
this.setData({ this.setData({
title: this.$store.data.originalData.title, title: this.$store.data.originalData.title
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
}) })
}).then(res => { }).then(res => {
this.$store.data.originalData.title = this.data.title this.$store.data.originalData.title = this.data.title
...@@ -846,9 +841,7 @@ create.Page({ ...@@ -846,9 +841,7 @@ create.Page({
} }
this.modifySchedule(dataRemark).catch(err => { this.modifySchedule(dataRemark).catch(err => {
this.setData({ this.setData({
remark: this.$store.data.originalData.remark, remark: this.$store.data.originalData.remark
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
}) })
}).then(res => { }).then(res => {
this.$store.data.originalData.remark = this.data.remark this.$store.data.originalData.remark = this.data.remark
...@@ -864,9 +857,7 @@ create.Page({ ...@@ -864,9 +857,7 @@ create.Page({
} }
this.modifySchedule(dataWay).catch(err => { this.modifySchedule(dataWay).catch(err => {
this.setData({ this.setData({
'comListData.meetingWayModelId': this.$store.data.originalData.meetingWayModel === null ? null : (this.$store.data.originalData.meetingWayModel.model === 'dingtalk' ? 2 : (this.$store.data.originalData.meetingWayModel.model === 'zoom' ? 1 : 0)), 'comListData.meetingWayModelId': this.$store.data.originalData.meetingWayModel === null ? null : (this.$store.data.originalData.meetingWayModel.model === 'dingtalk' ? 2 : (this.$store.data.originalData.meetingWayModel.model === 'zoom' ? 1 : 0))
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
}) })
}).then(res => { }).then(res => {
this.$store.data.originalData.meetingWay = !!this.data.comListData.meetingWayModelId ? this.data.comListData.meetingWayList[this.data.comListData.meetingWayModelId] : null this.$store.data.originalData.meetingWay = !!this.data.comListData.meetingWayModelId ? this.data.comListData.meetingWayList[this.data.comListData.meetingWayModelId] : null
...@@ -886,10 +877,6 @@ create.Page({ ...@@ -886,10 +877,6 @@ create.Page({
this.$store.data.participatorList = this.$store.data.originUsers this.$store.data.participatorList = this.$store.data.originUsers
this.$store.data.participatorUserId = this.$store.data.originUsersId this.$store.data.participatorUserId = this.$store.data.originUsersId
this.update() this.update()
this.setData({
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
})
}).then(res => { }).then(res => {
this.$store.data.originUsers = this.$store.data.participatorList this.$store.data.originUsers = this.$store.data.participatorList
this.$store.data.originUsersId = this.$store.data.participatorUserId this.$store.data.originUsersId = this.$store.data.participatorUserId
...@@ -916,9 +903,7 @@ create.Page({ ...@@ -916,9 +903,7 @@ create.Page({
this.setData({ this.setData({
'comListData.comSelectListId': this.$store.data.originalData.recurrenceModel.model === 'weekly' ? (this.$store.data.originalData.recurrenceModel.weekDayList.length > 1 ? 3 : 2) : repeatListMap.get(this.$store.data.originalData.recurrenceModel.model), 'comListData.comSelectListId': this.$store.data.originalData.recurrenceModel.model === 'weekly' ? (this.$store.data.originalData.recurrenceModel.weekDayList.length > 1 ? 3 : 2) : repeatListMap.get(this.$store.data.originalData.recurrenceModel.model),
repeatable: this.$store.data.originalData.repeatable, repeatable: this.$store.data.originalData.repeatable,
recurrenceModel: this.$store.data.originalData.repeatable ? { model: this.storer.data.originalData.recurrenceModel.model, daysOfMonth: this.$store.data.originalData.recurrenceModel.daysOfMonth, interval: 1, initialTime: this.$store.data.originalData.recurrenceModel.initialTime, terminateTime: this.$store.data.originalData.recurrenceModel.terminateTime, weekDayList: this.$store.data.originalData.recurrenceModel.weekDayList } : { model: 'no_repeat' }, recurrenceModel: this.$store.data.originalData.repeatable ? { model: this.storer.data.originalData.recurrenceModel.model, daysOfMonth: this.$store.data.originalData.recurrenceModel.daysOfMonth, interval: 1, initialTime: this.$store.data.originalData.recurrenceModel.initialTime, terminateTime: this.$store.data.originalData.recurrenceModel.terminateTime, weekDayList: this.$store.data.originalData.recurrenceModel.weekDayList } : { model: 'no_repeat' }
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
}) })
}).then(res => { }).then(res => {
this.$store.data.originalData.recurrenceModel = this.data.recurrenceModel this.$store.data.originalData.recurrenceModel = this.data.recurrenceModel
...@@ -939,9 +924,7 @@ create.Page({ ...@@ -939,9 +924,7 @@ create.Page({
this.setData({ this.setData({
'comListData.comSelectListId': this.$store.data.originalData.recurrenceModel.model === 'weekly' ? (this.$store.data.originalData.recurrenceModel.weekDayList.length > 1 ? 3 : 2) : repeatListMap.get(this.$store.data.originalData.recurrenceModel.model), 'comListData.comSelectListId': this.$store.data.originalData.recurrenceModel.model === 'weekly' ? (this.$store.data.originalData.recurrenceModel.weekDayList.length > 1 ? 3 : 2) : repeatListMap.get(this.$store.data.originalData.recurrenceModel.model),
repeatable: this.$store.data.originalData.repeatable, repeatable: this.$store.data.originalData.repeatable,
recurrenceModel: this.$store.data.originalData.repeatable ? { model: this.$store.data.originalData.recurrenceModel.model, daysOfMonth: this.$store.data.originalData.recurrenceModel.daysOfMonth, interval: 1, initialTime: this.$store.data.originalData.recurrenceModel.initialTime, terminateTime: this.$store.data.originalData.recurrenceModel.terminateTime, weekDayList: this.$store.data.originalData.recurrenceModel.weekDayList } : { model: 'no_repeat' }, recurrenceModel: this.$store.data.originalData.repeatable ? { model: this.$store.data.originalData.recurrenceModel.model, daysOfMonth: this.$store.data.originalData.recurrenceModel.daysOfMonth, interval: 1, initialTime: this.$store.data.originalData.recurrenceModel.initialTime, terminateTime: this.$store.data.originalData.recurrenceModel.terminateTime, weekDayList: this.$store.data.originalData.recurrenceModel.weekDayList } : { model: 'no_repeat' }
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
}) })
}).then(res => { }).then(res => {
this.$store.data.originalData.recurrenceModel = this.data.recurrenceModel this.$store.data.originalData.recurrenceModel = this.data.recurrenceModel
...@@ -961,9 +944,7 @@ create.Page({ ...@@ -961,9 +944,7 @@ create.Page({
this.modifySchedule(dataRepeat3).catch(err => { this.modifySchedule(dataRepeat3).catch(err => {
this.setData({ this.setData({
'comListData.comSelectListId': this.$store.data.originalData.recurrenceModel.model === 'weekly' ? (this.$store.data.originalData.recurrenceModel.weekDayList.length > 1 ? 3 : 2) : repeatListMap.get(this.$store.data.originalData.recurrenceModel.model), 'comListData.comSelectListId': this.$store.data.originalData.recurrenceModel.model === 'weekly' ? (this.$store.data.originalData.recurrenceModel.weekDayList.length > 1 ? 3 : 2) : repeatListMap.get(this.$store.data.originalData.recurrenceModel.model),
repeatable: this.$store.data.originalData.repeatable, repeatable: this.$store.data.originalData.repeatable
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
}) })
}).then(res => { }).then(res => {
this.$store.data.originalData.recurrenceModel = this.data.recurrenceModel this.$store.data.originalData.recurrenceModel = this.data.recurrenceModel
...@@ -984,10 +965,6 @@ create.Page({ ...@@ -984,10 +965,6 @@ create.Page({
meetingRoomId: this.$store.data.meetingRoomId meetingRoomId: this.$store.data.meetingRoomId
} }
this.modifySchedule(dataLocation, needNotice).catch(err => { this.modifySchedule(dataLocation, needNotice).catch(err => {
this.setData({
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
})
this.$store.data.locationName = this.$store.data.originalData.location.locationName this.$store.data.locationName = this.$store.data.originalData.location.locationName
this.$store.data.roomId = this.$store.data.originalData.meetingRoomId this.$store.data.roomId = this.$store.data.originalData.meetingRoomId
this.update() this.update()
...@@ -1009,10 +986,6 @@ create.Page({ ...@@ -1009,10 +986,6 @@ create.Page({
modifyContent: 'modify_time' modifyContent: 'modify_time'
} }
this.modifySchedule(data, needNotice).catch(err => { this.modifySchedule(data, needNotice).catch(err => {
this.setData({
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
})
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()
...@@ -1030,9 +1003,7 @@ create.Page({ ...@@ -1030,9 +1003,7 @@ create.Page({
} }
this.modifySchedule(dataAheadTimes).catch(err => { this.modifySchedule(dataAheadTimes).catch(err => {
this.setData({ this.setData({
aheadTimes: this.$store.data.originalData.aheadTimes, aheadTimes: this.$store.data.originalData.aheadTimes
'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
}) })
}).then(res => { }).then(res => {
this.$store.data.originalData.aheadTimes = (this.data.aheadTimes.length === 0 ? null : this.data.aheadTimes) this.$store.data.originalData.aheadTimes = (this.data.aheadTimes.length === 0 ? null : this.data.aheadTimes)
...@@ -1135,10 +1106,9 @@ create.Page({ ...@@ -1135,10 +1106,9 @@ create.Page({
this.$store.data.tabBarIndex = '1' this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: 1, confirmAttendance: 1
'conToastData.showToast': true,
'conToastData.title': '保存成功',
}) })
this.conflictPeople()
} }
}) })
} }
...@@ -1162,10 +1132,9 @@ create.Page({ ...@@ -1162,10 +1132,9 @@ create.Page({
this.$store.data.tabBarIndex = '1' this.$store.data.tabBarIndex = '1'
this.update() this.update()
this.setData({ this.setData({
confirmAttendance: 0, confirmAttendance: 0
'conToastData.showToast': true,
'conToastData.title': '保存成功'
}) })
this.conflictPeople()
} }
}) })
} }
...@@ -1192,6 +1161,7 @@ create.Page({ ...@@ -1192,6 +1161,7 @@ create.Page({
this.setData({ this.setData({
confirmAttendance: -9 confirmAttendance: -9
}) })
this.conflictPeople()
} }
}) })
}, },
...@@ -1244,7 +1214,6 @@ create.Page({ ...@@ -1244,7 +1214,6 @@ create.Page({
this.update(); this.update();
}) })
}, },
showPop(e) { showPop(e) {
this.setData({ this.setData({
pop: e.target.dataset.pop, pop: e.target.dataset.pop,
...@@ -1308,6 +1277,9 @@ create.Page({ ...@@ -1308,6 +1277,9 @@ create.Page({
// 添加文件 // 添加文件
addMeetingFile() { addMeetingFile() {
//重置 //重置
this.setData({
loading: true
})
this.store.data.description = ''; this.store.data.description = '';
this.store.data.fileInfos = null; this.store.data.fileInfos = null;
let data = { let data = {
...@@ -1317,6 +1289,9 @@ create.Page({ ...@@ -1317,6 +1289,9 @@ create.Page({
} }
uploadPermissions(data).then(res => { uploadPermissions(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.setData({
loading: false
})
dd.uploadAttachmentToDingTalk({ dd.uploadAttachmentToDingTalk({
image: { multiple: true, compress: true, max: 9, spaceId: res.data.data }, image: { multiple: true, compress: true, max: 9, spaceId: res.data.data },
space: { spaceId: res.data.data, compress: true, isCopy: 1, max: 9 }, space: { spaceId: res.data.data, compress: true, isCopy: 1, max: 9 },
......
...@@ -218,10 +218,6 @@ create.Page({ ...@@ -218,10 +218,6 @@ create.Page({
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true this.$store.data.indexNeedUpdate = true
this.update() this.update()
this.setData({
'conToastData.showToast': true,
'conToastData.title': '保存成功'
})
if (this.$store.data.originalData.repeatable === 1) { if (this.$store.data.originalData.repeatable === 1) {
observer.notice(res.data.data) observer.notice(res.data.data)
} }
......
...@@ -252,10 +252,6 @@ create.Page({ ...@@ -252,10 +252,6 @@ create.Page({
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true this.$store.data.indexNeedUpdate = true
this.update() this.update()
this.setData({
'conToastData.showToast': true,
'conToastData.title': '保存成功'
})
this.operateUserS() this.operateUserS()
if (this.$store.data.originalData.repeatable === 1) { if (this.$store.data.originalData.repeatable === 1) {
observer.notice(res.data.data) observer.notice(res.data.data)
......
...@@ -161,10 +161,6 @@ create.Page({ ...@@ -161,10 +161,6 @@ create.Page({
return new Promise((resolve, rejects) => { return new Promise((resolve, rejects) => {
modifySchedule(Object.assign(data, obj)).then(res => { modifySchedule(Object.assign(data, obj)).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.setData({
'conToastData.showToast': true,
'conToastData.title': '保存成功'
})
if (this.$store.data.originalData.repeatable === 1) { if (this.$store.data.originalData.repeatable === 1) {
observer.notice(res.data.data) observer.notice(res.data.data)
} }
......
...@@ -18,4 +18,8 @@ ...@@ -18,4 +18,8 @@
color: rgba(242, 86, 67, 1); color: rgba(242, 86, 67, 1);
font-size: 28rpx; font-size: 28rpx;
margin-right: 18rpx; margin-right: 18rpx;
}
.delete-task-text {
color: #0a0a0a;
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="delete-task-wrap"> <view class="delete-task-wrap">
<view class="delete-task" onTap="handleDelete"> <view class="delete-task" onTap="handleDelete">
<text class="iconfont iconicon_delete"></text> <text class="iconfont iconicon_delete"></text>
{{title}} <text class="delete-task-text">{{title}}</text>
</view> </view>
</view> </view>
</template> </template>
\ No newline at end of file
.loading {
width: 100vw;
height: 100vh;
background: #fff;
position: fixed;
top: 0;
left: 0;
right: 0;
}
.loading .image {
width: 56rpx;
height: 56rpx;
position: absolute;
left: 50%;
top: 50%;
margin-left: -28rpx;
margin-top: -28rpx;
text-align: center;
background: url(../../assests/loading.gif) center / 100% 100%;
vertical-align: middle;
}
\ No newline at end of file
<template name="loading">
<view class="loading">
<view class="image">
</view>
</view>
</template>
\ No newline at end of file
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