From 76df3b345cf7f266a28ae40d2e663b3fc673c1b8 Mon Sep 17 00:00:00 2001 From: liuchengxin <13104445455@163.com> Date: 星期二, 17 五月 2022 19:13:46 +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