From 35668474b65be39a277d7cb53693022b482e17ca Mon Sep 17 00:00:00 2001 From: 唐耀东 <18861537@qq.com> Date: 星期四, 12 五月 2022 09:44:22 +0800 Subject: [PATCH] 提交代码 --- src/views/construction/constructionBatch/index.vue | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/views/construction/constructionBatch/index.vue b/src/views/construction/constructionBatch/index.vue index 946b5c3..639584a 100644 --- a/src/views/construction/constructionBatch/index.vue +++ b/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("淇敼鎴愬姛"); -- Gitblit v1.9.1