liuchengxin
2022-05-17 76df3b345cf7f266a28ae40d2e663b3fc673c1b8
src/views/construction/reserveIp/index.vue
@@ -106,7 +106,7 @@
          <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"
@@ -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("修改成功");