调整页面字段

dev
zhaokai 2025-09-17 17:09:23 +08:00
parent 93363fce7a
commit bf83c47c92
1 changed files with 22 additions and 0 deletions

View File

@ -56,6 +56,8 @@ import AppSearch from "@/components/search/index.vue";
import AppTable from "@/components/table/index.vue";
import { translationStatus } from "@/assets/js/utils.js";
import { useRouter, useRoute } from "vue-router";
import dayjs from "dayjs";
// import { reqMapArr } from "./reqMap.js";
const router = useRouter();
const route = useRoute();
@ -66,10 +68,25 @@ const dataType = defineModel("dataType", {
});
const { list, pagination, searchForm, resetPagination, tableRef } = useListData(
getDataList,
{
defaultSearchForm: { dates: [dayjs().subtract(7, 'day').format("YYYY-MM-DD HH:mm:ss"), dayjs().format("YYYY-MM-DD HH:mm:ss")] },
before: (searchForm) => {
const { dates = [] } = searchForm;
const [receiveBeginTime = '', receiveEndTime = ''] = dates;
return {
dates: "",
receiveBeginTime,
receiveEndTime,
};
},
params: () => ({
dataType: dataType.value,
}),
}
);
const pushOptions = [
@ -84,6 +101,11 @@ const receiveOptions = [
{ id: 2, name: "接收异常" },
];
const options = [
{
key: "dates",
label: "上传时间",
type: "datetimerange",
},
{
key: "thirdPlatformName",
label: "上级平台名称",