浏览代码

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/admin into dev

许成详 6 年前
父节点
当前提交
e273fd3096

+ 2
- 2
config/index.js 查看文件

@@ -12,9 +12,9 @@ module.exports = {
12 12
     proxyTable: {
13 13
       '/api': {
14 14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
15
-        // target: 'http://192.168.0.62:8080', //wf
15
+        target: 'http://192.168.0.62:8080', //wf
16 16
         // target: 'http://192.168.0.11', //ys
17
-        target: 'http://192.168.0.125:8080', //hyq
17
+        // target: 'http://192.168.0.125:8080', //hyq
18 18
         // target: 'http://dev.ycjcjy.com/', //frp
19 19
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
20 20
         // pathRewrite: {

+ 1
- 1
src/pages/system/caseManager/deviceManager/add.vue 查看文件

@@ -3,7 +3,7 @@
3 3
     <form class="mainForm">
4 4
       <ul>
5 5
          <li class="flex-h">
6
-          <!-- <span>选择案场:</span> -->
6
+          <span>选择案场:</span>
7 7
           <div class="flex-item">
8 8
             <div style="width:50%">
9 9
               <el-select v-model="Case" placeholder="请选择">

+ 40
- 31
src/pages/system/luckyDrawManager/luckyDrawShareList/index.vue 查看文件

@@ -3,6 +3,28 @@
3 3
     <div class="system-table-search">
4 4
       <div class="flex-h">
5 5
         <div class="flex-item flex-h"></div>
6
+        <ul>
7
+          <li>
8
+            <el-input
9
+              placeholder="请输入用户手机号"
10
+              v-model="toPhone"
11
+            >
12
+            </el-input>
13
+          </li>
14
+          <li>
15
+            <el-input
16
+              placeholder="请输入被分享用户手机号"
17
+              v-model="fromPhone"
18
+            >
19
+            </el-input>
20
+          </li>
21
+        </ul>
22
+        <el-button
23
+          size="mini"
24
+          type="primary" @click="search">搜索</el-button>
25
+          <!-- <el-button
26
+          size="mini"
27
+          type="danger" @click="excel">导出Excel</el-button> -->
6 28
       </div>
7 29
       <div class="moreFilter"></div>
8 30
     </div>
@@ -12,47 +34,35 @@
12 34
         stripe
13 35
         style="width: 100%">
14 36
         <el-table-column
15
-          prop="CaseName"
16
-          label="案场">
37
+          prop="ToCustomerWxname"
38
+          label="用户昵称">
17 39
         </el-table-column>
18 40
         <el-table-column
19
-          prop="ActivitName"
20
-          label="活动名称">
41
+          prop="ToCustomerName"
42
+          label="用户姓名">
21 43
         </el-table-column>
22 44
         <el-table-column
23
-          prop="Name"
24
-          label="姓名">
45
+          prop="ToCustomerTel"
46
+          label="用户手机号">
25 47
         </el-table-column>
26 48
         <el-table-column
27
-          prop="CustomerName"
28
-          label="微信昵称">
49
+          prop="FromCustomerWxname"
50
+          label="被分享用户昵称">
29 51
         </el-table-column>
30 52
         <el-table-column
31
-          prop="Phone"
32
-          label="手机号">
53
+          prop="FromCustomerName"
54
+          label="被分享用户姓名">
33 55
         </el-table-column>
34 56
         <el-table-column
35
-          prop="PrizeName"
36
-          label="获取奖品">
57
+          prop="FromCustomerTel"
58
+          label="被分享用户手机号">
37 59
         </el-table-column>
38 60
         <el-table-column
39
-          label="获取时间">
61
+          label="分享时间">
40 62
           <template slot-scope="scope">
41 63
             <label>{{toolClass.dateFormat(scope.row.CreateDate)}}</label>
42 64
           </template>
43 65
         </el-table-column>
44
-        <el-table-column
45
-          label="核销时间">
46
-          <template slot-scope="scope">
47
-            <label>{{toolClass.dateFormat(scope.row.WriteoffDate)}}</label>
48
-          </template>
49
-        </el-table-column>
50
-        <el-table-column
51
-          label="状态">
52
-          <template slot-scope="scope">
53
-            <label>{{scope.row.Status === 0 ? '未核销' : '已核销'}}</label>
54
-          </template>
55
-        </el-table-column>
56 66
       </el-table>
57 67
     </div>
58 68
     <el-pagination
@@ -74,6 +84,8 @@ export default {
74 84
   data () {
75 85
     return {
76 86
       total: 0,
87
+      toPhone: '',
88
+      fromPhone: '',
77 89
       postData: { // 表格搜索条件
78 90
         page: 1, // 当前页码
79 91
         pagesize: 10, // 请求数据量
@@ -88,21 +100,18 @@ export default {
88 100
   },
89 101
   computed: {
90 102
     ...mapLuckState({
91
-      list: x => x.luckDrawList
103
+      list: x => x.luckDrawShareList
92 104
     }),
93 105
   },
94 106
   methods: {
95
-    ...mapLuckActions(['getLuckDrawList']),
107
+    ...mapLuckActions(['getLuckDrawShareList']),
96 108
     search () { // 搜索
97 109
       this.postData.page = 1
98 110
       this.currentList = []
99 111
       this.getList()
100 112
     },
101
-    getCaseName (caseid) {
102
-      return (this.cases.filter(x => x.CaseId === caseid)[0] || {}).CaseName
103
-    },
104 113
     getList () { // 获取列表
105
-      this.getLuckDrawList({ ...this.postData }).then((res) => {
114
+      this.getLuckDrawShareList({ ...this.postData, toPhone: this.toPhone, fromPhone: this.fromPhone }).then((res) => {
106 115
         this.currentList = this.list.list
107 116
         this.postData.page = this.list.page
108 117
         this.total = this.list.pagenum

+ 2
- 2
src/store/luckDraw/luckDraw.js 查看文件

@@ -11,7 +11,7 @@ export default {
11 11
     updateLuckDrawList (state, payload) {
12 12
       state.luckDrawList = payload || {}
13 13
     },
14
-    updateLuckShareDrawList (state, payload) {
14
+    updateLuckDrawShareList (state, payload) {
15 15
       state.luckDrawShareList = payload || {}
16 16
     },
17 17
   },
@@ -34,7 +34,7 @@ export default {
34 34
         ajax({
35 35
           ...api.luckDraw.luckDrawShareList,
36 36
           queryData: {
37
-            ...payload,
37
+            ...payload
38 38
           }
39 39
         }).then(res => {
40 40
           commit('updateLuckDrawShareList', res)

+ 1
- 1
src/util/api.js 查看文件

@@ -773,7 +773,7 @@ const $api = {
773 773
     },
774 774
     luckDrawShareList: {
775 775
       method: 'get',
776
-      url: `${baseUrl}${common}/luckdrawlist/:toPhone/:fromPhone`
776
+      url: `${baseUrl}${common}/luckdrawlist/share`
777 777
     }
778 778
   }
779 779
 }