唐耀东
2022-05-18 c01dff9a24f98f10f247d2f2e449383f567ec338
src/views/construction/constructionBatch/index.vue
@@ -106,6 +106,7 @@
          <el-date-picker
              v-model="form.date"
              type="daterange"
              value-format="yyyy-MM-dd"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="截至日期">
@@ -275,8 +276,9 @@
      const id = row.id || this.ids
      getConstructionBatch(id).then(response => {
        this.loading = false;
        this.form = response.data;
        this.form.date = [this.form.startDate, this.form.endDate]
        // this.form = response.data;
        const localDate = [response.data.startDate, response.data.endDate];
        this.form = Object.assign({}, response.data, {date: localDate})
        this.open = true;
        this.title = "修改施工批次";
      });
@@ -284,7 +286,6 @@
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        console.log(this.form.date)
        this.form.startDate = this.form.date[0];
        this.form.endDate = this.form.date[1];
        if (valid) {