|
@@ -3,20 +3,24 @@
|
|
<template v-slot:content>
|
|
<template v-slot:content>
|
|
<div class="page-header-content">
|
|
<div class="page-header-content">
|
|
{{ nowDate }}
|
|
{{ nowDate }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <a-layout>
|
|
|
|
+ <a-layout-content style="height:100%;background-color:white">
|
|
<div style="display: inline-block;float: right;">
|
|
<div style="display: inline-block;float: right;">
|
|
<a-button type="link" icon="swap">
|
|
<a-button type="link" icon="swap">
|
|
排序
|
|
排序
|
|
</a-button>
|
|
</a-button>
|
|
<a-button type="link" icon="bulb" ghost @click="showDrawer">建议</a-button>
|
|
<a-button type="link" icon="bulb" ghost @click="showDrawer">建议</a-button>
|
|
</div>
|
|
</div>
|
|
- <div style="margin-top:15px">
|
|
|
|
|
|
|
|
- <!--添加任务表格-->
|
|
|
|
- <a-input class="init_input" style="border: none; box-shadow: none" @pressEnter="addtask" size="large" placeholder="添加任务" v-model="tasktitle">
|
|
|
|
- <a-icon slot="prefix" type="plus" />
|
|
|
|
- </a-input>
|
|
|
|
- <task-list :taskdata="doingTask" @getData="getDoingData" @refreshData="refreshData" @openConfig="openConfig" />
|
|
|
|
- </div>
|
|
|
|
|
|
+ <!--添加任务表格-->
|
|
|
|
+ <a-input class="init_input" style="border: none; box-shadow: none" @pressEnter="addtask" size="large" placeholder="添加任务" v-model="tasktitle">
|
|
|
|
+ <a-icon slot="prefix" type="plus" />
|
|
|
|
+ </a-input>
|
|
|
|
+ <task-list :taskdata="doingTask" @getData="getDoingData" @refreshData="refreshData" @openConfig="openConfig" />
|
|
|
|
+ <!-- </div> -->
|
|
|
|
|
|
<!--已完成表格-->
|
|
<!--已完成表格-->
|
|
<a-collapse v-model="activeKey" :bordered="false">
|
|
<a-collapse v-model="activeKey" :bordered="false">
|
|
@@ -29,16 +33,14 @@
|
|
<task-list :taskdata="finishedTask" @getData="getFinishedData" @refreshData="refreshData" @openConfig="openConfig" />
|
|
<task-list :taskdata="finishedTask" @getData="getFinishedData" @refreshData="refreshData" @openConfig="openConfig" />
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
</a-collapse>
|
|
</a-collapse>
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
-
|
|
|
|
- <template v-slot:extraContent v-if="showright">
|
|
|
|
- <div class="extra-content" style="text-align:left;width:340px;margin-left:-80px;">
|
|
|
|
- <!-- 任务详情侧边栏 -->
|
|
|
|
- <task-details ref="taskDetails" v-show="taskconfig" :taskInfo="taskInfo"></task-details>
|
|
|
|
|
|
+ </a-layout-content>
|
|
|
|
|
|
- <!--点击建议打开抽屉-->
|
|
|
|
- <a-drawer title="建议" placement="right" :width="350" :visible="taskdrawer" :mask="false" @close="closeDrawer" class="advise_drawer" style="background-color: #faf9f8;">
|
|
|
|
|
|
+ <a-layout-sider v-show="showright" style="height:100%;margin-left:10px;background-color:rgb(240,242,245)" theme="light" width="300px">
|
|
|
|
+ <task-details ref="taskDetails" v-show="taskconfig" :taskInfo="taskInfo" @collapseSider="closeConfig"></task-details>
|
|
|
|
+ <a-card title="建议" style="width:300px;" v-show="taskdrawer">
|
|
|
|
+ <div slot="extra">
|
|
|
|
+ <a-button size="small" icon="close" @click="closeDrawer"></a-button>
|
|
|
|
+ </div>
|
|
<div v-if="yesterdayTask.length!=0">
|
|
<div v-if="yesterdayTask.length!=0">
|
|
<h4><strong>昨天</strong></h4>
|
|
<h4><strong>昨天</strong></h4>
|
|
<move-task-list :taskdata="yesterdayTask" />
|
|
<move-task-list :taskdata="yesterdayTask" />
|
|
@@ -51,9 +53,9 @@
|
|
<h4><strong>最近添加</strong></h4>
|
|
<h4><strong>最近添加</strong></h4>
|
|
<move-task-list :taskdata="latelyTask" />
|
|
<move-task-list :taskdata="latelyTask" />
|
|
</div>
|
|
</div>
|
|
- </a-drawer>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
|
|
+ </a-card>
|
|
|
|
+ </a-layout-sider>
|
|
|
|
+ </a-layout>
|
|
|
|
|
|
<!--右键菜单-->
|
|
<!--右键菜单-->
|
|
<a-menu :style="menuStyle" v-if="menuVisible">
|
|
<a-menu :style="menuStyle" v-if="menuVisible">
|
|
@@ -357,9 +359,7 @@ export default {
|
|
showDrawer() {
|
|
showDrawer() {
|
|
this.taskdrawer = true
|
|
this.taskdrawer = true
|
|
|
|
|
|
- if (this.taskconfig) {
|
|
|
|
- this.taskconfig = false
|
|
|
|
- }
|
|
|
|
|
|
+ this.taskconfig = false
|
|
},
|
|
},
|
|
closeDrawer() {
|
|
closeDrawer() {
|
|
this.taskdrawer = false
|
|
this.taskdrawer = false
|
|
@@ -372,9 +372,7 @@ export default {
|
|
console.log(param)
|
|
console.log(param)
|
|
this.taskInfo = param
|
|
this.taskInfo = param
|
|
|
|
|
|
- if (this.taskdrawer) {
|
|
|
|
- this.taskdrawer = false
|
|
|
|
- }
|
|
|
|
|
|
+ this.taskdrawer = false
|
|
},
|
|
},
|
|
closeConfig() {
|
|
closeConfig() {
|
|
this.taskconfig = false
|
|
this.taskconfig = false
|