Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖翔宇
/
admin-vue
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4a692ed1
authored
Dec 20, 2018
by
肖翔宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12.20
parent
cf8108c0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
config/dev.env.js
+1
-1
dist.zip
+0
-0
src/permission.js
+1
-1
src/views/course/index.vue
+3
-3
src/views/piano/pianoEdit.vue
+4
-2
No files found.
config/dev.env.js
View file @
4a692ed1
...
@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env')
...
@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env')
module
.
exports
=
merge
(
prodEnv
,
{
module
.
exports
=
merge
(
prodEnv
,
{
NODE_ENV
:
'"development"'
,
NODE_ENV
:
'"development"'
,
BASE_API
:
'"http://
gxgqs.com
/sharePiano"'
,
BASE_API
:
'"http://
192.168.10.106:9001
/sharePiano"'
,
})
})
//http://gxgqs.com/sharePiano
//http://gxgqs.com/sharePiano
//http://192.168.10.105:9001/sharePiano
//http://192.168.10.105:9001/sharePiano
dist.zip
View file @
4a692ed1
No preview for this file type
src/permission.js
View file @
4a692ed1
...
@@ -5,7 +5,7 @@ import 'nprogress/nprogress.css'// Progress 进度条样式
...
@@ -5,7 +5,7 @@ import 'nprogress/nprogress.css'// Progress 进度条样式
import
{
Message
}
from
'element-ui'
import
{
Message
}
from
'element-ui'
import
{
getToken
}
from
'@/utils/auth'
// 验权
import
{
getToken
}
from
'@/utils/auth'
// 验权
const
whiteList
=
[
'/login'
,
'/courseList'
,
'/courseEdit'
,
'/bargainList'
,
'/bargainEdit'
]
// 不重定向白名单
const
whiteList
=
[
'/login'
,
'/courseList'
,
'/courseEdit'
,
'/bargainList'
,
'/bargainEdit'
,
'/pianoList'
,
'/pianoEdit'
,
'/code'
]
// 不重定向白名单
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
NProgress
.
start
()
NProgress
.
start
()
if
(
getToken
())
{
if
(
getToken
())
{
...
...
src/views/course/index.vue
View file @
4a692ed1
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
</el-upload>
</el-upload>
<el-alert
<el-alert
show-icon
show-icon
title=
"请保证视频格式正确,且不超过20M。视频格式如mp4、ogg、flv、avi、wmv、rmvb"
title=
"请保证视频格式正确,且不超过20
0
M。视频格式如mp4、ogg、flv、avi、wmv、rmvb"
type=
"info"
type=
"info"
:closable=
"false"
:closable=
"false"
>
>
...
@@ -314,13 +314,13 @@
...
@@ -314,13 +314,13 @@
this
.
types
.
courseName
=
undefined
;
this
.
types
.
courseName
=
undefined
;
},
},
beforeUploadVideo
(
file
)
{
beforeUploadVideo
(
file
)
{
const
isLt10M
=
file
.
size
/
1024
/
1024
<
20
const
isLt10M
=
file
.
size
/
1024
/
1024
<
20
0
if
([
'video/mp4'
,
'video/ogg'
,
'video/flv'
,
'video/avi'
,
'video/wmv'
,
'video/rmvb'
].
indexOf
(
file
.
type
)
===
-
1
)
{
if
([
'video/mp4'
,
'video/ogg'
,
'video/flv'
,
'video/avi'
,
'video/wmv'
,
'video/rmvb'
].
indexOf
(
file
.
type
)
===
-
1
)
{
this
.
$message
.
error
(
'请上传正确的视频格式'
)
this
.
$message
.
error
(
'请上传正确的视频格式'
)
return
false
return
false
}
}
if
(
!
isLt10M
)
{
if
(
!
isLt10M
)
{
this
.
$message
.
error
(
'上传视频大小不能超过20MB哦!'
)
this
.
$message
.
error
(
'上传视频大小不能超过20
0
MB哦!'
)
return
false
return
false
}
}
},
},
...
...
src/views/piano/pianoEdit.vue
View file @
4a692ed1
...
@@ -177,16 +177,18 @@
...
@@ -177,16 +177,18 @@
// 返回
// 返回
saveId
(
e
){
saveId
(
e
){
console
.
log
(
e
);
console
.
log
(
e
);
var
index
=
this
.
bannerType
.
indexOf
(
this
.
painoId
);
var
index
=
this
.
temp
.
abc
.
indexOf
(
this
.
painoId
);
this
.
bannerType
.
splice
(
index
,
1
);
this
.
bannerType
.
splice
(
index
,
1
);
this
.
temp
.
sysCodeForPianoId
.
push
(
this
.
painoId
);
this
.
temp
.
sysCodeForPianoId
.
push
(
this
.
painoId
);
this
.
painoId
=
0
;
this
.
painoId
=
0
;
this
.
temp
.
abc
=
this
.
bannerType
;
},
},
deleteId
(
id
){
deleteId
(
id
){
console
.
log
(
id
);
console
.
log
(
id
);
var
index
=
this
.
temp
.
sysCodeForPianoId
.
indexOf
(
id
);
var
index
=
this
.
temp
.
sysCodeForPianoId
.
indexOf
(
id
);
this
.
temp
.
sysCodeForPianoId
.
splice
(
index
,
1
);
this
.
temp
.
sysCodeForPianoId
.
splice
(
index
,
1
);
this
.
bannerType
.
push
(
id
)
this
.
bannerType
.
push
(
id
);
this
.
temp
.
abc
=
this
.
bannerType
;
},
},
backList
()
{
backList
()
{
this
.
$confirm
(
'是否放弃当前编辑信息?'
,
'提示'
,
{
this
.
$confirm
(
'是否放弃当前编辑信息?'
,
'提示'
,
{
...
...
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