Commit 01a616f8 authored by liwenhong's avatar liwenhong

add

parent dbbffc0b
<template>
<layout>
<div class="life-no">
<!-- <page
:totalNum="totalNum"
@update="update"
/> -->
</div>
</layout>
</template>
<script>
import Layout from '@/layouts'
import page from "@/components/Pagination"
// import { getLifeNoList as reqGetLifeNoList } from "../../service/life-no";
export default {
name: "MarketingCenter",
components: {
Layout,
page
},
data () {
return {
params: {
page: 1,
page_size: 20
},
}
},
created () {
// this.getLifeNoListFn()
},
methods: {
//获取列表数据
getLifeNoListFn () {
let { name, type } = this.life_account
let { page, page_size } = this.params
let params = {
page,
page_size,
life_account_name: name,
life_account_type: type
}
reqGetLifeNoList(params).then(res => {
this.totalNum = res.count
this.LifeNoList = res.data
})
},
//查询
onSearchSubmit () {
this.getLifeNoListFn()
},
//重置
onReset () {
this.life_account.name = "",
this.life_account.type = ""
this.getLifeNoListFn()
},
update (obj) {
Object.assign(this.params, obj)
this.getLifeNoListFn(this.params)
},
toLifeDetail (row) {
this.$router.push({ name: 'LifeNoDetail', query: { lifeId: row.life_account_id } });
},
}
}
</script>
<style lang="less" scoped>
.life-no {
margin: 30px;
.search_life {
width: 280px;
}
}
</style>
/**
* 商品列表管理
*/
const MarketingRouters = [
{
path: "/op/marketing",
redirect: "/op/marketing/center"
},
{
path: "/op/marketing/Center",
name: "MarketingCenter",
component: () => import(/* webpackChunkName: "marketing" */ "@/pages/Marketing/Center")
},
];
export default MarketingRouters;
......@@ -15,6 +15,7 @@ import withdrawalRoutes from "./Withdrawal/index";
import groupmealRouters from "./Groupmeal/index";
import activityRouters from "./Activity/index";
import Login from "@/pages/Login/index"; //登录
import MarketingRouters from "./Marketing/index"; //营销中心
const routes = [
{
......@@ -111,6 +112,7 @@ const routes = [
// 活动管理路由
...activityRouters,
// 钱包审核
...MarketingRouters,
...withdrawalRoutes,
...groupmealRouters
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment