Commit 8365c685 by xiexiaoqin

fix: show bug

parent dce367d5
...@@ -71,15 +71,16 @@ create.Component({ ...@@ -71,15 +71,16 @@ create.Component({
}, },
//去编辑文件页面 //去编辑文件页面
updateFile(e) { updateFile(e) {
this.setData({ this.store.data.logId = '';
logId: ''
});
const { fileInfos, description } = e.target.dataset.fileView; const { fileInfos, description } = e.target.dataset.fileView;
this.store.data.oldFileInfos = JSON.stringify(fileInfos); this.store.data.oldFileInfos = JSON.stringify(fileInfos);
this.store.data.oldDescription = description; this.store.data.oldDescription = description;
this.store.data.fileInfos = fileInfos; this.store.data.fileInfos = fileInfos;
this.store.data.description = e.target.dataset.fileView.description; this.store.data.description = e.target.dataset.fileView.description;
this.update();
setTimeout(() => {
dd.navigateTo({ url: `./../uploadFile/uploadFile?action=update` }) dd.navigateTo({ url: `./../uploadFile/uploadFile?action=update` })
})
} }
}, },
}); });
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
<view class="affair-list" onTap="hideFileOperate"> <view class="affair-list" onTap="hideFileOperate">
<view class="affair-list-title">会议动态</view> <view class="affair-list-title">会议动态</view>
<block a:for="{{affairList}}"> <block a:for="{{affairList}}">
<view a:if="{{item.category == '3' && item.taskViewList}}" class='compose-column'> <view a:if="{{item.category == '3' && item.taskViewList && item.taskViewList.length > 0}}" class='compose-column'>
<view class="avater task-avater"> <view class="avater task-avater">
<text class="iconfont iconicon_task1"></text> <text class="iconfont iconicon_task1"></text>
</view> </view>
......
...@@ -1059,7 +1059,7 @@ create.Page({ ...@@ -1059,7 +1059,7 @@ create.Page({
} }
}, },
// 删除 日程 // 删除 日程
delSheudle() { handleDelete() {
const _that = this const _that = this
if (this.data.repeatable) { if (this.data.repeatable) {
this.setData({ this.setData({
...@@ -1422,7 +1422,7 @@ function getCreateShowTime(createdTime) { ...@@ -1422,7 +1422,7 @@ function getCreateShowTime(createdTime) {
timeResule = '刚刚' timeResule = '刚刚'
} else if (letMin < 60) { } else if (letMin < 60) {
timeResule = letMin + '分钟前' timeResule = letMin.toFixed(0) + '分钟前'
} else { } else {
timeResule = (letMin / 60).toFixed(0) + '小时前' timeResule = (letMin / 60).toFixed(0) + '小时前'
} }
......
<template name="deleteBtn"> <template name="deleteBtn">
<view class="delete-task-wrap"> <view class="delete-task-wrap">
<view class="delete-task" onTap="delSheudle"> <view class="delete-task" onTap="handleDelete">
<text class="iconfont iconicon_noAgreed1"></text> <text class="iconfont iconicon_noAgreed1"></text>
{{title}} {{title}}
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment