乱占耕地建房线索列表字段展示效果文字效果优化

main
zhufu 2025-10-30 15:24:36 +08:00
parent 0941844aa7
commit 7ad9541e85
4 changed files with 17 additions and 15 deletions

View File

@ -208,7 +208,7 @@
resultOptions,
qitaUseTOOptions,
} from '@/utils/global';
import { getYongtufenleiSpan } from '@/components/farmland/util'
import { getYongtufenleiSpan, yesOrNoOptions } from '@/components/farmland/util'
const { createMessage } = useMessage();
const { VITE_GLOB_INFO_IMAGE_URL } = getAppEnvConfig();
@ -436,12 +436,6 @@ const handleCancelPreviewFile = ()=>{
return false;
}
};
const yesOrNoOptions = (value) => {
if(value == null){
return ''
}
return value == '1'? '是': '否'
}
</script>
<style lang="scss" scoped>

View File

@ -432,7 +432,7 @@
resultOptions,
qitaUseTOOptions,
} from '@/utils/global';
import { getYongtufenleiSpan } from '@/components/farmland/util'
import { getYongtufenleiSpan, yesOrNoOptions } 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';
@ -1158,12 +1158,6 @@ import { itemProps } from '@/components/Menu/src/props';
}
return true;
};
const yesOrNoOptions = (value) => {
if(value == null){
return ''
}
return value == '1'? '是': '否'
}
</script>
<style lang="scss" scoped>

View File

@ -58,4 +58,10 @@ export const getYongtufenleiSpan = (value) => {
return item.value == value
})
return record?.label
}
export const yesOrNoOptions = (value) => {
if(value == null){
return ''
}
return value == '1'? '是': '否'
}

View File

@ -48,9 +48,16 @@
<PermissionBtn @btn-event="onBtnClicked" />
</template>
<template #bodyCell="{ column, record }">
<template v-if="['area', 'gengdiarea', 'nongyongdiarea'].includes(column.key)">
<template v-if="['area', 'gengdiarea', 'yongjiujibennongtian_area', 'sandiaojsyd_area', 'sandiaonyd_area',
'sandiaogd_area', 'jsyd_area_2022', 'nyd_area_2022', 'gd_area_2022', 'taoheyn_area'].includes(column.key)">
{{ dataProcessingCount(record[column.key]) }}
</template>
<template v-if="['is_zhanyongsthx', 'is_zhanyongzdqy', 'is_chufa', 'is_chuzhiwancheng'].includes(column.key)">
{{ yesOrNoOptions(record[column.key]) }}
</template>
<template v-if="['yongtufenlei'].includes(column.key)">
{{ getYongtufenleiSpan(record[column.key]) }}
</template>
<template v-if="column.key === 'action'">
<TableAction
:actions="[
@ -110,6 +117,7 @@
import dayjs from 'dayjs';
import { message } from 'ant-design-vue';
import { xcsjNowStatusOptions } from '@/utils/global';
import { getYongtufenleiSpan, yesOrNoOptions } from '@/components/farmland/util'
const { VITE_GLOB_API_URL } = getAppEnvConfig();