|
@@ -23,7 +23,7 @@
|
|
|
<!-- </div> -->
|
|
|
|
|
|
<!--已完成表格-->
|
|
|
- <a-collapse v-model="activeKey" :bordered="false">
|
|
|
+ <a-collapse v-model="activeKey" :bordered="false" class="init_collapse">
|
|
|
<a-collapse-panel key="finished" :disabled="finished_disabled" class="panel-style">
|
|
|
<template slot="header">
|
|
|
<h3>
|
|
@@ -57,28 +57,6 @@
|
|
|
</a-layout-sider>
|
|
|
</a-layout>
|
|
|
|
|
|
- <!--右键菜单-->
|
|
|
- <a-menu :style="menuStyle" v-if="menuVisible">
|
|
|
- <a-menu-item key='1'>
|
|
|
- <a-icon type="alert" theme="filled" />从“我的一天” 中删除
|
|
|
- </a-menu-item>
|
|
|
- <a-menu-item key='2' @click="changeImportant(menuData)">
|
|
|
- <a-icon type="star" theme="filled" />{{menuData.important?'删除重要标记':'标记为重要'}}
|
|
|
- </a-menu-item>
|
|
|
- <a-menu-item key='3' @click="changeFinish(menuData)">
|
|
|
- <a-icon type="check-circle" theme="filled" />{{menuData.finish?'标记为未完成':'标记为已完成'}}
|
|
|
- </a-menu-item>
|
|
|
- <a-menu-item key='4'>
|
|
|
- <a-icon type="calendar" theme="filled" />今天到期
|
|
|
- </a-menu-item>
|
|
|
- <a-menu-item key='5'>
|
|
|
- <a-icon type="calendar" theme="filled" />明天到期
|
|
|
- </a-menu-item>
|
|
|
- <a-menu-item key='6' style="color:red">
|
|
|
- <a-icon type="delete" theme="filled" />删除任务
|
|
|
- </a-menu-item>
|
|
|
- </a-menu>
|
|
|
-
|
|
|
</page-header-wrapper>
|
|
|
</template>
|
|
|
|
|
@@ -158,35 +136,6 @@ export default {
|
|
|
columns,
|
|
|
task_icon: '',
|
|
|
|
|
|
- //右击菜单相关
|
|
|
- menuData: {},
|
|
|
- menuVisible: false,
|
|
|
- menuStyle: {
|
|
|
- position: "absolute",
|
|
|
- top: "0",
|
|
|
- left: "0",
|
|
|
- border: "1px solid #eee",
|
|
|
- width: "200px"
|
|
|
- },
|
|
|
- customClick: record => ({
|
|
|
- on: {
|
|
|
- //点击
|
|
|
- click: e => {
|
|
|
- this.selectItem = record; // 存储点击行数据
|
|
|
-
|
|
|
- },
|
|
|
- // 右击
|
|
|
- contextmenu: e => {
|
|
|
- e.preventDefault();
|
|
|
- this.menuData = record;
|
|
|
- this.menuVisible = true;
|
|
|
- this.menuStyle.top = e.clientY - 90 + "px";
|
|
|
- this.menuStyle.left = e.clientX - 280 + "px";
|
|
|
- document.body.addEventListener("mousedown", this.bodyClick);
|
|
|
- }
|
|
|
- }
|
|
|
- }),
|
|
|
-
|
|
|
//建议-抽屉相关
|
|
|
taskdrawer: false,
|
|
|
|
|
@@ -241,7 +190,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
currentTime() {
|
|
|
- setInterval(this.formatDate, 500);
|
|
|
+ setInterval(this.formatDate, 0);
|
|
|
},
|
|
|
formatDate() {
|
|
|
let date = new Date();
|
|
@@ -349,12 +298,6 @@ export default {
|
|
|
task.important = !task.important
|
|
|
},
|
|
|
|
|
|
- //关闭右键菜单
|
|
|
- bodyClick() {
|
|
|
- this.menuVisible = false;
|
|
|
- document.body.removeEventListener("mousedown", this.bodyClick);
|
|
|
- },
|
|
|
-
|
|
|
//建议-抽屉相关
|
|
|
showDrawer() {
|
|
|
this.taskdrawer = true
|
|
@@ -392,7 +335,10 @@ export default {
|
|
|
border-bottom: 1px solid;
|
|
|
}
|
|
|
|
|
|
-.panel-style >>> .ant-collapse-content .ant-collapse-content-box {
|
|
|
+.panel-style {
|
|
|
+ background-color: white;
|
|
|
+ } >>> .ant-collapse-content .ant-collapse-content-box {
|
|
|
padding: 0px;
|
|
|
+
|
|
|
}
|
|
|
</style>
|