Administrator
2021-06-28 4cb68e585d4508c896774713eaf83225e50be6e8
资讯列表查询修改
1 files modified
18 ■■■■ changed files
src/views/article/article.vue 18 ●●●● patch | view | raw | blame | history
src/views/article/article.vue
@@ -100,10 +100,10 @@
            },
            {
              label: "发布时间",
              prop: "datetime",
              prop: "dateTime",
              type: "datetime",
              format: "yyyy-MM-dd hh:mm:ss",
              valueFormat: "yyyy-MM-dd hh:mm:ss",
              format: "yyyy-MM-dd HH:mm:ss",
              valueFormat: "yyyy-MM-dd HH:mm:ss",
              searchRange:true,
              hide: true,
              addDisplay: false,
@@ -123,8 +123,8 @@
              editDisplay: false,
              viewDisplay: false,
              type: "date",
              format: "yyyy-MM-dd hh:mm:ss",
              valueFormat: "yyyy-MM-dd hh:mm:ss"
              format: "yyyy-MM-dd HH:mm:ss",
              valueFormat: "yyyy-MM-dd HH:mm:ss"
            },
            {
              label: "资讯内容",
@@ -268,15 +268,15 @@
        this.onLoad(this.page, this.query);
      },
      onLoad(page, params = {}) {
        const {datetime} = this.query;
        const {dateTime} = this.query;
        let values = {
          ...params,
        };
        if (datetime) {
        if (dateTime) {
          values = {
            ...params,
            startTime: datetime[0],
            endTime: datetime[1],
            startTime: dateTime[0],
            endTime: dateTime[1],
            ...this.query
          };
          values.datetime = null;