| | |
| | | created() { |
| | | this.getProvince().then(res => { |
| | | this.provinceList = res |
| | | this.provinceFormList = res |
| | | }) |
| | | this.getList(); |
| | | }, |
| | |
| | | getSchool(id).then(response => { |
| | | this.loading = false; |
| | | this.form = response.data; |
| | | listCity(this.form.provinceCode) |
| | | .then(res => { |
| | | this.cityFormList = res.data |
| | | }) |
| | | this.open = true; |
| | | this.title = "修改学校"; |
| | | }); |
| | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除?').then(() => { |
| | | this.$modal.confirm(`是否确认删除学校代码为${row.code}的学校?`).then(() => { |
| | | this.loading = true; |
| | | return delSchool(ids); |
| | | }).then(() => { |
| | |
| | | }, |
| | | // 查询条件省份改变 |
| | | provinceQueryChange(v) { |
| | | this.queryParams.cityCode = undefined |
| | | this.getCity(v).then(res => { |
| | | this.cityList = res |
| | | }) |