Commit 75bc266c by pangchong

feat: 兼容

parent 7a52f735
......@@ -504,10 +504,12 @@ const { details, getBasicVo, getConclusionVo, getWorkVo, basicId, tabIndex, getD
onLoad(() => {
init()
})
const collapseRef = ref()
const init = async () => {
await windDamageManagementStore.getAllTaskInfoByWeather()
Object.assign(formData, getWorkVo.value)
formData.basicId = basicId.value
collapseRef.value?.init()
}
//接收历史
const receiveHistoryListRef = ref()
......@@ -571,7 +573,6 @@ const formData = reactive({
wheelMeasure: ''
})
//适配折叠高度
const collapseRef = ref()
watch(
() => formData.situation,
() => {
......
......@@ -13,7 +13,7 @@
>
<template v-if="details">
<view class="mocp-cell">
<up-collapse :value="['1', '2', '3']">
<up-collapse :value="['1', '2', '3']" ref="collapseRef">
<up-collapse-item name="1">
<template #title>
<view class="mocp-title">
......@@ -652,10 +652,12 @@ const { details, getBasicVo, getConclusionVo, getWorkVo, basicId, tabIndex, getD
onLoad(() => {
init()
})
const collapseRef = ref()
const init = async () => {
await windDamageManagementStore.getAllTaskInfoByWeather()
Object.assign(formData, getWorkVo.value)
formData.basicId = basicId.value
collapseRef.value?.init()
}
//接收历史
const receiveHistoryListRef = ref()
......
......@@ -13,7 +13,7 @@
>
<template v-if="details">
<view class="mocp-cell">
<up-collapse :value="['1', '2', '3']">
<up-collapse :value="['1', '2', '3']" ref="collapseRef">
<up-collapse-item name="1">
<template #title>
<view class="mocp-title">
......@@ -464,10 +464,12 @@ const { details, getBasicVo, getConclusionVo, getWorkVo, basicId, tabIndex, getD
onLoad(() => {
init()
})
const collapseRef = ref()
const init = async () => {
await windDamageManagementStore.getAllTaskInfoByWeather()
Object.assign(formData, getWorkVo.value)
formData.basicId = basicId.value
collapseRef.value?.init()
}
//接收历史
const receiveHistoryListRef = ref()
......
......@@ -13,7 +13,7 @@
>
<template v-if="details">
<view class="mocp-cell">
<up-collapse :value="['1', '2', '3']">
<up-collapse :value="['1', '2', '3']" ref="collapseRef">
<up-collapse-item name="1">
<template #title>
<view class="mocp-title">
......@@ -245,10 +245,12 @@ const { details, getBasicVo, getConclusionVo, getWorkVo, basicId, tabIndex, getD
onLoad(() => {
init()
})
const collapseRef = ref()
const init = async () => {
await windDamageManagementStore.getAllTaskInfoByWeather()
Object.assign(formData, getWorkVo.value)
formData.basicId = basicId.value
collapseRef.value?.init()
}
//接收历史
const receiveHistoryListRef = ref()
......
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