|
@@ -31,7 +31,6 @@
|
|
|
<div class="detail-people item"><div class="label">参与人:</div>
|
|
|
{{ nowDetailData.peopleObject.name }}
|
|
|
</div>
|
|
|
- <div class="detail-needs item"><div class="label">同步到团队:</div>{{ nowDetailData.syncTeam === 0?'否':'是' }}</div>
|
|
|
<div class="detail-tasks item"><div class="label">日程描述:</div>{{ nowDetailData.desc }}</div>
|
|
|
<div class="footer">
|
|
|
<div class="cancel" @click="deleteSchedule">删除</div>
|
|
@@ -88,8 +87,8 @@ export default {
|
|
|
position: {
|
|
|
handler(newV) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs['show-schedule-detail'].style.left = newV[0] || 0
|
|
|
- this.$refs['show-schedule-detail'].style.top = newV[1] || 0
|
|
|
+ if (this.$refs['show-schedule-detail']) this.$refs['show-schedule-detail'].style.left = newV[0] || 0
|
|
|
+ if (this.$refs['show-schedule-detail']) this.$refs['show-schedule-detail'].style.top = newV[1] || 0
|
|
|
})
|
|
|
},
|
|
|
deep: true
|
|
@@ -110,7 +109,9 @@ export default {
|
|
|
}
|
|
|
if (this.showDetail) {
|
|
|
const topScroll = e.srcElement.scrollTop // 获取页面滚动高度
|
|
|
- this.$refs['show-schedule-detail'].style.top = Number(this.position[1].replace('px', '')) - (topScroll - this.topScroll) + 'px'
|
|
|
+ if (this.$refs['show-schedule-detail']) {
|
|
|
+ this.$refs['show-schedule-detail'].style.top = Number(this.position[1].replace('px', '')) - (topScroll - this.topScroll) + 'px'
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
editSchedule() {
|