liujq vor 3 Jahren
Ursprung
Commit
87851980e7

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/index.html


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/app.31ba84a1.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/app.f57b6187.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/chunk-54af4be2.7f5fec97.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/chunk-54af4be2.ec9412e6.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/chunk-68d1f827.890a580c.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/chunk-68d1f827.c31f464e.js


+ 9 - 0
src/api/user.js

@@ -100,4 +100,13 @@ export default {
   admsaleuseredit: params => { // 销售列表 编辑
     return getRequestNoSort('/adm/sale/user/edit', params, 'loading')
   },
+  admestatepricepush: params => { // 推送消息 历史价格更新
+    return getRequestNoSort('/adm/estate/price/push', params, 'loading')
+  },
+  admestatelottery2pushprice: params => { // 推送消息 一房一价更新
+    return getRequestNoSort('/adm/estate/lottery2/push/price', params, 'loading')
+  },
+  admestatelottery2pushres: params => { // 推送消息 摇号结果更新
+    return getRequestNoSort('/adm/estate/lottery2/push/res', params, 'loading')
+  },
 }

+ 28 - 1
src/views/house/components/popup/LotteryList.vue

@@ -17,6 +17,7 @@
         :current-page="currentPage"
         :page-size="pageSize"
         :total-records="totalRecords"
+        :operationsDefaultLength="3"
         @currentChange="pageHandle"
         :isAdd="true"
         @add="openLEPopup"
@@ -35,6 +36,7 @@
   </div>
 </template>
 <script>
+import { arrToObj } from '@/utils'
 import baseTable from '_m/baseTable.js'
 import LotteryEdit from './LotteryEdit'
 export default {
@@ -60,6 +62,8 @@ export default {
     tableData2() {
       const arr = [...this.tableData]
       arr.map(item => {
+        if (Number(item.push_state) !== 1) item.noYFYJ = true
+        if (Number(item.push_state) !== 2) item.noResult = true
       })
       return arr
     }
@@ -72,9 +76,12 @@ export default {
         { label: '摇号中标题', prop: 'under_way'},
         { label: '摇号时间', prop: 'lottery_time'},
         { label: '摇号结果标题', prop: 'lottery_res'},
-        { label: '操作', width: 120, type: 'handle2', operations:
+        { label: '推送状态', prop: 'push_state', type: 'flag', flags: arrToObj(this.$dictData.push_state) },
+        { label: '操作', width: 180, type: 'handle2', operations:
           [
             { label: '编辑', func: this.openLEPopup, btnType: 'primary' },
+            { label: '推一房一价', func: this.pushYFYJ, btnType: 'warning', hide: 'noYFYJ' },
+            { label: '推结果', func: this.pushResult, btnType: 'warning', hide: 'noResult' },
             // { label: '删除', func: this.delHandle, btnType: 'danger' },
           ]
         }
@@ -95,6 +102,26 @@ export default {
     },
   },
   methods: {
+    pushYFYJ (row) {
+      this.$msg(`您确定要推送一房一价给关注的用户吗?`, 'confirm', () => {
+        this.$api.user.admestatelottery2pushprice({
+          id: row.id
+        }).then(() => {
+          this.$msgs('推送成功~')
+          this.fetchData()
+        })
+      }, null, true)
+    },
+    pushResult (row) {
+      this.$msg(`您确定要推送摇号结果给关注的用户吗?`, 'confirm', () => {
+        this.$api.user.admestatelottery2pushres({
+          id: row.id
+        }).then(() => {
+          this.$msgs('推送成功~')
+          this.fetchData()
+        })
+      }, null, true)
+    },
     delHandle(row) {
       this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
         this.$api.house.admestatelottery2del({

+ 13 - 1
src/views/house/components/searchForm/Price.vue

@@ -2,6 +2,7 @@
   <base-form slot="content" ref="ruleForm" :data="searchData">
     <div slot="footer">
       <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">查询:{{name}}</el-button>
+      <el-button v-if="!isHidePut" :loading="listLoading" icon="el-icon-document" class="xl-form-btn bgc4" @click="pushToUser">推送给关注{{name}}的用户</el-button>
       <!-- <el-button :loading="listLoading" icon="el-icon-document" class="xl-form-btn bgc2" @click="toExportExcel">导出{{ this.$route.meta.title }}信息</el-button> -->
     </div>
   </base-form>
@@ -15,7 +16,8 @@ export default {
   mixins,
   data() {
     return {
-      searchData: []
+      searchData: [],
+      isHidePut: false,
     }
   },
   computed: {
@@ -27,6 +29,16 @@ export default {
     this.getDef()
   },
   methods: {
+    pushToUser () {
+      this.$msg(`您确定要推送给关注的用户吗?`, 'confirm', () => {
+        this.$api.user.admestatepricepush({
+          estate_id: this.parentData.$route.query.id
+        }).then(() => {
+          this.$msgs('推送成功~')
+          this.isHidePut = true
+        })
+      }, null, true)
+    },
     getDef (str) {
       let params = { ...this.$refs.ruleForm.baseForm }
       this.searchData = [

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.