230320a303 1 year ago
parent
commit
e399d0e01d

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


+ 0 - 0
dist/static/css/chunk-07f2d591.2719f93e.css → dist/static/css/chunk-4c27b056.2719f93e.css


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


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


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-07f2d591.418eb383.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-4c27b056.2a7c2188.js


+ 3 - 0
src/api/other.js

@@ -40,5 +40,8 @@ export default {
   admactivitydel: params => { // 渠道活动 删除
     return getRequest('/adm/activity/del', params)
   },
+  admactivityenrollist: params => { // 渠道活动 统计列表
+    return getRequest('/adm/activity/enrol/list', params)
+  },
 }
 

+ 135 - 0
src/views/activity/dtl.vue

@@ -0,0 +1,135 @@
+<template>
+  <div class="app-container">
+    <!-- <search-form/> -->
+    <table-list
+      :listLoading="listLoading"
+      :data="tableData2"
+      :columns="listConfig"
+      :currentPage="currentPage"
+      :pageSize="pageSize"
+      :totalRecords="totalRecords"
+      @currentChange="pageHandle"
+    />
+    <!-- <dict-edit
+      :isShow="isPopupShow"
+      :curObj="curObj"
+      @close="closePopup"
+    /> -->
+  </div>
+</template>
+<script>
+// import { arrToObj } from '@/utils'
+// import SearchForm from './components/searchForm/DictDtl'
+// import DictEdit from './components/popup/DictDtlEdit'
+import baseTable from '_m/baseTable.js'
+export default {
+  // name: 'basePublicDictSys',
+  components: {
+    // SearchForm,
+    // DictEdit
+  },
+  provide () {
+    return {
+      parentData: this
+    }
+  },
+  mixins: [baseTable],
+  data () {
+    return {
+      apiStr: 'other.admactivityenrollist',
+      searchForm: null,
+      isPopupShow: false,
+      noCreated: true,
+      curObj: {},
+      curId: '',
+      curType: '',
+    }
+  },
+  computed: {
+    tableData2 () {
+      let arr = [...this.tableData]
+      arr.map(item => {
+        // if (Number(item.system) === 1) item.nosys = true
+      })
+      return arr
+    }
+  },
+  mounted () {
+    this.listConfig = {
+      rows: [
+        { label: '抖音名', prop: 'info1' },
+        { label: '抖音账号', prop: 'info2' },
+        { label: '姓名', prop: 'info3' },
+        { label: '电话', prop: 'info4' },
+        { label: '微信号', prop: 'info5' },
+        { label: '粉丝数量', prop: 'info6' },
+        { label: '获赞数量', prop: 'info7' },
+        // { label: '更新人', prop: 'update_by' },
+        { label: '更新时间', prop: 'update_at' },
+        // { label: '状态', prop: 'status', type: 'tag', tags: arrToObj(this.$dictData.dictStatus), tagTypeObj: {'1': 'success', '2': 'danger'} },
+        // { label: '操作', width: 200, type: 'handle2',
+        //   operations: [
+        //     // { labelFor: 'status', disabled: true, func: this.statusHandle, hide: 'nosys',
+        //     //   labelConfig: {
+        //     //     texts: {
+        //     //       1: '停用',
+        //     //       2: '启用'
+        //     //     },
+        //     //     btnTypes: {
+        //     //       1: 'danger',
+        //     //       2: 'success'
+        //     //     }
+        //     //   }
+        //     // },
+        //     { label: '编辑', func: this.openPopup, btnType: 'primary' },
+        //     { label: '删除', func: this.delHandle, btnType: 'danger', hide: 'nosys' },
+        //   ]
+        // }
+      ]
+    }
+    const query = this.$route.query
+    if (query.id) {
+      this.searchForm = {
+        activity_id: query.id
+      }
+      this.fetchData()
+    }
+  },
+  methods: {
+    delHandle (row) {
+      const msgHtml = `确定要删除此字典吗?`
+      this.$msg(msgHtml, 'confirm', ()=> {
+        this.$api.base.dictdatadel({
+          data_id: row.id,
+        }).then(data => {
+          this.$msgs(`删除成功!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
+    statusHandle (row) {
+      const status = Number(row.status) === 1 ? 2 : 1
+      const msgText = Number(row.status) === 1 ? '停用' : '启用'
+      this.$msg(`确定要${msgText}该字典吗?`, 'confirm', ()=> {
+        this.$api.base.dictupdate({
+          id: row.id,
+          status
+        }).then(data => {
+          this.$msgs(`${msgText}成功!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
+    openPopup (row) {
+      this.curObj = row || {}
+      this.isPopupShow = true
+    },
+    closePopup (obj) {
+      this.isPopupShow = false
+      if (obj) {
+        this.fetchData()
+      }
+    }
+  }
+}
+</script>

+ 5 - 1
src/views/activity/index.vue

@@ -62,8 +62,9 @@ export default {
         { label: '楼盘名称', prop: 'estate_name' },
         { label: '活动内容', prop: 'remark' }, 
         { label: '更新时间', prop: 'update_at' },
-        { label: '操作', width: 120, type: 'handle2', operations:
+        { label: '操作', width: 200, type: 'handle2', operations:
           [
+            { label: '统计', func: this.linkDtl, btnType: 'success' },
             { label: '编辑', func: this.openPopup, btnType: 'primary' },
             { label: '删除', func: this.delHandle, btnType: 'danger' },
           ]
@@ -72,6 +73,9 @@ export default {
     }
   },
   methods: {
+    linkDtl (row) {
+      this.$router.push(`/activity/dtl?name=${row.estate_name}${row.remark}&id=${row.id}`)
+    },
     delHandle(row) {
       this.$msg(`您确定要删除该活动吗?`, 'confirm', () => {
         this.$api.other.admactivitydel({

+ 1 - 1
src/views/user/components/searchForm/Channel.vue

@@ -18,7 +18,7 @@ export default {
       searchData: [
         { label: '时间', label2: '开始时间', label3: '结束时间', key: 'startEndTime', type: 'datePicker'},
         { label: '手机号', key: 'phone' },
-        { label: '昵称', key: 'nickname' },
+        { label: '渠道名', key: 'dept_name' },
         { label: '渠道码', key: 'dept_code' },
       ]
     }

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