Commit 6858f05d by zhangquan

修改名字

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