|
@@ -13,7 +13,7 @@
|
|
|
<el-row :gutter="10">
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="18" :xs="12">
|
|
<el-col :span="18" :xs="12">
|
|
|
<el-form-item label=" " prop="name">
|
|
<el-form-item label=" " prop="name">
|
|
|
- <el-input v-model="searchKey.name" placeholder="请输入代理名称" clearable
|
|
|
|
|
|
|
+ <el-input v-model="searchKey.name" placeholder="请输入名称" clearable
|
|
|
:style="{width: '100%'}"></el-input>
|
|
:style="{width: '100%'}"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -32,49 +32,28 @@
|
|
|
<el-table-column width="50" fixed="left">
|
|
<el-table-column width="50" fixed="left">
|
|
|
<div class="checkbox"></div>
|
|
<div class="checkbox"></div>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="店铺名称" width="200" fixed="left" prop="shop_name"></el-table-column>
|
|
|
|
|
- <el-table-column label="店铺编码" prop="agent_id" width="200"></el-table-column>
|
|
|
|
|
- <el-table-column label="营业时间" prop="agent" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="店铺名称" width="200" fixed="left" prop="poi_name"></el-table-column>
|
|
|
|
|
+ <el-table-column label="店铺编码" prop="poi_id" width="200"></el-table-column>
|
|
|
|
|
+ <el-table-column label="所属地区" prop="agent" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.start_at">{{ scope.row.start_at }}-{{ scope.row.end_at }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.poi_city">{{ scope.row.poi_city }}</span>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="到期时间" prop="vip_end" width="180">
|
|
|
|
|
|
|
+ <el-table-column label="详细地址" prop="poi_address" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.vip_end">{{ scope.row.vip_end }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.poi_address">{{ scope.row.poi_address }}</span>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="收费规则" prop="rate_type" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="经纬度" prop="poi_address" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="status-success" v-if="scope.row.rate_type==1"><sc-status-indicator type="success"></sc-status-indicator> 收取年费</div>
|
|
|
|
|
- <div class="status-danger" v-if="scope.row.rate_type==2"><sc-status-indicator type="danger"></sc-status-indicator> 订单金额抽佣</div>
|
|
|
|
|
- <div class="status-danger" v-if="scope.row.rate_type==0"><sc-status-indicator type="danger"></sc-status-indicator> 未设置</div>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="联系人" prop="shop_contact" width="150">
|
|
|
|
|
- <template #default="scope">
|
|
|
|
|
- <span v-if="scope.row.shop_contact">{{ scope.row.shop_contact }}</span>
|
|
|
|
|
- <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="联系电话" prop="shop_mobile" width="150">
|
|
|
|
|
- <template #default="scope">
|
|
|
|
|
- <span v-if="scope.row.shop_mobile">{{ scope.row.shop_mobile }}</span>
|
|
|
|
|
- <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="店铺地址" prop="shop_address" width="320">
|
|
|
|
|
- <template #default="scope">
|
|
|
|
|
- <span v-if="scope.row.shop_address">{{ scope.row.shop_address }}</span>
|
|
|
|
|
- <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
|
|
+ <el-link :href="'//uri.amap.com/marker?position='+scope.row.longitude+','+scope.row.latitude+'&name='+scope.row.poi_name+'&src=mypage&coordinate=gaode&callnative=0'" target="_blank">{{ scope.row.longitude }},{{ scope.row.latitude }}</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" prop="status" width="120" align="center">
|
|
<el-table-column label="状态" prop="status" width="120" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="status-success" v-if="scope.row.status==0"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
|
|
- <div class="status-danger" v-if="scope.row.status==1"><sc-status-indicator type="danger"></sc-status-indicator> 已到期</div>
|
|
|
|
|
|
|
+ <div class="status-success" v-if="scope.row.status==1"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
<div class="status-danger" v-if="scope.row.status==2"><sc-status-indicator type="danger"></sc-status-indicator> 禁用</div>
|
|
<div class="status-danger" v-if="scope.row.status==2"><sc-status-indicator type="danger"></sc-status-indicator> 禁用</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -85,49 +64,28 @@
|
|
|
<scTable ref="table" :apiObj="list.apiObj" :hideSetting="true" paginationLayout="total, prev, pager, next" :params="searchKey" @selectionChange="selectionChange" row-key="id" @sortChange="sortChange">
|
|
<scTable ref="table" :apiObj="list.apiObj" :hideSetting="true" paginationLayout="total, prev, pager, next" :params="searchKey" @selectionChange="selectionChange" row-key="id" @sortChange="sortChange">
|
|
|
<el-table-column type="selection" width="50" fixed="left"></el-table-column>
|
|
<el-table-column type="selection" width="50" fixed="left"></el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="店铺名称" width="200" fixed="left" prop="shop_name"></el-table-column>
|
|
|
|
|
- <el-table-column label="店铺编码" prop="agent_id" width="200"></el-table-column>
|
|
|
|
|
- <el-table-column label="营业时间" prop="agent" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="店铺名称" width="200" fixed="left" prop="poi_name"></el-table-column>
|
|
|
|
|
+ <el-table-column label="店铺编码" prop="poi_id" width="200"></el-table-column>
|
|
|
|
|
+ <el-table-column label="所属地区" prop="agent" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.start_at">{{ scope.row.start_at }}-{{ scope.row.end_at }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.poi_city">{{ scope.row.poi_city }}</span>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="到期时间" prop="vip_end" width="180">
|
|
|
|
|
|
|
+ <el-table-column label="详细地址" prop="poi_address" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.vip_end">{{ scope.row.vip_end }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.poi_address">{{ scope.row.poi_address }}</span>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="收费规则" prop="rate_type" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="经纬度" prop="poi_address" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="status-success" v-if="scope.row.rate_type==1"><sc-status-indicator type="success"></sc-status-indicator> 收取年费</div>
|
|
|
|
|
- <div class="status-danger" v-if="scope.row.rate_type==2"><sc-status-indicator type="danger"></sc-status-indicator> 订单金额抽佣</div>
|
|
|
|
|
- <div class="status-danger" v-if="scope.row.rate_type==0"><sc-status-indicator type="danger"></sc-status-indicator> 未设置</div>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="联系人" prop="shop_contact" width="150">
|
|
|
|
|
- <template #default="scope">
|
|
|
|
|
- <span v-if="scope.row.shop_contact">{{ scope.row.shop_contact }}</span>
|
|
|
|
|
- <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="联系电话" prop="shop_mobile" width="150">
|
|
|
|
|
- <template #default="scope">
|
|
|
|
|
- <span v-if="scope.row.shop_mobile">{{ scope.row.shop_mobile }}</span>
|
|
|
|
|
- <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="店铺地址" prop="shop_address" width="320">
|
|
|
|
|
- <template #default="scope">
|
|
|
|
|
- <span v-if="scope.row.shop_address">{{ scope.row.shop_address }}</span>
|
|
|
|
|
- <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
|
|
+ <el-link :href="'//uri.amap.com/marker?position='+scope.row.longitude+','+scope.row.latitude+'&name='+scope.row.poi_name+'&src=mypage&coordinate=gaode&callnative=0'" target="_blank">{{ scope.row.longitude }},{{ scope.row.latitude }}</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" prop="status" width="120" align="center">
|
|
<el-table-column label="状态" prop="status" width="120" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="status-success" v-if="scope.row.status==0"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
|
|
- <div class="status-danger" v-if="scope.row.status==1"><sc-status-indicator type="danger"></sc-status-indicator> 已到期</div>
|
|
|
|
|
|
|
+ <div class="status-success" v-if="scope.row.status==1"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
<div class="status-danger" v-if="scope.row.status==2"><sc-status-indicator type="danger"></sc-status-indicator> 禁用</div>
|
|
<div class="status-danger" v-if="scope.row.status==2"><sc-status-indicator type="danger"></sc-status-indicator> 禁用</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -158,7 +116,7 @@ export default{
|
|
|
edit:"选择店铺"
|
|
edit:"选择店铺"
|
|
|
},
|
|
},
|
|
|
list: {
|
|
list: {
|
|
|
- apiObj: this.$API.shop.list
|
|
|
|
|
|
|
+ apiObj: this.$API.store.list
|
|
|
},
|
|
},
|
|
|
visible: false,
|
|
visible: false,
|
|
|
isSaveing: false,
|
|
isSaveing: false,
|