workflow index

main
panliang 2024-04-28 10:43:06 +08:00
parent 7622ee0af9
commit 023c85e9d9
3 changed files with 18 additions and 0 deletions

View File

@ -77,6 +77,16 @@ const rules = reactive({
}) })
onLoad((options) => { onLoad((options) => {
id.value = options.id id.value = options.id
http.get(`/tasks/${id.value}`).then(res => {
if (res.taskable) {
form.description = res.taskable.description
if (res.taskable.photos && res.taskable.photos.length > 0) {
form.photos = res.taskable.photos.map(item => {
return {url: item}
})
}
}
})
}) })
const submit = () => { const submit = () => {

View File

@ -25,6 +25,10 @@
<view class="w-140rpx">晋升职位</view> <view class="w-140rpx">晋升职位</view>
<view class="">{{ item.job.name }}</view> <view class="">{{ item.job.name }}</view>
</view> </view>
<view class="text-24rpx text-hex-999999 flex">
<view class="w-140rpx">申请时间: </view>
<view class="">{{ item.created_format }}</view>
</view>
<!-- <template v-if="options?.includes(item.promotion_status)"> <!-- <template v-if="options?.includes(item.promotion_status)">
<view class="py-10rpx"> <view class="py-10rpx">

View File

@ -67,6 +67,10 @@
<view class="w-140rpx">晋升职位</view> <view class="w-140rpx">晋升职位</view>
<view class="">{{ item.check.subject.job.name }}</view> <view class="">{{ item.check.subject.job.name }}</view>
</view> </view>
<view class="text-24rpx text-hex-999999 flex">
<view class="w-140rpx">申请时间: </view>
<view class="">{{ item.created_format }}</view>
</view>
</view> </view>
</view> </view>
</template> </template>