Commit 6858f05d by zhangquan

修改名字

1 parent 84fadbde
<template>
<div class="classify-ctnr">
<div class="category-ctnr">
<div class="main-wrap">
<div class="global-title">新增二级分类</div>
<glsx-combi-form :isInline="false" class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" defaultWidth="432px" :formObj.sync="formObj" :formData="formData" :formRules="myRule">
<div slot="mainClassifySlot">
<div slot="mainCategorySlot">
座椅
</div>
<div slot="secondClassifySlot" class="classify-slot">
<div class="classify-item">
<div slot="secondCategorySlot" class="category-slot">
<div class="category-item">
<el-input maxLength="15" v-model="configName" class="input"></el-input>
<i class="el-icon-delete del-icon"></i>
</div>
......@@ -38,19 +38,19 @@ export default {
videoCoverArr: []
},
myRule:{
mainClassify: [{ required: true, message: '请输入一级分类', trigger: 'change' }],
secondClassify: [{ required: true, message: '请添加二级分类名称', trigger: 'change' }],
mainCategory: [{ required: true, message: '请输入一级分类', trigger: 'change' }],
secondCategory: [{ required: true, message: '请添加二级分类名称', trigger: 'change' }],
},
formData:[
{
label: '一级分类',
name: 'mainClassify',
addHtml: 'mainClassifySlot'
name: 'mainCategory',
addHtml: 'mainCategorySlot'
},
{
label: '二级分类名称',
name: 'secondClassify',
addHtml: 'secondClassifySlot'
name: 'secondCategory',
addHtml: 'secondCategorySlot'
}
],
}
......@@ -60,13 +60,13 @@ export default {
}
</script>
<style scoped lang="scss">
.classify-ctnr{
.category-ctnr{
.glsx-combi-form{
padding: 20px;
background-color: #fff;
margin-bottom: 16px;
.classify-slot{
.classify-item{
.category-slot{
.category-item{
.el-input{
width: 432px;
}
......
<template>
<div class="classify-list-ctnr">
<div class="category-list-ctnr">
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" @tab-click="handleClick"></GLTabs>
<pullDownNav></pullDownNav>
<div class="main-wrap">
......@@ -8,7 +8,7 @@
<span class="table-title">二级分类列表</span>
<el-button class="operate-btn" type="primary" size="small" @click="handleAdd">新增二级分类</el-button>
</div>
<GLTable ref="classifyRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :beforeSearchFn="beforeSearchFn" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<GLTable ref="categoryRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :beforeSearchFn="beforeSearchFn" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<div slot="brandSlot">
<span>{{ brandList.slice(0, 3).join('、') }}</span>
<el-popover
......@@ -50,7 +50,7 @@
fn: '编辑'
},
listeners: {
click: row => this.addClassify(row.scope, 1)
click: row => this.addCategory(row.scope, 1)
}
},
{
......@@ -66,7 +66,7 @@
}
],
tableSearchForm: {
classifyName: '',
categoryName: '',
createDate: []
},
searchForm: {},
......@@ -74,7 +74,7 @@
searchFormData: [
{
label: '案例名称',
name: 'classifyName',
name: 'categoryName',
type: 'input'
},
{
......@@ -144,7 +144,7 @@
})
},
handleSearch() {
this.$refs.classifyRef.refreshTable()
this.$refs.categoryRef.refreshTable()
},
handleReset() {
this.tableSearchForm = {
......@@ -156,11 +156,11 @@
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun()
this.$refs.categoryRef.data.length ? (this.$refs.categoryRef.tableHeightValues = '') : this.$refs.categoryRef.setTableHeightFun()
},
addClassify(val) {
addCategory(val) {
this.$router.push({
path: `/classify/add?id=${val.id}&channelType=${val.channelType}&$title=频道设置`
path: `/category/add?id=${val.id}&channelType=${val.channelType}&$title=频道设置`
})
},
handleAdd(){
......@@ -173,7 +173,7 @@
</script>
<style scoped lang="scss">
.classify-list-ctnr{
.category-list-ctnr{
.main-wrap{
background-color: #fff;
padding: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!