Commit b1fbd8b3 by fengzhaoyu

fix:添加权限

parent 75d6be2e
......@@ -12,7 +12,7 @@
<view>{{item.creator.name}}: {{item.remark}}</view>
<view>{{item.updateTime}}</view>
</view>
<view class="delete-btn" onTap="deleteComment" data-commentId="{{item.commentId}}" data-parentCommentId="{{parentCommentId}}">
<view a:if="{{currentPeople === item.creator.ddUserId}}" class="delete-btn" onTap="deleteComment" data-commentId="{{item.commentId}}" data-parentCommentId="{{parentCommentId}}">
删除
</view>
</view>
......
......@@ -99,7 +99,6 @@ page {
}
.footer>view {
width: 35rpx;
margin: 0 38rpx;
font-size: 16rpx;
color: rgba(10, 10, 10, 0.56);
......
......@@ -162,17 +162,17 @@
</view>
<view class="footerBottom">
<view onTap="goCreateTask">
<text class="iconfont iconicon_task1"></text>任务
<view class="iconfont iconicon_task1"></view>
任务
</view>
<!--<view onTap="addMeetingFile"><text class="iconfont iconicon_data"></text>文件</view> -->
<view onTap="handleAddFile">
<text class="iconfont iconicon_data"></text>
<view>
文件
</view>
<view class="iconfont iconicon_data"></view>
文件
</view>
<view onTap="openNoteModal">
<text class="iconfont iconicon_task1"></text>笔记
<view class="iconfont iconicon_task1"></view>
笔记
</view>
<!--<text class="devider"></text><view onTap="onShareAppMessage"><text class="iconfont iconicon_share1"></text></view> -->
</view>
......@@ -214,13 +214,13 @@
<view class="meeting-title" a:if="{{item.commentType === 'meeting'}}">创建了会议</view>
</view>
<view class="compose-column-operation">
<text a:if="{{item.fileDetailList}}" onTap="openRemarkModal" data-commentId="{{item.commentId}}" data-remark="{{item.remark}}">描述</text>
<text a:if="{{item.notes}}" onTap="editNotes" data-meetingNotes="{{item.notes}}" data-commentId="{{item.commentId}}">编辑</text>
<text a:if="{{item.fileDetailList&&item.creator.ddUserId === currentPeople}}" onTap="openRemarkModal" data-commentId="{{item.commentId}}" data-remark="{{item.remark}}">描述</text>
<text a:if="{{item.notes&&item.creator.ddUserId === currentPeople }}" onTap="editNotes" data-meetingNotes="{{item.notes}}" data-commentId="{{item.commentId}}">编辑</text>
<text data-commentId="{{item.commentId}}" onTap="openComentModal">评论</text>
<text onTap="handleDeleteMoment" data-commentId="{{item.commentId}}">删除</text>
<text a:if="{{item.creator.ddUserId === currentPeople}}" onTap="handleDeleteMoment" data-commentId="{{item.commentId}}">删除</text>
</view>
<view class="compose-column">
<comment a:if="{{item.replyCommentList}}" replyCommentList="{{item.replyCommentList}}" onDeleteComment="deleteComment" parentCommentId="{{item.commentId}}"/>
<comment currentPeople="{{currentPeople}}" a:if="{{item.replyCommentList}}" replyCommentList="{{item.replyCommentList}}" onDeleteComment="deleteComment" parentCommentId="{{item.commentId}}"/>
</view>
</block>
<view class="affair-placeholder" a:if="{{!affairList || affairList.length == 0}}">
......
......@@ -25,11 +25,6 @@ create.Page({
details: true,
dynamic: true
},
conToastData: {
showToast: false,
title: '保存成功'
},
title: ``,
meetingRemark: '',
isShowRemark: false,
......@@ -86,7 +81,7 @@ create.Page({
this.$store.data.isIndexAffairListNeedUpdate = true;
this.update();
}
// 修改地点 或者 参会人保存
if (this.$store.data.updateInfo.isUpate) {
if (this.$store.data.updateInfo.updateType === "modify_location") {
this.setData({
......@@ -164,8 +159,7 @@ create.Page({
recurrenceModel: res.data.data.repeatable ? res.data.data.recurrenceModel : { model: 'no_repeat' },
selectRepeatId: res.data.data.repeatable === 0 ? 0 : getSelectRepeatId(res.data.data.recurrenceModel, repeatList)
},
// organizer: res.data.data.organizer,
organizer: getApp().globalData.userid,
organizer: res.data.data.organizer.split("::")[0],
isExpand: res.data.data.confirmAttendance === 1 ? true : false,
confirmAttendance: res.data.data.confirmAttendance === null ? -9 : res.data.data.confirmAttendance,
aheadTime: {
......@@ -907,12 +901,6 @@ create.Page({
this.store.data.affairList = [];
},
// toast 消失之后的回调
onToastHidden() {
this.setData({
'conToastData.showToast': false
})
},
// 页面卸载
onUnload() {
// 页面被关闭
......@@ -921,22 +909,6 @@ create.Page({
//获取动态列表
loadAffairList(id) {
// if (this.data.repeatable == 1) {
// if (!this.data.scheduleItem.groupId) {
// console.log(`groupId不存在`)
// return
// }
// this.getRepeatAffairList(this.data.scheduleItem.groupId, current)
// } else {
// if (!this.data.scheduleItem.id) {
// console.log(`scheduleItem.id不存在`)
// return
// }
// this.getAffairList(this.data.scheduleItem.id)
// }
// //重置
// this.store.data.isNeedReloadList = false;
// this.update();
if (!id) {
id = this.store.data.scheduleId;
}
......
......@@ -20,8 +20,6 @@ export function getInitialPsarticipants(participants) {
}
// 比较增减的人
export function handleChangePeople(originUsers, nowUsers) {
console.log(originUsers)
console.log(nowUsers)
let originMap = new Map()
let nowMap = new Map()
for (let x of originUsers) {
......
......@@ -4,7 +4,7 @@
<view class="headImg">
<image a:if="{{!!item.headUrl}}" mode="scaleToFill" src="{{item.headUrl}}"/>
<text a:else>{{item.username.substring(0, 1)}}</text>
<text a:if="{{conflictPeople.includes(item.userId)}}" class="conflict iconicon_conflict iconfont"></text>
<!--<text a:if="{{conflictPeople.includes(item.userId)}}" class="conflict iconicon_conflict iconfont"></text> -->
</view>
<view class="info">
<text class="name">{{item.username}}</text>
......
......@@ -52,8 +52,7 @@ create.Page({
}
// 编辑 参会人可选必选
else {
require = [Object.keys(this.$store.data.participatorList)]
require = Object.keys(this.$store.data.participatorList)
select = selectedelRequired(Object.keys(this.data.contactPeople), require)
}
selectPeople(select, require).then(res => {
......@@ -73,9 +72,9 @@ create.Page({
}
// 编辑 参会人可选必选
else {
const showContactPeople = this.data.showContactPeople.length
const showContactPeople = this.data.showContactPeople
for (let i = 0; i < this.data.showContactPeople.length; i++) {
participatorList[showContactPeople[i].userId] = { userId: showContactPeople[i].userId, username: howContactPeople[i].username, headUrl: howContactPeople[i].headUrl, platform: 'dingtalk' }
participatorList[showContactPeople[i].userId] = { userId: showContactPeople[i].userId, username: showContactPeople[i].username, headUrl: showContactPeople[i].headUrl, platform: 'dingtalk' }
}
}
for (let i = 0; i < res.users.length; i++) {
......
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