Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
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
liyang
sts网站
Commits
074b3c73
Commit
074b3c73
authored
Jan 05, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置单图上传控件
parent
a118738d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
GenConstants.java
...src/main/java/com/ruoyi/common/constant/GenConstants.java
+2
-2
GenUtils.java
...ator/src/main/java/com/ruoyi/generator/util/GenUtils.java
+2
-2
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/constant/GenConstants.java
View file @
074b3c73
...
@@ -76,8 +76,8 @@ public class GenConstants
...
@@ -76,8 +76,8 @@ public class GenConstants
/** 日期控件 */
/** 日期控件 */
public
static
final
String
HTML_DATETIME
=
"datetime"
;
public
static
final
String
HTML_DATETIME
=
"datetime"
;
/**
上传控件
*/
/**
单图上传
*/
public
static
final
String
HTML_
UPLOAD_IMAGE
=
"uploadImage
"
;
public
static
final
String
HTML_
IMAGE_UPLOAD
=
"imageUpload
"
;
/** 富文本控件 */
/** 富文本控件 */
public
static
final
String
HTML_EDITOR
=
"editor"
;
public
static
final
String
HTML_EDITOR
=
"editor"
;
...
...
ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java
View file @
074b3c73
...
@@ -112,10 +112,10 @@ public class GenUtils
...
@@ -112,10 +112,10 @@ public class GenUtils
{
{
column
.
setHtmlType
(
GenConstants
.
HTML_SELECT
);
column
.
setHtmlType
(
GenConstants
.
HTML_SELECT
);
}
}
//
文件字段设置上传
控件
//
图片字段设置单图
控件
else
if
(
StringUtils
.
endsWithIgnoreCase
(
columnName
,
"image"
))
else
if
(
StringUtils
.
endsWithIgnoreCase
(
columnName
,
"image"
))
{
{
column
.
setHtmlType
(
GenConstants
.
HTML_
UPLOAD_IMAGE
);
column
.
setHtmlType
(
GenConstants
.
HTML_
IMAGE_UPLOAD
);
}
}
// 内容字段设置富文本控件
// 内容字段设置富文本控件
else
if
(
StringUtils
.
endsWithIgnoreCase
(
columnName
,
"content"
))
else
if
(
StringUtils
.
endsWithIgnoreCase
(
columnName
,
"content"
))
...
...
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