区域管理和文章管理bug修复
This commit is contained in:
parent
05eaf0152a
commit
327787c0a5
@ -119,7 +119,6 @@ export default {
|
|||||||
photo: '',
|
photo: '',
|
||||||
text: '',
|
text: '',
|
||||||
top: false,// 是否置顶,这里提交的时候要换成0或1
|
top: false,// 是否置顶,这里提交的时候要换成0或1
|
||||||
labelId: '',
|
|
||||||
fileArray:[]// 编辑进来时,如果已经上传了图片,则保存图片地址
|
fileArray:[]// 编辑进来时,如果已经上传了图片,则保存图片地址
|
||||||
},
|
},
|
||||||
// 模块列表
|
// 模块列表
|
||||||
@ -213,7 +212,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 标签选择
|
// 标签选择
|
||||||
handleChangeLabel(val){
|
handleChangeLabel(val){
|
||||||
this.form.labelId = val ? event.currentTarget.dataset.op : '';
|
this.form.labelId = val ? Number(event.currentTarget.dataset.op) : '';
|
||||||
},
|
},
|
||||||
// 获取文章详情-根据id
|
// 获取文章详情-根据id
|
||||||
getArticleDetailById(id){
|
getArticleDetailById(id){
|
||||||
@ -222,8 +221,8 @@ export default {
|
|||||||
single(id).then(res => {
|
single(id).then(res => {
|
||||||
if(res){
|
if(res){
|
||||||
res.top = res.top ? true : false;
|
res.top = res.top ? true : false;
|
||||||
|
res.labelId = res.cplabelId;
|
||||||
this.form = res;
|
this.form = res;
|
||||||
this.form.labelId = res.cplabelId;
|
|
||||||
list(res.moduleId).then(resp => {
|
list(res.moduleId).then(resp => {
|
||||||
this.labelList = resp;
|
this.labelList = resp;
|
||||||
});
|
});
|
||||||
|
@ -142,7 +142,9 @@ export default {
|
|||||||
parentId: data.parentId,
|
parentId: data.parentId,
|
||||||
parentName: data.parentName
|
parentName: data.parentName
|
||||||
}])
|
}])
|
||||||
const type = node.level === 1 || node.level === 2
|
const type = node.level === 1
|
||||||
|
console.log(type,node.level);
|
||||||
|
|
||||||
this.crud.title = type ? '区域' : '景区'
|
this.crud.title = type ? '区域' : '景区'
|
||||||
this.form.type = type ? 'area' : 'scenic'
|
this.form.type = type ? 'area' : 'scenic'
|
||||||
this.getList(id,data)
|
this.getList(id,data)
|
||||||
|
Loading…
Reference in New Issue
Block a user