提交 ff465a24 authored 作者: lidongxu's avatar lidongxu

refactor(inspectiontask): 修复:售点稽查_查看任务信息时,地址只显示不重新获取

上级 460fdcc8
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
<p v-else>{{ addressStr }}</p> <p v-else>{{ addressStr }}</p>
<van-icon name="replay" <van-icon name="replay"
class="refresh-icon" class="refresh-icon"
@click="handleClickLocation" v-if="!isEdit"/> @click="handleClickLocation"
v-if="!isEdit" />
</div> </div>
<!-- 门头照上传 --> <!-- 门头照上传 -->
...@@ -277,18 +278,20 @@ const getInspectionTaskDetailFn = async () => { ...@@ -277,18 +278,20 @@ const getInspectionTaskDetailFn = async () => {
dealerCode: form.dealerCode dealerCode: form.dealerCode
}) })
form.rstId = res.data.rstId form.rstId = res.data.rstId
// 一定在这里获取地理位置(保证稽查任务 id 创建完毕)
getLocationFn()
} }
nextTick(() => { nextTick(() => {
isInitializing.value = false isInitializing.value = false
// 初始化 4 个分组
conventionRef.value.init() conventionRef.value.init()
scheduleDisplayRef.value.init() scheduleDisplayRef.value.init()
scheduleAdjustmentRef.value.init() scheduleAdjustmentRef.value.init()
categoryInformationRef.value.init() categoryInformationRef.value.init()
}) })
// 一定在这里获取地理位置(保证稽查任务 id 创建完毕)
getLocationFn()
} }
getInspectionTaskDetailFn() getInspectionTaskDetailFn()
...@@ -600,7 +603,7 @@ const deleteLongTimePictureArr = async (file, { name, index }) => { ...@@ -600,7 +603,7 @@ const deleteLongTimePictureArr = async (file, { name, index }) => {
margin: 0; margin: 0;
} }
.refresh-icon{ .refresh-icon {
margin-left: auto; margin-left: auto;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论