diff --git a/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue b/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue index 9ad189ce7..085162d16 100644 --- a/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue +++ b/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue @@ -6,6 +6,7 @@ @columnFliterCallback="columnFliterCallback" :searchConfig="searchConfig" :searchForm="searchForm" + :searchRules="searchRules" :reportName="reportName" @headerSearchHandle="headerSearchHandle" :showReportTitle="showReportTitle" @@ -52,6 +53,11 @@ export default { type: Object, default: null }, + // 查询条件必填项 + searchRules:{ + type: Object, + default:null + }, // 底部汇总配置 BottomFixedItem:{ type: Array, @@ -111,8 +117,14 @@ export default { }) }, // 查询事件 - headerSearchHandle(data){ - this.getList() + headerSearchHandle(data,el){ + el.validate((valid) => { + if (valid) { + this.getList() + } else { + return false; + } + }); }, // 更新表格数据 updateTableData(data){ diff --git a/fe/UI.DY.AgGridReport/src/components/reportPageHeader/index.vue b/fe/UI.DY.AgGridReport/src/components/reportPageHeader/index.vue index c544980e2..1a291ab2f 100644 --- a/fe/UI.DY.AgGridReport/src/components/reportPageHeader/index.vue +++ b/fe/UI.DY.AgGridReport/src/components/reportPageHeader/index.vue @@ -7,6 +7,7 @@