liujq 4 anos atrás
pai
commit
0801eab569

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-35801c6c.eb177a36.css → dist/static/css/chunk-29ae0854.eb177a36.css


+ 0 - 0
dist/static/css/chunk-1cd692c0.f75cb248.css → dist/static/css/chunk-be0229d4.42805a05.css


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-e7de9004.ec08d17f.css


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.366139ba.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.a0fc63f0.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-29ae0854.207b58ae.js


+ 1 - 1
dist/static/js/chunk-2d0ccfc9.5ae54dc1.js

@@ -1 +1 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ccfc9","chunk-2d0ccfc9"],{"4fef":function(t,a,e){"use strict";e.r(a);var i=e("ade3"),c=e("5530");e("1276"),e("ac1f"),e("a9e3");a["default"]={data:function(){return{listLoading:!1,tableData:[],currentPage:1,pageSize:10,totalRecords:1,listConfig:{},operations:[]}},created:function(){var t=this;this.$nextTick((function(){t.noCreated||t.fetchData()}))},methods:{searchHandle:function(t){this.currentPage=1,this.searchForm=t,this.fetchData()},sizeChange:function(t){this.pageSize=t,this.currentPage=1,this.fetchData()},pageHandle:function(t){this.currentPage=t,this.fetchData()},sortChange:function(t){this.currentPage=1;var a=Object(c["a"])({},this.searchForm);"ascending"===t.order?a.sort=JSON.stringify(Object(i["a"])({},t.prop,"asc")):a.sort=JSON.stringify(Object(i["a"])({},t.prop,"desc")),this.fetchData(a)},fetchData:function(t){var a=this;if(this.apiStr){var e={page:this.currentPage,page_size:this.pageSize};t?e=Object(c["a"])(Object(c["a"])({},e),t):this.searchForm&&(e=Object(c["a"])(Object(c["a"])({},e),this.searchForm)),this.getDataBefore&&this.getDataBefore(e),this.listLoading=!0;var i=this.apiStr.split(".");this.$api[i[0]][i[1]](e).then((function(t){return 1===a.currentPage&&(a.pageSize=t.page_size||1),a.totalRecords=t.total?Number(t.total):0,a.tableData=t.list||[],a.listLoading=!1,a.getMoreData&&a.getMoreData(t,e),t})).catch((function(t){a.listLoading=!1}))}}}}}}]);
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ccfc9","chunk-2d0ccfc9"],{"4fef":function(t,a,e){"use strict";e.r(a);var i=e("ade3"),c=e("5530");e("1276"),e("ac1f"),e("a9e3"),a["default"]={data:function(){return{listLoading:!1,tableData:[],currentPage:1,pageSize:10,totalRecords:1,listConfig:{},operations:[]}},created:function(){var t=this;this.$nextTick((function(){t.noCreated||t.fetchData()}))},methods:{searchHandle:function(t){this.currentPage=1,this.searchForm=t,this.fetchData()},sizeChange:function(t){this.pageSize=t,this.currentPage=1,this.fetchData()},pageHandle:function(t){this.currentPage=t,this.fetchData()},sortChange:function(t){this.currentPage=1;var a=Object(c["a"])({},this.searchForm);"ascending"===t.order?a.sort=JSON.stringify(Object(i["a"])({},t.prop,"asc")):a.sort=JSON.stringify(Object(i["a"])({},t.prop,"desc")),this.fetchData(a)},fetchData:function(t){var a=this;if(this.apiStr){var e={page:this.currentPage,page_size:this.pageSize};t?e=Object(c["a"])(Object(c["a"])({},e),t):this.searchForm&&(e=Object(c["a"])(Object(c["a"])({},e),this.searchForm)),this.getDataBefore&&this.getDataBefore(e),this.listLoading=!0;var i=this.apiStr.split(".");this.$api[i[0]][i[1]](e).then((function(t){return 1===a.currentPage&&(a.pageSize=t.page_size||1),a.totalRecords=t.total?Number(t.total):0,a.tableData=t.list||[],a.listLoading=!1,a.getMoreData&&a.getMoreData(t,e),t})).catch((function(t){a.listLoading=!1}))}}}}}}]);

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-35801c6c.5a06839f.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-40ba4aec.0acd995b.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-be0229d4.2f9376b9.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-e7de9004.c45ccccc.js


+ 6 - 0
src/api/other.js

@@ -52,4 +52,10 @@ export default {
   admactivityruledetail: params => { // 团购助力活动规则 详情
     return getRequestNoSort('/adm/activity/rule/detail', params, 'loading')
   },
+  admactivitybuyinglaunchlist: params => { // 助力活动- 列表
+    return getRequest('/adm/activity/buying/launch/list', params)
+  },
+  admactivitybuyingjoinlist: params => { // 助力活动- 列表参与列表
+    return getRequest('/adm/activity/buying/join/list', params)
+  },
 }

+ 99 - 0
src/views/house/components/popup/DiscountGroupJoin.vue

@@ -0,0 +1,99 @@
+<template>
+  <div>
+    <el-drawer
+      :show-close="false"
+      :title="curObj.id ? '编辑楼盘摇号信息' : '新增楼盘摇号信息'"
+      :wrapper-closable="false"
+      :close-on-press-escape="false"
+      :visible.sync="isShow"
+      size="960px"
+      custom-class="xl-drawer"
+      direction="rtl"
+    >
+      <table-list
+        :list-loading="listLoading"
+        :data="tableData"
+        :columns="listConfig"
+        :current-page="currentPage"
+        :page-size="-1"
+      />
+      <div class="xl-form">
+        <div class="xl-form-footer fixed" style="width:960px;padding-top: 20px;border-top: 1px solid #dcdcdc;right:0;">
+          <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
+        </div>
+      </div>
+    </el-drawer>
+  </div>
+</template>
+<script>
+import baseTable from '_m/baseTable.js'
+export default {
+  components: {
+  },
+  mixins: [baseTable],
+  props: {
+    isShow: Boolean,
+    curObj: Object
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      apiStr: 'other.admactivitybuyingjoinlist',
+      searchForm: {},
+      noCreated: true,
+      isLEShow: false,
+      cObj: {},
+    }
+  },
+  computed: {
+    tableData2() {
+      const arr = [...this.tableData]
+      arr.map(item => {
+      })
+      return arr
+    }
+  },
+  mounted() {
+    this.listConfig = {
+      rows: [
+        { label: '助力人', prop: 'avatar', type: 'img' },
+        { label: '昵称', prop: 'nickname'},
+        { label: '手机号', prop: 'phone' },
+        { label: '助力时间', prop: 'create_at' },
+        { label: '操作', width: 120, type: 'handle2', operations:
+          [
+            // { label: '编辑', func: this.openLEPopup, btnType: 'primary' },
+            // { label: '删除', func: this.delHandle, btnType: 'danger' },
+          ]
+        }
+      ]
+    }
+  },
+  watch: {
+    isShow: function(val) {
+      if (val) {
+        this.$api.other.admactivitybuyingjoinlist({hash: this.curObj.hash}).then(res => {
+          this.tableData = res || []
+        })
+      }
+    },
+  },
+  methods: {
+    // delHandle(row) {
+    //   this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
+    //     this.$api.house.admpricedel({
+    //       id: row.id,
+    //     }).then(data => {
+    //       this.$msgs(`已删除!`)
+    //       this.fetchData()
+    //     })
+    //   }, null, true)
+    // },
+    close(str) {
+      this.$emit('close')
+    }
+  }
+}
+</script>
+<style lang="scss" scoped>
+</style>

+ 7 - 6
src/views/house/components/popup/HelpRule.vue

@@ -5,7 +5,7 @@
       :show-close="false"
       :close-on-click-modal="false"
       :visible.sync="isShow"
-      :title="curObj.id ? `编辑(${curObj.estate_name})团购助力规则` : '新增(${curObj.estate_name})团购助力规则'"
+      :title="tagObj.id ? `编辑(${curObj.estate_name})团购助力规则` : `新增(${curObj.estate_name})团购助力规则`"
       :fullscreen="false"
       width="700px"
       custom-class="xl-dialog"
@@ -43,7 +43,6 @@ export default {
     isShow: function(val) {
       if (val) {
         this.getDtl()
-        this.getDef()
       }
     },
   },
@@ -52,8 +51,8 @@ export default {
     getDtl () {
       this.listLoading = true
       this.$api.other.admactivityruledetail({estate_id: this.curObj.id}).then(res => {
-        console.log(res)
-        // this.getDef()
+        this.tagObj = res.rule || {}
+        this.getDef()
         this.listLoading = false
       })
     },
@@ -62,13 +61,14 @@ export default {
         this.$api.other.admactivityruledel({
           estate_id: this.curObj.id,
         }).then(data => {
+          this.tagObj = {}
           this.$msgs(`已清空!`)
           this.close()
         })
       }, null, true)
     },
     getDef() {
-      const params = {}
+      const params = {...this.tagObj}
       this.formData = [
         { label: '是否开启', key: 'is_open', rules: 1, type: 'select', options: this.$dictData.sys_yesno },
         { label: '规则', key: 'rule', type: 'textarea' },
@@ -97,8 +97,9 @@ export default {
             const newForm = { ...oldform }
             newForm.estate_id = this.curObj.id
             let apiStr = 'admactivityruleadd'
+            if (this.tagObj.id) apiStr = 'admactivityruleedit'
             this.$api.other[apiStr](newForm).then(data => {
-              this.$msgs(newForm.id ? '编辑成功' : '新增成功')
+              this.$msgs(this.tagObj.id ? '编辑成功' : '新增成功')
               this.$emit('close', newForm)
             })
           }

+ 121 - 0
src/views/house/discountGroup.vue

@@ -0,0 +1,121 @@
+<template>
+  <div class="app-container">
+    <search-form
+      :list-loading="listLoading"
+      @change="searchHandle"
+    />
+    <table-list
+      :list-loading="listLoading"
+      :data="tableData2"
+      :columns="listConfig"
+      :current-page="currentPage"
+      :page-size="pageSize"
+      :total-records="totalRecords"
+      @currentChange="pageHandle"
+    />
+    <dg-join
+      :isShow="isDJShow"
+      :curObj="curObj"
+      @close="closeDJPopup" />
+  </div>
+</template>
+<script>
+import { arrToObj } from '@/utils'
+import SearchForm from './components/searchForm/Del'
+import DgJoin from './components/popup/DiscountGroupJoin'
+import baseTable from '_m/baseTable.js'
+export default {
+  name: 'index',
+  components: {
+    SearchForm,
+    DgJoin,
+  },
+  provide() {
+    return {
+      parentData: this
+    }
+  },
+  mixins: [baseTable],
+  data() {
+    return {
+      apiStr: 'other.admactivitybuyinglaunchlist',
+      searchForm: null,
+      isDtlShow: false,
+      isPhotoShow: false,
+      // noCreated: true,
+      curObj: {},
+      isTHEShow: false,
+      isDJShow: false,
+    }
+  },
+  computed: {
+    tableData2() {
+      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
+    }
+  },
+  created() {},
+  mounted() {
+    this.listConfig = {
+      rows: [
+        { label: '楼盘名称', prop: 'estate_name', minWidth: 150, align: 'left' },
+        { label: '助力人', prop: 'avatar', type: 'img' },
+        { label: '昵称', prop: 'nickname'},
+        { label: '手机号', prop: 'phone' },
+        { label: 'hash', prop: 'hash' },
+        { label: '发起时间', prop: 'create_at' },
+        { label: '操作', width: 120, type: 'handle2', operations:
+          [
+            { label: '已助力人', func: this.openDJPopup, btnType: 'primary' },
+            // { label: '删除', func: this.delHandle, btnType: 'danger' },
+          ]
+        }
+      ]
+    }
+  },
+  methods: {
+    openDJPopup(row) {
+      if (row && row.id) {
+        this.curObj = row
+      } else {
+        this.curObj = {}
+      }
+      this.isDJShow = true
+    },
+    closeDJPopup(obj) {
+      this.isDJShow = false
+      if (obj) {
+        this.fetchData()
+      }
+    },
+    delHandle(row) {
+      this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
+        this.$api.house.admestaterecyclepurge({
+          id: row.id,
+        }).then(data => {
+          this.$msgs(`已删除!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
+  }
+}
+</script>

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff