Commit 75bc266c by pangchong

feat: 兼容

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