liujq %!s(int64=4) %!d(string=hai) anos
pai
achega
c78846a9bb

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/index.html


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/css/chunk-31e809c8.4b809869.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/css/chunk-39840469.07bf80ad.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/css/chunk-3f167b81.12adbfe7.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/css/chunk-67ea5197.b1789ad2.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/css/chunk-e4dbcdb0.f2ac813c.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/app.3461612e.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/app.e20a2e1a.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-07fc91a6.04fff0f0.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-2d1bfc60.0817d133.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-2d1bfc60.8e4e654e.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-31e809c8.55f8d52f.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-39840469.c818de5e.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-3f167b81.76a4a66c.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-58b3a554.a90425d0.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-58b3a554.c2c2b640.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-67ea5197.08eca656.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-e4dbcdb0.1cdbd53f.js


+ 3 - 0
src/api/house.js

@@ -61,6 +61,9 @@ export default {
   admoldhousedetail: params => { // 二手房详情
     return getRequestNoSort('/adm/oldhouse/detail', params, 'loading')
   },
+  admoldhousesortedit: params => { // 二手房 排序
+    return getRequestNoSort('/adm/oldhouse/sort/edit', params, 'loading')
+  },
   admoldhousedel: params => { // 二手房删除
     return getRequestNoSort('/adm/oldhouse/del', params, 'loading')
   },

+ 44 - 37
src/views/house/components/popup/OldEdit.vue

@@ -115,18 +115,24 @@ export default {
     getDef (str) {
       let params = {}
       params = { ...this.cObj }
+      if (str === 'edit') {
+        params = {...this.$refs.ruleForm.baseForm, ...params}
+      }
       if (params.estate_id) {
         this.formData = [
-          { label: '房源标题', key: 'title'},
           { label: '所属楼盘', key: 'estate_id', rules: 1, class: 'c-3', type: 'selectRemote', changeHandle: this.estateChange,
-            remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },
+            remoteParams: { skey: 'estate_name', api: `house.admestatelist?estate_tag=二手`, opKey: 'estate_name', opVal: 'id' },
+            remoteOptions: [
+              { keyRO: params.estate_name, valRO: params.estate_id }
+            ]
           },
           { label: '区域', key: 'area_type', class: 'c-3', type: 'select', options: this.$dictData.area_type},
           { label: '产品类型', key: 'product_type', class: 'c-3', type: 'select', options: this.$dictData.product_type},
-          { label: `产品户型`, key: `HT`, class: 'c-3', rules: 1, type: 'select', options: this.roomAreaList, changeHandle: this.htChange,},
+          { label: `产品户型`, label2: `快捷选择工具`, key: `HT`, class: 'c-3', type: 'select', options: this.roomAreaList, changeHandle: this.htChange,},
           { label: '面积', key: 'area', class: 'c-3', type: 'inputFont', appendFont: '㎡'},
           { label: '房源户型', key: 'house_type', class: 'c-3', type: 'select', options: this.$dictData.house_type},
-          { label: '户型图', key: 'hxt', class: 'c-3', type: 'upload' },
+          { label: '房源标题', key: 'title'},
+          { label: '户型图', key: 'house_img', class: 'c-3', type: 'upload' },
           { label: '房源主图', key: 'pri_image', rules: 1, class: 'c-3', type: 'cuImg',
             options: {
               w: 375,
@@ -135,19 +141,18 @@ export default {
             }
           }, 
           { label: '房源地址', key: 'address' },
-          { label: '详细地址', label2: '如:1栋2单元305室', class: 'c-3s', key: 'xxxxxxx' },
-          { label: '满几年', key: 'xxxxxxxx', class: 'c-3', type: 'select', options: this.$dictData.house_room_year },
+          { label: '详细地址', label2: '如:1栋2单元305室', class: 'c-3s', key: 'detail_address' },
+          { label: '满几年', key: 'how_many_year', class: 'c-3', type: 'select', options: this.$dictData.house_room_year },
           { label: '总价', key: 'price', class: 'c-3'},
-          { label: '层高', label2: '如:6/7', class: 'c-3', key: 'xxxxxxx' },
-          { label: '是否装修', key: 'xxxxxxxx', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno },
-          { label: '业主称呼', class: 'c-3', key: 'xxxxxxx' },
-          { label: '业主电话', class: 'c-3', key: 'xxxxxxx' },
-          { label: '自定义标签', class: 'c-3', key: 'xxxxxxx' },
+          { label: '层高', label2: '如:6/7', class: 'c-3', key: 'floor_height' },
+          { label: '是否装修', key: 'is_dec', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno },
+          { label: '业主称呼', class: 'c-3', key: 'owner' },
+          { label: '业主电话', class: 'c-3', key: 'phone' },
+          { label: '自定义标签', class: 'c-3', key: 'custom_tag' },
           { label: '备注', key: 'remarked', type: 'textarea' },
         ]
       } else {
         this.formData = [
-          { label: '房源标题', key: 'title'},
           { label: '所属楼盘', key: 'estate_id', rules: 1, type: 'selectRemote', changeHandle: this.estateChange,
             remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },
           },
@@ -157,30 +162,32 @@ export default {
       this.setDefaultValue(params)
     },
     estateChange (estate_id, op, cur) {
-      this.$api.house.admestatehousearealist({estate_id}).then(res => {
-        const list = res.list || []
-        const htObj = arrToObj(this.$dictData.house_type)
-        const ptObj = arrToObj(this.$dictData.product_type)
-        list.map(item => {
-          item.key = `${htObj[item.house_type]}${item.area}㎡-${ptObj[item.product_type]}`
-          item.key2 = `${htObj[item.house_type]}`
-          item.val = item.id
+      if (estate_id) {
+        this.$api.house.admestatehousearealist({estate_id}).then(res => {
+          const list = res.list || []
+          const htObj = arrToObj(this.$dictData.house_type)
+          const ptObj = arrToObj(this.$dictData.product_type)
+          list.map(item => {
+            item.key = `${htObj[item.house_type]}${item.area}㎡-${ptObj[item.product_type]}`
+            item.key2 = `${htObj[item.house_type]}`
+            item.val = item.id
+          })
+          this.roomAreaList = [...list]
+          this.cObj.estate_id = estate_id
+          this.cObj.area_type = cur.area_type
+          this.cObj.address = cur.address
+          this.cObj.latitude = cur.latitude
+          this.cObj.longitude = cur.longitude
+          this.cObj.estate_name = cur.estate_name
+          this.cObj.title = `${cur.estate_name}-${arrToObj(this.$dictData.area_type)[cur.area_type]}`
+          this.cObj.product_type = ''
+          this.cObj.house_type = ''
+          this.cObj.area = ''
+          this.cObj.house_img = ''
+          this.cObj.HT = ''
+          this.getDef('edit')
         })
-        this.roomAreaList = [...list]
-        this.cObj.estate_id = estate_id
-        this.cObj.area_type = cur.area_type
-        this.cObj.address = cur.address
-        this.cObj.latitude = cur.latitude
-        this.cObj.longitude = cur.longitude
-        this.cObj.estate_name = cur.estate_name
-        this.cObj.title = `${cur.estate_name}-${arrToObj(this.$dictData.area_type)[cur.area_type]}`
-        this.cObj.product_type = ''
-        this.cObj.house_type = ''
-        this.cObj.area = ''
-        this.cObj.hxt = ''
-        this.cObj.HT = ''
-        this.getDef()
-      })
+      }
     },
     htChange (val) {
       this.roomAreaList.forEach(ra => {
@@ -188,10 +195,10 @@ export default {
           this.cObj.product_type = ra.product_type
           this.cObj.house_type = ra.house_type
           this.cObj.area = ra.area
-          this.cObj.hxt = ra.pri_image
+          this.cObj.house_img = ra.pri_image
           this.cObj.HT = val
           this.cObj.title = `${ra.key}-${this.cObj.estate_name}(${arrToObj(this.$dictData.area_type)[this.cObj.area_type]})`
-          this.getDef()
+          this.getDef('edit')
         }
         return
       })

+ 1 - 1
src/views/house/components/searchForm/Old.vue

@@ -30,7 +30,7 @@ export default {
       this.searchData = [
         { label: '标题', key: 'title' },
         { label: '所属楼盘', key: 'estate_id', type: 'selectRemote',
-          remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' }
+          remoteParams: { skey: 'estate_name', api: `house.admestatelist?estate_tag=二手`, opKey: 'estate_name', opVal: 'id' }
         },
         { label: '所属区域', key: 'area_type', type: 'select', options: this.$dictData.area_type},
         { label: '楼盘类型', key: 'product_type', type: 'select', options: this.$dictData.product_type},

+ 16 - 21
src/views/house/old.vue

@@ -14,6 +14,7 @@
       @currentChange="pageHandle"
       :isAdd="true"
       @add="openPopup"
+      :operationsDefaultLength="5"
     />
     <popup-edit
       :isShow="isDtlShow"
@@ -55,21 +56,6 @@ export default {
       const arr = [...this.tableData]
       arr.map(item => {
         item.pri_image = this.IMadd(item.pri_image)
-        const metro_type = item.metro_type ? item.metro_type.split(',') : []
-        const metroTypeName = metro_type.map(v => {
-          return arrToObj(this.$dictData.metro_type)[v]
-        })
-        item.metroTypeName = metroTypeName.join(',')
-        const product_type = item.product_type ? item.product_type.split(',') : []
-        const productTypeName = product_type.map(v => {
-          return arrToObj(this.$dictData.product_type)[v]
-        })
-        item.productTypeName = productTypeName.join(',')
-        const metro_line = item.metro_line ? item.metro_line.split(',') : []
-        const metroLineName = metro_line.map(v => {
-          return arrToObj(this.$dictData.metro_line)[v]
-        })
-        item.metroLineName = metroLineName.join(',')
       })
       return arr
     }
@@ -78,20 +64,20 @@ export default {
   mounted() {
     this.listConfig = {
       rows: [
+        { label: '排序', prop: 'sort', type: 'input', width: 80},
+        { label: '楼盘', prop: 'estate_name' },
         { label: '标题', prop: 'title' },
         { label: '主图', prop: 'pri_image', type: 'img' },
+        { label: '详细地址', prop: 'detail_address', fullShow: true, minWidth: 200 },
         { label: '总价', prop: 'price' },
         { label: '面积㎡', prop: 'area' },
-        { label: '房源类型', prop: 'house_type', type: 'flag', flags: arrToObj(this.$dictData.house_type) },
+        { label: '房源类型', prop: 'house_type', width: 100, fullShow: true, type: 'flag', flags: arrToObj(this.$dictData.house_type) },
         { label: '所属区域', prop: 'area_type', type: 'flag', flags: arrToObj(this.$dictData.area_type) },
-        { label: '产品类型', prop: 'productTypeName'},
-        { label: '房源地址', prop: 'address', fullShow: true, minWidth: 200 },
-        // { label: '地铁线路', prop: 'metroLineName'},
-        // { label: '地铁站名', prop: 'metroTypeName'},
         { label: '更新人', prop: 'update_by' },
         { label: '更新时间', prop: 'update_at' },
-        { label: '操作', width: 120, type: 'handle2', operations:
+        { label: '操作', width: 200, type: 'handle2', operations:
           [
+            { label: '保存排序', func: this.saveHandle, btnType: 'success' },
             { label: '编辑', func: this.openPopup, btnType: 'primary' },
             { label: '删除', func: this.delHandle, btnType: 'danger' },
           ]
@@ -100,6 +86,15 @@ export default {
     }
   },
   methods: {
+    saveHandle (row) {
+      this.$api.house.admoldhousesortedit({
+        id: row.id,
+        sort: row.sort,
+      }).then(data => {
+        this.$msgs(`已保存!`)
+        this.fetchData()
+      })
+    },
     delHandle(row) {
       this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
         this.$api.house.admoldhousedel({

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio