230320a303 8 ماه پیش
والد
کامیت
106a1e9c36

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-384c211a.9aa93a26.css → dist/static/css/chunk-697213b7.9aa93a26.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/app.25658229.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/app.b01d3230.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-384c211a.afdb71db.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-697213b7.40cc923e.js


+ 3 - 0
src/api/house.js

@@ -223,6 +223,9 @@ export default {
   admestatehousedynamicupdate: params => { // 房价动态 - 更新
     return getRequest('/adm/estate/house/dynamic/update', params, 'loading')
   },
+  admestatehousedynamiclog: params => { // 房价动态 - 更新日志
+    return getRequest('/adm/estate/house/dynamic/log', params, 'loading')
+  },
   admestatelotterypriceedit: params => { // 一房一价 - 编辑
     return getRequestNoSort('/adm/estate/lottery/price/edit', params, 'loading')
   },

+ 127 - 0
src/views/house/components/popup/TrendRecord.vue

@@ -0,0 +1,127 @@
+<template>
+  <div>
+    <el-dialog
+      :show-close="false"
+      :close-on-click-modal="false"
+      :visible.sync="isShow"
+      :title="`${curObj.estate_name}的更新记录`"
+      :fullscreen="false"
+      width="700px"
+      custom-class="xl-dialog"
+      center
+    >
+      <table-list
+        :list-loading="listLoading"
+        :data="tableData2"
+        :columns="listConfig"
+        :current-page="currentPage"
+        :page-size="pageSize"
+        :total-records="totalRecords"
+        @currentChange="pageHandle"
+        @sizeChange="sizeChange"
+        :isAdd="true"
+        @add="openPopup"
+      />
+      <div class="xl-form">
+        <div class="xl-form-footer">
+          <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
+        </div>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+<script>
+import baseTable from '_m/baseTable.js'
+export default {
+  components: {  },
+  mixins: [...mixins, baseTable],
+  props: {
+    isShow: Boolean,
+    curObj: Object
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      apiStr: 'house.admestatehousedynamiclog',
+      noCreated: true,
+      searchForm: {},
+      aList: [],
+      subObj: {},
+      isDtlShow: false,
+    }
+  },
+  mounted() {
+    this.listConfig = {
+      rows: [
+        { label: '更新时间', prop: 'create_at' },
+        { label: '更新人', prop: 'create_by' },
+        { label: '起价', prop: 'price_min' },
+        { label: '封顶价', prop: 'price_max' },
+        { label: '现场折扣', prop: 'scene_discount' },
+        { label: '实际折扣', prop: 'actual_discount' },
+        { label: '最新动态', prop: 'dynamic' },
+        // { label: '操作', width: 120, type: 'handle2', operations:
+        //   [
+        //     { label: '编辑', func: this.openPopup, btnType: 'primary' },
+        //     { label: '删除', func: this.delHandle, btnType: 'danger' },
+        //   ]
+        // }
+      ]
+    }
+  },
+  computed: {
+    tableData2 () {
+      let arr = [...this.tableData]
+      arr.map(item => {
+        if (item.protect_at === '1970-01-01') item.protect_at = ''
+      })
+      return arr
+    }
+  },
+  watch: {
+    isShow: function(val) {
+      if (val) {
+        this.searchForm = {id: this.curObj.id, page_size: 5}
+        this.fetchData()
+      }
+    },
+  },
+  methods: {
+    // getMoreData (res) {
+    //   const data = res.answer_list || {}
+    //   this.aList = data.list || []
+    //   if (this.currentPage === 1) this.pageSize = data.page_size || 1
+    //   this.totalRecords = data.total ? Number(data.total) : 0
+    // },
+    delHandle(row) {
+      this.$msg(`您确定要删除该跟进记录吗?`, 'confirm', () => {
+        this.$api.user.admcustomerrecorddel({
+          id: row.id
+        }).then(data => {
+          this.$msgs(`已删除!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
+    close(str) {
+      this.$emit('close')
+    },
+    openPopup(row) {
+      if (row && row.id) {
+        this.subObj = row
+      } else {
+        this.subObj = {}
+      }
+      this.isDtlShow = true
+    },
+    closePopup(obj) {
+      this.isDtlShow = false
+      if (obj) {
+        this.fetchData()
+      }
+    }
+  }
+}
+</script>
+<style lang="scss" scoped>
+</style>

+ 26 - 3
src/views/house/trend.vue

@@ -26,6 +26,11 @@
       :curObj="curObj"
       @close="closeUpdatePopup"
     />
+    <popup-record
+      :isShow="isQShow"
+      :curObj="curObj"
+      @close="closeQPopup"
+    />
   </div>
 </template>
 <script>
@@ -33,6 +38,7 @@ import { arrToObj } from '@/utils'
 import SearchForm from './components/searchForm/Trend'
 import PopupEdit from './components/popup/TrendEdit'
 import PopupUpdate from './components/popup/TrendUpdate'
+import PopupRecord from './components/popup/TrendRecord'
 import baseTable from '_m/baseTable.js'
 export default {
   name: 'index',
@@ -40,6 +46,7 @@ export default {
     SearchForm,
     PopupEdit,
     PopupUpdate,
+    PopupRecord,
   },
   provide() {
     return {
@@ -54,6 +61,7 @@ export default {
       isDtlShow: false,
       curObj: {},
       isUpdateShow: false,
+      isQShow: false,
     }
   },
   computed: {
@@ -68,7 +76,7 @@ export default {
     this.listConfig = {
       rows: [
         //  minWidth: 150, align: 'left'
-        { label: '更新时间', prop: 'update_at' },
+        { label: '更新时间', prop: 'update_re' },
         { label: '楼盘名称', prop: 'estate_name' },
         { label: '所属区域', prop: 'area_type', type: 'flag', flags: arrToObj(this.$dictData.area_type) },
         { label: '产品类型', prop: 'product_type', type: 'flag', flags: arrToObj(this.$dictData.product_type) },
@@ -79,9 +87,10 @@ export default {
         { label: '实际折扣', prop: 'actual_discount' },
         { label: '最新动态', prop: 'dynamic' },
         { label: '更新人', prop: 'update_by' },
-        { label: '操作', width: 200, type: 'handle2', operations:
+        { label: '操作', width: 220, type: 'handle2', operations:
           [
-            { label: '更新动态', func: this.openUpdatePopup, btnType: 'success' },
+            { label: '去更新', func: this.openUpdatePopup, btnType: 'success' },
+            { label: '更新记录', func: this.openQPopup, btnType: 'primary' },
             { label: '编辑', func: this.openPopup, btnType: 'primary' },
             { label: '删除', func: this.delHandle, btnType: 'danger' },
           ]
@@ -100,6 +109,20 @@ export default {
         })
       }, null, true)
     },
+    openQPopup (row) {
+      if (row && row.id) {
+        this.curObj = row
+      } else {
+        this.curObj = {}
+      }
+      this.isQShow = true
+    },
+    closeQPopup (obj) {
+      this.isQShow = false
+      if (obj) {
+        this.fetchData()
+      }
+    },
     openPopup(row) {
       if (row && row.id) {
         this.curObj = row

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است