no message

main
HUOJIN\92525 2026-01-15 18:00:38 +08:00
parent 285fa0b444
commit a4eb09b017
4 changed files with 22 additions and 19 deletions

View File

@ -139,6 +139,10 @@
width: 120, width: 120,
fixed: 'right', fixed: 'right',
}, },
defSort: {
column: 'createTime',
order: 'asc',
},
beforeFetch: async (params) => { beforeFetch: async (params) => {
// //
const newQueryParam = { ...queryParam }; const newQueryParam = { ...queryParam };

View File

@ -272,9 +272,17 @@ export default defineComponent({
*/ */
const handleSearch = debounce(function (value: string) { const handleSearch = debounce(function (value: string) {
searchKeyword.value = value; searchKeyword.value = value;
if (!value) {
//
pageNo.value = 1; pageNo.value = 1;
isHasData.value = true; isHasData.value = true;
queryData(1, '', false);
} else {
//
pageNo.value = 1;
isHasData.value = true;
queryData(1, value, true);
}
// API // API
queryData(1, value, true); queryData(1, value, true);
}, 300); }, 300);

View File

@ -7,12 +7,7 @@
<a-col :lg="6"> <a-col :lg="6">
<a-form-item name="areaId"> <a-form-item name="areaId">
<template #label><span title="库区">库区</span></template> <template #label><span title="库区">库区</span></template>
<JSearchSelect <AreaSelect v-model:value="queryParam.areaId" />
v-model:value="queryParam.areaId"
placeholder="请选择库区"
dict="base_area where iz_active=1 and del_flag=0 ,area_name,id"
allowClear
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="6"> <a-col :lg="6">
@ -108,6 +103,7 @@
import JInput from '../../../components/Form/src/jeecg/components/JInput.vue'; import JInput from '../../../components/Form/src/jeecg/components/JInput.vue';
import SwitchStatus from '/@/views/base/SwitchStatus.vue'; import SwitchStatus from '/@/views/base/SwitchStatus.vue';
import { JDictSelectTag, JSearchSelect } from '@/components/Form'; import { JDictSelectTag, JSearchSelect } from '@/components/Form';
import AreaSelect from '@/views/base/area/components/AreaSelect.vue';
const fieldPickers = reactive({}); const fieldPickers = reactive({});

View File

@ -6,13 +6,7 @@
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="库区" v-bind="validateInfos.areaId" id="PointForm-areaId" name="areaId"> <a-form-item label="库区" v-bind="validateInfos.areaId" id="PointForm-areaId" name="areaId">
<JSearchSelect <AreaSelect v-model:value="formData.areaId" @change="onAreaChange" />
v-model:value="formData.areaId"
placeholder="请选择库区"
dict="base_area where iz_active=1 and del_flag=0,area_name,id"
allowClear
@change="onAreaChange"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
@ -21,7 +15,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12" v-if="formData.areaId!='1986328561044119554' && formData.areaId!='1986337742572707841'"> <a-col :span="12" v-if="formData.areaId!='1986328561044119554' && formData.areaId!='1986337742572707841' && formData.areaId!='2011686820969934849' && formData.areaId!='2011686935004672001' ">
<a-form-item label="状态" v-bind="validateInfos.status" id="PointForm-status" name="status"> <a-form-item label="状态" v-bind="validateInfos.status" id="PointForm-status" name="status">
<JDictSelectTag <JDictSelectTag
v-model:value="formData.status" v-model:value="formData.status"
@ -146,6 +140,7 @@
import { JDictSelectTag, JSearchSelect } from '@/components/Form'; import { JDictSelectTag, JSearchSelect } from '@/components/Form';
import JSwitch from '@/components/Form/src/jeecg/components/JSwitch.vue'; import JSwitch from '@/components/Form/src/jeecg/components/JSwitch.vue';
import { getTenantId } from '@/utils/auth'; import { getTenantId } from '@/utils/auth';
import AreaSelect from '@/views/base/area/components/AreaSelect.vue';
const props = defineProps({ const props = defineProps({
formDisabled: { type: Boolean, default: false }, formDisabled: { type: Boolean, default: false },
@ -212,8 +207,8 @@
// ID // ID
const CP_MJ_AREA_IDS = new Set(['1988794761598668802', '1988795017837088770']); const CP_MJ_AREA_IDS = new Set(['1988794761598668802', '1988795017837088770']);
// //
const CP_MJ_RK_CK_AREA_IDS = new Set(['1988794761598668802', '1988795017837088770', '1986328561044119554', '1986337742572707841']); const CP_MJ_RK_CK_AREA_IDS = new Set(['1988794761598668802', '1988795017837088770', '1986328561044119554', '1986337742572707841','2011686820969934849','2011686935004672001']);
/** /**
* 库区选择变化事件 * 库区选择变化事件