| | |
| | | <el-input v-model="form.mac" placeholder="请输入MAC地址" /> |
| | | </el-form-item> |
| | | <el-form-item label="适用地点" prop="buildingId"> |
| | | <building v-model="form.buildingId"></building> |
| | | <building v-if="open" v-model="form.buildingId" :schoolId="schoolId"></building> |
| | | </el-form-item> |
| | | <el-form-item label="申请日期" prop="applicationDate"> |
| | | <el-date-picker clearable size="small" |
| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="备注" prop="remarks"> |
| | | <el-input v-model="form.remarks" type="textarea" :rows="8" placeholder="请输入内容" /> |
| | | <el-input v-model="form.remarks" type="textarea" :rows="8" maxlength="512" show-word-limit placeholder="请输入内容" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | name: "ReserveIp", |
| | | components: { |
| | | building |
| | | }, |
| | | props: { |
| | | schoolId: { |
| | | type: Number, |
| | | default: undefined |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | buildOpen: false |
| | | }; |
| | | }, |
| | | watch: { |
| | | 'schoolId': function () { |
| | | this.getList() |
| | | } |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | |
| | | /** 查询预留IP列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listReserveIp(this.queryParams).then(response => { |
| | | listReserveIp(Object.assign({}, this.queryParams, {schoolId: this.schoolId})).then(response => { |
| | | this.reserveIpList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | this.buttonLoading = true; |
| | | this.form.schoolId = this.schoolId; |
| | | if (this.form.id != null) { |
| | | updateReserveIp(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |