Showing
2 changed files
with
35 additions
and
3 deletions
@@ -17,6 +17,13 @@ | @@ -17,6 +17,13 @@ | ||
17 | <i-option :value="9">已退驻</i-option> | 17 | <i-option :value="9">已退驻</i-option> |
18 | </i-select> | 18 | </i-select> |
19 | </i-form-item> | 19 | </i-form-item> |
20 | + <i-form-item prop="entryType"> | ||
21 | + <i-select placeholder="商家类型" v-model="filter.entryType" style="width: 100px"> | ||
22 | + <i-option :value="1">普通入驻</i-option> | ||
23 | + <i-option :value="2">超级入驻</i-option> | ||
24 | + <i-option :value="3">前期白名单</i-option> | ||
25 | + </i-select> | ||
26 | + </i-form-item> | ||
20 | </i-form> | 27 | </i-form> |
21 | </LayoutFilter> | 28 | </LayoutFilter> |
22 | <LayoutTable | 29 | <LayoutTable |
@@ -33,10 +40,15 @@ | @@ -33,10 +40,15 @@ | ||
33 | import dayjs from 'dayjs'; | 40 | import dayjs from 'dayjs'; |
34 | import Api from '@/api/api'; | 41 | import Api from '@/api/api'; |
35 | import qs from 'qs'; | 42 | import qs from 'qs'; |
43 | +import ISelect from "../../../node_modules/iview/src/components/select/select"; | ||
44 | +import IOption from "../../../node_modules/iview/src/components/select/option"; | ||
36 | 45 | ||
37 | const api = new Api(); | 46 | const api = new Api(); |
38 | 47 | ||
39 | export default { | 48 | export default { |
49 | + components: { | ||
50 | + IOption, | ||
51 | + ISelect}, | ||
40 | name: 'SendRecordPage', | 52 | name: 'SendRecordPage', |
41 | data() { | 53 | data() { |
42 | return { | 54 | return { |
@@ -45,6 +57,7 @@ export default { | @@ -45,6 +57,7 @@ export default { | ||
45 | mobile: '', | 57 | mobile: '', |
46 | uid: '', | 58 | uid: '', |
47 | validStatus: '', | 59 | validStatus: '', |
60 | + entryType: '' | ||
48 | }, | 61 | }, |
49 | page: 1, | 62 | page: 1, |
50 | total: 0, | 63 | total: 0, |
@@ -53,7 +66,15 @@ export default { | @@ -53,7 +66,15 @@ export default { | ||
53 | title: 'UID', | 66 | title: 'UID', |
54 | key: 'uid', | 67 | key: 'uid', |
55 | width: 100 | 68 | width: 100 |
56 | - }, { | 69 | + }, |
70 | + { | ||
71 | + title: '商家类型', | ||
72 | + render(h, {row}) { | ||
73 | + return h('span', {}, ['','普通入驻', '超级入驻', '前期白名单'][row.entryType]); | ||
74 | + }, | ||
75 | + width: 100 | ||
76 | + }, | ||
77 | + { | ||
57 | title: '商家名称', | 78 | title: '商家名称', |
58 | key: 'certName', | 79 | key: 'certName', |
59 | width: 100 | 80 | width: 100 |
@@ -73,7 +94,16 @@ export default { | @@ -73,7 +94,16 @@ export default { | ||
73 | title: '违规次数', | 94 | title: '违规次数', |
74 | key: 'breakRuleTimes', | 95 | key: 'breakRuleTimes', |
75 | width: 100 | 96 | width: 100 |
76 | - }, { | 97 | + }, |
98 | + { | ||
99 | + title: '账户余额', | ||
100 | + render(h, {row}) { | ||
101 | + let color = parseInt(row.money, 10) > 999 ? 'inherit' : 'red'; | ||
102 | + return h('span', {style: {color: color}}, row.money); | ||
103 | + }, | ||
104 | + width: 100 | ||
105 | + }, | ||
106 | + { | ||
77 | title: '入驻时间', | 107 | title: '入驻时间', |
78 | render(h, {row}) { | 108 | render(h, {row}) { |
79 | return ( | 109 | return ( |
@@ -128,6 +158,7 @@ export default { | @@ -128,6 +158,7 @@ export default { | ||
128 | }, this.getParams(params))); | 158 | }, this.getParams(params))); |
129 | 159 | ||
130 | if (result.code === 200) { | 160 | if (result.code === 200) { |
161 | +// console.log('listData:', result); | ||
131 | this.total = result.data.total; | 162 | this.total = result.data.total; |
132 | this.data = result.data.list; | 163 | this.data = result.data.list; |
133 | this.$Loading.finish(); | 164 | this.$Loading.finish(); |
@@ -142,6 +173,7 @@ export default { | @@ -142,6 +173,7 @@ export default { | ||
142 | mobile: params.mobile, | 173 | mobile: params.mobile, |
143 | uid: params.uid, | 174 | uid: params.uid, |
144 | validStatus: parseInt(params.validStatus) >= 0 ? params.validStatus : void 0, | 175 | validStatus: parseInt(params.validStatus) >= 0 ? params.validStatus : void 0, |
176 | + entryType: parseInt(params.entryType) >= 0 ? params.entryType : void 0, | ||
145 | }; | 177 | }; |
146 | } | 178 | } |
147 | }, | 179 | }, |
-
Please register or login to post a comment