diff --git a/src/stores/Feedback.js b/src/stores/Feedback.js index 505c4a8..3cbced8 100644 --- a/src/stores/Feedback.js +++ b/src/stores/Feedback.js @@ -2,6 +2,7 @@ import { makeAutoObservable, runInAction } from "mobx"; import * as req from "@/utils/request"; import { prepareUrl } from "@/utils/commons"; import * as config from "@/config"; +import dayjs from "dayjs"; class Feedback { constructor(root) { @@ -10,12 +11,20 @@ class Feedback { } loading = false; + search_date_start = dayjs().startOf("M"); + search_date_end = dayjs().endOf("M"); feedbackList = []; //反馈列表 feedbackImages = []; //图片列表 feedbackRate = []; //反馈评分 feedbackReview = []; //站外好评 feedbackInfo = []; //地接社反馈的信息 + onDateRangeChange = (dates) =>{ + console.log(dates); + this.search_date_start = dates[0]; + this.search_date_end = dates[1]; + } + /* 查询地接社的团列表 地接社sn 团名 diff --git a/src/views/feedback/Index.jsx b/src/views/feedback/Index.jsx index e1c06e3..a15919a 100644 --- a/src/views/feedback/Index.jsx +++ b/src/views/feedback/Index.jsx @@ -13,7 +13,7 @@ const feedbackListColumns = [ { title: "团名", dataIndex: "EOI_Group_Name", - // render: (text, record) => {text}, + render: (text, record) => {text}, }, { title: "离团日期", @@ -29,19 +29,11 @@ const feedbackListColumns = [ title: "评分", dataIndex: "Average", }, - { - title: "操作", - dataIndex: "EOI_SN", - render: (text, record) => 查看, - }, ]; function Index() { - - const { feedbackStore, authStore } = useStore(); - const { feedbackList } = feedbackStore; - const [selectedDateRange, onDateRangeChange] = useState([config.DATE_PRESETS[0].value]); + const { feedbackList,search_date_start,search_date_end } = feedbackStore; const [referenceNo, onNumberChange] = useState(""); useEffect(() => { @@ -62,26 +54,19 @@ function Index() { /> - { - onDateRangeChange(dateRange); - }} - /> + - - + + );