Commit 731841b7 by wangzhihui

```

fix(residentManage): 修复审批视图组件中的空值错误和显示问题

- 修复 merchantBrandList 空值导致的错误,添加安全检查
- 为审批意见添加默认值 "-" 避免显示空白
- 添加 referData 存在性检查,防止表单渲染错误
- 移除调试用的 console.log 语句
```
1 parent 50455cc8
......@@ -23,7 +23,10 @@
<template #merchantBrandRefList>
<div
class="merchantBrand-box"
v-if="detailInfo.merchantBrandList.length"
v-if="
detailInfo.merchantBrandList &&
detailInfo.merchantBrandList.length
"
>
<div
class="box"
......@@ -60,13 +63,13 @@
<el-form-item label="审批意见:">
<!-- 将 v-html 改为纯文本插值,并应用换行样式 -->
<span class="opinion-text">{{
formatOpinionText(item.approveOpinion)
formatOpinionText(item.approveOpinion) || "-"
}}</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form label-width="150px">
<el-form label-width="150px" v-if="detailInfo.referData">
<el-row
:gutter="20"
:key="index"
......@@ -202,7 +205,7 @@ export default {
res.merchantBrandRefList
)
this.detailInfo = res
console.log(this.detailInfo, "this.detailInfo")
// console.log(this.detailInfo, "this.detailInfo")
})
},
handleMerchantBrandRefList(data) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!