소스 검색

bug处理

LAPTOP-FO2T5SIU\35838 8 달 전
부모
커밋
ffd1a446d6
3개의 변경된 파일336개의 추가작업 그리고 255개의 파일을 삭제
  1. 14 2
      src/views/parkAssets/parkBuild/index.vue
  2. 12 2
      src/views/parkAssets/parkFloorDisc/index.vue
  3. 310 251
      src/views/parkAssets/parkRoom/index.vue

+ 14 - 2
src/views/parkAssets/parkBuild/index.vue

@@ -7,7 +7,6 @@
           <!-- @node-click="handleDeptNodeClick" -->
           <el-tree
             ref="selectTree"
-            default-expand-all
             :data="DeptTree"
             node-key="id"
             :indent="deptTreeIndent"
@@ -472,7 +471,20 @@ export default {
                     if (undefined != this.buildForm.id && this.buildForm.id != null && this.buildForm.id != '') {
                         urlAdd = 'edit'
                     }
-
+                    if (!postData.groupId) {
+                        this.$message({
+                            message: '请选择小区',
+                            type: 'warning'
+                        })
+                        return
+                    }
+                    if (!postData.discId) {
+                        this.$message({
+                            message: '请选择至分期',
+                            type: 'warning'
+                        })
+                        return
+                    }
                     this.baseRequest(urlAdd, postData).then((res) => {
                         if (res.data.code == 200) {
                             // this.buildForm = {}

+ 12 - 2
src/views/parkAssets/parkFloorDisc/index.vue

@@ -419,12 +419,20 @@
                 <el-col :span="4" class="col-txt"><span>支付方式</span></el-col>
                 <el-col :span="20" class="col-input">
                   <el-form-item>
-                    <el-select v-model="formLP.paymentMethods" placeholder="" filterable>
+                    <el-select
+                      v-model="formLP.paymentMethods"
+                      placeholder=""
+                      filterable
+                      :popper-append-to-body="false"
+                      popper-class="statistic_base"
+                    >
                       <el-option
                         v-for="item in dc_data.PAYMENT_METHODS"
                         :key="item.id"
                         :label="item.label"
                         :value="item.value"
+                        :popper-append-to-body="false"
+                        popper-class="statistic_base"
                       />
                     </el-select>
                   </el-form-item>
@@ -487,7 +495,7 @@
                       </el-form-item>
                     </el-col>
                     <el-col :span="2" class="col-input">
-                      <el-button v-if="index !== 0" type="danger" size="mini" @click="deleteItem(item, index)">-</el-button>
+                      <el-button type="danger" size="mini" @click="deleteItem(item, index)">-</el-button>
                     </el-col>
                   </el-row>
                 </div>
@@ -848,6 +856,8 @@ export default {
                     if (res.data) {
                         res.data.forEach(item => {
                             const data = {
+                                id: item.id,
+                                discId: item.discId,
                                 name: item.name,
                                 buildArea: item.buildArea,
                                 useArea: item.useArea,

+ 310 - 251
src/views/parkAssets/parkRoom/index.vue

@@ -189,245 +189,248 @@
       custom-class="tagdialog"
       @open="dlgOpen"
     >
-      <el-form ref="houseForm" :model="houseForm" style="width: 100%;padding: 5px" :rules="commitRules">
-        <el-row>
-          <el-col style="padding-bottom: 10px">
-            <!--            <span class="card_title">基本信息</span>-->
-            <el-card shadow="always" style="padding-top: 10px">
-              <el-row>
-                <el-col :span="2" class="col-txt"><span>*父级</span></el-col>
-                <el-col :span="22" class="col-input">
-                  <el-form-item prop="findids">
-                    <el-cascader
-                      v-model="houseForm.findids"
-                      :append-to-body="false"
-                      :disabled="isView"
-                      style="width: 100%;"
-                      :options="options"
-                      @change="buildChange"
-                    />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="2" class="col-txt"><span>*户室号</span></el-col>
-                <el-col :span="10" class="col-input">
-                  <el-form-item prop="roomNo">
-                    <el-input v-model="houseForm.roomNo" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-                <el-col :span="2" class="col-txt"><span>*所在层</span></el-col>
-                <el-col :span="10" class="col-input">
-                  <el-form-item prop="floor">
-                    <el-input v-model="houseForm.floor" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="3" class="col-txt"><span>*预测套内面积(㎡)</span></el-col>
-                <el-col :span="9" class="col-input">
-                  <el-form-item prop="roomNo">
-                    <el-input v-model="houseForm.predictionInternalArea" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
+      <div v-loading="loadingFlag">
+        <el-form ref="houseForm" :model="houseForm" style="width: 100%;padding: 5px" :rules="commitRules">
+          <el-row>
+            <el-col style="padding-bottom: 10px">
+              <!--            <span class="card_title">基本信息</span>-->
+              <el-card shadow="always" style="padding-top: 10px">
+                <el-row>
+                  <el-col :span="2" class="col-txt"><span>*父级</span></el-col>
+                  <el-col :span="22" class="col-input">
+                    <el-form-item prop="findids">
+                      <el-cascader
+                        v-model="houseForm.findids"
+                        :append-to-body="false"
+                        :disabled="isView"
+                        style="width: 100%;"
+                        :options="options"
+                        @change="buildChange"
+                      />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="2" class="col-txt"><span>*户室号</span></el-col>
+                  <el-col :span="10" class="col-input">
+                    <el-form-item prop="roomNo">
+                      <el-input v-model="houseForm.roomNo" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                  <el-col :span="2" class="col-txt"><span>*所在层</span></el-col>
+                  <el-col :span="10" class="col-input">
+                    <el-form-item prop="floor">
+                      <el-input v-model="houseForm.floor" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="3" class="col-txt"><span>*预测套内面积(㎡)</span></el-col>
+                  <el-col :span="9" class="col-input">
+                    <el-form-item prop="roomNo">
+                      <el-input v-model="houseForm.predictionInternalArea" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
 
-                <el-col :span="3" class="col-txt"><span>*预测分摊面积(㎡)</span></el-col>
-                <el-col :span="9" class="col-input">
-                  <el-form-item prop="roomNo">
-                    <el-input v-model="houseForm.predictionShareArea" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="3" class="col-txt"><span>*预测建筑面积(㎡)</span></el-col>
-                <el-col :span="9" class="col-input">
-                  <el-form-item prop="roomNo">
-                    <el-input v-model="houseForm.predictionBuildArea" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-                <el-col :span="3" class="col-txt"><span>*预测土地面积(㎡)</span></el-col>
-                <el-col :span="9" class="col-input">
-                  <el-form-item prop="roomNo">
-                    <el-input v-model="houseForm.predictionLandArea" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="3" class="col-txt"><span>*实测套内面积(㎡)</span></el-col>
-                <el-col :span="9" class="col-input">
-                  <el-form-item prop="actualInternalArea">
-                    <el-input v-model="houseForm.actualInternalArea" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-                <el-col :span="3" class="col-txt"><span>*实测分摊面积(㎡)</span></el-col>
-                <el-col :span="9" class="col-input">
-                  <el-form-item prop="actualShareArea">
-                    <el-input v-model="houseForm.actualShareArea" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="3" class="col-txt"><span>*实测建筑面积(㎡)</span></el-col>
-                <el-col :span="9" class="col-input">
-                  <el-form-item prop="actualBuildArea">
-                    <el-input v-model="houseForm.actualBuildArea" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-                <el-col :span="3" class="col-txt"><span>*实测土地面积(㎡)</span></el-col>
-                <el-col :span="9" class="col-input">
-                  <el-form-item prop="actualLandArea">
-                    <el-input v-model="houseForm.actualLandArea" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="2" class="col-txt"><span>*用途:</span></el-col>
-                <el-col :span="10" class="col-input">
-                  <el-form-item prop="roomUse">
-                    <el-select
-                      v-model="houseForm.roomUse"
-                      :popper-append-to-body="false"
-                      popper-class="statistic_base"
-                      placeholder=""
-                      filterable
-                      :disabled="isView"
-                    >
-                      <el-option
-                        v-for="item in dc_data.HOUSE_USAGE"
-                        :key="item.value"
-                        popper-class="statistic_base"
+                  <el-col :span="3" class="col-txt"><span>*预测分摊面积(㎡)</span></el-col>
+                  <el-col :span="9" class="col-input">
+                    <el-form-item prop="roomNo">
+                      <el-input v-model="houseForm.predictionShareArea" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="3" class="col-txt"><span>*预测建筑面积(㎡)</span></el-col>
+                  <el-col :span="9" class="col-input">
+                    <el-form-item prop="roomNo">
+                      <el-input v-model="houseForm.predictionBuildArea" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                  <el-col :span="3" class="col-txt"><span>*预测土地面积(㎡)</span></el-col>
+                  <el-col :span="9" class="col-input">
+                    <el-form-item prop="roomNo">
+                      <el-input v-model="houseForm.predictionLandArea" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="3" class="col-txt"><span>*实测套内面积(㎡)</span></el-col>
+                  <el-col :span="9" class="col-input">
+                    <el-form-item prop="actualInternalArea">
+                      <el-input v-model="houseForm.actualInternalArea" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                  <el-col :span="3" class="col-txt"><span>*实测分摊面积(㎡)</span></el-col>
+                  <el-col :span="9" class="col-input">
+                    <el-form-item prop="actualShareArea">
+                      <el-input v-model="houseForm.actualShareArea" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="3" class="col-txt"><span>*实测建筑面积(㎡)</span></el-col>
+                  <el-col :span="9" class="col-input">
+                    <el-form-item prop="actualBuildArea">
+                      <el-input v-model="houseForm.actualBuildArea" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                  <el-col :span="3" class="col-txt"><span>*实测土地面积(㎡)</span></el-col>
+                  <el-col :span="9" class="col-input">
+                    <el-form-item prop="actualLandArea">
+                      <el-input v-model="houseForm.actualLandArea" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="2" class="col-txt"><span>*用途:</span></el-col>
+                  <el-col :span="10" class="col-input">
+                    <el-form-item prop="roomUse">
+                      <el-select
+                        v-model="houseForm.roomUse"
                         :popper-append-to-body="false"
-                        :label="item.label"
-                        :value="item.value"
-                      />
-                    </el-select>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="2" class="col-txt"><span>*户编号</span></el-col>
-                <el-col :span="10" class="col-input">
-                  <el-form-item prop="roomNumber">
-                    <el-input v-model="houseForm.roomNumber" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="2" class="col-txt"><span>装修情况:</span></el-col>
-                <el-col :span="10" class="col-input">
-                  <el-form-item>
-                    <el-select
-                      v-model="houseForm.decorationSituation"
-                      placeholder=""
-                      filterable
-                      :disabled="isView"
-                      :popper-append-to-body="false"
-                      popper-class="statistic_base"
-                    >
-                      <el-option
-                        v-for="item in dc_data.DECORATION_SITUATION"
-                        :key="item.value"
+                        popper-class="statistic_base"
+                        placeholder=""
+                        filterable
+                        :disabled="isView"
+                      >
+                        <el-option
+                          v-for="item in dc_data.HOUSE_USAGE"
+                          :key="item.value"
+                          popper-class="statistic_base"
+                          :popper-append-to-body="false"
+                          :label="item.label"
+                          :value="item.value"
+                        />
+                      </el-select>
+                    </el-form-item>
+                  </el-col>
+                  <el-col :span="2" class="col-txt"><span>*户编号</span></el-col>
+                  <el-col :span="10" class="col-input">
+                    <el-form-item prop="roomNumber">
+                      <el-input v-model="houseForm.roomNumber" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="2" class="col-txt"><span>装修情况:</span></el-col>
+                  <el-col :span="10" class="col-input">
+                    <el-form-item>
+                      <el-select
+                        v-model="houseForm.decorationSituation"
+                        placeholder=""
+                        filterable
+                        :disabled="isView"
                         :popper-append-to-body="false"
                         popper-class="statistic_base"
-                        :label="item.label"
-                        :value="item.value"
-                      />
-                    </el-select>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="2" class="col-txt"><span>2.2M以</span></el-col>
-                <el-col :span="10" class="col-input">
-                  <el-form-item>
-                    <el-input v-model="houseForm.twoPointTwo" :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="2" class="col-txt"><span>户型</span></el-col>
-                <el-col :span="10" class="col-input">
-                  <el-form-item :disabled="isView">
-                    <el-select
-                      v-model="houseForm.houseTypeId"
-                      placeholder=""
-                      filterable
-                      :disabled="isView"
-                      :popper-append-to-body="false"
-                      popper-class="statistic_base"
-                    >
-                      <el-option
-                        v-for="item in houseTypeOption"
-                        :key="item.value"
+                      >
+                        <el-option
+                          v-for="item in dc_data.DECORATION_SITUATION"
+                          :key="item.value"
+                          :popper-append-to-body="false"
+                          popper-class="statistic_base"
+                          :label="item.label"
+                          :value="item.value"
+                        />
+                      </el-select>
+                    </el-form-item>
+                  </el-col>
+                  <el-col :span="2" class="col-txt"><span>2.2M以</span></el-col>
+                  <el-col :span="10" class="col-input">
+                    <el-form-item>
+                      <el-input v-model="houseForm.twoPointTwo" :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="2" class="col-txt"><span>户型</span></el-col>
+                  <el-col :span="10" class="col-input">
+                    <el-form-item :disabled="isView">
+                      <el-select
+                        v-model="houseForm.houseTypeId"
+                        placeholder=""
+                        filterable
+                        :disabled="isView"
                         :popper-append-to-body="false"
                         popper-class="statistic_base"
-                        :label="item.label"
-                        :value="item.value"
-                      />
-                    </el-select>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="2" class="col-txt"><span>户型图:</span></el-col>
-                <el-col :span="20" class="col-input">
-                  <el-form-item>
-                    <el-upload
-                      ref="upload"
-                      action
-                      accept="image/png,image/gif,image/jpg,image/jpeg"
-                      list-type="picture-card"
-                      :file-list="fileList"
-                      :limit="9"
-                      :http-request="uploadHouseTypePicture"
-                      :on-preview="handlePictureCardPreview"
-                      :on-remove="handleRemove"
-                      :on-exceed="handleExceed"
-                      :disabled="isView"
-                    >
-                      <i class="el-icon-plus" />
-                      <div slot="tip" class="el-upload__tip">
-                        只能上传jpg/png文件,限制上传9张
-                      </div>
-                    </el-upload>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="2" class="col-txt"><span>备注:</span></el-col>
-                <el-col :span="22" class="col-input">
-                  <el-form-item>
-                    <el-input v-model="houseForm.remark" type="textarea" maxlength="2000" show-word-limit :disabled="isView" />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="2" class="col-txt"><span>可售状态:</span></el-col>
-                <el-col :span="22" class="col-input">
-                  <el-form-item>
-                    <el-select
-                      v-model="houseForm.saleStatus"
-                      placeholder="请选择"
-                      size="small"
-                      :disabled="isView"
-                      :popper-append-to-body="false"
-                      popper-class="statistic_base"
-                    >
-                      <el-option
-                        v-for="item in dc_data.SALE_STATUS"
-                        :key="item.value"
+                        @change="houseTypeChange"
+                      >
+                        <el-option
+                          v-for="item in houseTypeOption"
+                          :key="item.value"
+                          :popper-append-to-body="false"
+                          popper-class="statistic_base"
+                          :label="item.label"
+                          :value="item.value"
+                        />
+                      </el-select>
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="2" class="col-txt"><span>户型图:</span></el-col>
+                  <el-col :span="20" class="col-input">
+                    <el-form-item>
+                      <el-upload
+                        ref="upload"
+                        action
+                        accept="image/png,image/gif,image/jpg,image/jpeg"
+                        list-type="picture-card"
+                        :file-list="fileList"
+                        :limit="9"
+                        :http-request="uploadHouseTypePicture"
+                        :on-preview="handlePictureCardPreview"
+                        :on-remove="handleRemove"
+                        :on-exceed="handleExceed"
+                        disabled
+                      >
+                        <i class="el-icon-plus" />
+                        <div slot="tip" class="el-upload__tip">
+                          只能上传jpg/png文件,限制上传9张
+                        </div>
+                      </el-upload>
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="2" class="col-txt"><span>备注:</span></el-col>
+                  <el-col :span="22" class="col-input">
+                    <el-form-item>
+                      <el-input v-model="houseForm.remark" type="textarea" maxlength="2000" show-word-limit :disabled="isView" />
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+                <el-row>
+                  <el-col :span="2" class="col-txt"><span>可售状态:</span></el-col>
+                  <el-col :span="22" class="col-input">
+                    <el-form-item>
+                      <el-select
+                        v-model="houseForm.saleStatus"
+                        placeholder="请选择"
+                        size="small"
+                        :disabled="isView"
                         :popper-append-to-body="false"
                         popper-class="statistic_base"
-                        :label="item.label"
-                        :value="item.value"
-                      />
-                    </el-select>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-            </el-card>
-          </el-col>
-        </el-row>
-      </el-form>
-      <div slot="footer">
-        <el-button @click="dialogChose">取 消</el-button>
-        <el-button type="primary" @click="confirmSubmit()">确 定</el-button>
+                      >
+                        <el-option
+                          v-for="item in dc_data.SALE_STATUS"
+                          :key="item.value"
+                          :popper-append-to-body="false"
+                          popper-class="statistic_base"
+                          :label="item.label"
+                          :value="item.value"
+                        />
+                      </el-select>
+                    </el-form-item>
+                  </el-col>
+                </el-row>
+              </el-card>
+            </el-col>
+          </el-row>
+        </el-form>
+        <div slot="footer">
+          <el-button @click="dialogChose">取 消</el-button>
+          <el-button type="primary" @click="confirmSubmit()">确 定</el-button>
+        </div>
       </div>
     </el-dialog>
 
@@ -457,9 +460,9 @@
 import Base from '@/views/base/base'
 import BaseData from '@/views/base/baseData'
 import BaseDept from '@/views/base/baseDept'
-import Constant from '@/static/utils/constant'
 import { upload } from '@/static/utils/channel'
 import uploadCost from '@/views/parkAssets/component/uploadCost.vue'
+import constant from '@/static/utils/constant'
 
 export default {
     name: 'User',
@@ -514,7 +517,8 @@ export default {
             importVisible: false,
             importType: '',
             importTitle: '',
-            uploadTitle: []
+            uploadTitle: [],
+            loadingFlag: false
         }
     },
     mounted() {
@@ -627,8 +631,10 @@ export default {
             this.isView = false
             this.urlStr = 'edit'
             this.houseForm = val
+            this.fileList = []
             this.dialogVisible = true
             this.dialogTitle = '编辑房间'
+            this.loadingFlag = true
         },
         handleView: function(val) {
             this.isView = true
@@ -659,9 +665,18 @@ export default {
                         this.houseForm.discId = ids[1]
                         this.houseForm.buildId = ids[2]
                     }
-                    const extraData = {}
+                    // let houseTypePicture = ''
+                    // this.fileList.forEach(v => {
+                    //     if (houseTypePicture) {
+                    //         houseTypePicture = houseTypePicture + ',' + v.id
+                    //     } else {
+                    //         houseTypePicture = v.id
+                    //     }
+                    // })
+                    const extraData = {
+                        // houseTypePicture: houseTypePicture
+                    }
                     const postData = Object.assign({}, this.houseForm, extraData)
-
                     this.baseRequest(this.urlStr, postData).then((res) => {
                         this.houseForm = {}
                         this.dialogVisible = false
@@ -723,8 +738,36 @@ export default {
                             }
 
                             // 回显户型
-                            _this.getHouseTypeList({ discId: _this.houseForm.discId })
-
+                            _this.houseTypeOption = []
+                            _this.baseHouseTypeRequest('listAll', { discId: _this.houseForm.discId }).then(res => {
+                                if (res.data) {
+                                    res.data.forEach(item => {
+                                        _this.houseTypeOption.push({
+                                            label: item.name + ',建筑面积' + item.buildArea + ',使用面积' + item.useArea,
+                                            value: item.id,
+                                            files: item.fileList
+                                        })
+                                    })
+                                    // 回显户型图片
+                                    const obj = _this.houseTypeOption.find(item =>
+                                        item.value === _this.houseForm.houseTypeId
+                                    )
+                                    if (obj !== undefined) {
+                                        this.fileList = []
+                                        const files = JSON.parse(obj.files)
+                                        files.forEach(v => {
+                                            if (v) {
+                                                this.fileList.push({
+                                                    url: constant.BASE_URI + '/FileController/download/' + v.data,
+                                                    id: v.data
+                                                })
+                                            }
+                                        })
+                                    } else {
+                                        _this.houseForm.houseTypeId = ''
+                                    }
+                                }
+                            })
                             // 填充父级
                             this.houseForm.findids = []
                             if (undefined != this.houseForm.groupId && this.houseForm.groupId != null &&
@@ -739,21 +782,12 @@ export default {
                                     }
                                 }
                             }
-                            // if (res.data.planPicture) {
-                            //     res.data.planPicture.split(',').forEach(v => {
-                            //         if (v) {
-                            //             this.fileList.push({
-                            //                 url:
-                            //                     Constant.BASE_URI + '/FileController/download/' + v,
-                            //                 id: v
-                            //             })
-                            //         }
-                            //     })
-                            // }
                         }
+                        _this.loadingFlag = false
                     })
                     .catch(() => {})
             }
+
         },
         // 上传相关,包括图片、文件
         handlePictureCardPreview: function(file) {
@@ -764,7 +798,6 @@ export default {
             this.dialogImageVisible = true
         },
         uploadHouseTypePicture: function(param) {
-            console.log('param', param)
             upload(param, true).then((res) => {
                 this.fileList.push(res)
             })
@@ -782,8 +815,9 @@ export default {
                 if (res.data) {
                     res.data.forEach(item => {
                         _this.houseTypeOption.push({
-                            label: item.name,
-                            value: item.id
+                            label: item.name + ',建筑面积' + item.buildArea + ',使用面积' + item.useArea,
+                            value: item.id,
+                            files: item.fileList
                         })
                     })
                 }
@@ -829,6 +863,31 @@ export default {
                 })
             })
         },
+        houseTypeChange(val) {
+            const obj = this.houseTypeOption.find(item =>
+                item.value === val
+            )
+            if (obj !== undefined) {
+                this.fileList = []
+                const files = JSON.parse(obj.files)
+                files.forEach(v => {
+                    if (v) {
+                        this.fileList.push({
+                            url: constant.BASE_URI + '/FileController/download/' + v.data,
+                            id: v.data
+                        })
+                    }
+                })
+            }
+        },
+        handleExceed: function() {
+            this.$message.info('超过文件个数限制')
+        },
+        handleRemove: function(item) {
+            const id = item.id
+            const idx = this.fileList.findIndex(item => item.id === id)
+            this.fileList.splice(idx, 1)
+        },
         // 请求封装,继承类中调用,必须存在
         baseRequest: function(opUrl, postData) {
             return this.$channel.baseRequest('ParkRoomController', opUrl, postData, 'User')