矿产 是否立案筛选条件

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"
v-model:pageSize="props.pageData.limit"
v-model:current="props.pageData.page"
:show-total="total => `共 ${total} 条数据`"
:total="props.total"
show-size-changer
show-quick-jumper

View File

@ -64,6 +64,16 @@
@change="(value) => emits('screenDataChange',value,'typename')"
/>
</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-label" style="margin-right: 10px;">下发时间</div>
<a-range-picker
@ -82,7 +92,7 @@
class="item-input"
v-model:value="props.screenData.caseNo"
@change="(value) => emits('screenDataChange',value.target.value,'caseNo')"
style="width:404px;"
:style="`width:${smallInput.includes(props.usePage)? '219': '404'}px;`"
/>
</div>
<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 Icon from '@/components/Icon/Icon.vue';
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';
const props = defineProps(["screenData","usePage"])

View File

@ -248,7 +248,7 @@ const getParams = (data) => {
}
break
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]
}
break

View File

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

View File

@ -85,7 +85,7 @@ const query = () => {
}
break
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]
}
break