jufubao-admin-library 1.1.100 → 1.1.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,19 +127,30 @@ export default {
127
127
  },
128
128
 
129
129
  setMovieForm (data) {
130
- if(data.adjust_type=='CARD_CITY') {
130
+
131
+ if(data.adjust_type==='CARD_CITY') {
131
132
  if (data['valid_data']) {
132
133
  let valid_data = this.getParseJSON(data.valid_data)
133
134
  data.card= valid_data.card
134
135
  data.city=valid_data.city
135
136
  delete data.valid_data
136
137
  }
138
+ //设置是否隐藏其他号段
139
+ if(data['is_hide_other_card']) {
140
+ data['CARD_CITY_is_hide_other_card'] = data['is_hide_other_card'];
141
+ delete data['is_hide_other_card']
142
+ }
137
143
  } else {
138
144
  let adjust_type_key = `${data.adjust_type}_valid_data`
139
145
  if (data['valid_data']) {
140
146
  data[adjust_type_key] = this.getParseJSON(data.valid_data)
141
147
  delete data.valid_data
142
148
  }
149
+ //设置是否隐藏其他号段
150
+ if(data['is_hide_other_card']) {
151
+ data['CARD_is_hide_other_card'] = data['is_hide_other_card'];
152
+ delete data['is_hide_other_card']
153
+ }
143
154
  }
144
155
  if (data.valid_weeks) data.valid_weeks = this.getParseJSON(data.valid_weeks)
145
156
 
@@ -730,6 +741,16 @@ export default {
730
741
  { required: true, message: '请输入号段', trigger: ['blur', 'change'] }
731
742
  ]
732
743
  },
744
+ params.adjust_type === 'CARD_CITY' && {
745
+ label: '是否隐藏其他卡号:',
746
+ ele: 'xd-radio',
747
+ valueKey: 'CARD_CITY_is_hide_other_card',
748
+ value: params['CARD_CITY_is_hide_other_card'] || 'N',
749
+ list: [
750
+ { "label": "隐藏", "value": 'Y' },
751
+ { "label": "不隐藏", "value": 'N' },
752
+ ],
753
+ },
733
754
  params.adjust_type === 'CITY' && {
734
755
  label: '按城市:',
735
756
  placeholder: '请选择城市',
@@ -758,6 +779,16 @@ export default {
758
779
  { required: false, message: '请输入时间', trigger: ['blur', 'change'] }
759
780
  ]
760
781
  },
782
+ params.adjust_type === 'CARD' && {
783
+ label: '是否隐藏其他卡号:',
784
+ ele: 'xd-radio',
785
+ valueKey: 'CARD_is_hide_other_card',
786
+ value: params['CARD_is_hide_other_card'] || 'N',
787
+ list: [
788
+ { "label": "隐藏", "value": 'Y' },
789
+ { "label": "不隐藏", "value": 'N' },
790
+ ],
791
+ },
761
792
  params.adjust_type === 'CINE' && {
762
793
  label: '按影院:',
763
794
  ele: 'xd-remote-select',
@@ -1054,7 +1085,17 @@ export default {
1054
1085
  let data = this.$xdHelper.cloneDeep(this.listValue)
1055
1086
  let adjust_type_key = `${data.adjust_type}_valid_data`
1056
1087
 
1057
- if(data.adjust_type==='CARD_CITY') {
1088
+ //是否隐藏其他号段
1089
+ if(data['CARD_CITY_is_hide_other_card']) {
1090
+ data['is_hide_other_card'] = data['CARD_CITY_is_hide_other_card'];
1091
+ delete data['CARD_CITY_is_hide_other_card']
1092
+ }
1093
+ if(data['CARD_is_hide_other_card']) {
1094
+ data['is_hide_other_card'] = data['CARD_is_hide_other_card'];
1095
+ delete data['CARD_is_hide_other_card']
1096
+ }
1097
+
1098
+ if(data.adjust_type === 'CARD_CITY') {
1058
1099
  data['valid_data'] = {
1059
1100
  city:data['city'],
1060
1101
  card:data['card']
@@ -34,9 +34,21 @@ const storeRouter = {
34
34
  meta: {
35
35
  title: '门店集市',
36
36
  icon: 'el-icon-sell',
37
- roles:[store_selection.selectShopMarketList]
37
+ roles:[store_selection.selectShopMarketList],
38
38
  }
39
39
  },
40
+ // #ifdef partner-movie
41
+ // {
42
+ // path: 'mc-market-list',
43
+ // name: 'McMarketList',
44
+ // component: () => import('@/viewStore/market/mc_list'),
45
+ // meta: {
46
+ // title: '在线选座门店集市',
47
+ // icon: 'el-icon-sell',
48
+ // roles:[store_selection.selectShopSeatList]
49
+ // }
50
+ // },
51
+ // #endif
40
52
  {
41
53
  path: 'rule-list',
42
54
  name: 'StoreRuleList',
@@ -85,11 +97,21 @@ const storeRouter = {
85
97
  name: 'TasksList',
86
98
  component: () => import('@/viewStore/task/list'),
87
99
  meta: {
88
- title: '选店任务管理',
100
+ title: '门店更新',
89
101
  icon: 'xdicon_rizhi',
90
102
  roles:[store_selection.selectShopTaskList]
91
103
  }
92
104
  },
105
+ // {
106
+ // path: 'cache-list',
107
+ // name: 'CacheList',
108
+ // component: () => import('@/viewStore/cache/list'),
109
+ // meta: {
110
+ // title: '缓存更新',
111
+ // icon: 'el-icon-files',
112
+ // roles:[store_selection.updateCacheDetail]
113
+ // }
114
+ // },
93
115
  ]
94
116
  }
95
117
 
@@ -372,6 +372,98 @@ module.exports = {
372
372
  },
373
373
  disabled: true,
374
374
  },
375
+ {
376
+ mapFn: 'updateCacheDetail',
377
+ isRule: false,
378
+ title: '已选门店更新缓存详情',
379
+ path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/update-cache-detail',
380
+ params: {
381
+
382
+ },
383
+ disabled: true,
384
+ role: '@@@@.@@@.SELECT_SHOP_CACHE_LIST',
385
+ },
386
+ {
387
+ mapFn: 'updateCache',
388
+ isRule: false,
389
+ title: '已选门店更新缓存',
390
+ path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/update-cache',
391
+ params: {
392
+
393
+ },
394
+ disabled: true,
395
+ role: '@@@@.@@@.SELECT_SHOP_CACHE_UPDATE',
396
+ },
397
+ {
398
+ title: "在线选座门店集市",
399
+ mapFn: "selectShopSeatList",
400
+ path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-market/seatlist",
401
+ isRule: false,
402
+ data: {
403
+ xsiteid: ['站点Id', 'String', '必填'],
404
+ xnamespace: ['命名空间', 'String', '必填'],
405
+ fitler: ['fitler', 'String', '选填'],
406
+ page_token: ['第几页', 'String', '选填'],
407
+ page_size: ['每页展示条数', 'Number', '选填'],
408
+ },
409
+ disabled: true,
410
+ role: '@@@@.@@@.SELECT_SHOP_MARKET_MC_LIST',
411
+ },
412
+
413
+ {
414
+ title: "门店集市批量选用",
415
+ mapFn: "selectShopMarketBatchSelect",
416
+ path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-market/batch-select',
417
+ isRule: false,
418
+ params: {
419
+ xsiteid: ['站点Id', 'String', '必填'],
420
+ xnamespace: ['命名空间', 'String', '必填'],
421
+ resource_shop_ids: ['resource_shop_ids', 'Array', '选填'],
422
+ },
423
+ disabled: true,
424
+ },
425
+ {
426
+ title: "已选门店查看门店服务类型",
427
+ mapFn: "selectShopGetConsumeMode",
428
+ path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/consume-mode',
429
+ isRule: false,
430
+ params: {
431
+ xsiteid: ['站点Id', 'String', '必填'],
432
+ xnamespace: ['命名空间', 'String', '必填'],
433
+ shop_id: ['shop_id', 'Number', '选填'],
434
+ resource_shop_id: ['resource_shop_id', 'Number', '选填'],
435
+ },
436
+ disabled: true,
437
+ },
438
+ {
439
+ title: "已选门店修改门店服务类型",
440
+ mapFn: "selectShopUpdateConsumeMode",
441
+ path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/update-consume-mode',
442
+ isRule: false,
443
+ params: {
444
+ xsiteid: ['站点Id', 'String', '必填'],
445
+ xnamespace: ['命名空间', 'String', '必填'],
446
+ shop_id: ['shop_id', 'Number', '选填'],
447
+ resource_shop_id: ['resource_shop_id', 'Number', '选填'],
448
+ consume_mode: ['consume_mode', 'Array', '必填'],
449
+ },
450
+ disabled: true,
451
+ role: '@@@@.@@@.SELECT_SHOP_UPDATE_CONSUME_MODE',
452
+ },
453
+ {
454
+ title: "查看关联前门店",
455
+ mapFn: "selectShopGetRelatedShops",
456
+ path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/get-related-shops',
457
+ isRule: false,
458
+ params: {
459
+ xsiteid: ['站点Id', 'String', '必填'],
460
+ xnamespace: ['命名空间', 'String', '必填'],
461
+ resource_shop_id: ['resource_shop_id', 'Number', '选填'],
462
+ consume_mode: ['consume_mode', 'String', '必填'],
463
+ },
464
+ disabled: true,
465
+ role: '@@@@.@@@.SELECT_SHOP_GET_RELATED_SHOPS',
466
+ },
375
467
  ],
376
468
  }
377
469
 
@@ -0,0 +1,181 @@
1
+ <template>
2
+ <div class="app-container">
3
+ <el-card class="app-container__list">
4
+ <div class="app-container__list-pagination">
5
+ <div></div>
6
+ <div>
7
+ </div>
8
+ </div>
9
+ <div class="app-container__list-table">
10
+ <xd-table
11
+ :headers="headers"
12
+ :list="tables"
13
+ :selectionKey="partnerId"
14
+ :stripe="false"
15
+ @onClick="handleTableClick"
16
+ @onSelect="handleSelect"
17
+ is-border
18
+ >
19
+ </xd-table>
20
+ </div>
21
+ </el-card>
22
+ </div>
23
+ </template>
24
+
25
+
26
+ <script>
27
+ import XdSearch from "@/components/XdSearch"
28
+ import XdPagination from "@/components/XdPagination.vue"
29
+ import XdTable from "@/components/XdTable"
30
+ import { Loading } from 'element-ui'
31
+ import checkPermission from "@/utils/permission"
32
+ import permissions from "@/constant/permissions"
33
+ import { getOptions } from "@/utils/options"
34
+ import {
35
+ mapActions,
36
+ mapState,
37
+ } from 'vuex'
38
+
39
+
40
+ export default {
41
+ name: "CacheList",
42
+ components: {
43
+ XdPagination, //翻译插件
44
+ XdSearch, //搜查插件
45
+ XdTable
46
+ },
47
+ data () {
48
+ return {
49
+
50
+ //分页参数
51
+ pageSize: 1, //当前页面数量
52
+ hasNextPage: true, //是否有下一页
53
+ limit: 20, //搜索参数
54
+ total: 0,
55
+ searchForm: [], //搜索区域模块表单
56
+ searchParams: null, //搜索参数
57
+
58
+ //列表对象
59
+ tables: [],
60
+ selectIds:[],
61
+ partnerId:'partner_id',
62
+ searchFormKey:'searchFormKey',
63
+ }
64
+ },
65
+ computed:{
66
+ isUpdate () {
67
+ return checkPermission([permissions.store_selection.updateCache])
68
+ },
69
+ headers(){
70
+ return [
71
+ { "type": "normal", "prop": "created_time", "align": "center", "label": "开始时间" },
72
+ { "type": "normal", "prop": "end_time", "align": "center", "label": "结束时间" },
73
+ { "type": "normal", "prop": "status_name", "align": "center", "width": 100, "label": "状态" },
74
+ {
75
+ "type": "operate", "align": "center", "width": 180, "label": "操作",
76
+ "values": [
77
+ this.isUpdate&&{ "ui": "text-button", "name": "更新","event":"update", "type": "text" },
78
+ ].filter(i=>i)
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ created () {
84
+ this.getList()
85
+ },
86
+ methods: {
87
+ ...mapActions('store_selection', [
88
+ 'updateCacheDetail',
89
+ 'updateCache',
90
+ ]),
91
+ onJfbTagForReload(){
92
+ this.getList()
93
+ },
94
+ handleTableClick ({ row, value, index, rowIndex }) {
95
+ let loading = Loading.service({})
96
+ this.updateCache({}).then(res => {
97
+ this.$message.success('更新成功')
98
+ this.getList()
99
+ loading.close()
100
+ }).catch(e => loading.close())
101
+ },
102
+ handleSelect ({ select, ids }) {
103
+ this.selectIds = ids
104
+ console.log(select, ids,1111)
105
+ },
106
+ /**
107
+ * @description 获取数据列表
108
+ */
109
+ getList () {
110
+ let params = {
111
+ page_token: this.pageSize,
112
+ page_size: this.limit,
113
+ }
114
+ let loading = Loading.service({})
115
+ this.updateCacheDetail(params).then(res => {
116
+ let data = [res.data]
117
+ this.tables = data.map(item => {
118
+ item.created_time = window.getTimeFormat(item.created_time)
119
+ item.end_time = window.getTimeFormat(item.end_time)
120
+ return item
121
+ })
122
+ loading.close()
123
+ }).catch(err=>{
124
+ console.log(err,'err')
125
+ loading.close()
126
+ })
127
+ },
128
+
129
+ /**
130
+ * @description 点击搜索进行搜索操作
131
+ * @param action 动作
132
+ * @param form 搜索请求参数
133
+ */
134
+ handleSearch ({ action, form }) {
135
+ this.pageSize = 1
136
+ this.hasNextPage = true
137
+ this.getList()
138
+ },
139
+ /**
140
+ * @description 翻页处理方法
141
+ * @param page {Number} 访问页面页码数
142
+ */
143
+ handlePagination (page) {
144
+ this.pageSize = page
145
+ this.getList()
146
+ }, //todo
147
+ /**一键更新**/
148
+ handleUpdate(){
149
+ if(this.selectIds.length==0){
150
+ this.$message.error('请选择要更新的数据')
151
+ return
152
+ }
153
+ let loading = Loading.service({})
154
+ this.partnerShopUpdate({partner_ids: this.selectIds}).then(res => {
155
+ this.$message.success('更新成功')
156
+ this.getList()
157
+ loading.close()
158
+ }).catch(e => loading.close())
159
+ },
160
+ handleRemoteSearch ({ query }, cb) {
161
+ return new Promise((resolve) => {
162
+ getOptions({
163
+ server: "partner-admin",
164
+ fn: "partner",
165
+ path: "p1",
166
+ params: {
167
+ keyword: query
168
+ }
169
+ }).then(res=>{
170
+ cb(res.data.list)
171
+ }).catch()
172
+ })
173
+ },
174
+ }
175
+ }
176
+
177
+ </script>
178
+
179
+ <style scoped lang="scss">
180
+ </style>
181
+
@@ -30,9 +30,15 @@ export default {
30
30
  id: {
31
31
  type: Number,
32
32
  },
33
+ resource_shop_id: {
34
+ type: Number,
35
+ },
33
36
  type: {
34
37
  type: String,
35
38
  },
39
+ consume_mode: {
40
+ type: String,
41
+ },
36
42
  },
37
43
  data () {
38
44
  return {
@@ -45,7 +51,9 @@ export default {
45
51
  this.title = this.$route['meta']['title']
46
52
  let id = this.id
47
53
  let type = this.type
48
- this.getDetail(id,type)
54
+ let resource_shop_id = this.resource_shop_id
55
+ let consume_mode = this.consume_mode
56
+ this.getDetail(id,resource_shop_id,type,consume_mode)
49
57
  },
50
58
  methods: {
51
59
  ...mapActions('store_selection', [
@@ -54,12 +62,12 @@ export default {
54
62
  'selectShopMarketGet'
55
63
  ]),
56
64
 
57
- getDetail(id,type) {
65
+ getDetail(id,resource_shop_id,type,consume_mode) {
58
66
  console.log(type,'ttt')
59
67
  let loading = Loading.service({});
60
68
  //正式数据调用模版
61
69
  if(type==='select'){
62
- this.selectShopGet({ shop_id: id }).then((info) => {
70
+ this.selectShopGet({ shop_id: id,resource_shop_id:resource_shop_id,consume_mode:consume_mode }).then((info) => {
63
71
  loading.close();
64
72
  this.tables = info.data['containers'];
65
73
  this.status = true;
@@ -67,7 +75,7 @@ export default {
67
75
  loading.close();
68
76
  });
69
77
  }else{
70
- this.selectShopMarketGet({ shop_id: id }).then((info) => {
78
+ this.selectShopMarketGet({ shop_id: id,resource_shop_id:resource_shop_id,consume_mode:consume_mode }).then((info) => {
71
79
  loading.close();
72
80
  this.tables = info.data['containers'];
73
81
  this.status = true;
@@ -1,6 +1,19 @@
1
1
  <template>
2
2
  <div class="app-container">
3
- <div class="app-container__title">门店集市</div>
3
+ <!-- #ifdef partner-mall -->
4
+ <el-tabs v-model="storeType" @tab-click="handleStoreTypeClick">
5
+ <el-tab-pane
6
+ v-for="item in storeTypeTabList"
7
+ :label="item.label"
8
+ :name="item.value"
9
+ :key="item.value"
10
+ ></el-tab-pane>
11
+ </el-tabs>
12
+ <!-- #endif -->
13
+ <!-- #ifdef partner-movie -->
14
+ <el-tabs v-model="storeType" @tab-click="handleTopClick">
15
+ <el-tab-pane label="线下门店集市" name="SELL">
16
+ <!-- #endif -->
4
17
  <div class="main-tab" v-show="isMain">
5
18
  <el-tabs
6
19
  type="card"
@@ -81,6 +94,13 @@
81
94
  ></xd-pagination-jfb>
82
95
  </div>
83
96
  </el-card>
97
+ <!-- #ifdef partner-movie -->
98
+ </el-tab-pane>
99
+ <el-tab-pane label="在线选座门店集市" name="SEAT">
100
+ <mc-list v-if="storeType==='SEAT'"></mc-list>
101
+ </el-tab-pane>
102
+ </el-tabs>
103
+ <!-- #endif -->
84
104
  <el-drawer
85
105
  title=""
86
106
  size="70%"
@@ -94,7 +114,7 @@
94
114
  :show-close="true"
95
115
  :direction="direction"
96
116
  >
97
- <store-detail :id="clickId" :key="detailKey" type="market"></store-detail>
117
+ <store-detail :id="clickId" :resource_shop_id="resourceShopId" :key="detailKey" :consume_mode="storeType" type="market"></store-detail>
98
118
  <el-button class="back_button" @click="drawer=false" type="primary" size="small">返回</el-button>
99
119
  </el-drawer>
100
120
  </div>
@@ -113,6 +133,9 @@ import permissions from "@/constant/permissions"
113
133
  import StoreDetail from "../components/StoreDetail"
114
134
  import { getOptions } from "@/utils/options"
115
135
  import XdPaginationJfb from "@/components/XdPaginationJfb";
136
+ // #ifdef partner-movie
137
+ import McList from "./mc_list"
138
+ // #endif
116
139
 
117
140
  export default {
118
141
  name: "MarketList",
@@ -122,7 +145,10 @@ export default {
122
145
  XdTableStatus,
123
146
  XdTable,
124
147
  StoreDetail,
125
- XdPaginationJfb
148
+ XdPaginationJfb,
149
+ // #ifdef partner-movie
150
+ McList
151
+ // #endif
126
152
  },
127
153
 
128
154
  // mixins: [downloadString, getChannelList],
@@ -143,6 +169,7 @@ export default {
143
169
  direction:'rtl',
144
170
  drawer:false,
145
171
  clickId:'',
172
+ resourceShopId:'',
146
173
  drawerKey:'drawerKey',
147
174
  searchOptions:{},
148
175
  cityData:[],
@@ -156,6 +183,12 @@ export default {
156
183
  page_size: 20,
157
184
  searchKey:'searchKey',
158
185
  tableKey:'tableKey',
186
+ activeName:'offline_market',
187
+ storeType:'SELL',
188
+ storeTypeTabList:[
189
+ {label:'线下门店集市',value:'SELL'},
190
+ {label:'旅游门店集市',value:'TRAVEL'},
191
+ ]
159
192
  }
160
193
  },
161
194
  watch:{
@@ -176,11 +209,13 @@ export default {
176
209
  },
177
210
  headers(){
178
211
  return [
179
- { "type": "normal", "prop": "resource_shop_id","width": 120, "align": "center", "label": "聚合后门店ID" },
180
- { "type": "normal", "prop": "resource_shop_name", "align": "center", "label": "聚合后门店名称" },
212
+ { "type": "normal", "prop": "resource_shop_id","width": 120, "align": "center", "label": "关联后门店ID" },
213
+ { "type": "normal", "prop": "resource_shop_name", "align": "center", "label": "关联后门店名称" },
181
214
  { "type": "normal", "prop": "shop_id", "align": "center", "label": "门店ID" },
182
215
  { "type": "normal", "prop": "shop_name", "align": "center", "label": "门店名称" },
216
+ // #ifndef partner-movie
183
217
  { "type": "image", "prop": "shop_icon", "align": "center", "width": 100, "height": 100, "label": "门店logo" },
218
+ // #endif
184
219
  { "type": "normal", "prop": "brand_type_name", "align": "center", "label": "门店类型" },
185
220
  { "type": "normal", "prop": "business_status_name", "align": "center", "label": "营业状态" },
186
221
  { "type": "normal", "prop": "brand_name", "align": "center", "label": "门店品牌" },
@@ -221,7 +256,8 @@ export default {
221
256
  fn: "select-shop-channel",
222
257
  path: "p3",
223
258
  params:{
224
- type:'market'
259
+ type:'market',
260
+ consume_mode:this.storeType
225
261
  }
226
262
  }).then((res) => {
227
263
  this.channelTabList = res.data.channel_data
@@ -255,7 +291,7 @@ export default {
255
291
  this.getList('list')
256
292
  },
257
293
  getSearchOptions(){
258
- this.selectShopMarketChannelFilters({channel_code:this.channelActive,})
294
+ this.selectShopMarketChannelFilters({channel_code:this.channelActive,type:'market',consume_mode:this.storeType})
259
295
  .then(res=>{
260
296
  this.searchOptions = res.data;
261
297
  this.initSearchForm(res.data)
@@ -293,6 +329,7 @@ export default {
293
329
  let params = {
294
330
  filters:this.getParams(),
295
331
  tab:this.channelActive,
332
+ consume_mode:this.storeType,
296
333
  page_token: this.currentPage,
297
334
  page_size: this.limit
298
335
  }
@@ -335,6 +372,13 @@ export default {
335
372
  value: '',
336
373
  placeholder: '请输入门店ID'
337
374
  },
375
+ this.checkEnabled(options,'resource_shop_id')&&{
376
+ label: '关联后门店ID:',
377
+ ele: 'el-input',
378
+ valueKey: 'resource_shop_id',
379
+ value: '',
380
+ placeholder: '请输入关联后门店ID'
381
+ },
338
382
  this.checkEnabled(options,'shop_name')&&{
339
383
  label: '门店名称:',
340
384
  ele: 'el-input',
@@ -367,7 +411,12 @@ export default {
367
411
  params: {
368
412
  page_token: '1',
369
413
  page_size: '500',
414
+ // #ifdef partner-movie
415
+ brand_type: 'MC',
416
+ // #endif
417
+ // #ifdef partner-mall
370
418
  brand_type: 'MA',
419
+ // #endif
371
420
  keyword: query
372
421
  }
373
422
  })
@@ -481,7 +530,7 @@ export default {
481
530
  handleClick ({ row, value, index }) {
482
531
  console.log('handleClick', row, value, index)
483
532
  if (value.event === "choose") {
484
- this.selectShopMarketSelect({shop_id:row.shop_id,resource_shop_id:row.resource_shop_id,channel_code:row.channel_code})
533
+ this.selectShopMarketSelect({shop_id:row.shop_id,resource_shop_id:row.resource_shop_id,channel_code:row.channel_code,consume_mode:this.storeType})
485
534
  .then(res=>{
486
535
  this.$message.success('操作成功')
487
536
  this.getList('list')
@@ -491,6 +540,7 @@ export default {
491
540
  })
492
541
  }else if (value.event === "preview") {
493
542
  this.clickId = row.shop_id;
543
+ this.resourceShopId = row.resource_shop_id;
494
544
  this.drawer = true;
495
545
  this.detailKey = Date.now()
496
546
  }
@@ -517,6 +567,14 @@ export default {
517
567
  return true
518
568
  }
519
569
  },
570
+ handleTopClick(){
571
+ this.channelActive = this.channelTabList[0]['value']
572
+ this.getList('list')
573
+ },
574
+ handleStoreTypeClick(){
575
+ this.channelActive = this.channelTabList[0]['value']
576
+ this.getList('list')
577
+ },
520
578
  }
521
579
  }
522
580
  </script>