|
|
|
@ -247,12 +247,16 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
var form = new Vue({ |
|
|
|
var form = new Vue({ |
|
|
|
el: '#form', |
|
|
|
el: '#form', |
|
|
|
data() { |
|
|
|
data: function () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
saveDisabled: false, |
|
|
|
saveDisabled: false, |
|
|
|
activeName: 'form', |
|
|
|
activeName: 'form', |
|
|
|
model:undefined,//自定义模型实例 |
|
|
|
model: undefined, |
|
|
|
editableTabs:[{title:'文章编辑',name:'form'}], |
|
|
|
//自定义模型实例 |
|
|
|
|
|
|
|
editableTabs: [{ |
|
|
|
|
|
|
|
title: '文章编辑', |
|
|
|
|
|
|
|
name: 'form' |
|
|
|
|
|
|
|
}], |
|
|
|
editorConfig: { |
|
|
|
editorConfig: { |
|
|
|
imageScaleEnabled: true, |
|
|
|
imageScaleEnabled: true, |
|
|
|
autoHeightEnabled: true, |
|
|
|
autoHeightEnabled: true, |
|
|
|
@ -292,72 +296,98 @@ |
|
|
|
// 关键字 |
|
|
|
// 关键字 |
|
|
|
contentKeyword: '', |
|
|
|
contentKeyword: '', |
|
|
|
// 文章内容 |
|
|
|
// 文章内容 |
|
|
|
contentDetails: '', |
|
|
|
contentDetails: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
contentTypeOptions: [], |
|
|
|
contentTypeOptions: [], |
|
|
|
categoryIdOptions: [], |
|
|
|
categoryIdOptions: [], |
|
|
|
contentDisplayOptions: [{"value": "0", "label": "是"}, {"value": "1", "label": "否"}], |
|
|
|
contentDisplayOptions: [{ |
|
|
|
|
|
|
|
"value": "0", |
|
|
|
|
|
|
|
"label": "是" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
"value": "1", |
|
|
|
|
|
|
|
"label": "否" |
|
|
|
|
|
|
|
}], |
|
|
|
rules: { |
|
|
|
rules: { |
|
|
|
// 文章标题 |
|
|
|
// 文章标题 |
|
|
|
contentTitle: [{"required": true, "message": "请选择文章标题"}], |
|
|
|
contentTitle: [{ |
|
|
|
|
|
|
|
"required": true, |
|
|
|
|
|
|
|
"message": "请选择文章标题" |
|
|
|
|
|
|
|
}], |
|
|
|
// 发布时间 |
|
|
|
// 发布时间 |
|
|
|
contentDatetime: [{"required": true, "message": "发布时间不能为空"}], |
|
|
|
contentDatetime: [{ |
|
|
|
contentCategoryId: [{"required": true, "message": "所属栏目不能为空"}], |
|
|
|
"required": true, |
|
|
|
}, |
|
|
|
"message": "发布时间不能为空" |
|
|
|
|
|
|
|
}], |
|
|
|
} |
|
|
|
contentCategoryId: [{ |
|
|
|
|
|
|
|
"required": true, |
|
|
|
|
|
|
|
"message": "所属栏目不能为空" |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: {}, |
|
|
|
watch: {}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
currCategory(){ |
|
|
|
currCategory: function () { |
|
|
|
var that = this; |
|
|
|
var that = this; |
|
|
|
return this.categoryIdOptions.find(function (value) { |
|
|
|
return this.categoryIdOptions.find(function (value) { |
|
|
|
return value.id===that.form.contentCategoryId |
|
|
|
return value.id === that.form.contentCategoryId; |
|
|
|
}) |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
save() { |
|
|
|
save: function () { |
|
|
|
var that = this; |
|
|
|
var _this = this; |
|
|
|
//自定义模型需要验证 |
|
|
|
|
|
|
|
|
|
|
|
var that = this; //自定义模型需要验证 |
|
|
|
|
|
|
|
|
|
|
|
if (this.model && !this.model.validate()) { |
|
|
|
if (this.model && !this.model.validate()) { |
|
|
|
this.activeName = 'custom-name'; |
|
|
|
this.activeName = 'custom-name'; |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var url = ms.manager + "/cms/content/save.do" |
|
|
|
|
|
|
|
|
|
|
|
var url = ms.manager + "/cms/content/save.do"; |
|
|
|
|
|
|
|
|
|
|
|
if (that.form.id > 0) { |
|
|
|
if (that.form.id > 0) { |
|
|
|
url = ms.manager + "/cms/content/update.do"; |
|
|
|
url = ms.manager + "/cms/content/update.do"; |
|
|
|
} |
|
|
|
} |
|
|
|
this.$refs.form[0].validate((valid) => { |
|
|
|
|
|
|
|
|
|
|
|
this.$refs.form[0].validate(function (valid) { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
that.saveDisabled = true; |
|
|
|
that.saveDisabled = true; //判断 |
|
|
|
//判断 |
|
|
|
|
|
|
|
if(that.categoryIdOptions.filter(f => f['id'] == that.form.contentCategoryId)[0].categoryType == '2' && that.returnIsShow){ |
|
|
|
if (that.categoryIdOptions.filter(function (f) { |
|
|
|
|
|
|
|
return f['id'] == that.form.contentCategoryId; |
|
|
|
|
|
|
|
})[0].categoryType == '2' && that.returnIsShow) { |
|
|
|
that.$notify({ |
|
|
|
that.$notify({ |
|
|
|
title: '提示', |
|
|
|
title: '提示', |
|
|
|
message: '所属栏目不能为封面', |
|
|
|
message: '所属栏目不能为封面', |
|
|
|
type: 'error' |
|
|
|
type: 'error' |
|
|
|
}); |
|
|
|
}); |
|
|
|
that.saveDisabled = false; |
|
|
|
that.saveDisabled = false; |
|
|
|
return |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var data = JSON.parse(JSON.stringify(that.form)); |
|
|
|
var data = JSON.parse(JSON.stringify(that.form)); |
|
|
|
|
|
|
|
|
|
|
|
if (data.contentType != null) { |
|
|
|
if (data.contentType != null) { |
|
|
|
data.contentType = data.contentType.join(','); |
|
|
|
data.contentType = data.contentType.join(','); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
data.contentImg = JSON.stringify(data.contentImg); |
|
|
|
data.contentImg = JSON.stringify(data.contentImg); |
|
|
|
ms.http.post(url, data).then(function (data) { |
|
|
|
ms.http.post(url, data).then(function (data) { |
|
|
|
if (data.result) { |
|
|
|
if (data.result) { |
|
|
|
//保存时需要赋值关联ID |
|
|
|
//保存时需要赋值关联ID |
|
|
|
if (that.model) { |
|
|
|
if (that.model) { |
|
|
|
that.model.form.linkId = data.data.id; |
|
|
|
that.model.form.linkId = data.data.id; |
|
|
|
that.model.save() |
|
|
|
that.model.save(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
that.$notify({ |
|
|
|
that.$notify({ |
|
|
|
title: '成功', |
|
|
|
title: '成功', |
|
|
|
message: '保存成功', |
|
|
|
message: '保存成功', |
|
|
|
type: 'success' |
|
|
|
type: 'success' |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (that.returnIsShow) { |
|
|
|
if (that.returnIsShow) { |
|
|
|
javascript: history.go(-1); |
|
|
|
javascript: history.go(-1); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -368,99 +398,107 @@ |
|
|
|
type: 'warning' |
|
|
|
type: 'warning' |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
that.saveDisabled = false; |
|
|
|
that.saveDisabled = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.activeName = 'form'; |
|
|
|
_this.activeName = 'form'; |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
removeModel(){ |
|
|
|
removeModel: function () { |
|
|
|
var that = this; |
|
|
|
var that = this; |
|
|
|
var model= document.getElementById('model1') |
|
|
|
var model = document.getElementById('model1'); |
|
|
|
var custom= document.getElementById('c_model') |
|
|
|
var custom = document.getElementById('c_model'); |
|
|
|
|
|
|
|
|
|
|
|
if (custom) { |
|
|
|
if (custom) { |
|
|
|
model.removeChild(custom) |
|
|
|
model.removeChild(custom); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
that.model = undefined; |
|
|
|
that.model = undefined; |
|
|
|
}, |
|
|
|
}, |
|
|
|
categoryChange(){ |
|
|
|
categoryChange: function () { |
|
|
|
this.changeModel(); |
|
|
|
this.changeModel(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeModel(){ |
|
|
|
changeModel: function () { |
|
|
|
var that = this; |
|
|
|
var that = this; |
|
|
|
that.editableTabs = [that.editableTabs[0]]; |
|
|
|
that.editableTabs = [that.editableTabs[0]]; |
|
|
|
this.removeModel(); |
|
|
|
this.removeModel(); |
|
|
|
|
|
|
|
|
|
|
|
if (this.currCategory) { |
|
|
|
if (this.currCategory) { |
|
|
|
if (this.currCategory.mdiyModelId) { |
|
|
|
if (this.currCategory.mdiyModelId) { |
|
|
|
ms.http.get(ms.manager + "/mdiy/model/get.do", { |
|
|
|
ms.http.get(ms.manager + "/mdiy/model/get.do", { |
|
|
|
id: this.currCategory.mdiyModelId |
|
|
|
id: this.currCategory.mdiyModelId |
|
|
|
}).then(function (data) { |
|
|
|
}).then(function (data) { |
|
|
|
if (data.data && data.data.id) { |
|
|
|
if (data.data && data.data.id) { |
|
|
|
that.rederModel(data.data,JSON.parse(data.data.modelJson)) |
|
|
|
that.rederModel(data.data, JSON.parse(data.data.modelJson)); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
rederModel(modelEntity,data){ |
|
|
|
rederModel: function (modelEntity, data) { |
|
|
|
var that = this; |
|
|
|
var that = this; |
|
|
|
that.editableTabs.push({ |
|
|
|
that.editableTabs.push({ |
|
|
|
title: modelEntity.modelName, |
|
|
|
title: modelEntity.modelName, |
|
|
|
name: 'custom-name', |
|
|
|
name: 'custom-name' |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.removeModel(); |
|
|
|
this.removeModel(); |
|
|
|
that.$nextTick(function () { |
|
|
|
that.$nextTick(function () { |
|
|
|
var div=document.createElement('div') |
|
|
|
var div = document.createElement('div'); |
|
|
|
div.id='c_model' |
|
|
|
div.id = 'c_model'; |
|
|
|
var model= document.getElementById('model1') |
|
|
|
var model = document.getElementById('model1'); |
|
|
|
model.appendChild(div) |
|
|
|
model.appendChild(div); |
|
|
|
var s=document.createElement('script') |
|
|
|
var s = document.createElement('script'); |
|
|
|
s.innerHTML=data.script |
|
|
|
s.innerHTML = data.script; |
|
|
|
var con=document.createElement('div') |
|
|
|
var con = document.createElement('div'); |
|
|
|
con.id = 'custom-model'; |
|
|
|
con.id = 'custom-model'; |
|
|
|
con.innerHTML = data.html; |
|
|
|
con.innerHTML = data.html; |
|
|
|
div.appendChild(s); |
|
|
|
div.appendChild(s); |
|
|
|
div.appendChild(con); |
|
|
|
div.appendChild(con); //初始化自定义模型并传入关联参数 |
|
|
|
//初始化自定义模型并传入关联参数 |
|
|
|
|
|
|
|
that.model = new custom_model( |
|
|
|
that.model = new custom_model({ |
|
|
|
{ |
|
|
|
|
|
|
|
data: { |
|
|
|
data: { |
|
|
|
title: modelEntity.modelName, |
|
|
|
title: modelEntity.modelName, |
|
|
|
modelId: modelEntity.id, |
|
|
|
modelId: modelEntity.id, |
|
|
|
form: { |
|
|
|
form: { |
|
|
|
linkId: that.form.id |
|
|
|
linkId: that.form.id |
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}) |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
getValue(data) { |
|
|
|
getValue: function (data) { |
|
|
|
this.form.contentCategoryId = data.id; |
|
|
|
this.form.contentCategoryId = data.id; |
|
|
|
}, |
|
|
|
}, |
|
|
|
//获取当前文章 |
|
|
|
//获取当前文章 |
|
|
|
get(id) { |
|
|
|
get: function (id) { |
|
|
|
var that = this; |
|
|
|
var that = this; |
|
|
|
ms.http.get(ms.manager + "/cms/content/get.do", {"id": id}).then(function (res) { |
|
|
|
ms.http.get(ms.manager + "/cms/content/get.do", { |
|
|
|
|
|
|
|
"id": id |
|
|
|
|
|
|
|
}).then(function (res) { |
|
|
|
if (res.result && res.data) { |
|
|
|
if (res.result && res.data) { |
|
|
|
if (res.data.contentType) { |
|
|
|
if (res.data.contentType) { |
|
|
|
res.data.contentType = res.data.contentType.split(','); |
|
|
|
res.data.contentType = res.data.contentType.split(','); |
|
|
|
} |
|
|
|
} else { |
|
|
|
else { |
|
|
|
|
|
|
|
res.data.contentType = []; |
|
|
|
res.data.contentType = []; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (res.data.contentImg) { |
|
|
|
if (res.data.contentImg) { |
|
|
|
res.data.contentImg = JSON.parse(res.data.contentImg); |
|
|
|
res.data.contentImg = JSON.parse(res.data.contentImg); |
|
|
|
res.data.contentImg.forEach(function (value) { |
|
|
|
res.data.contentImg.forEach(function (value) { |
|
|
|
value.url = ms.base + value.path |
|
|
|
value.url = ms.base + value.path; |
|
|
|
}) |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
res.data.contentImg = [] |
|
|
|
res.data.contentImg = []; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
that.form = res.data; |
|
|
|
that.form = res.data; |
|
|
|
var category = that.categoryIdOptions.filter(f => f['id'] == that.form.contentCategoryId); |
|
|
|
var category = that.categoryIdOptions.filter(function (f) { |
|
|
|
|
|
|
|
return f['id'] == that.form.contentCategoryId; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (category.length == 1) { |
|
|
|
if (category.length == 1) { |
|
|
|
if (category[0].categoryType == '2') { |
|
|
|
if (category[0].categoryType == '2') { |
|
|
|
that.returnIsShow = false; |
|
|
|
that.returnIsShow = false; |
|
|
|
@ -473,9 +511,11 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
//获取contentCategoryId数据源 |
|
|
|
//获取contentCategoryId数据源 |
|
|
|
contentCategoryIdOptionsGet() { |
|
|
|
contentCategoryIdOptionsGet: function () { |
|
|
|
var that = this; |
|
|
|
var that = this; |
|
|
|
ms.http.get(ms.manager + "/cms/category/list.do", {pageSize: 9999}).then(function (res) { |
|
|
|
ms.http.get(ms.manager + "/cms/category/list.do", { |
|
|
|
|
|
|
|
pageSize: 9999 |
|
|
|
|
|
|
|
}).then(function (res) { |
|
|
|
if (res.result) { |
|
|
|
if (res.result) { |
|
|
|
that.contentCategoryIdOptions = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children'); |
|
|
|
that.contentCategoryIdOptions = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children'); |
|
|
|
that.categoryIdOptions = res.data.rows; |
|
|
|
that.categoryIdOptions = res.data.rows; |
|
|
|
@ -486,9 +526,12 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
//获取contentType数据源 |
|
|
|
//获取contentType数据源 |
|
|
|
contentTypeOptionsGet() { |
|
|
|
contentTypeOptionsGet: function () { |
|
|
|
var that = this; |
|
|
|
var that = this; |
|
|
|
ms.http.get(ms.base + '/mdiy/dict/list.do', {dictType: '文章属性', pageSize: 99999}).then(function (data) { |
|
|
|
ms.http.get(ms.base + '/mdiy/dict/list.do', { |
|
|
|
|
|
|
|
dictType: '文章属性', |
|
|
|
|
|
|
|
pageSize: 99999 |
|
|
|
|
|
|
|
}).then(function (data) { |
|
|
|
that.contentTypeOptions = data.rows; |
|
|
|
that.contentTypeOptions = data.rows; |
|
|
|
}).catch(function (err) { |
|
|
|
}).catch(function (err) { |
|
|
|
console.log(err); |
|
|
|
console.log(err); |
|
|
|
@ -496,56 +539,58 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
//contentImg文件上传完成回调 |
|
|
|
//contentImg文件上传完成回调 |
|
|
|
contentImgSuccess: function (response, file, fileList) { |
|
|
|
contentImgSuccess: function (response, file, fileList) { |
|
|
|
this.form.contentImg.push({url: file.url, name: file.name, path: response, uid: file.uid}); |
|
|
|
this.form.contentImg.push({ |
|
|
|
|
|
|
|
url: file.url, |
|
|
|
|
|
|
|
name: file.name, |
|
|
|
|
|
|
|
path: response, |
|
|
|
|
|
|
|
uid: file.uid |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
contentImghandleRemove: function (file, files) { |
|
|
|
contentImghandleRemove: function (file, files) { |
|
|
|
var index = -1; |
|
|
|
var index = -1; |
|
|
|
index = this.form.contentImg.findIndex(text => text == file); |
|
|
|
index = this.form.contentImg.findIndex(function (text) { |
|
|
|
|
|
|
|
return text == file; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (index != -1) { |
|
|
|
if (index != -1) { |
|
|
|
this.form.contentImg.splice(index, 1); |
|
|
|
this.form.contentImg.splice(index, 1); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
//contentImg文件上传完成回调 |
|
|
|
|
|
|
|
contentImgSuccess: function (response, file, fileList) { |
|
|
|
|
|
|
|
this.form.contentImg.push({url: file.url, name: file.name, path: response, uid: file.uid}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//上传超过限制 |
|
|
|
//上传超过限制 |
|
|
|
contentImghandleExceed: function (files, fileList) { |
|
|
|
contentImghandleExceed: function (files, fileList) { |
|
|
|
this.$notify({title: '当前最多上传1个文件', type: 'warning'}); |
|
|
|
this.$notify({ |
|
|
|
}, |
|
|
|
title: '当前最多上传1个文件', |
|
|
|
contentImghandleRemove: function (file, files) { |
|
|
|
type: 'warning' |
|
|
|
var index = -1; |
|
|
|
}); |
|
|
|
index = this.form.contentImg.findIndex(text => text == file); |
|
|
|
|
|
|
|
if (index != -1) { |
|
|
|
|
|
|
|
this.form.contentImg.splice(index, 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
//查询列表 |
|
|
|
//查询列表 |
|
|
|
list: function (contentCategoryId) { |
|
|
|
list: function (contentCategoryId) { |
|
|
|
var that = this; |
|
|
|
var that = this; |
|
|
|
ms.http.post(ms.manager + "/cms/content/list.do", { |
|
|
|
ms.http.post(ms.manager + "/cms/content/list.do", { |
|
|
|
contentCategoryId: contentCategoryId, |
|
|
|
contentCategoryId: contentCategoryId |
|
|
|
}).then(function (res) { |
|
|
|
}).then(function (res) { |
|
|
|
if (res.result && res.data.total > 0) { |
|
|
|
if (res.result && res.data.total > 0) { |
|
|
|
if (res.data.rows[0].contentType) { |
|
|
|
if (res.data.rows[0].contentType) { |
|
|
|
res.data.rows[0].contentType = res.data.rows[0].contentType.split(','); |
|
|
|
res.data.rows[0].contentType = res.data.rows[0].contentType.split(','); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (res.data.rows[0].contentImg) { |
|
|
|
if (res.data.rows[0].contentImg) { |
|
|
|
res.data.rows[0].contentImg = JSON.parse(res.data.rows[0].contentImg); |
|
|
|
res.data.rows[0].contentImg = JSON.parse(res.data.rows[0].contentImg); |
|
|
|
res.data.rows[0].contentImg.forEach(function (value) { |
|
|
|
res.data.rows[0].contentImg.forEach(function (value) { |
|
|
|
value.url = ms.base + value.path |
|
|
|
value.url = ms.base + value.path; |
|
|
|
}) |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
res.data.rows[0].contentImg = [] |
|
|
|
res.data.rows[0].contentImg = []; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
that.form = res.data.rows[0]; |
|
|
|
that.form = res.data.rows[0]; |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(function (err) { |
|
|
|
}).catch(function (err) { |
|
|
|
console.log(err); |
|
|
|
console.log(err); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
created: function () { |
|
|
|
created() { |
|
|
|
|
|
|
|
this.contentCategoryIdOptionsGet(); |
|
|
|
this.contentCategoryIdOptionsGet(); |
|
|
|
this.contentTypeOptionsGet(); |
|
|
|
this.contentTypeOptionsGet(); |
|
|
|
this.form.id = ms.util.getParameter("id"); |
|
|
|
this.form.id = ms.util.getParameter("id"); |
|
|
|
@ -553,9 +598,11 @@ |
|
|
|
this.form.contentCategoryId = ms.util.getParameter("categoryId"); |
|
|
|
this.form.contentCategoryId = ms.util.getParameter("categoryId"); |
|
|
|
} |
|
|
|
} |
|
|
|
this.type = ms.util.getParameter("type"); |
|
|
|
this.type = ms.util.getParameter("type"); |
|
|
|
|
|
|
|
|
|
|
|
if (this.form.id) { |
|
|
|
if (this.form.id) { |
|
|
|
this.get(this.form.id); |
|
|
|
this.get(this.form.id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.type) { |
|
|
|
if (this.type) { |
|
|
|
this.list(this.form.contentCategoryId); |
|
|
|
this.list(this.form.contentCategoryId); |
|
|
|
this.returnIsShow = false; |
|
|
|
this.returnIsShow = false; |
|
|
|
|