| | |
| | | /> |
| | | |
| | | <!-- 添加或修改学校对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <Dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="学校代码" prop="code"> |
| | | <el-input v-model="form.code" placeholder="请输入学校代码"/> |
| | |
| | | <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </Dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | disciplineScope: [ |
| | | {required: true, message: "学科范围不能为空", trigger: "change"} |
| | | ], |
| | | remarks: [ |
| | | {max: 128, message: '最多输入128个字符', trigger: 'blur' } |
| | | ] |
| | | }, |
| | | // 省份 |
| | | provinceList: [], |
| | |
| | | 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 |
| | | }) |