Commit 88fdd0e9 by pangchong

feat: 防风害待办修改

parent ea88335d
......@@ -32,12 +32,12 @@
]"
></up-swipe-action-item>
</up-swipe-action>
<view class="item" @tap="goDetails(item, option.id)">
<view class="item" @tap="goDetails(item, option)">
<view class="item-title">
<view class="left">
<custom-state :value="useGetDictByValue('wdm_isOpen', item.isOpen)"></custom-state>
<view style="margin-left: 12rpx">
<global-tag type="primary" border :background="false">巡场检查单</global-tag>
<global-tag type="primary" border :background="false">{{ taskList[option.taskType].name }}</global-tag>
</view>
</view>
<view class="right">
......@@ -88,6 +88,28 @@ import useBaseStore from 'mocp/store/base'
import { ref } from 'vue'
import { onUnload } from '@dcloudio/uni-app'
const taskList = {
1: {
index: 0,
name: '巡场检查单',
url: '/panel/windDamageManagement/patrolDetails'
},
2: {
index: 1,
name: '操作单',
url: '/panel/windDamageManagement/operateDetails'
},
3: {
index: 2,
name: '系留单',
url: '/panel/windDamageManagement/mooringDetails'
},
4: {
index: 3,
name: '防沙尘暴签署单',
url: '/panel/windDamageManagement/sandstormDetails'
}
}
const userStore = useUserStore()
const baseStore = useBaseStore()
const myToDoStore = useMyToDoStore()
......@@ -100,11 +122,12 @@ const ps = defineProps({
}
})
//跳转
const goDetails = (data, basicId) => {
windDamageManagementStore.setState('basicId', basicId)
const goDetails = (data, option) => {
windDamageManagementStore.setState('tabIndex', taskList[option.taskType].index)
windDamageManagementStore.setState('basicId', option.id)
windDamageManagementStore.setState('weatherId', data.id)
windDamageManagementStore.setState('weatherSource', data.weatherSource)
uni.$mocpJump.navigateTo('/panel/windDamageManagement/patrolDetails')
uni.$mocpJump.navigateTo(taskList[option.taskType].url)
}
//删除
const handleDelete = (data) => {
......
<template>
<global-page
:padding="24"
title="防风害巡场检查单"
title="防风害操作单"
:showFooterBtn="getBasicVo.rxStatus == '0'"
footerBtnText="接收"
@handleFooterClick="handleFooterClick"
......
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