Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sass-admin
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj_app
sass-admin
Commits
f7d999b5
Commit
f7d999b5
authored
Aug 26, 2025
by
end
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复工作台bug
parent
09f4cfd3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
dist.zip
+0
-0
src/common/UploadImageCover/index.js
+4
-4
src/pages/Dashboard/index.js
+0
-0
src/pages/Dashboard/style/index.css
+0
-0
src/pages/Dashboard/style/index.less
+0
-0
src/pages/SystemManagement/Article/addEditForm.jsx
+1
-1
src/pages/SystemManagement/Information/addEditForm.jsx
+1
-1
src/pages/SystemManagement/Site/Door/indexPage/mobilePlugin/Ass/index.jsx
+1
-1
src/pages/SystemManagement/Site/Door/pcIndex/component/toolEdit/ToolEdit.jsx
+2
-2
No files found.
dist.zip
View file @
f7d999b5
No preview for this file type
src/common/UploadImageCover/index.js
View file @
f7d999b5
...
...
@@ -89,7 +89,7 @@ class UploadImageCover extends Component {
// Upload上传之前函数
beforeUpload
=
file
=>
{
if
(
file
.
size
>
2
0
*
1024
*
1024
)
{
if
(
file
.
size
>
3
0
*
1024
*
1024
)
{
//bug-13496-liyuan
message
.
error
(
"该图片超过大小,不支持上传"
);
//bug 15215
return
false
;
...
...
@@ -133,9 +133,9 @@ class UploadImageCover extends Component {
.
then
(
res
=>
res
.
blob
())
.
then
(
blob
=>
{
new
Compressor
(
blob
,
{
quality
:
0.
7
,
// 压缩质量(0-1),值越小压缩率越高
maxWidth
:
1
200
,
// 最大宽度限制
maxHeight
:
120
0
,
// 最大高度限制
quality
:
0.
3
,
// 压缩质量(0-1),值越小压缩率越高
maxWidth
:
1
125
,
// 最大宽度限制
maxHeight
:
54
0
,
// 最大高度限制
success
:
(
compressedBlob
)
=>
{
// 创建压缩后的文件对象
const
file
=
new
File
([
compressedBlob
],
`
${
randomNumber
}
.jpg`
,
{
type
:
'image/jpeg'
});
...
...
src/pages/Dashboard/index.js
View file @
f7d999b5
This diff is collapsed.
Click to expand it.
src/pages/Dashboard/style/index.css
View file @
f7d999b5
This diff is collapsed.
Click to expand it.
src/pages/Dashboard/style/index.less
View file @
f7d999b5
This diff is collapsed.
Click to expand it.
src/pages/SystemManagement/Article/addEditForm.jsx
View file @
f7d999b5
...
...
@@ -281,7 +281,7 @@ class addEdit extends React.Component {
label=
{
"封面logo"
}
extra=
{
<
div
style=
{
{
marginLeft
:
"164px"
}
}
>
请上传资源附件(支持格式jpeg、jpg、png
,大小20m以内
)建议尺寸:1125*900
请上传资源附件(支持格式jpeg、jpg、png)建议尺寸:1125*900
</
div
>
}
>
...
...
src/pages/SystemManagement/Information/addEditForm.jsx
View file @
f7d999b5
...
...
@@ -345,7 +345,7 @@ class addEdit extends React.Component {
label=
{
"封面logo"
}
extra=
{
<
div
style=
{
{
marginLeft
:
"164px"
}
}
>
请上传资源附件(支持格式jpeg、jpg、png
,大小20m以内
)建议尺寸:1125*900
请上传资源附件(支持格式jpeg、jpg、png)建议尺寸:1125*900
</
div
>
}
>
...
...
src/pages/SystemManagement/Site/Door/indexPage/mobilePlugin/Ass/index.jsx
View file @
f7d999b5
...
...
@@ -163,7 +163,7 @@ class Community extends Component {
preRatio=
{
[
"355/100"
]
}
maxSize=
{
20
*
1024
*
1024
}
disabled=
{
this
.
state
.
flag
}
extra=
"请上传资源附件(支持格式jpeg、jpg、png,
大小20M以内,
最佳尺寸:355*100)"
extra=
"请上传资源附件(支持格式jpeg、jpg、png,最佳尺寸:355*100)"
/>
{
/* <span>上传</span> */
}
</
div
>
...
...
src/pages/SystemManagement/Site/Door/pcIndex/component/toolEdit/ToolEdit.jsx
View file @
f7d999b5
...
...
@@ -616,7 +616,7 @@ class ToolEdit extends Component {
terminalId=
{
this
.
props
.
terminalId
}
moduleId=
{
this
.
props
.
moduleId
}
dataList=
{
this
.
props
.
pcReducer
[
"m"
+
this
.
props
.
moduleId
]
}
isPc=
{
true
}
/>
)
}
{
/*培训项目/课程/讲师库*/
}
...
...
@@ -678,7 +678,7 @@ class ToolEdit extends Component {
preRatio=
{
[
"1200/170"
]
}
maxSize=
{
20
*
1024
*
1024
}
// disabled=
{
this
.
state
.
flag
}
extra=
"请上传资源附件(支持格式jpeg、jpg、png,
大小20M以内,
最佳尺寸:1200*170)"
extra=
"请上传资源附件(支持格式jpeg、jpg、png,最佳尺寸:1200*170)"
/>
{
/* <span>上传</span> */
}
</
div
>
...
...
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