Commit 153cf0a3 by xiexiaoqin

stash: wait to merge

parent aba792bc
...@@ -245,10 +245,10 @@ export function isParticipate(data) { ...@@ -245,10 +245,10 @@ export function isParticipate(data) {
} }
//会议室详情的获取动态列表 //会议室详情的获取动态列表
export function getMeetingRoomAffairs() { export function getMeetingRoomAffairs(id) {
return $http({ return $http({
method: 'get', method: 'get',
url: `/meet/schedule/confirm` url: `/meet/meeting-log/datail/4902`
}) })
} }
//会议室创建新任务 //会议室创建新任务
......
{ {
"pages": [ "pages": [
"pages/meetingDetail/meetingDetail",
"demo/index/index", "demo/index/index",
"pages/excutorList/excutorList", "pages/excutorList/excutorList",
"demo/sideslipping/sideslipping", "demo/sideslipping/sideslipping",
...@@ -20,7 +21,6 @@ ...@@ -20,7 +21,6 @@
"pages/participantsDetail/participantsDetail", "pages/participantsDetail/participantsDetail",
"pages/createOrEditSchedule/createOrEditSchedule", "pages/createOrEditSchedule/createOrEditSchedule",
"pages/applicationDetails/applicationDetails", "pages/applicationDetails/applicationDetails",
"pages/attendeeList/attendeeList", "pages/attendeeList/attendeeList"
"pages/meetingDetail/meetingDetail"
] ]
} }
\ No newline at end of file
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
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.04);
padding: 16rpx 26rpx; padding: 0 16rpx;
height: 80rpx;
color: rgba(27, 38, 61, 1); color: rgba(27, 38, 61, 1);
margin-bottom: 14rpx; margin-bottom: 14rpx;
position: relative; position: relative;
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
.task-box>.task-title { .task-box>.task-title {
flex: 1; flex: 1;
font-size: 28rpx; font-size: 28rpx;
line-height: 28rpx; line-height: 80rpx;
} }
.task-box>.task-title>.avater { .task-box>.task-title>.avater {
...@@ -31,6 +32,7 @@ ...@@ -31,6 +32,7 @@
height: 48rpx; height: 48rpx;
position: absolute; position: absolute;
right: 14rpx; right: 14rpx;
top: 8rpx; top: 16rpx;
line-height: 48rpx; line-height: 48rpx;
overflow: hidden;
} }
\ No newline at end of file
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<import src="../../template/checkbox/index.axml"/> <import src="../../template/checkbox/index.axml"/>
<view class="task-list"> <view class="task-list">
<view class="task-box" a:for='{{taskList}}'> <view class="task-box" a:for='{{taskList}}'>
<template is="checkbox" data="{{status: item.status}}"></template> <template is="checkbox" data="{{status: item.taskStatus}}"></template>
<view class="task-title" data-pop="{{title: '会议任务', type: 'updateTask'}}" onTap="showPop" data-task="{{item}}">{{item.title}} <view class="task-title" data-pop="{{title: '会议任务', type: 'updateTask'}}" onTap="showPop" data-task="{{item}}">{{item.taskInfos.taskTitle}}
<template is="avater" data="{{item}}"/> <template is="avater" data="{{item: item.acceptorInfo}}"/>
</view> </view>
</view> </view>
</view> </view>
\ No newline at end of file
...@@ -5,14 +5,13 @@ Component({ ...@@ -5,14 +5,13 @@ Component({
mixins: [], mixins: [],
data: { data: {
show: false, show: false,
currentTask: null, // currentTask: null,
// actionList: null // actionList: null
}, },
props: { props: {
isCanEdit: true isCanEdit: true
}, },
didMount() { didMount() {
console.log(this.props)
}, },
didUpdate() { didUpdate() {
}, },
...@@ -20,10 +19,9 @@ Component({ ...@@ -20,10 +19,9 @@ Component({
methods: { methods: {
showPop(e) { showPop(e) {
if (this.props.isCanEdit) { if (this.props.isCanEdit) {
this.setData({ console.log(e.target.dataset.task)
currentTask: e.target.dataset.task this.props.onShowPop(e);
}); this.props.onSetCurrentTask(e.target.dataset.task);
this.props.onShowPop(e)
} }
}, },
closePop() { closePop() {
......
@import "../../template/avater/index.acss";
@import "../../template/checkbox/index.acss";
@import "../../template/deleteBtn/index.acss";
.task-column { .task-column {
box-sizing: border-box; box-sizing: border-box;
padding: 0 42rpx 0 32rpx; padding: 0 42rpx 0 32rpx;
...@@ -40,7 +43,6 @@ ...@@ -40,7 +43,6 @@
.participator-bottom { .participator-bottom {
padding: 14rpx 42rpx 14rpx 96rpx; padding: 14rpx 42rpx 14rpx 96rpx;
margin-bottom: 300rpx;
} }
.people { .people {
...@@ -70,3 +72,12 @@ ...@@ -70,3 +72,12 @@
font-size: 24rpx; font-size: 24rpx;
flex: 1; flex: 1;
} }
.edit-column>.checkbox {
width: 32rpx;
height: 32rpx;
}
.margin-bottom {
margin-bottom: 300rpx;
}
\ No newline at end of file
...@@ -3,18 +3,20 @@ ...@@ -3,18 +3,20 @@
<import src="../../template/checkbox/index.axml"/> <import src="../../template/checkbox/index.axml"/>
<view a:if="{{action == 'create'}}" class="picker-complete" onTap='complete'>完成</view> <view a:if="{{action == 'create'}}" class="picker-complete" onTap='complete'>完成</view>
<view class="task-column edit-column"> <view class="task-column edit-column">
<template a:if="{{action == 'update'}}" is="checkbox" data="{{status: currentTask.status}}"></template> <template a:if="{{action == 'update'}}" is="checkbox" data="{{status: currentTask.taskStatus}}"></template>
<input onBlur="inputChange" value="{{currentTask.title}}" placeholder="请输入任务标题"/> <input onBlur="inputChange" value="{{currentTask.taskInfos.taskTitle}}" placeholder="请输入任务标题"/>
</view> </view>
<view class="task-column participator-top"> <view class="margin-bottom">
<text class="iconicon_attender1 iconfont icon"></text> <view class="task-column participator-top">
<text class="participator-title">执行人</text> <text class="iconicon_attender iconfont icon"></text>
<text class="iconicon_open iconfont icon" data-userId="{{currentTask.userId}}" onTap="handleExcutorChange"></text> <text class="participator-title">{{currentTask.acceptorInfo ? '执行人' : '设置执行人'}}</text>
</view> <text class="iconright iconfont icon" data-acceptorInfo="{{currentTask.acceptorInfo}}" onTap="handleExcutorChange"></text>
<view class="participator-bottom"> </view>
<view class="participator-bottom" a:if="{{currentTask.acceptorInfo}}">
<view class="people"> <view class="people">
<template is="avater" data="{{item: currentTask}}"/> <template is="avater" data="{{item: currentTask.acceptorInfo}}"/>
<view class="name">{{currentTask.username}}</view> <view class="name">{{currentTask.acceptorInfo.username}}</view>
</view>
</view> </view>
</view> </view>
<template a:if="{{action == 'update'}}" is="deleteBtn" data="{{title: '删除该任务' }}"/> <template a:if="{{action == 'update'}}" is="deleteBtn" data="{{title: '删除该任务' }}"/>
\ No newline at end of file
...@@ -3,7 +3,7 @@ Component({ ...@@ -3,7 +3,7 @@ Component({
data: { data: {
task: { task: {
title: '', title: '',
excutor: '' excutor: '',
} }
}, },
props: { props: {
...@@ -39,10 +39,10 @@ Component({ ...@@ -39,10 +39,10 @@ Component({
} }
}, },
handleExcutorChange(e) { handleExcutorChange(e) {
const userId = e.target.dataset.userId; const acceptorInfo = e.target.dataset.acceptorInfo;
//执行人页面可删除执行人 //执行人页面可删除执行人
if (userId) { if (acceptorInfo) {
dd.navigateTo({ url: `../../pages/excutorList/excutorList?userId=${userId}&action=${this.props.action}` }) dd.navigateTo({ url: `../../pages/excutorList/excutorList?acceptorInfo=${JSON.stringify(acceptorInfo)}&action=${this.props.action}` })
} }
//参会人列表页面可选择参会人 //参会人列表页面可选择参会人
else { else {
......
...@@ -12,6 +12,7 @@ create.Page({ ...@@ -12,6 +12,7 @@ create.Page({
excutor: '' //store excutor: '' //store
}, },
onLoad(query) { onLoad(query) {
console.log(this)
const { user, action } = query; const { user, action } = query;
console.log('onLoad') console.log('onLoad')
console.log(query) console.log(query)
......
<import src="../../template/avater/index.axml"/> <import src="../../template/avater/index.axml"/>
<view class="column"> <view class="column">
<template is="avater" data="{{item}}"/> <template is="avater" data="{{item: acceptorInfo}}"/>
<view class="name">{{item.username}} <view class="name">{{acceptorInfo.username}}
<text class="iconfont iconicon_close" onTap="deleteExcutor"></text> <text class="iconfont iconicon_close" onTap="deleteExcutor"></text>
</view> </view>
</view> </view>
\ No newline at end of file
Page({ import create from 'dd-store';
data: {}, import pageStore from '../meetingDetail/store';
onLoad() { }, create.Page({
store: pageStore,
data: {
action: "",
acceptorInfo: ''
},
onLoad(query) {
this.setData({
action: query.action,
acceptorInfo: JSON.parse(query.acceptorInfo)
})
},
deleteExcutor() { deleteExcutor() {
//编辑调用删除接口
if (this.data.action == 'update') {
dd.confirm({ dd.confirm({
title: '删除执行人', title: '删除执行人',
content: '确认删除执行人吗?', content: '确认删除执行人吗?',
...@@ -14,4 +27,10 @@ Page({ ...@@ -14,4 +27,10 @@ Page({
} }
}) })
} }
//更新通知任务模板
else {
}
}
}); });
...@@ -82,14 +82,14 @@ page { ...@@ -82,14 +82,14 @@ page {
.footer>view { .footer>view {
width: 35rpx; width: 35rpx;
height: 35rpx;
margin: 0 38rpx; margin: 0 38rpx;
font-size: 16rpx; font-size: 16rpx;
color: rgba(10, 10, 10, 0.56); color: rgba(10, 10, 10, 0.56);
text-align: center;
} }
.footer>view>.iconfont { .footer>view>.iconfont {
font-size: 40rpx; font-size: 36rpx;
} }
.footer>view:last-child { .footer>view:last-child {
......
<import src="../../template/avater/index.axml"/> <import src="../../template/avater/index.axml"/>
<view class="list"> <view class="list">
<block a:for="{{affairList}}"> <block a:for="{{affairList}}">
<view a:if="{{item.logType == 'task'}}" class='compose-column'> <view a:if="{{item.logType == 'task_add' && item.taskViewList}}" class='compose-column'>
<view class="avater task-avater"> <view class="avater task-avater">
<text class="iconfont iconicon_task1"></text> <text class="iconfont iconicon_task1"></text>
</view> </view>
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
会议任务 会议任务
<text>{{item.createTime}}</text> <text>{{item.createTime}}</text>
</view> </view>
<task-list onShowPop="showPop" taskList="{{item.taskInfos}}" onCheckChange="checkChange"/> <task-list onShowPop="showPop" onSetCurrentTask="setCurrentTask" taskList="{{item.taskViewList}}" onCheckChange="checkChange"/>
</view> </view>
<view a:if="{{item.logType == 'asseory'}}" class='compose-column'> <view a:if="{{item.logType == 'schedule_accessory_add' && item.fileView.fileInfos}}" class='compose-column'>
<template is="avater" data="{{item}}"/> <template is="avater" data="{{item: item.fileView.creatorInfo}}"/>
<view class="title"> <view class="title">
{{item.creator}} {{item.fileView.creatorInfo.username}}
<text>{{item.createTime}}</text> <text>{{item.createTime}}</text>
</view> </view>
<view class="desc"> <view class="desc">
...@@ -22,17 +22,17 @@ ...@@ -22,17 +22,17 @@
</view> </view>
<file-list fileList="{{item.fileInfos}}" onReload="reload"/> <file-list fileList="{{item.fileInfos}}" onReload="reload"/>
</view> </view>
<view a:else class='simple-column'>{{item.content}}</view> <view a:if="{{item.content}}" class='simple-column'>{{item.content}}{{item.createTime}}</view>
</block> </block>
</view> </view>
<view class="footer"> <view class="footer">
<view onTap="showPop" data-pop="{{title: '创建任务', type: 'createTask'}}"> <view onTap="showPop" data-pop="{{title: '创建任务', type: 'createTask'}}">
<text class="iconfont iconicon_data"></text>任务</view> <text class="iconfont iconicon_task1"></text>任务</view>
<view> <view>
<text class="iconfont iconicon_data"></text>文件</view> <text class="iconfont iconicon_data"></text>文件</view>
<text class="devider"></text> <text class="devider"></text>
<view> <view>
<text class="iconfont iconicon_data"></text></view> <text class="iconfont iconicon_share1"></text></view>
</view> </view>
<popup show="{{show}}" onClose="closePop" title="{{pop.title}}"> <popup show="{{show}}" onClose="closePop" title="{{pop.title}}">
<!-- 任务创建弹出框 --> <!-- 任务创建弹出框 -->
......
...@@ -10,41 +10,48 @@ create.Page({ ...@@ -10,41 +10,48 @@ create.Page({
pop: { pop: {
title: '', title: '',
type: '' type: ''
}
}, },
onLoad() { currentTask: {}
},
onLoad(query) {
this.reload(); this.reload();
}, },
//获取动态列表 //获取动态列表
reload() { reload() {
// getMeetingRoomAffairs().then(res => { getMeetingRoomAffairs().then(res => {
// this.store.data.affairList = res.data.data; const affairList = res.data.data;
// this.update(); const newAffairList = affairList.map(it => {
// }) if (it.logType == 'schedule_accessory_add') {
this.store.data.affairList = [{ if (it.fileView.creatorInfo) {
id: 1, content: '大actionList鹏13::00创建了会议', logType: '' it.fileView.creatorInfo = JSON.parse(it.fileView.creatorInfo);
}, }
{ if (it.fileView.fileInfos) {
id: 2, username: '大鹏', creator: '大鹏', createTime: '13::00', logType: 'asseory', it.fileView.fileInfos = JSON.parse(it.fileView.fileInfos)
headUrl: '', }
fileInfos: [{ return it
filename: '打算的你到哪搜点', fileSize: '1201' }
}] else if (it.logType === 'task_add') {
}, it.taskViewList.map(o => {
{ if (o.acceptorInfo) {
id: 2, creator: '大鹏', createTime: '13::00', logType: 'task', o.acceptorInfo = JSON.parse(o.acceptorInfo)
taskInfos: [ }
{ if (o.creatorInfo) {
status: false, o.creatorInfo = JSON.parse(o.creatorInfo)
title: '梳理产品流程图', headUrl: '', username: 'name', userId: '1'
},
{
status: true,
title: '梳理产品流程图2', headUrl: '', username: 'name2', userId: '2'
} }
] if (o.taskInfos) {
o.taskInfos = JSON.parse(o.taskInfos)
} }
]; return o
})
return it
}
return it
})
console.log(newAffairList)
this.store.data.affairList = newAffairList;
this.update();
})
}, },
showPop(e) { showPop(e) {
this.setData({ this.setData({
...@@ -57,6 +64,12 @@ create.Page({ ...@@ -57,6 +64,12 @@ create.Page({
show: false show: false
}) })
}, },
//设置修改任务弹框中当前任务
setCurrentTask(currentTask) {
this.setData({
currentTask
})
},
//修改任务标题 //修改任务标题
inputChange(value) { inputChange(value) {
console.log(value); console.log(value);
......
class Store { class Store {
data = { data = {
participatorList: [ participatorList: [], // 参会人列表
{
status:true,username: 'Ceshi', userId: 1, headUrl: '', platform: 'dingtalk'
},
{
status:false,username: 'Ceshi2', userId: 2, headUrl: '', platform: 'dingtalk'
},
{
status:false,username: 'Ceshi3', userId: 3, headUrl: '', platform: 'dingtalk'
}
], // 参会人列表
locationName: '', locationName: '',
participatorUserId: [], // 参会人的userId participatorUserId: [], // 参会人的userId
userList: [], userList: [],
......
...@@ -11,4 +11,6 @@ ...@@ -11,4 +11,6 @@
.checkbox-active>.iconfont { .checkbox-active>.iconfont {
color: rgba(77, 217, 100, 1); color: rgba(77, 217, 100, 1);
font-size: 24rpx; font-size: 24rpx;
top: -3rpx;
position: relative;
} }
\ 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