Selaa lähdekoodia

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

许成详 6 vuotta sitten
vanhempi
commit
e273fd3096

+ 2
- 2
config/index.js Näytä tiedosto

12
     proxyTable: {
12
     proxyTable: {
13
       '/api': {
13
       '/api': {
14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
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
         // target: 'http://192.168.0.11', //ys
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
         // target: 'http://dev.ycjcjy.com/', //frp
18
         // target: 'http://dev.ycjcjy.com/', //frp
19
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
19
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
20
         // pathRewrite: {
20
         // pathRewrite: {

+ 1
- 1
src/pages/system/caseManager/deviceManager/add.vue Näytä tiedosto

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

+ 40
- 31
src/pages/system/luckyDrawManager/luckyDrawShareList/index.vue Näytä tiedosto

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

+ 2
- 2
src/store/luckDraw/luckDraw.js Näytä tiedosto

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

+ 1
- 1
src/util/api.js Näytä tiedosto

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