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
d37a62fd
authored
Dec 15, 2018
by
肖翔宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12.15
parent
ed4cfcfb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
10 deletions
+12
-10
config/dev.env.js
+1
-1
dist.zip
+0
-0
src/permission.js
+1
-1
src/views/bargain/bargainEdit.vue
+5
-3
src/views/code/index.vue
+4
-4
src/views/course/courseEdit.vue
+1
-1
No files found.
config/dev.env.js
View file @
d37a62fd
...
...
@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env')
module
.
exports
=
merge
(
prodEnv
,
{
NODE_ENV
:
'"development"'
,
BASE_API
:
'"http://192.168.
10.105
:9001/sharePiano"'
,
BASE_API
:
'"http://192.168.
0.13
:9001/sharePiano"'
,
})
//http://gxgqs.com/sharePiano
//http://192.168.10.105:9001/sharePiano
dist.zip
0 → 100644
View file @
d37a62fd
File added
src/permission.js
View file @
d37a62fd
...
...
@@ -5,7 +5,7 @@ import 'nprogress/nprogress.css'// Progress 进度条样式
import
{
Message
}
from
'element-ui'
import
{
getToken
}
from
'@/utils/auth'
// 验权
const
whiteList
=
[
'/
courseList'
,
'/courseEdit'
,
'/bargainList'
,
'/bargainEdit'
,
'/userCost'
,
'/pianoList'
,
'/pianoEdit'
,
'/code
'
]
// 不重定向白名单
const
whiteList
=
[
'/
login
'
]
// 不重定向白名单
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
NProgress
.
start
()
if
(
getToken
())
{
...
...
src/views/bargain/bargainEdit.vue
View file @
d37a62fd
...
...
@@ -114,6 +114,7 @@ export default {
],
picture
:
[{
required
:
true
,
message
:
'图片不能为空'
,
trigger
:
'blur'
}],
},
pictureName
:
'http://image.gxgqs.com/'
,
videoFlag
:
false
,
videoUploadPercent
:
0
,
pickerOptions1
:
{
...
...
@@ -178,15 +179,16 @@ export default {
this
.
temp
.
createDate
=
year
+
'-'
+
month
+
'-'
+
day
+
' '
+
hour
+
':'
+
minutes
+
':'
+
seconds
;
},
handleImgSuccess
(
response
,
file
)
{
this
.
temp
.
picture
=
file
.
url
;
console
.
log
(
fil
e
);
this
.
temp
.
picture
=
response
.
data
;
console
.
log
(
respons
e
);
},
handleImgRemove
(
file
)
{
this
.
temp
.
picture
=
undefined
},
beforeUpload
(
file
)
{
const
_URL
=
window
.
URL
||
window
.
webkitURL
const
_URL
=
window
.
URL
||
window
.
webkitURL
;
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
resolve
)
const
img
=
new
Image
()
img
.
src
=
_URL
.
createObjectURL
(
file
)
img
.
onload
=
function
()
{
...
...
src/views/code/index.vue
View file @
d37a62fd
...
...
@@ -187,6 +187,7 @@
this
.
list
=
data
;
this
.
isShowCode
=
false
;
console
.
log
(
this
.
list
);
this
.
refresh
();
})
},
openShowBargain
(
data
){
...
...
@@ -318,12 +319,13 @@
},
refresh
()
{
// 初始化查询参数
console
.
log
(
1
)
this
.
listQuery
=
{
currentPage
:
1
,
pageSize
:
10
}
this
.
tableKey
=
this
.
tableKey
+
1
this
.
getList
()
this
.
getList
()
;
},
refreshBargain
(){
this
.
$fetch
.
sysBargainStage
.
findAll
().
then
(({
data
})
=>
{
...
...
@@ -347,7 +349,6 @@
this
.
$message
.
warning
(
'请等待视频上传成功'
)
return
}
console
.
log
(
this
.
temp
);
this
.
$refs
[
'dataForm'
].
validate
(
valid
=>
{
if
(
true
)
{
const
tempData
=
Object
.
assign
({},
this
.
temp
)
...
...
@@ -358,7 +359,6 @@
type
:
'success'
})
this
.
isShowLog
=
false
;
this
.
back
();
this
.
refresh
();
})
}
else
{
...
...
@@ -368,7 +368,7 @@
type
:
'success'
})
this
.
isShowLog
=
false
;
this
.
back
();
console
.
log
(
1
)
this
.
refresh
();
})
}
...
...
src/views/course/courseEdit.vue
View file @
d37a62fd
...
...
@@ -187,7 +187,7 @@ export default {
this
.
temp
.
videoAddress
=
undefined
;
},
handleImgSuccess
(
response
,
file
)
{
this
.
temp
.
pictureAddress
=
file
.
url
;
this
.
temp
.
pictureAddress
=
response
.
data
;
console
.
log
(
file
);
},
handleImgRemove
(
file
)
{
...
...
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