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
ee12b84b
Commit
ee12b84b
authored
Nov 24, 2020
by
xierz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload上传回调
parent
3eb03d1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
13 deletions
+36
-13
form.ftl
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
+14
-6
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+21
-7
index.htm
src/main/webapp/template/1/default/index.htm
+1
-0
No files found.
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
View file @
ee12b84b
...
...
@@ -569,12 +569,20 @@
},
//categoryImg文件上传完成回调
categoryImgSuccess
:
function
(
response
,
file
,
fileList
)
{
this
.
form
.
categoryImg
.
push
({
url
:
file
.
url
,
name
:
file
.
name
,
path
:
response
,
uid
:
file
.
uid
});
if
(
response
.
result
){
this
.
form
.
categoryImg
.
push
({
url
:
file
.
url
,
name
:
file
.
name
,
path
:
response
.
data
,
uid
:
file
.
uid
});
}
else
{
this
.
$notify
({
title
:
response
.
msg
,
type
:
'warning'
});
}
},
//上传超过限制
categoryImghandleExceed
:
function
(
files
,
fileList
)
{
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
ee12b84b
...
...
@@ -42,7 +42,8 @@
<template
slot=
'label'
>
所属栏目
<el-popover
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
<a
href=
"http://doc.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html"
target=
"_blank"
>
${'$'}{field.typetitle}
</a>
target=
"_blank"
>
${'$'}{field.typetitle}
</a><br/>
不能为链接和封面类型新建文章
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
...
...
@@ -530,6 +531,11 @@
pageSize
:
9999
}).
then
(
function
(
res
)
{
if
(
res
.
result
)
{
res
.
data
.
rows
.
forEach
(
function
(
item
)
{
if
(
item
.
categoryType
==
'2'
||
item
.
categoryType
==
'3'
)
{
item
.
isDisabled
=
true
;
}
});
that
.
contentCategoryIdOptions
=
ms
.
util
.
treeData
(
res
.
data
.
rows
,
'id'
,
'categoryId'
,
'children'
);
that
.
categoryIdOptions
=
res
.
data
.
rows
;
that
.
changeModel
();
...
...
@@ -555,12 +561,20 @@
},
//contentImg文件上传完成回调
contentImgSuccess
:
function
(
response
,
file
,
fileList
)
{
this
.
form
.
contentImg
.
push
({
url
:
file
.
url
,
name
:
file
.
name
,
path
:
response
,
uid
:
file
.
uid
});
if
(
response
.
result
){
this
.
form
.
contentImg
.
push
({
url
:
file
.
url
,
name
:
file
.
name
,
path
:
response
.
data
,
uid
:
file
.
uid
});
}
else
{
this
.
$notify
({
title
:
response
.
msg
,
type
:
'warning'
});
}
},
contentImghandleRemove
:
function
(
file
,
files
)
{
var
index
=
-
1
;
...
...
src/main/webapp/template/1/default/index.htm
View file @
ee12b84b
...
...
@@ -66,6 +66,7 @@ Vue.use(VueAwesomeSwiper)
</style>
</head>
<body>
<h1><a
href=
"{ms:global.url/}/news/index.html"
>
进入
</a></h1>
<div
id=
"app"
v-cloak
>
<
#
include
"
header
.
htm
"
/>
...
...
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