|
@@ -16,15 +16,15 @@
|
|
<el-input placeholder="请输入栏目名称" autocomplete="off" v-model="getApiData.name"/>
|
|
<el-input placeholder="请输入栏目名称" autocomplete="off" v-model="getApiData.name"/>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="8">
|
|
|
|
|
|
+ <!-- <el-col :span="8">
|
|
<div class="searchBox">
|
|
<div class="searchBox">
|
|
<div class="searchTitle">行政职能部门:</div>
|
|
<div class="searchTitle">行政职能部门:</div>
|
|
<el-cascader :key="searchDepartmentKey" v-model="getApiData.department_id" placeholder="请选择行政职能部门" :props="searchDepartmentData" filterable clearable></el-cascader>
|
|
<el-cascader :key="searchDepartmentKey" v-model="getApiData.department_id" placeholder="请选择行政职能部门" :props="searchDepartmentData" filterable clearable></el-cascader>
|
|
</div>
|
|
</div>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-col> -->
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
- <div class="layerBoxLineTwo">
|
|
|
|
|
|
+ <!-- <div class="layerBoxLineTwo">
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<div class="searchBox">
|
|
<div class="searchBox">
|
|
@@ -33,7 +33,7 @@
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
</div>
|
|
</div>
|
|
<div class="layerBoxNoBg">
|
|
<div class="layerBoxNoBg">
|
|
<div></div>
|
|
<div></div>
|
|
@@ -79,24 +79,24 @@
|
|
<!--表格内容 end------------------------------------------------------------>
|
|
<!--表格内容 end------------------------------------------------------------>
|
|
|
|
|
|
<!--弹出框start------------------------------------------------------------>
|
|
<!--弹出框start------------------------------------------------------------>
|
|
- <el-dialog title="编辑导航" :visible.sync="windowStatus">
|
|
|
|
|
|
+ <el-dialog title="编辑栏目" :visible.sync="windowStatus">
|
|
<el-form :model="form" ref="form" :rules="formRules" autocomplete="off" label-position="left">
|
|
<el-form :model="form" ref="form" :rules="formRules" autocomplete="off" label-position="left">
|
|
<div class="formDiv">
|
|
<div class="formDiv">
|
|
- <el-form-item label="导航名称:" :label-width="formLabelWidth" prop="alias" class="custom-align-right">
|
|
|
|
|
|
+ <el-form-item label="展示名称:" :label-width="formLabelWidth" prop="alias" class="custom-align-right">
|
|
<el-input v-model="form.alias" autocomplete="off"></el-input>
|
|
<el-input v-model="form.alias" autocomplete="off"></el-input>
|
|
<input type="hidden" v-model="form.seo_title">
|
|
<input type="hidden" v-model="form.seo_title">
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <!-- <el-form-item label="导航名称:" :label-width="formLabelWidth" prop="seo_title" class="custom-align-right">
|
|
|
|
|
|
+ <el-form-item label="栏目标题:" :label-width="formLabelWidth" prop="seo_title" class="custom-align-right">
|
|
<div class="formLabelFloatBox">
|
|
<div class="formLabelFloatBox">
|
|
<el-input v-model="form.seo_title" autocomplete="off"></el-input>
|
|
<el-input v-model="form.seo_title" autocomplete="off"></el-input>
|
|
</div>
|
|
</div>
|
|
- </el-form-item> -->
|
|
|
|
- <el-form-item label="导航关键词:" :label-width="formLabelWidth" prop="seo_keywords" class="custom-align-right">
|
|
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="栏目关键词:" :label-width="formLabelWidth" prop="seo_keywords" class="custom-align-right">
|
|
<div class="formLabelFloatBox">
|
|
<div class="formLabelFloatBox">
|
|
<el-input v-model="form.seo_keywords" autocomplete="off"></el-input>
|
|
<el-input v-model="form.seo_keywords" autocomplete="off"></el-input>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="导航描述:" :label-width="formLabelWidth" prop="seo_description" class="custom-align-right">
|
|
|
|
|
|
+ <el-form-item label="栏目描述:" :label-width="formLabelWidth" prop="seo_description" class="custom-align-right">
|
|
<el-input type="textarea" v-model="form.seo_description" class="custom-textarea"></el-input>
|
|
<el-input type="textarea" v-model="form.seo_description" class="custom-textarea"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
@@ -139,7 +139,7 @@ export default {
|
|
|
|
|
|
return {
|
|
return {
|
|
//1.列表和分页相关 start ------------------------------------------------------------>
|
|
//1.列表和分页相关 start ------------------------------------------------------------>
|
|
- tableDivTitle:"导航详情",
|
|
|
|
|
|
+ tableDivTitle:"栏目详情",
|
|
tableData: [],//列表
|
|
tableData: [],//列表
|
|
allCount:0,//总条数
|
|
allCount:0,//总条数
|
|
editId:0,//要修改的网站id
|
|
editId:0,//要修改的网站id
|
|
@@ -235,7 +235,7 @@ export default {
|
|
//网站名称不能为空
|
|
//网站名称不能为空
|
|
alias:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
alias:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
//网站标题,关键词,描述不能为空
|
|
//网站标题,关键词,描述不能为空
|
|
- //seo_title:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
|
|
|
|
+ seo_title:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
seo_keywords:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
seo_keywords:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
seo_description:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
seo_description:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
},
|
|
},
|
|
@@ -330,7 +330,7 @@ export default {
|
|
//提交编辑的数据
|
|
//提交编辑的数据
|
|
addToServe(){
|
|
addToServe(){
|
|
//把标题的值给与seo_title
|
|
//把标题的值给与seo_title
|
|
- this.form.seo_title = this.form.alias;
|
|
|
|
|
|
+ // this.form.seo_title = this.form.alias;
|
|
this.$refs.form.validate(valid => {
|
|
this.$refs.form.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.$store.dispatch('pool/upWebsiteCategoryones',this.form).then(res=> {
|
|
this.$store.dispatch('pool/upWebsiteCategoryones',this.form).then(res=> {
|