Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
074b3c73
Commit
074b3c73
authored
Jan 05, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置单图上传控件
parent
a118738d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ruoyi-common/src/main/java/com/ruoyi/common/constant/GenConstants.java
...src/main/java/com/ruoyi/common/constant/GenConstants.java
+2
-2
ruoyi-generator/src/main/java/com/ruoyi/generator/util/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
/** 日期控件 */
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"
;
...
...
ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java
View file @
074b3c73
...
...
@@ -112,10 +112,10 @@ public class GenUtils
{
column
.
setHtmlType
(
GenConstants
.
HTML_SELECT
);
}
//
文件字段设置上传
控件
//
图片字段设置单图
控件
else
if
(
StringUtils
.
endsWithIgnoreCase
(
columnName
,
"image"
))
{
column
.
setHtmlType
(
GenConstants
.
HTML_
UPLOAD_IMAGE
);
column
.
setHtmlType
(
GenConstants
.
HTML_
IMAGE_UPLOAD
);
}
// 内容字段设置富文本控件
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