Commit 822072cd by fengzhaoyu

修复bug列表

parent 576200f1
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<view class="iconright iconfont icon" style=" vertical-align: middle" catchTap="goParticipantsDetail"></view> <view class="iconright iconfont icon" style=" vertical-align: middle" catchTap="goParticipantsDetail"></view>
</view> </view>
<view class="participatorListBottom" catchTap="goParticipantsDetail"> <view class="participatorListBottom" catchTap="goParticipantsDetail">
<view class="people" a:for="{{$data.participatorList.length > 10 ? [...$data.participatorList].splice(0, 11) : $data.participatorList}}"> <view class="people" a:for="{{$data.showParticipatorList.length > 10 ? [...$data.showParticipatorList].splice(0, 11) : $data.showParticipatorList}}">
<view class="headUrl"> <view class="headUrl">
<image a:if="{{item.headUrl}}" mode="scaleToFill" src="{{item.headUrl}}" /> <image a:if="{{item.headUrl}}" mode="scaleToFill" src="{{item.headUrl}}" />
<text <text
......
...@@ -866,7 +866,7 @@ create.Page({ ...@@ -866,7 +866,7 @@ create.Page({
maxClickCount--; maxClickCount--;
if (maxClickCount == 0) { if (maxClickCount == 0) {
dd.alert({ dd.alert({
content: "0.0.25" content: "0.0.26"
}); });
maxClickCount = 5; maxClickCount = 5;
} }
......
...@@ -239,17 +239,17 @@ ...@@ -239,17 +239,17 @@
<view class="affair-placeholder" a:if="{{!affairList || affairList.length == 0 || (affairList.length == 1 && affairList[0].commentType === 'meeting')}}"> <view class="affair-placeholder" a:if="{{!affairList || affairList.length == 0 || (affairList.length == 1 && affairList[0].commentType === 'meeting')}}">
<template is="affair-placeholder" data="{{title: '添加文件', tip: '我们不开无准备的会,快来上传会议文件吧。'}}"/> <template is="affair-placeholder" data="{{title: '添加文件', tip: '我们不开无准备的会,快来上传会议文件吧。'}}"/>
</view> </view>
<!--<view class="loading-more" onTap="loadAffairMore" a:if="{{current < pages}}">点击加载更多动态...</view> --> </view>
<popup title="{{popup.title}}" show="{{popup.show}}" mask="true" onClose="closePopup"> </view>
</block>
<!--<view class="loading-more" onTap="loadAffairMore" a:if="{{current < pages}}">点击加载更多动态...</view> -->
<popup title="{{popup.title}}" show="{{popup.show}}" mask="true" onClose="closePopup">
<remark a:if="{{popup.type == 'remarkModal'}}" onGetRemark="getRemark"/> <remark a:if="{{popup.type == 'remarkModal'}}" onGetRemark="getRemark"/>
<comment a:if="{{popup.type == 'commentModal'}}" isEdit="{{true}}" onGetComment="getComment"/> <comment a:if="{{popup.type == 'commentModal'}}" isEdit="{{true}}" onGetComment="getComment"/>
<list a:if="{{popup.type=='repeat'}}" dataComList="{{repeat.repeatList}}" comSelectListId="{{repeat.selectRepeatId}}" onComSelectList="selectRepeatListItem"></list> <list a:if="{{popup.type=='repeat'}}" dataComList="{{repeat.repeatList}}" comSelectListId="{{repeat.selectRepeatId}}" onComSelectList="selectRepeatListItem"></list>
<notes a:if="{{popup.type == 'notesModal'}}" isEdit="{{true}}" onGetNotes="getNotes"/> <notes a:if="{{popup.type == 'notesModal'}}" isEdit="{{true}}" onGetNotes="getNotes"/>
<meeting-time-picker a:if="{{'time' === popup.type}}" startTime="{{$data.startTime}}" endTime="{{$data.endTime}}" onComplete="onComplete" isIPX="{{isIPX}}"></meeting-time-picker> <meeting-time-picker a:if="{{'time' === popup.type}}" startTime="{{$data.startTime}}" endTime="{{$data.endTime}}" onComplete="onComplete" isIPX="{{isIPX}}"></meeting-time-picker>
<list a:if="{{popup.type=='aheadTime'}}" onClose="closePopup" multiple="{{true}}" onCompelete="handleAheadTimeSave" complete="{{true}}" dataComList="{{aheadTime.aheadTimeList}}" onComSelectList="selectComList" comSelectList="{{aheadTime.aheadTimesListId}}" iconType="{{aheadTime.iconType}}"></list> <list a:if="{{popup.type=='aheadTime'}}" onClose="closePopup" multiple="{{true}}" onCompelete="handleAheadTimeSave" complete="{{true}}" dataComList="{{aheadTime.aheadTimeList}}" onComSelectList="selectComList" comSelectList="{{aheadTime.aheadTimesListId}}" iconType="{{aheadTime.iconType}}"></list>
</popup> </popup>
</view>
</view>
</block>
<template is="loading" a:if="{{loading.details && loading.dynamic}}"> <template is="loading" a:if="{{loading.details && loading.dynamic}}">
</template> </template>
\ No newline at end of file
...@@ -64,7 +64,8 @@ create.Page({ ...@@ -64,7 +64,8 @@ create.Page({
}, },
needNotice: 0, needNotice: 0,
placeholder: '', placeholder: '',
id: '' id: '',
saveLoading: false
}, },
onShow() { onShow() {
console.log('onshow') console.log('onshow')
...@@ -1090,7 +1091,7 @@ create.Page({ ...@@ -1090,7 +1091,7 @@ create.Page({
}) })
}, },
getNotes(notes) { getNotes: throttle(function (notes) {
//编辑 //编辑
if (this.store.data.notes) { if (this.store.data.notes) {
//是否发送通知 //是否发送通知
...@@ -1150,7 +1151,7 @@ create.Page({ ...@@ -1150,7 +1151,7 @@ create.Page({
this.update(); this.update();
} }
}) })
}, }),
//更新笔记 //更新笔记
updateNotes(notes, notice, callBack) { updateNotes(notes, notice, callBack) {
updateMoment({ updateMoment({
...@@ -1365,8 +1366,8 @@ create.Page({ ...@@ -1365,8 +1366,8 @@ create.Page({
this.update() this.update()
}, },
blank() { blank() {
debugger },
}
}); });
......
...@@ -29,10 +29,13 @@ export async function getFileInfo() { ...@@ -29,10 +29,13 @@ export async function getFileInfo() {
file: { spaceId: permission.data.data, max: 9 }, file: { spaceId: permission.data.data, max: 9 },
types: ["photo", "camera", "space", "file"], types: ["photo", "camera", "space", "file"],
success: (res) => { success: (res) => {
console.log(permission.data.data)
console.log(res) console.log(res)
resolve(res) resolve(res)
}, },
fail: (err) => { fail: (err) => {
console.log(11)
console.log(err)
} }
}) })
}) })
......
...@@ -1249,15 +1249,20 @@ create.Page({ ...@@ -1249,15 +1249,20 @@ create.Page({
this.$store.data.locationName = this.data.meetingTime.meetingRoomName; this.$store.data.locationName = this.data.meetingTime.meetingRoomName;
this.$store.data.roomId = this.data.meetingTime.meetingRoomId; this.$store.data.roomId = this.data.meetingTime.meetingRoomId;
} }
if (this.$store.data.originalData && this.$store.data.locationName) { if (this.$store.data.originalData && this.$store.data.locationName) {
if ( if (!this.$store.data.originalData.location) {
this.$store.data.locationName != this.$store.data.updateInfo = {
this.$store.data.originalData.location.locationName || updateType: "modify_location",
isUpate: true
};
this.update();
} else if (
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.$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.$store.data.updateInfo = { this.$store.data.updateInfo = {
updateType: "modify_location", updateType: "modify_location",
isUpate: true isUpate: true
......
...@@ -19,7 +19,8 @@ create.Page({ ...@@ -19,7 +19,8 @@ create.Page({
contactPeople: {}, contactPeople: {},
showContactPeople: [], showContactPeople: [],
originUsersId: [], originUsersId: [],
confirmAttendance: null confirmAttendance: null,
isUpdate: false
}, },
onLoad(event) { onLoad(event) {
this.setData({ this.setData({
...@@ -58,6 +59,9 @@ create.Page({ ...@@ -58,6 +59,9 @@ create.Page({
select = selectedelRequired(Object.keys(this.data.contactPeople), require) select = selectedelRequired(Object.keys(this.data.contactPeople), require)
} }
selectPeople(select, require).then(res => { selectPeople(select, require).then(res => {
this.setData({
isUpdate: true
})
const participatorList = {} const participatorList = {}
// 创建的 可选 必选 // 创建的 可选 必选
if (!this.data.scheduleItem) { if (!this.data.scheduleItem) {
...@@ -98,6 +102,10 @@ create.Page({ ...@@ -98,6 +102,10 @@ create.Page({
}, },
// 删除参会人 // 删除参会人
delParticipants(event) { delParticipants(event) {
this.setData({
isUpdate: true
})
let userId = event.target.dataset.userId let userId = event.target.dataset.userId
let participatorList = {} let participatorList = {}
let showParticipatorList = [] let showParticipatorList = []
...@@ -136,13 +144,18 @@ create.Page({ ...@@ -136,13 +144,18 @@ create.Page({
// 保存信息 // 保存信息
saveInfo() { saveInfo() {
this.$store.data.participatorList = this.data.contactPeople this.$store.data.participatorList = this.data.contactPeople
this.$store.data.showParticipatorList = this.data.showContactPeople this.$store.data.showParticipatorList = this.data.showContactPeople
this.update() this.update()
if (this.data.isUpdate) {
this.$store.data.updateInfo = { this.$store.data.updateInfo = {
updateType: 'operate_user', updateType: 'operate_user',
isUpate: true isUpate: true
} }
}
this.update() this.update()
dd.navigateBack({ dd.navigateBack({
delta: 1 delta: 1
......
...@@ -298,7 +298,7 @@ export function selectedelRequired(select, require) { ...@@ -298,7 +298,7 @@ export function selectedelRequired(select, require) {
} }
// 文件格式化 // 文件格式化
export function renderSize(value) { export function renderSize(value) {
if (null == value || value == '') { if (null == value || value == '' || value == 0) {
return "0 B"; return "0 B";
} }
var unitArr = new Array("B", "K", "M", "G", "T", "P", "E", "Z", "Y"); var unitArr = new Array("B", "K", "M", "G", "T", "P", "E", "Z", "Y");
......
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