Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
钟尚武
sun
Commits
79ece97f
Commit
79ece97f
authored
Nov 29, 2018
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制上传图片类型
parent
5bd469c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
singleImage3.vue
vu/src/components/Upload/singleImage3.vue
+3
-1
list.vue
vu/src/views/group/list.vue
+4
-0
PushDetail.vue
vu/src/views/push/components/PushDetail.vue
+1
-1
list.vue
vu/src/views/star/list.vue
+1
-0
No files found.
vu/src/components/Upload/singleImage3.vue
View file @
79ece97f
...
...
@@ -7,6 +7,8 @@
:on-success=
"handleImageSuccess"
class=
"image-uploader"
drag
accept=
"image/png,image/gif,image/jpg,image/jpeg"
:before-upload=
"handleBeforeUpload"
action=
"/api/file/upload"
>
<i
class=
"el-icon-upload"
/>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
...
...
@@ -66,7 +68,7 @@ export default {
handleImageSuccess
(
file
)
{
this
.
emitInput
(
file
.
data
.
file_url
)
},
b
eforeUpload
()
{
handleB
eforeUpload
()
{
const
_self
=
this
return
new
Promise
((
resolve
,
reject
)
=>
{
getToken
().
then
(
response
=>
{
...
...
vu/src/views/group/list.vue
View file @
79ece97f
...
...
@@ -196,6 +196,10 @@ export default {
OffLineOrOnLine
({
type
:
val
,
ids
:
str
}).
then
(
response
=>
{
this
.
multipleSelection
=
[];
this
.
$message
.
success
(
response
.
data
.
data
.
message
);
setTimeout
(()
=>
{
this
.
$router
.
go
(
0
)
},
1000
)
})
},
}
...
...
vu/src/views/push/components/PushDetail.vue
View file @
79ece97f
...
...
@@ -128,7 +128,7 @@ export default {
userListOptions
:
[],
expireTimeOption
:
{
disabledDate
(
date
){
return
date
.
getTime
()
<=
Date
.
now
()
;
return
date
.
getTime
()
<=
Date
.
now
()
-
86400000
;
}
},
rules
:
{
...
...
vu/src/views/star/list.vue
View file @
79ece97f
...
...
@@ -143,6 +143,7 @@ export default {
OffLineOrOnLine
({
type
:
val
,
ids
:
str
}).
then
(
response
=>
{
this
.
multipleSelection
=
[];
this
.
$message
.
success
(
response
.
data
.
data
.
message
);
})
},
handleFilter
()
{
...
...
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