列表重置优化

This commit is contained in:
‘huanghaiixia’
2026-04-07 16:41:59 +08:00
parent f475a86bc6
commit 59740468d1
14 changed files with 28 additions and 15 deletions

View File

@ -130,7 +130,8 @@
field: 'dateAppro',
label: '拟稿日期',
component: 'RangePicker',
defaultValue: defaultDate.value,
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },

View File

@ -134,7 +134,8 @@
field: 'dateFrom',
label: '有效期',
component: 'RangePicker',
defaultValue: defaultDate.value,
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },

View File

@ -124,7 +124,7 @@
},
schemas: customSearchFormSchema,
fieldMapToTime: [['dateFrom', ['startDate', 'endDate'], 'YYYY-MM-DD']],
showResetButton: false,
showResetButton: true,
},
beforeFetch: (params) => {
return { ...params, FormId: formIdComputedRef.value, PK: 'id',page: params.limit};
@ -527,4 +527,7 @@
:deep(.ant-col-8:nth-child(5) .ant-select-selector) {
width: 172px !important;
}
:deep(.ant-col-8:nth-child(3) .ant-form-item-label) {
width: 80px !important;
}
</style>

View File

@ -29,9 +29,7 @@
const logId = ref('')
const logPath = ref('/contract/contractSalesPngPur/datalog');
import { DataLog } from '/@/components/pcitc';
import { ref, computed, onMounted, onUnmounted,
} from 'vue';
import { ref, computed, onMounted, onUnmounted } from 'vue';
import { BasicTable, useTable, TableAction, ActionItem } from '/@/components/Table';
import { getLngContractSalesPngPointPage, deleteLngContractSalesPngPoint} from '/@/api/contract/ContractSalesPngPur';
@ -106,6 +104,7 @@
label: '销售合同有效期',
component: 'RangePicker',
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },

View File

@ -148,7 +148,8 @@
field: 'datePlan',
label: '计划日期',
component: 'RangePicker',
defaultValue: defaultDate.value,
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },

View File

@ -121,7 +121,8 @@
field: 'datePlan',
label: '计划日期',
component: 'RangePicker',
defaultValue: defaultDate.value,
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },

View File

@ -105,7 +105,8 @@
field: 'dateMea',
label: '计量日期',
component: 'RangePicker',
defaultValue: defaultDate.value,
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },

View File

@ -107,7 +107,8 @@
field: 'dateEta',
label: '卸港ETA',
component: 'RangePicker',
defaultValue: defaultDate.value,
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },

View File

@ -104,7 +104,8 @@
field: 'dateEta',
label: '卸港ETA',
component: 'RangePicker',
defaultValue: defaultDate.value,
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },

View File

@ -115,7 +115,8 @@
field: 'dateEta',
label: '卸港ETA',
component: 'RangePicker',
defaultValue: defaultDate.value,
defaultValue: defaultDate.value,
clearOnReset: true,
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },