Commit ed819539 by xiexiaoqin

Merge branch 'release/2.0.0' of…

Merge branch 'release/2.0.0' of ssh://gitlab.roboming.com:2018/fengzhaoyu/schedule into release/2.0.0
parents c9633f2e 5740c2b1
...@@ -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
......
...@@ -173,7 +173,7 @@ create.Page({ ...@@ -173,7 +173,7 @@ create.Page({
} else { } else {
data.taskCreateModel = taskCreateModel data.taskCreateModel = taskCreateModel
this.updateTask(data, (res) => { this.updateTasks(data, (res) => {
// 修改动态列表 // 修改动态列表
if (res.data) { if (res.data) {
const addData = res.data[0].commentListDataModelList[0]; const addData = res.data[0].commentListDataModelList[0];
......
...@@ -181,7 +181,7 @@ create.Page({ ...@@ -181,7 +181,7 @@ create.Page({
}, },
connect_start() { connect_start() {
dd.connectSocket({ dd.connectSocket({
url: `wss://gateway-ding.mingwork.com/meet-websocket/websocket/${dd.getStorageSync({ key: 'mwUserId' }).data}/${uuid}`, url: `ws://139.196.213.18:9999/meet-websocket/websocket/${dd.getStorageSync({ key: 'mwUserId' }).data}/${uuid}`,
success: (res) => { success: (res) => {
...@@ -869,7 +869,7 @@ create.Page({ ...@@ -869,7 +869,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;
} }
......
...@@ -679,7 +679,7 @@ input { ...@@ -679,7 +679,7 @@ input {
.operation-containt { .operation-containt {
border-radius: 8rpx; border-radius: 8rpx;
padding: 16rpx; padding: 0 16rpx;
position: absolute; position: absolute;
right: 56rpx; right: 56rpx;
top: 50%; top: 50%;
...@@ -690,11 +690,28 @@ input { ...@@ -690,11 +690,28 @@ input {
} }
.operation-containt>text { .operation-containt>text {
/* background: red; */
/* background: red; */
display: flex;
justify-content: space-between;
align-items: center;
padding: 16rpx 0;
/* line-height: 28px; */
/* padding: 16px 0; */
/* background: red; */
/* padding-right: 16rpx; */
/* margin-right: 16rpx; */
padding-right: 24rpx; padding-right: 24rpx;
margin-right: 24rpx; margin-right: 24rpx;
font-size: 24rpx; font-size: 24rpx;
color: #fff; color: #fff;
border-right: 1px solid rgba(255, 255, 255, 0.55); /* border-right: 1px solid rgba(255, 255, 255, 0.55); */
}
.line {
margin-left: 16rpx;
margin-top: -2rpx;
/* margin-right: 16rpx; */
} }
.operation-containt>text:last-child { .operation-containt>text:last-child {
...@@ -706,4 +723,11 @@ input { ...@@ -706,4 +723,11 @@ input {
.text { .text {
white-space: nowrap; white-space: nowrap;
padding-left: 8rpx; padding-left: 8rpx;
padding-right: 16rpx;
border-right: 1px solid rgba(255, 255, 255, 0.55);
}
.text:last-child {
padding-right: 0;
border-right: none;
} }
\ No newline at end of file
<!--<block a:if="{{getData}}"> --> <!--<block a:if="{{getData}}"> -->
<import src="../../template/loading/loading.axml"/> <import src="../../template/loading/loading.axml"/>
<block> <block>
<view catchTap="handleCloseOperation" class=" {{(popup.show || selectPopup.show || centerPopup.show )? 'metingDetail' : ''}}"> <view onTap="handleCloseOperation" class="{{(popup.show || selectPopup.show || centerPopup.show )? 'metingDetail' : ''}}">
<import src="../../template/deleteBtn/index.axml"/> <import src="../../template/deleteBtn/index.axml"/>
<view class="hideDetail" a:if="{{isExpand}}"> <view class="hideDetail" a:if="{{isExpand}}">
<view class="hideTitle"> <view class="hideTitle">
...@@ -206,20 +206,24 @@ ...@@ -206,20 +206,24 @@
<notes a:if="{{item.notes}}" meetingNotes="{{item.notes}}"/> <notes a:if="{{item.notes}}" meetingNotes="{{item.notes}}"/>
<view class="meeting-title" a:if="{{item.commentType === 'meeting'}}">创建了会议</view> <view class="meeting-title" a:if="{{item.commentType === 'meeting'}}">创建了会议</view>
</view> </view>
<view class="compose-column-operation" a:if="{{item.commentType !== 'meeting'}}"> <view class="compose-column-operation" catchTap="blank" a:if="{{item.commentType !== 'meeting'}}">
<view class="operation-more iconmore iconfont color4" catchTap="handleOpenOperation" data-commentId="{{item.commentId}}"> <view class="operation-more iconmore iconfont color4" catchTap="handleOpenOperation" data-commentId="{{item.commentId}}">
<view class="operation-containt" a:if="{{modifyDynamicId === item.commentId}}"> <view class="operation-containt" a:if="{{modifyDynamicId === item.commentId}}">
<text class="icondescribe11 iconfont color4" a:if="{{item.fileDetailList&&item.creator.ddUserId === currentPeople}}" catchTap="openRemarkModal" data-commentId="{{item.commentId}}" data-remark="{{item.remark}}"> <text class="icondescribe11 iconfont color4" a:if="{{item.fileDetailList&&item.creator.ddUserId === currentPeople}}" catchTap="openRemarkModal" data-commentId="{{item.commentId}}" data-remark="{{item.remark}}">
<text class="text">编辑</text> <text class="text">编辑</text>
<!--<text class="line">|</text> -->
</text> </text>
<text class="icondescribe11 iconfont color4" a:if="{{item.notes&&item.creator.ddUserId === currentPeople }}" catchTap="editNotes" data-meetingNotes="{{item.notes}}" data-commentId="{{item.commentId}}"> <text class="icondescribe11 iconfont color4" a:if="{{item.notes&&item.creator.ddUserId === currentPeople }}" catchTap="editNotes" data-meetingNotes="{{item.notes}}" data-commentId="{{item.commentId}}">
<text class="text">编辑</text> <text class="text">编辑</text>
<!--<text class="line">|</text> -->
</text> </text>
<text class="icondescribe11 iconfont color4" a:if="{{item.commentType === 'task' &&item.creator.ddUserId === currentPeople }}" catchTap="editTask" data-task="{{item.meetingTaskSimpleViewModel}}" data-commentId="{{item.commentId}}"> <text class="icondescribe11 iconfont color4" a:if="{{item.commentType === 'task' &&item.creator.ddUserId === currentPeople }}" catchTap="editTask" data-task="{{item.meetingTaskSimpleViewModel}}" data-commentId="{{item.commentId}}">
<text class="text">编辑</text> <text class="text">编辑</text>
<!--<text class="line">|</text> -->
</text> </text>
<text class="iconcomments1 iconfont color4" data-commentId="{{item.commentId}}" catchTap="openComentModal"> <text class="iconcomments1 iconfont color4" data-commentId="{{item.commentId}}" catchTap="openComentModal">
<text class="text">评论</text> <text class="text">评论</text>
<!--<text class="line">|</text> -->
</text> </text>
<text class="icondelete2 iconfont color4" a:if="{{item.creator.ddUserId === currentPeople}}" catchTap="handleDeleteMoment" data-commentId="{{item.commentId}}"> <text class="icondelete2 iconfont color4" a:if="{{item.creator.ddUserId === currentPeople}}" catchTap="handleDeleteMoment" data-commentId="{{item.commentId}}">
<text class="text">删除</text> <text class="text">删除</text>
...@@ -239,17 +243,17 @@ ...@@ -239,17 +243,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> -->
<popup title="{{popup.title}}" show="{{popup.show}}" mask="true" onClose="closePopup">
<remark a:if="{{popup.type == 'remarkModal'}}" onGetRemark="getRemark"/>
<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>
<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>
<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>
</view> </view>
</view> </view>
</block> </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"/>
<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>
<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>
<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>
<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,9 +1091,9 @@ create.Page({ ...@@ -1090,9 +1091,9 @@ create.Page({
type: 'notesModal' type: 'notesModal'
} }
}) })
this.handleCloseOperation()
}, },
getNotes(notes) { getNotes: throttle(function (notes) {
//编辑 //编辑
if (this.store.data.notes) { if (this.store.data.notes) {
//是否发送通知 //是否发送通知
...@@ -1152,7 +1153,7 @@ create.Page({ ...@@ -1152,7 +1153,7 @@ create.Page({
this.update(); this.update();
} }
}) })
}, }),
//更新笔记 //更新笔记
updateNotes(notes, notice, callBack) { updateNotes(notes, notice, callBack) {
updateMoment({ updateMoment({
...@@ -1181,6 +1182,7 @@ create.Page({ ...@@ -1181,6 +1182,7 @@ create.Page({
}, },
//添加评论 //添加评论
openComentModal(e) { openComentModal(e) {
this.handleCloseOperation()
this.store.data.parentCommentId = e.currentTarget.dataset.commentId; this.store.data.parentCommentId = e.currentTarget.dataset.commentId;
this.update(); this.update();
this.setData({ this.setData({
...@@ -1222,6 +1224,7 @@ create.Page({ ...@@ -1222,6 +1224,7 @@ create.Page({
}, },
// 删除动态 // 删除动态
handleDeleteMoment(e) { handleDeleteMoment(e) {
this.handleCloseOperation() this.handleCloseOperation()
this.deleteComment('', e.currentTarget.dataset.commentId) this.deleteComment('', e.currentTarget.dataset.commentId)
}, },
...@@ -1366,9 +1369,11 @@ create.Page({ ...@@ -1366,9 +1369,11 @@ create.Page({
this.store.data.modifyDynamicId = '' this.store.data.modifyDynamicId = ''
this.update() this.update()
}, },
blank() { blank() {
debugger 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()
this.$store.data.updateInfo = {
updateType: 'operate_user', if (this.data.isUpdate) {
isUpate: true this.$store.data.updateInfo = {
updateType: 'operate_user',
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