| | |
| | | |
| | | export default { |
| | | name: "ConstructionBatch", |
| | | props: { |
| | | schoolId: { |
| | | type: Number, |
| | | default: undefined |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | // 按钮loading |
| | |
| | | userList: [] |
| | | }; |
| | | }, |
| | | watch: { |
| | | 'schoolId': function () { |
| | | this.getList() |
| | | } |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | |
| | | /** 查询施工批次列表 */ |
| | | 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; |
| | |
| | | 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("修改成功"); |