|
@ -1,11 +1,10 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="px-3 pb-10"> |
|
|
<view class="px-3 py-5"> |
|
|
<view :key="index" v-for="(item, index) in tasks"> |
|
|
<view :key="index" v-for="(item, index) in tasks"> |
|
|
<view class="flex items-center"> |
|
|
<view class="flex"> |
|
|
<TimeStatus :content="JSON.stringify(item.process)" :status="item.process" /> |
|
|
<TimeStatus :content="JSON.stringify(item.process)" :status="item.process" /> |
|
|
<view class="flex justify-between flex-1 ml-2"> |
|
|
<view class="flex justify-between items-center flex-1 ml-2"> |
|
|
<view>{{ +item.planStart | date('mm-dd hh:MM') }}</view> |
|
|
<view>{{ $moment(+item.planStart).format('MM-DD HH:mm') }} {{ $t.time.formatDuration(item.planDuration) }}</view> |
|
|
<!-- {{ item.planDuration }} --> |
|
|
|
|
|
<view> |
|
|
<view> |
|
|
<view class="flex justify-between" style="min-width: 180rpx"> |
|
|
<view class="flex justify-between" style="min-width: 180rpx"> |
|
|
<u-icon custom-prefix="custom-icon" name="C-bxl-redux" size="34"></u-icon> |
|
|
<u-icon custom-prefix="custom-icon" name="C-bxl-redux" size="34"></u-icon> |
|
@ -17,7 +16,14 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="border-l-2 border-gray-300 ml-3.5 my-2"> |
|
|
<view class="border-l-2 border-gray-300 ml-3.5 my-2"> |
|
|
<view class="ml-4 overflow-hidden shadow-lg task-box"> |
|
|
<view class="ml-4 overflow-hidden shadow-lg task-box"> |
|
|
<u-card :show-foot="false" :show-head="false" :style="{ height: setHeight(item.panel) }" class="h-16" margin="0"> |
|
|
<u-card |
|
|
|
|
|
:show-foot="false" |
|
|
|
|
|
:show-head="false" |
|
|
|
|
|
:style="{ height: setHeight(item.panel) }" |
|
|
|
|
|
@click="changeTimeNode(item.planStart)" |
|
|
|
|
|
class="h-16" |
|
|
|
|
|
margin="0" |
|
|
|
|
|
> |
|
|
<!-- 任务面板插件 --> |
|
|
<!-- 任务面板插件 --> |
|
|
<view slot="body"> |
|
|
<view slot="body"> |
|
|
<view :key="pluginIndex" class="p-0 u-col-between u-skeleton" v-for="(plugin, pluginIndex) in item.plugins"> |
|
|
<view :key="pluginIndex" class="p-0 u-col-between u-skeleton" v-for="(plugin, pluginIndex) in item.plugins"> |
|
@ -57,7 +63,7 @@ export default { |
|
|
created() {}, |
|
|
created() {}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
...mapMutations('home', ['setTipsContent', 'setTipsContent']), |
|
|
...mapMutations('home', ['setTipsContent', 'setTipsContent', 'setTimeNode']), |
|
|
|
|
|
|
|
|
// 设置任务面板高度 |
|
|
// 设置任务面板高度 |
|
|
setHeight(panel) { |
|
|
setHeight(panel) { |
|
@ -67,6 +73,11 @@ export default { |
|
|
return 'auto'; |
|
|
return 'auto'; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 点击任务面板 修改store时间基准点 |
|
|
|
|
|
changeTimeNode(time) { |
|
|
|
|
|
this.setTimeNode(time); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|