liujq temp20230202 2 years ago
parent
commit
9ef20c7b29

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-14d01460.1209b9e0.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.f473ed1a.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-14d01460.b3b706cc.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-699c76ba.141be417.js


+ 4 - 4
src/views/room/clickRecord.vue

@@ -13,8 +13,6 @@
       :total-records="totalRecords"
       @currentChange="pageHandle"
       @sizeChange="sizeChange"
-      :isAdd="true"
-      @add="openPopup"
       :operationsDefaultLength="5"
     />
     <popup-edit
@@ -53,7 +51,9 @@ export default {
   computed: {
     tableData2() {
       const arr = [...this.tableData]
-      arr.map(item => {})
+      arr.map(item => {
+        if (item.target_type == 2) item.roomEditShow = true
+      })
       return arr
     }
   },
@@ -73,7 +73,7 @@ export default {
         { label: '创建时间', prop: 'create_at' },
         { label: '操作', width: 120, type: 'handle2', operations:
           [
-            { label: '查看咨询房源', func: this.openPopup, btnType: 'primary' },
+            { label: '查看咨询房源', func: this.openPopup, btnType: 'primary', hide: 'roomEditShow' },
           ]
         }
       ]

+ 10 - 2
src/views/room/components/popup/IndexEdit.vue

@@ -7,11 +7,11 @@
       :visible.sync="isShow"
       :title="curObj.id ? '编辑房源' : '新增房源'"
       :fullscreen="false"
-      width="960px"
+      :width="estate_id ? '960px' : '360px'"
       custom-class="xl-dialog"
       center
     >
-      <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px" :insertSlotArr="[8]">
+      <base-form ref="ruleForm" :class="estate_id ? 'lib-edit' : 'lib-edit scoped-le2' " :data="formData" :is-inline="false" label-width="110px" :insertSlotArr="[8]">
         <div slot="OI8">
           <div class="scoped-img-area">
             <div class="sia-op" v-for="(imgsrc,index) in imagesArr" :key="index">
@@ -70,6 +70,7 @@ export default {
       isShowMap: false,
       imagesArr: [],
       roomAreaList: [],
+      estate_id: '',
     }
   },
   watch: {
@@ -119,6 +120,7 @@ export default {
       }
       if (!params.custom_tag) params.custom_tag = '洪楼房源'
       if (params.estate_id) {
+        this.estate_id = params.estate_id
         this.formData = [
           { label: '所属楼盘', key: 'estate_id', rules: 1, type: 'selectRemote', changeHandle: this.estateChange,
             remoteParams: { skey: 'estate_name', api: `house.admestatelist?estate_tag=二手`, opKey: 'estate_name', opVal: 'id' },
@@ -203,6 +205,7 @@ export default {
     },
     estateChange (estate_id, op, cur) {
       if (estate_id) {
+        this.estate_id = estate_id
         this.$api.house.admestatehousearealist({estate_id}).then(res => {
           const list = res.list || []
           const htObj = arrToObj(this.$dictData.house_type)
@@ -227,6 +230,8 @@ export default {
           this.cObj.HT = ''
           this.getDef('edit')
         })
+      } else {
+        this.estate_id = ''
       }
     },
     htChange (val) {
@@ -303,6 +308,9 @@ export default {
   padding-top: 0;
   padding-left: 0;
   padding-bottom: 40px;
+  &.scoped-le2 {
+    width: 300px;
+  }
   ::v-deep .el-form-item {
     margin-bottom: 10px;
   }

+ 1 - 0
src/views/room/index.vue

@@ -64,6 +64,7 @@ export default {
     this.listConfig = {
       rows: [
         { label: '排序', prop: 'sort', type: 'input', width: 80},
+        { label: '编号', prop: 'id' },
         { label: '楼盘', prop: 'estate_name' },
         { label: '浏览数', prop: 'view_count' },
         { label: '置业经理', prop: 'sale_name' },

Some files were not shown because too many files changed in this diff