From 0941844aa788abd22c16117f448c35f7fd0f95fd Mon Sep 17 00:00:00 2001
From: zhufu <17863654727@163.com>
Date: Thu, 30 Oct 2025 15:14:38 +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=E7=94=A8=E9=80=94=E5=88=86?=
=?UTF-8?q?=E7=B1=BB=E6=98=BE=E7=A4=BA=E6=96=87=E5=AD=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/farmland/ShowInfoModal/index.vue | 3 ++-
src/components/farmland/SplitPolygonModal/index.vue | 3 ++-
src/components/farmland/util.ts | 13 ++++++++++++-
3 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/components/farmland/ShowInfoModal/index.vue b/src/components/farmland/ShowInfoModal/index.vue
index b48cf9fc..10565f76 100644
--- a/src/components/farmland/ShowInfoModal/index.vue
+++ b/src/components/farmland/ShowInfoModal/index.vue
@@ -98,7 +98,7 @@
dataProcessing(props.showInfoData.is_zhanyongzdqy_area)
}}
{{
- props.showInfoData.yongtufenlei
+ getYongtufenleiSpan(props.showInfoData.yongtufenlei)
}}
{{
props.showInfoData.yongtufenlei_chy
@@ -208,6 +208,7 @@
resultOptions,
qitaUseTOOptions,
} from '@/utils/global';
+ import { getYongtufenleiSpan } from '@/components/farmland/util'
const { createMessage } = useMessage();
const { VITE_GLOB_INFO_IMAGE_URL } = getAppEnvConfig();
diff --git a/src/components/farmland/SplitPolygonModal/index.vue b/src/components/farmland/SplitPolygonModal/index.vue
index d26f1932..073b9fda 100644
--- a/src/components/farmland/SplitPolygonModal/index.vue
+++ b/src/components/farmland/SplitPolygonModal/index.vue
@@ -112,7 +112,7 @@
dataProcessing(props.showInfoData.is_zhanyongzdqy_area)
}}
{{
- props.showInfoData.yongtufenlei
+ getYongtufenleiSpan(props.showInfoData.yongtufenlei)
}}
{{
props.showInfoData.yongtufenlei_chy
@@ -432,6 +432,7 @@
resultOptions,
qitaUseTOOptions,
} from '@/utils/global';
+ import { getYongtufenleiSpan } from '@/components/farmland/util'
import { getLoadDroneCaseInfoDetail } from '@/api/farmland/index.ts';
import ShowInfoModal from '@/components/farmland/ShowInfoModal/index.vue';
import { dataProcessing ,dataProcessingCount} from '@/views/demo/tiankongdi/util.ts';
diff --git a/src/components/farmland/util.ts b/src/components/farmland/util.ts
index 20df548f..59848106 100644
--- a/src/components/farmland/util.ts
+++ b/src/components/farmland/util.ts
@@ -47,4 +47,15 @@ export const usePageRequestUrl = {
export const usePageGetSearchItem = {
'patternfilling': ["year", "streetid", "time", "caseNo"],
}
-export const smallInput:any = ['patternfilling']
\ No newline at end of file
+export const smallInput:any = ['patternfilling']
+export const yongtufenleiOptions = [
+ {label: '产业类', value: 1},
+ {label: '公共管理服务类', value: 2},
+ {label: '设施农业类', value: 3},
+]
+export const getYongtufenleiSpan = (value) => {
+ let record = yongtufenleiOptions.find(item => {
+ return item.value == value
+ })
+ return record?.label
+}
\ No newline at end of file