Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
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
吴学德
gdtel-gztel-school-center-ui
Commits
e4e0aeae
Commit
e4e0aeae
authored
Mar 17, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
cb8b8e8e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
src/views/poster/PosterList.vue
+1
-10
src/views/school-center/order/order.vue
+1
-1
No files found.
src/views/poster/PosterList.vue
View file @
e4e0aeae
...
...
@@ -144,16 +144,6 @@
},
methods
:{
transformFile
(
file
)
{
const
isJpgOrPng
=
file
.
type
===
'image/jpeg'
||
file
.
type
===
'image/png'
;
if
(
!
isJpgOrPng
)
{
this
.
$message
.
error
(
'You can only upload JPG file!'
);
return
isJpgOrPng
&&
isLt2M
;
}
const
isLt2M
=
file
.
size
/
1024
/
1024
<
5
;
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'文件不能超过5MB!'
);
return
isJpgOrPng
&&
isLt2M
;
}
return
new
Promise
(
resolve
=>
{
const
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
file
);
...
...
@@ -172,6 +162,7 @@
ctx
.
fillRect
(
0
,
0
,
canvas
.
width
,
canvas
.
height
)
ctx
.
drawImage
(
img
,
0
,
0
,
width
,
height
)
const
picture
=
canvas
.
toDataURL
(
'image/jpeg'
)
console
.
log
(
picture
)
return
uploadPicture
({
picture
}).
then
(
res
=>
{
if
(
res
.
state
==
'error'
){
this
.
$message
.
error
(
res
.
msg
,
5
);
...
...
src/views/school-center/order/order.vue
View file @
e4e0aeae
...
...
@@ -86,7 +86,7 @@
<a-dropdown>
<a-menu
slot=
"overlay"
@
click=
"handleMenuClick"
>
<a-menu-item
key=
"1"
>
<a-icon
type=
"arrow-up"
/>
批量处理
<a-icon
type=
"arrow-up"
/>
受理单
</a-menu-item>
<a-menu-item
key=
"2"
>
<a-icon
type=
"arrow-up"
/>
快递
...
...
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