Commit da76829e by Lin

feat: BI事项管理筛选栏交互及数据联调

1 parent 5ca63077
...@@ -200,10 +200,10 @@ ...@@ -200,10 +200,10 @@
}, },
{ {
label: "创建日期", label: "创建日期",
name: "reportDate", name: "createdDate",
type: "datePicker", type: "datePicker",
isClear: true, isClear: true,
pickerOptions: "rangePickertwoMonthOptionsWithCurrentLimit" pickerOptions: "rangePickerOptions"
}, },
{ {
label: "创建人", label: "创建人",
...@@ -220,11 +220,10 @@ ...@@ -220,11 +220,10 @@
currentPage: 1 currentPage: 1
}, },
searchForm: { searchForm: {
customerStatus: "", auditStatus: "",
sellerMerchantId: "", merchantIds: "",
merchantId: "", createdDate: [],
createdDate: [new Date().getTime() - 3600 * 1000 * 24 * 90, new Date()], createName: ""
reportDate: []
}, },
searchFormSearch: {}, searchFormSearch: {},
getListApi: getReportList, getListApi: getReportList,
...@@ -500,17 +499,6 @@ ...@@ -500,17 +499,6 @@
beforeSearchFn(type = 1) { beforeSearchFn(type = 1) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
if (this.searchForm?.reportDate?.length) {
const [searchStartDate, searchEndDate] = this.searchForm.reportDate
this.searchFormSearch.reportStartDate = Util.dateFormate(
searchStartDate,
"YYYY-MM-DD"
)
this.searchFormSearch.reportEndDate = Util.dateFormate(
searchEndDate,
"YYYY-MM-DD"
)
}
if (this.searchForm?.createdDate?.length) { if (this.searchForm?.createdDate?.length) {
const [searchStartDate, searchEndDate] = this.searchForm.createdDate const [searchStartDate, searchEndDate] = this.searchForm.createdDate
this.searchFormSearch.createdStartDate = Util.dateFormate( this.searchFormSearch.createdStartDate = Util.dateFormate(
...@@ -522,7 +510,6 @@ ...@@ -522,7 +510,6 @@
"YYYY-MM-DD HH:mm" "YYYY-MM-DD HH:mm"
) )
} }
delete this.searchFormSearch.reportDate
delete this.searchFormSearch.createdDate delete this.searchFormSearch.createdDate
resolve() resolve()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!