Explorar el Código

解决缺陷 【ID1018466】【WEB】网点作息配置:歇业复制到全月后,单日再次修改为营业保存后仍显示为歇业

zhulu hace 1 año
padre
commit
ba90076896
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      src/views/system/workTimeBankingOffice/index.vue

+ 9 - 1
src/views/system/workTimeBankingOffice/index.vue

@@ -404,7 +404,7 @@ export default {
         dayjs(calendarDate).subtract(1, "month").startOf("month")
       );
       let eDate = new Date(dayjs(calendarDate).add(1, "month").endOf("month"));
-      this.queryParams.range = [sDate, eDate];     
+      this.queryParams.range = [sDate, eDate];
       this.isNeedLoadedCalendarDate=true; 
       this.changeMonthText();
       this.getList();
@@ -535,6 +535,12 @@ export default {
       // console.log(this.queryParams, "pages");      
       tableList(this.queryParams)
         .then((response) => {
+          if(response.rows)
+          {
+            response.rows.forEach(x => {
+              if(x.isDuty==null) x.isDuty="0"
+            });
+          }
           this.tableList = response.rows;
           this.total = response.total;
           this.loading = false;
@@ -585,6 +591,7 @@ export default {
         }
         editWorkTime(this.formData).then((res) => {
           this.$message.success("保存成功");
+          this.isNeedLoadedCalendarDate=true;
           this.getList();
         });
       });
@@ -647,6 +654,7 @@ export default {
       console.log("submitCopyMouth", data);
       addWorkTimeDay(data).then((res) => {
         this.$message.success("保存成功");
+        this.isNeedLoadedCalendarDate=true;
         this.getList();
       });
     },