瀏覽代碼

绩效页搜索日期bug修改

Szx 3 年之前
父節點
當前提交
568ff89f1c
共有 4 個文件被更改,包括 24 次插入12 次删除
  1. 二進制
      dist.rar
  2. 1 1
      src/views/account/kuaishou.vue
  3. 15 3
      src/views/data/performance-detail.vue
  4. 8 8
      src/views/material/component/upload-image.vue

二進制
dist.rar


+ 1 - 1
src/views/account/kuaishou.vue

@@ -13,7 +13,7 @@
       :loading="loading"
       :pagination="tablePageOptions"
       :columns="columns"
-      :scroll="{ y: 600 }"
+      :scroll="{ x: 600}"
       bordered
       :data-source="list"
       @change="onLoadOfficials"

+ 15 - 3
src/views/data/performance-detail.vue

@@ -178,11 +178,13 @@ const PerformanceDetial = defineComponent({
           moment(val[0]).format("YYYY-MM"),
           moment(val[1]).format("YYYY-MM"),
         ];
+        console.log(this.search.date_arr, "1");
       } else {
         this.search.date_arr = [
           moment(val[0]).format("YYYY-MM-DD"),
           moment(val[1]).format("YYYY-MM-DD"),
         ];
+        console.log(this.search.date_arr, "2");
       }
       this.getList();
     },
@@ -238,8 +240,13 @@ const PerformanceDetial = defineComponent({
     // 月、日查询类型改变
     onTypeChange(val: string) {
       var date = new Date(new Date().getTime() - 24 * 60 * 60 * 1000);
-      console.log(val);
       if (val === "month") {
+        //如果是月份格式化
+        this.search.date_arr = [
+          moment(this.search.date_arr[0]).format("YYYY-MM"),
+          moment(this.search.date_arr[1]).format("YYYY-MM"),
+        ];
+        console.log(this.search.date_arr, "3");
         this.search.value = 3;
         var list = this.getDateRange(date, 30, true);
         this.mode2 = ["month", "month"];
@@ -256,9 +263,14 @@ const PerformanceDetial = defineComponent({
             moment(this.search.date_arr[1], "YYYY-MM"),
           ];
         }
-      } else {
+      }
+      if (val === "day") {
+        //如果是日期格式化
+        this.search.date_arr = [
+          moment(this.search.date_arr[0]).format("YYYY-MM-DD"),
+          moment(this.search.date_arr[1]).format("YYYY-MM-DD"),
+        ];
         this.search.value = "";
-
         this.mode2 = ["date", "date"];
         if (this.$route.query.start_time && this.$route.query.end_time) {
           this.value[0] = moment(this.search.date_arr[0], "YYYY-MM-DD");

+ 8 - 8
src/views/material/component/upload-image.vue

@@ -112,14 +112,14 @@ const UploadVideo = defineComponent({
       if (this.fileList.length === 0) return message.warning("请选择图片");
       this.$emit("close");
       // message.info("素材上传中...");
-      const key = "start";
-      notification.open({
-        key,
-        message: "状态提示",
-        description: "素材上传中...",
-        duration: 2,
-        icon: h(LoadingOutlined, { style: "color: #108ee9" }),
-      });
+      // const key = "start";
+      // notification.open({
+      //   key,
+      //   message: "状态提示",
+      //   description: "素材上传中...",
+      //   duration: 2,
+      //   icon: h(LoadingOutlined, { style: "color: #108ee9" }),
+      // });
       let num = 0;
       if (this.fileList.length === 0) return message.error("请选择图片");
       this.fileList.forEach((item) => {