Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
linweijiong
jinfa-platform
Commits
a850461f
Commit
a850461f
authored
Nov 05, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复图片限制大小、初始笑脸的问题
parent
3a238dbf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
index.tsx
...action/purchaserEvaluation/unevaluated/evaluate/index.tsx
+1
-1
index.ts
.../purchaserEvaluation/unevaluated/evaluate/schema/index.ts
+2
-2
index.tsx
...saction/supplierEvaluation/unevaluated/evaluate/index.tsx
+1
-1
index.ts
...n/supplierEvaluation/unevaluated/evaluate/schema/index.ts
+1
-1
No files found.
src/pages/transaction/purchaserEvaluation/unevaluated/evaluate/index.tsx
View file @
a850461f
...
...
@@ -122,7 +122,7 @@ const EvaluateOrder: React.FC = () => {
};
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
<
10
)
{
if
(
file
.
size
/
1024
>
10
)
{
message
.
warning
(
'图片大小超过10M'
);
return
Promise
.
reject
();
}
...
...
src/pages/transaction/purchaserEvaluation/unevaluated/evaluate/schema/index.ts
View file @
a850461f
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-09-23 17:00:24
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-1
0-20 17:58:51
* @LastEditTime: 2020-1
1-05 18:27:29
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
...
...
@@ -85,7 +85,7 @@ export const evaluateSchema: ISchema = {
},
smile
:
{
type
:
'object'
,
default
:
1
,
default
:
5
,
'x-component'
:
'SmilingFace'
,
'x-component-props'
:
{
position
:
'right'
,
...
...
src/pages/transaction/supplierEvaluation/unevaluated/evaluate/index.tsx
View file @
a850461f
...
...
@@ -122,7 +122,7 @@ const EvaluateOrder: React.FC = () => {
};
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
<
10
)
{
if
(
file
.
size
/
1024
>
10
)
{
message
.
warning
(
'图片大小超过10M'
);
return
Promise
.
reject
();
}
...
...
src/pages/transaction/supplierEvaluation/unevaluated/evaluate/schema/index.ts
View file @
a850461f
...
...
@@ -85,7 +85,7 @@ export const evaluateSchema: ISchema = {
},
smile
:
{
type
:
'object'
,
default
:
1
,
default
:
5
,
'x-component'
:
'SmilingFace'
,
'x-component-props'
:
{
position
:
'right'
,
...
...
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