parent
693a5c4bb0
commit
6247637ad8
@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function index(params){
|
||||
return request({
|
||||
method:'get',
|
||||
url:'/api/admin/member/index',
|
||||
params
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function index(params){
|
||||
return request({
|
||||
method:'get',
|
||||
url:'/api/admin/merchant/index',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function store(data){
|
||||
return request({
|
||||
method:'post',
|
||||
url:'/api/admin/merchant/store',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function show(params){
|
||||
return request({
|
||||
method:'get',
|
||||
url:'/api/admin/merchant/show',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function save(data){
|
||||
return request({
|
||||
method:'post',
|
||||
url:'/api/admin/merchant/save',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function destroy(params){
|
||||
return request({
|
||||
method:'get',
|
||||
url:'/api/admin/merchant/destroy',
|
||||
params
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
//分类管理
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function index(params){
|
||||
return request({
|
||||
method:'get',
|
||||
url:'/api/admin/product-type/index',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function store(data){
|
||||
return request({
|
||||
method:'post',
|
||||
url:'/api/admin/product-type/store',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function save(data){
|
||||
return request({
|
||||
method:'post',
|
||||
url:'/api/admin/product-type/save',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function destroy(data){
|
||||
return request({
|
||||
method:'post',
|
||||
url:'/api/admin/product-type/destroy',
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
render(createElement, context) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,103 @@
|
||||
<template>
|
||||
<div style="padding: 0 20px">
|
||||
<div ref="lxHeader">
|
||||
<lx-header icon="md-apps" text="会员管理" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
||||
<div slot="content"></div>
|
||||
<slot>
|
||||
<div>
|
||||
<Input style="width: 200px; margin-right: 10px" placeholder="关键字搜索" />
|
||||
<Button type="primary">查询</Button>
|
||||
<Button type="primary" style="margin-left: 10px" >新增分类</Button>
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
</div>
|
||||
|
||||
<xy-table></xy-table>
|
||||
|
||||
<div style="display: flex;justify-content: flex-end;">
|
||||
<Page :total="total" show-elevator @on-change="pageChange"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {index} from '@/api/member'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
select:{
|
||||
pageSize:10,
|
||||
pageIndex:1
|
||||
},
|
||||
|
||||
total:0,
|
||||
list:[],
|
||||
table:[
|
||||
{
|
||||
prop:'name',
|
||||
label:'姓名',
|
||||
width:180,
|
||||
sortable:false
|
||||
},
|
||||
{
|
||||
prop:'phone',
|
||||
label:'电话',
|
||||
width:220
|
||||
},
|
||||
{
|
||||
prop:'due_date',
|
||||
label:'预产期',
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
prop:'area',
|
||||
label:'所属区域',
|
||||
width: 160,
|
||||
},
|
||||
{
|
||||
prop:'address',
|
||||
label:'住址',
|
||||
align:'left',
|
||||
width: 300
|
||||
},
|
||||
{
|
||||
prop:'hospital',
|
||||
label:'建卡医院',
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
prop:'promotion',
|
||||
label:'推广人员'
|
||||
},
|
||||
{
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
pageChange(e){
|
||||
this.select.pageIndex = e
|
||||
this.getMembers()
|
||||
},
|
||||
|
||||
async getMembers(){
|
||||
const res = await index({
|
||||
page_size:this.select.pageSize,
|
||||
page:this.select.pageIndex
|
||||
})
|
||||
console.log(res)
|
||||
this.total = res.total
|
||||
this.list = res.data
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getMembers()
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
Loading…
Reference in new issue