崔宝铖提交
This commit is contained in:
parent
713a90cbe5
commit
c8959be45b
1
pom.xml
1
pom.xml
@ -109,7 +109,6 @@
|
||||
<artifactId>java-emoji-converter</artifactId>
|
||||
<version>0.1.1</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -34,6 +34,16 @@ public class NewsDirectoriesDTO {
|
||||
private String directoriesSummary;
|
||||
@ApiModelProperty(name = "directoriesPhoto", value = "版块图标")
|
||||
private String directoriesPhoto;
|
||||
@ApiModelProperty(name = "directoriesParentName", value = "父版块名称")
|
||||
private String directoriesParentName;
|
||||
|
||||
public String getDirectoriesParentName() {
|
||||
return directoriesParentName == null ? "" : directoriesParentName;
|
||||
}
|
||||
|
||||
public void setDirectoriesParentName(String directoriesParentName) {
|
||||
this.directoriesParentName = directoriesParentName;
|
||||
}
|
||||
|
||||
public String getNewsDirectoriesId() {
|
||||
return newsDirectoriesId == null ? "" : newsDirectoriesId;
|
||||
|
@ -166,9 +166,14 @@
|
||||
t1.directories_sort,
|
||||
t1.directories_summary,
|
||||
t1.directories_photo,
|
||||
t1.news_directories_id
|
||||
t1.news_directories_id,
|
||||
t2.directories_name AS directoriesParentName
|
||||
FROM
|
||||
gen_news_directories t1
|
||||
LEFT JOIN
|
||||
gen_news_directories t2
|
||||
ON
|
||||
t1.directories_parent_id = t2.news_directories_id
|
||||
WHERE
|
||||
t1.is_delete = 0
|
||||
<if test="newsDirectoriesId != null and newsDirectoriesId != ''">
|
||||
@ -225,17 +230,8 @@
|
||||
#{newsDirectoriesIds[${index}]}
|
||||
</foreach>
|
||||
</if>
|
||||
GROUP BY
|
||||
t1.directories_parent_id,
|
||||
t1.directories_name,
|
||||
t1.directories_code,
|
||||
t1.directories_description,
|
||||
t1.directories_switch,
|
||||
t1.directories_check,
|
||||
t1.directories_sort,
|
||||
t1.directories_summary,
|
||||
t1.directories_photo,
|
||||
t1.news_directories_id
|
||||
ORDER BY
|
||||
directories_sort, directories_code
|
||||
</select>
|
||||
|
||||
<!-- 子节点数量 -->
|
||||
|
@ -20,7 +20,10 @@ window.wangEditor.fullscreen = {
|
||||
},
|
||||
customInsert: function (insertImg, result, editor) {
|
||||
console.log(result);
|
||||
var url = 'http://192.168.0.104:8082/news/' + result.data[0];
|
||||
var locat = (window.location+'').split('/');
|
||||
var server = locat[0]+'//'+locat[2]+'/'+locat[3] + "/";
|
||||
console.log(server)
|
||||
var url = server + result.data[0];
|
||||
insertImg(url);
|
||||
}
|
||||
};
|
||||
|
@ -242,6 +242,8 @@
|
||||
function initData() {
|
||||
var loadLayerIndex;
|
||||
top.restAjax.get(top.restAjax.path('api/newsdirectories/getnewsdirectoriesbyid/{newsDirectoriesId}', [newsDirectoriesId]), {}, null, function(code, data) {
|
||||
console.log(data.directoriesParentName)
|
||||
console.log(data.directoriesParentId)
|
||||
data.directoriesParentName = data.directoriesParentId == '0' ? '根节点' : data.directoriesParentName;
|
||||
var dataFormData = {};
|
||||
for(var i in data) {
|
||||
|
@ -247,7 +247,7 @@
|
||||
type: 2,
|
||||
title: false,
|
||||
closeBtn: 0,
|
||||
area: ['98%', '98%'],
|
||||
area: ['100%', '100%'],
|
||||
shadeClose: true,
|
||||
anim: 2,
|
||||
content: top.restAjax.path('route/newstemplate/save-newstemplate.html', []),
|
||||
@ -265,7 +265,7 @@
|
||||
type: 2,
|
||||
title: false,
|
||||
closeBtn: 0,
|
||||
area: ['95%', '95%'],
|
||||
area: ['100%', '100%'],
|
||||
shadeClose: true,
|
||||
anim: 2,
|
||||
content: top.restAjax.path('route/newstemplate/update-newstemplate.html?newsTemplateId={newsTemplateId}', [checkDatas[0].newsTemplateId]),
|
||||
|
Loading…
Reference in New Issue
Block a user