From 050f815891df7c732e1ef64f1f32a83da495af11 Mon Sep 17 00:00:00 2001 From: zhangyanpeng <bob.zhang@highdatas.com> Date: 星期二, 11 二月 2020 23:46:29 +0800 Subject: [PATCH] 时间段调整 --- 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