Commit 8151297f authored by 黄奎's avatar 黄奎
parents 025df36e abdeb83b
<style>
</style>
<template>
<div>
123
</div>
</template>
\ No newline at end of file
<template>
<div class="brandClassification">
<div class="head-title">
品牌分类管理
<el-button style="float:right;margin-top: -5px;" size="small" type="primary" @click="goRegistrationAdd()">
新增</el-button>
</div>
<div class="content">
<div>
<div class="searchInput" style="width:250px">
<el-input @keyup.enter.native="msg.pageIndex=1,getList()" @clear="msg.pageIndex=1,getList()"
style="display:inline-block;width:225px;height:30px" placeholder="请输入品牌分类名称" v-model="msg.ClassName" size="small"
clearable>
</el-input>
<span @click="msg.pageIndex=1,getList()" class="el-icon-search"
style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div>
</div>
<el-table :data="tableData" v-loading="loading" border style="width: 100%;margin:20px 0">
<el-table-column prop="ID" label="编号" width="100">
</el-table-column>
<el-table-column prop="ClassName" label="表单名称">
</el-table-column>
<el-table-column prop="Logo" width="150" label="表单名称">
</el-table-column>
<el-table-column prop="CreateDate" width="200" label="对应榜单类型">
</el-table-column>
<el-table-column prop="" width="130" label="表单项目">
</el-table-column>
<el-table-column prop="address" width="200" label="操作">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img style="width:32px;height:32px" src="../../assets/img/userman/edit.png"
alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top-start">
<img style="width:32px;height:32px;margin:0 10px"
src="../../assets/img/userman/del.png" alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="预览" placement="top-start">
<img style="width:32px;height:32px;margin:0 10px"
src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip>
</template>
</el-table-column>
</el-table>
<el-pagination style="text-align:right" background @current-change="handleCurrentChange"
:page-size="msg.pageSize" :current-page.sync="msg.pageIndex" layout="total,prev, pager, next" :total="total">
</el-pagination>
</div>
</div>
</template>
<script>
export default {
components: {
},
data() {
return {
msg: {
pageIndex: 1,
pageSize: 10,
ClassName: '',
},
total: 0,
tableData: [], //数据列表
loading:false
};
},
created() {
//this.getList();
},
methods: {
getList() {
this.loading = true;
this.apipost("/api/Trade/GetBrandClassPageList", this.msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.total = res.data.data.count;
let pageData = res.data.data.pageData;
this.tableData = pageData;
}
})
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
//删除品牌分类
delNews(item) {
let that = this;
that.Confirm("是否删除?", function () {
that.apipost(
"/api/Trade/RemoveBrandClass", {
Id: item.ID,
Status: 1
},
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
}
},
);
});
},
//新增组件
goRegistrationAdd(){
this.$router.push({
name: "registrationAdd",
query: {
blank: "y",
},
});
}
},
mounted() {}
};
</script>
<style>
.brandClassification .content {
background: #fff;
margin-top: 10px;
padding: 20px;
box-sizing: border-box;
}
</style>
......@@ -238,6 +238,10 @@
@click="isChecked='/billboardList',CommonJump('billboardList')">
<i class="el-icon-menu"></i><span>榜单管理</span>
</li>
<li class="menu_item" :class="{'Fchecked':isChecked=='registrationLogin'}"
@click="isChecked='registrationLogin',CommonJump('registrationLogin')">
<i class="el-icon-menu"></i><span>榜单报名表单</span>
</li>
</ul>
</div>
</div>
......
......@@ -717,6 +717,18 @@ export default new Router({
name: 'newsList',
component: resolve => require(['@/components/tradePavilion/newsList'], resolve),
},
 //贸易管理--榜单报名
      {
        path: '/registrationLogin',
        name: 'registrationLogin',
        component: resolve => require(['@/components/tradePavilion/registrationLogin'], resolve),
      },
//贸易管理--新增榜单报名
{
path: '/registrationAdd',
        name: 'registrationAdd',
        component: resolve => require(['@/components/tradePavilion/registrationAdd'], resolve),
},
//贸易管理--服务类型
{
path: '/serviceTypeList',
......
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