From d6448c16b19f4764b14a6d2c0df0495e928dc3d7 Mon Sep 17 00:00:00 2001
From: kimi <kimi42345@gmail.com>
Date: 星期四, 23 一月 2020 15:21:14 +0800
Subject: [PATCH] no message

---
 src/views/calendarTask.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/calendarTask.vue b/src/views/calendarTask.vue
index d83e86c..f65229a 100644
--- a/src/views/calendarTask.vue
+++ b/src/views/calendarTask.vue
@@ -16,7 +16,7 @@
 				<span>{{task_itm.desp}}</span>
 				<div v-for="(type_itm, k_) in task_itm.children" :key="k_" class="right_row_">
 					<span>{{k_+1}}銆亄{type_itm.typeStr}}</span>
-					<el-button size="mini" type="primary" style="float: right; margin-top: 10px;" @click="handleTask(type_itm.id, type_itm.mustAttach, type_itm)">澶勭悊浠诲姟</el-button>
+					<el-button size="mini" type="primary" v-if="userId === task_itm.userId" style="float: right; margin-top: 10px;" @click="handleTask(type_itm.id, type_itm.mustAttach, type_itm)">澶勭悊浠诲姟</el-button>
 				</div>
 			</div>
 		</div>
@@ -77,7 +77,7 @@
 						],
 						prop:'date' ,//瀵瑰簲鏃ユ湡瀛楁鍚�
 						DayDataTree: [],
-						
+						userId:undefined,
 						dialog_1: false,
 						handleTaskType: {},
 						upload_url: "",
@@ -97,7 +97,7 @@
 					let iformat = imoment.format('YYYY-MM');
 					let systemDate = iformat + '-01 00:00:00';
 					this.getDatedef(systemDate);
-					
+					this.userId = localStorage.getItem('userId');
 				},
 				
         methods: {

--
Gitblit v1.8.0