Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
7133d078
Commit
7133d078
authored
Feb 13, 2020
by
wujj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
百度编辑器上传参数新增appId
parent
7fcab1aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+1
-1
ms.util.js
src/main/webapp/static/plugins/ms/1.0.0/ms.util.js
+13
-2
No files found.
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
7133d078
...
...
@@ -267,7 +267,7 @@
maximumWords
:
2000
,
initialFrameWidth
:
'100%'
,
initialFrameHeight
:
400
,
serverUrl
:
ms
.
base
+
"/static/plugins/ueditor/1.4.3.1/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:
\
'"
+
ms
.
base
+
"
\
',fileUrlPrefix:
\
'"
+
ms
.
base
+
"
\
',imageUrlPrefix:
\
'"
+
ms
.
base
+
"
\
',imagePathFormat:
\
'
/upload/cms/content/editor/%7Btime%7D
\
',filePathFormat:
\
'/upload/cms/content/editor/%7Btime%7D
\
',videoPathFormat:
\
'/upload/cms/content/editor/%7Btime%7D
\
'
%7D"
,
serverUrl
:
ms
.
base
+
"/static/plugins/ueditor/1.4.3.1/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:
\
'"
+
ms
.
base
+
"
\
',fileUrlPrefix:
\
'"
+
ms
.
base
+
"
\
',imageUrlPrefix:
\
'"
+
ms
.
base
+
"
\
',imagePathFormat:
\
'
cms/content/editor/%7Btime%7D
\
',filePathFormat:
\
'cms/content/editor/%7Btime%7D
\
',videoPathFormat:
\
'cms/content/editor/%7Btime%7D
\
',appId:true
%7D"
,
UEDITOR_HOME_URL
:
ms
.
base
+
'/static/plugins/ueditor/1.4.3.1/'
},
contentCategoryIdOptions
:
[],
...
...
src/main/webapp/static/plugins/ms/1.0.0/ms.util.js
View file @
7133d078
...
...
@@ -20,7 +20,18 @@
log
(
e
.
message
);
}
}
//树形数据组织
/**
* 列表数据转化为树形结构的列表
* @param source 数据源list
* @param id 编号
* @param parentId 父级编号
* @param children 树形子集变量
* @returns {*}
* 支持父级编号为 0或null
* 原始数据[{id:1,titile:"标题",pid:0},{id:2,titile:"标题",pid:1}]
* 转化树形数据:[{id:1,titile:"标题",pid:0,children:[{id:2,titile:"标题",pid:1}]}]
*/
function
treeData
(
source
,
id
,
parentId
,
children
)
{
var
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
source
));
return
cloneData
.
filter
(
function
(
father
)
{
...
...
@@ -28,7 +39,7 @@
return
father
[
id
]
==
child
[
parentId
];
});
branchArr
.
length
>
0
?
father
[
children
]
=
branchArr
:
''
;
return
!
father
[
parentId
]
||
father
[
parentId
]
==
'0'
;
// 如果第一层不是parentId=0,请自行修改
return
!
father
[
parentId
]
||
father
[
parentId
]
==
'0'
||
father
[
parentId
]
==
null
;
});
}
//验证是否为子集
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment