From 35668474b65be39a277d7cb53693022b482e17ca Mon Sep 17 00:00:00 2001 From: 唐耀东 <18861537@qq.com> Date: 星期四, 12 五月 2022 09:44:22 +0800 Subject: [PATCH] 提交代码 --- src/views/construction/reserveIp/index.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/construction/reserveIp/index.vue b/src/views/construction/reserveIp/index.vue index 673999a..7e59d54 100644 --- a/src/views/construction/reserveIp/index.vue +++ b/src/views/construction/reserveIp/index.vue @@ -106,7 +106,7 @@ <el-input v-model="form.mac" placeholder="璇疯緭鍏AC鍦板潃" /> </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" @@ -116,7 +116,7 @@ </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"> @@ -137,6 +137,12 @@ name: "ReserveIp", components: { building + }, + props: { + schoolId: { + type: Number, + default: undefined + } }, data() { return { @@ -186,6 +192,11 @@ buildOpen: false }; }, + watch: { + 'schoolId': function () { + this.getList() + } + }, created() { this.getList(); }, @@ -193,7 +204,7 @@ /** 鏌ヨ棰勭暀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; @@ -260,6 +271,7 @@ 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("淇敼鎴愬姛"); -- Gitblit v1.9.1