From 5d96f01791a40cf18053c98a3c5f7c1a0a6dff8b Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Thu, 30 Oct 2025 14:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=B1=E5=8D=A0=E8=80=95=E5=9C=B0=E5=BB=BA?= =?UTF-8?q?=E6=88=BF=E8=AF=A6=E6=83=85=E9=A1=B5=E6=98=AF=E5=90=A6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=96=87=E5=AD=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../farmland/ShowInfoModal/index.vue | 30 +++++++++++-------- .../farmland/SplitPolygonModal/index.vue | 30 +++++++++++-------- 2 files changed, 36 insertions(+), 24 deletions(-) diff --git a/src/components/farmland/ShowInfoModal/index.vue b/src/components/farmland/ShowInfoModal/index.vue index da6ef791..b48cf9fc 100644 --- a/src/components/farmland/ShowInfoModal/index.vue +++ b/src/components/farmland/ShowInfoModal/index.vue @@ -80,7 +80,7 @@ dataProcessing(props.showInfoData.sandiaogd_area) }} {{ - props.showInfoData.is_zhanyongsthx + yesOrNoOptions(props.showInfoData.is_zhanyongsthx) }} {{ dataProcessing(props.showInfoData.is_zhanyongsthx_area) @@ -89,10 +89,10 @@ props.showInfoData.is_zhanyongsthx_lx }} {{ - props.showInfoData.is_zhanyongsthx_shouxu + yesOrNoOptions(props.showInfoData.is_zhanyongsthx_shouxu) }} {{ - props.showInfoData.is_zhanyongzdqy + yesOrNoOptions(props.showInfoData.is_zhanyongzdqy) }} {{ dataProcessing(props.showInfoData.is_zhanyongzdqy_area) @@ -121,7 +121,7 @@ }" > {{ - props.showInfoData.is_chufa + yesOrNoOptions(props.showInfoData.is_chufa) }} {{ dataProcessing(props.showInfoData.is_chufa_area) @@ -130,17 +130,17 @@ props.showInfoData.is_chuzhicuosi }} {{ - props.showInfoData.is_chuzhiwancheng + yesOrNoOptions(props.showInfoData.is_chuzhiwancheng) }} {{ - props.showInfoData.is_chzkfbj + yesOrNoOptions(props.showInfoData.is_chzkfbj) }} {{ dataProcessing(props.showInfoData.is_chzkfbj_area) }} {{ - props.showInfoData.is_fuheguihua + yesOrNoOptions(props.showInfoData.is_fuheguihua) }} {{ dataProcessing(props.showInfoData.is_fuheguihua_area) @@ -149,22 +149,22 @@ props.showInfoData.is_fuheguihua_lx }} {{ - props.showInfoData.is_tdzsxmnrcpkffa + yesOrNoOptions(props.showInfoData.is_tdzsxmnrcpkffa) }} {{ - props.showInfoData.is_chzkfbjwcybjlx + yesOrNoOptions(props.showInfoData.is_chzkfbjwcybjlx) }} {{ props.showInfoData.is_chzkfbjwcybjlx_shi }} {{ - props.showInfoData.is_gongyixingxm + yesOrNoOptions(props.showInfoData.is_gongyixingxm) }} {{ - props.showInfoData.is_xiangcunzhxxm + yesOrNoOptions(props.showInfoData.is_xiangcunzhxxm) }} {{ - props.showInfoData.is_yongdibiaozhunyq + yesOrNoOptions(props.showInfoData.is_yongdibiaozhunyq) }} {{ props.showInfoData.is_yongdibiaozhunyq_wt @@ -435,6 +435,12 @@ const handleCancelPreviewFile = ()=>{ return false; } }; + const yesOrNoOptions = (value) => { + if(value == null){ + return '' + } + return value == '1'? '是': '否' + }