唐耀东
2022-05-12 2546d2a6251176b0214c2d23ac93ccde5dd008f5
src/views/construction/constructionBatch/index.vue
@@ -142,6 +142,12 @@
export default {
  name: "ConstructionBatch",
  props: {
    schoolId: {
      type: Number,
      default: undefined
    }
  },
  data() {
    return {
      // 按钮loading
@@ -193,6 +199,11 @@
      userList: []
    };
  },
  watch: {
    'schoolId': function () {
      this.getList()
    }
  },
  created() {
    this.getList();
  },
@@ -200,7 +211,7 @@
    /** 查询施工批次列表 */
    getList() {
      this.loading = true;
      listConstructionBatch(this.queryParams).then(response => {
      listConstructionBatch(Object.assign({}, this.queryParams, {schoolId: this.schoolId})).then(response => {
        this.constructionBatchList = response.rows;
        this.total = response.total;
        this.loading = false;
@@ -278,6 +289,7 @@
        this.form.endDate = this.form.date[1];
        if (valid) {
          this.buttonLoading = true;
          this.form.schoolId = this.schoolId;
          if (this.form.id != null) {
            updateConstructionBatch(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");