矿产 是否立案筛选条件

dianlixunjian
Zhufu 2024-08-28 17:09:00 +08:00
parent 4a9aad0cd0
commit 5b4c8cd811
5 changed files with 23 additions and 5 deletions

View File

@ -4,6 +4,7 @@
size="small" size="small"
v-model:pageSize="props.pageData.limit" v-model:pageSize="props.pageData.limit"
v-model:current="props.pageData.page" v-model:current="props.pageData.page"
:show-total="total => `共 ${total} 条数据`"
:total="props.total" :total="props.total"
show-size-changer show-size-changer
show-quick-jumper show-quick-jumper

View File

@ -64,6 +64,16 @@
@change="(value) => emits('screenDataChange',value,'typename')" @change="(value) => emits('screenDataChange',value,'typename')"
/> />
</div> </div>
<div class="screen-item" style="margin-right: 13px;margin-bottom:12px;" v-if="showItem('register')">
<div class="screen-item-label">是否立案</div>
<a-select
allowClear
style="width: 97px"
:options="registerOptions"
v-model:value="props.screenData.register"
@change="(value) => emits('screenDataChange',value,'register')"
/>
</div>
<div class="screen-item" style="margin-bottom:12px;" v-if="showItem('time')"> <div class="screen-item" style="margin-bottom:12px;" v-if="showItem('time')">
<div class="screen-item-label" style="margin-right: 10px;">下发时间</div> <div class="screen-item-label" style="margin-right: 10px;">下发时间</div>
<a-range-picker <a-range-picker
@ -82,7 +92,7 @@
class="item-input" class="item-input"
v-model:value="props.screenData.caseNo" v-model:value="props.screenData.caseNo"
@change="(value) => emits('screenDataChange',value.target.value,'caseNo')" @change="(value) => emits('screenDataChange',value.target.value,'caseNo')"
style="width:404px;" :style="`width:${smallInput.includes(props.usePage)? '219': '404'}px;`"
/> />
</div> </div>
<div class="screen-item" style="margin-left: 10px;cursor: pointer;"> <div class="screen-item" style="margin-left: 10px;cursor: pointer;">
@ -101,7 +111,7 @@ import { defineProps, defineEmits, ref, h } from "vue"
import { SearchOutlined } from "@ant-design/icons-vue" import { SearchOutlined } from "@ant-design/icons-vue"
import Icon from '@/components/Icon/Icon.vue'; import Icon from '@/components/Icon/Icon.vue';
import { yearOptions } from '@/utils/global' import { yearOptions } from '@/utils/global'
import { polygonSourceOptions, polygonTypeOptions, countiesOptions, statusOptions, usePageGetSearchItem } from '@/components/illegalmining/util' import { polygonSourceOptions, polygonTypeOptions, countiesOptions, statusOptions, usePageGetSearchItem, smallInput, registerOptions } from '@/components/illegalmining/util'
import { getChildrenTree } from '@/api/demo/system'; import { getChildrenTree } from '@/api/demo/system';
const props = defineProps(["screenData","usePage"]) const props = defineProps(["screenData","usePage"])

View File

@ -248,7 +248,7 @@ const getParams = (data) => {
} }
break break
default: default:
if(props.screenData[key] && props.screenData[key] !== ''){ if(props.screenData[key] !== null && props.screenData[key] !== undefined && props.screenData[key] !== ''){
params[key] = props.screenData[key] params[key] = props.screenData[key]
} }
break break

View File

@ -7,6 +7,7 @@
* nowStatus * nowStatus
* startTime-endTime * startTime-endTime
* caseNo * caseNo
* register
*/ */
// 图斑来源 // 图斑来源
import { getChildrenTree } from '@/api/demo/system'; import { getChildrenTree } from '@/api/demo/system';
@ -60,6 +61,11 @@ export const processIllegalTypeOptions = [
{ label: '购销非法开采矿产品', value: '购销非法开采矿产品'}, { label: '购销非法开采矿产品', value: '购销非法开采矿产品'},
{ label: '其他', value: '其他'}, { label: '其他', value: '其他'},
] ]
// 是否立案
export const registerOptions = [
{ label: '是', value: 1},
{ label: '否', value: 0},
]
export const countiesOptions = counties.map(item => { export const countiesOptions = counties.map(item => {
return { return {
label: item.name, label: item.name,
@ -76,4 +82,5 @@ export const usePageRequestUrl = {
} }
export const usePageGetSearchItem = { export const usePageGetSearchItem = {
'patternfilling': ["year", "tubanlaiyuan", "typename", "countyid", "streetid", "nowStatus", "time", "caseNo"], 'patternfilling': ["year", "tubanlaiyuan", "typename", "countyid", "streetid", "nowStatus", "time", "caseNo"],
} }
export const smallInput:any = []

View File

@ -85,7 +85,7 @@ const query = () => {
} }
break break
default: default:
if(screenData.value[key] && screenData.value[key] !== ''){ if(screenData.value[key] !== null && screenData.value[key] !== undefined && screenData.value[key] !== ''){
params[key] = screenData.value[key] params[key] = screenData.value[key]
} }
break break