|
|
@ -1,6 +1,29 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<a-card :bordered="false"> |
|
|
|
<a-card :bordered="false"> |
|
|
|
<div class="card-title">{{ $route.meta.title }}</div> |
|
|
|
<div class="card-title">{{ $route.meta.title }}</div> |
|
|
|
|
|
|
|
<div class="table-operator"> |
|
|
|
|
|
|
|
<!-- 搜索板块 --> |
|
|
|
|
|
|
|
<a-row class="row-item-search"> |
|
|
|
|
|
|
|
<a-form class="search-form" layout="inline"> |
|
|
|
|
|
|
|
<a-form-item label="商户名称"> |
|
|
|
|
|
|
|
<a-input v-model="queryParam.shop_name" placeholder="请输入商户名称" /> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
<a-form-item label="商户标签"> |
|
|
|
|
|
|
|
<a-input v-model="queryParam.shop_label" placeholder="请输入商户标签" /> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
<a-form-item label="评分"> |
|
|
|
|
|
|
|
<a-select v-model="queryParam.score" placeholder="请选择评分"> |
|
|
|
|
|
|
|
<a-select-option v-for="(item, index) in [5, 4, 3, 2, 1, 0]" :key="index" :value="item">{{ |
|
|
|
|
|
|
|
item |
|
|
|
|
|
|
|
}}</a-select-option> |
|
|
|
|
|
|
|
</a-select> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
<a-form-item class="search-btn"> |
|
|
|
|
|
|
|
<a-button type="primary" icon="search" @click="handleSearch">搜索</a-button> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-form> |
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="table-operator"> |
|
|
|
<div class="table-operator"> |
|
|
|
<a-button v-action:add type="primary" icon="plus" @click="handleAdd">新增</a-button> |
|
|
|
<a-button v-action:add type="primary" icon="plus" @click="handleAdd">新增</a-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -19,6 +42,9 @@ |
|
|
|
<span slot="is_select_mechant" slot-scope="text, item"> |
|
|
|
<span slot="is_select_mechant" slot-scope="text, item"> |
|
|
|
{{ item.is_select_mechant ? '是' : '否' }} |
|
|
|
{{ item.is_select_mechant ? '是' : '否' }} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
|
|
|
|
<span slot="is_show_license" slot-scope="text, item"> |
|
|
|
|
|
|
|
{{ item.is_show_license ? '是' : '否' }} |
|
|
|
|
|
|
|
</span> |
|
|
|
<span slot="action" slot-scope="text, item"> |
|
|
|
<span slot="action" slot-scope="text, item"> |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<a v-action:edit style="margin-right: 8px" @click="handleEdit(item)">编辑</a> |
|
|
|
<a v-action:edit style="margin-right: 8px" @click="handleEdit(item)">编辑</a> |
|
|
@ -45,13 +71,18 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
queryParam: {}, |
|
|
|
loadData: (param) => { |
|
|
|
loadData: (param) => { |
|
|
|
return Api.shopList({ ...param }).then((response) => { |
|
|
|
return Api.shopList({ ...param, ...this.queryParam }).then((response) => { |
|
|
|
return response.data |
|
|
|
return response.data |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 表头 |
|
|
|
// 表头 |
|
|
|
columns: [ |
|
|
|
columns: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: 'id', |
|
|
|
|
|
|
|
dataIndex: 'merchant_id' |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '商户logo', |
|
|
|
title: '商户logo', |
|
|
|
dataIndex: 'logoImage', |
|
|
|
dataIndex: 'logoImage', |
|
|
@ -74,6 +105,27 @@ export default { |
|
|
|
dataIndex: 'is_select_mechant', |
|
|
|
dataIndex: 'is_select_mechant', |
|
|
|
scopedSlots: { customRender: 'is_select_mechant' } |
|
|
|
scopedSlots: { customRender: 'is_select_mechant' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '评分', |
|
|
|
|
|
|
|
dataIndex: 'score' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '公司名称', |
|
|
|
|
|
|
|
dataIndex: 'company_name' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '法人名字', |
|
|
|
|
|
|
|
dataIndex: 'legal_person' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '手机号', |
|
|
|
|
|
|
|
dataIndex: 'phone' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '是否展示营业执照', |
|
|
|
|
|
|
|
dataIndex: 'is_show_license', |
|
|
|
|
|
|
|
scopedSlots: { customRender: 'is_show_license' } |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '累计金额', |
|
|
|
title: '累计金额', |
|
|
|
dataIndex: 'total_amount' |
|
|
|
dataIndex: 'total_amount' |
|
|
@ -112,6 +164,10 @@ export default { |
|
|
|
// 获取分类列表 |
|
|
|
// 获取分类列表 |
|
|
|
this.$refs.table.refresh(bool) |
|
|
|
this.$refs.table.refresh(bool) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 确认搜索 |
|
|
|
|
|
|
|
handleSearch (e) { |
|
|
|
|
|
|
|
this.handleRefresh(true) |
|
|
|
|
|
|
|
}, |
|
|
|
// 删除记录 |
|
|
|
// 删除记录 |
|
|
|
handleDelete(record) { |
|
|
|
handleDelete(record) { |
|
|
|
const self = this |
|
|
|
const self = this |
|
|
|