崔宝铖提交

This commit is contained in:
cuibaocheng 2020-06-23 19:11:51 +08:00
parent 713a90cbe5
commit c8959be45b
6 changed files with 26 additions and 16 deletions

View File

@ -109,7 +109,6 @@
<artifactId>java-emoji-converter</artifactId> <artifactId>java-emoji-converter</artifactId>
<version>0.1.1</version> <version>0.1.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -34,6 +34,16 @@ public class NewsDirectoriesDTO {
private String directoriesSummary; private String directoriesSummary;
@ApiModelProperty(name = "directoriesPhoto", value = "版块图标") @ApiModelProperty(name = "directoriesPhoto", value = "版块图标")
private String directoriesPhoto; 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() { public String getNewsDirectoriesId() {
return newsDirectoriesId == null ? "" : newsDirectoriesId; return newsDirectoriesId == null ? "" : newsDirectoriesId;

View File

@ -166,9 +166,14 @@
t1.directories_sort, t1.directories_sort,
t1.directories_summary, t1.directories_summary,
t1.directories_photo, t1.directories_photo,
t1.news_directories_id t1.news_directories_id,
t2.directories_name AS directoriesParentName
FROM FROM
gen_news_directories t1 gen_news_directories t1
LEFT JOIN
gen_news_directories t2
ON
t1.directories_parent_id = t2.news_directories_id
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="newsDirectoriesId != null and newsDirectoriesId != ''"> <if test="newsDirectoriesId != null and newsDirectoriesId != ''">
@ -225,17 +230,8 @@
#{newsDirectoriesIds[${index}]} #{newsDirectoriesIds[${index}]}
</foreach> </foreach>
</if> </if>
GROUP BY ORDER BY
t1.directories_parent_id, directories_sort, directories_code
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
</select> </select>
<!-- 子节点数量 --> <!-- 子节点数量 -->

View File

@ -20,7 +20,10 @@ window.wangEditor.fullscreen = {
}, },
customInsert: function (insertImg, result, editor) { customInsert: function (insertImg, result, editor) {
console.log(result); 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); insertImg(url);
} }
}; };

View File

@ -242,6 +242,8 @@
function initData() { function initData() {
var loadLayerIndex; var loadLayerIndex;
top.restAjax.get(top.restAjax.path('api/newsdirectories/getnewsdirectoriesbyid/{newsDirectoriesId}', [newsDirectoriesId]), {}, null, function(code, data) { 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; data.directoriesParentName = data.directoriesParentId == '0' ? '根节点' : data.directoriesParentName;
var dataFormData = {}; var dataFormData = {};
for(var i in data) { for(var i in data) {

View File

@ -247,7 +247,7 @@
type: 2, type: 2,
title: false, title: false,
closeBtn: 0, closeBtn: 0,
area: ['98%', '98%'], area: ['100%', '100%'],
shadeClose: true, shadeClose: true,
anim: 2, anim: 2,
content: top.restAjax.path('route/newstemplate/save-newstemplate.html', []), content: top.restAjax.path('route/newstemplate/save-newstemplate.html', []),
@ -265,7 +265,7 @@
type: 2, type: 2,
title: false, title: false,
closeBtn: 0, closeBtn: 0,
area: ['95%', '95%'], area: ['100%', '100%'],
shadeClose: true, shadeClose: true,
anim: 2, anim: 2,
content: top.restAjax.path('route/newstemplate/update-newstemplate.html?newsTemplateId={newsTemplateId}', [checkDatas[0].newsTemplateId]), content: top.restAjax.path('route/newstemplate/update-newstemplate.html?newsTemplateId={newsTemplateId}', [checkDatas[0].newsTemplateId]),