Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
09c2bede
提交
09c2bede
编写于
3月 18, 2019
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
注销路径修改
上级
9029ace9
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
32 行增加
和
13 行删除
+32
-13
common.scss
src/style/common.scss
+3
-0
envConfig.js
src/utils/envConfig.js
+10
-5
index.js
src/utils/index.js
+5
-0
create-component.vue
src/views/education/create-component.vue
+6
-5
header.vue
src/views/layout/header.vue
+8
-3
未找到文件。
src/style/common.scss
浏览文件 @
09c2bede
...
@@ -185,6 +185,9 @@ html,body{
...
@@ -185,6 +185,9 @@ html,body{
.el-message-box__status
{
.el-message-box__status
{
display
:
none
;
display
:
none
;
}
}
.el-message-box__message
{
text-align
:
center
}
.el-message-box__btns
{
.el-message-box__btns
{
text-align
:
center
!
important
;
text-align
:
center
!
important
;
button
{
button
{
...
...
src/utils/envConfig.js
浏览文件 @
09c2bede
...
@@ -14,7 +14,8 @@ export const envConfig = {
...
@@ -14,7 +14,8 @@ export const envConfig = {
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
loginUrl
:
'https://dev-saas.yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://dev-saas.yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'http://localhost:8090/PICA_SSO_FE/html/pica_login.html'
innerLoginUrl
:
'http://localhost:8090/PICA_SSO_FE/html/pica_index.html'
,
yuequeyiIndexUrl
:
'https://dev-saas.yunqueyi.com/pica_index.html'
},
},
dev
:
{
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/portal/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/portal/'
,
...
@@ -22,7 +23,8 @@ export const envConfig = {
...
@@ -22,7 +23,8 @@ export const envConfig = {
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
loginUrl
:
'https://dev-saas.yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://dev-saas.yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'https://dev-sso.yunqueyi.com/PICA_SSO_FE/html/pica_login.html'
innerLoginUrl
:
'https://dev-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
yuequeyiIndexUrl
:
'https://dev-saas.yunqueyi.com/pica_index.html'
},
},
test
:
{
test
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/portal/'
,
baseUrl
:
'https://test1-sc.yunqueyi.com/portal/'
,
...
@@ -30,7 +32,8 @@ export const envConfig = {
...
@@ -30,7 +32,8 @@ export const envConfig = {
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
loginUrl
:
'https://test1-saas.yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://test1-saas.yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'https://test1-sso.yunqueyi.com/PICA_SSO_FE/html/pica_login.html'
innerLoginUrl
:
'https://test1-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
yuequeyiIndexUrl
:
'https://test-saas.yunqueyi.com/pica_index.html'
},
},
uat
:
{
uat
:
{
baseUrl
:
'https://uat-sc.yunqueyi.com/portal/'
,
baseUrl
:
'https://uat-sc.yunqueyi.com/portal/'
,
...
@@ -38,7 +41,8 @@ export const envConfig = {
...
@@ -38,7 +41,8 @@ export const envConfig = {
qiniuResourceUrl
:
"https://videos.yunqueyi.com"
,
// 视频
qiniuResourceUrl
:
"https://videos.yunqueyi.com"
,
// 视频
qiniuImgUrl
:
"https://file.yunqueyi.com"
,
qiniuImgUrl
:
"https://file.yunqueyi.com"
,
loginUrl
:
'https://uat-saas.yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://uat-saas.yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'https://uat-sso.yunqueyi.com/PICA_SSO_FE/html/pica_login.html'
innerLoginUrl
:
'https://uat-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
yuequeyiIndexUrl
:
'https://uat-saas.yunqueyi.com/pica_index.html'
},
},
pro
:
{
pro
:
{
baseUrl
:
'https://sc.yunqueyi.com/portal/'
,
baseUrl
:
'https://sc.yunqueyi.com/portal/'
,
...
@@ -46,6 +50,7 @@ export const envConfig = {
...
@@ -46,6 +50,7 @@ export const envConfig = {
qiniuResourceUrl
:
"https://videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://file.yunqueyi.com"
,
qiniuImgUrl
:
"https://file.yunqueyi.com"
,
loginUrl
:
'https://saas.yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://saas.yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'https://sso.yunqueyi.com/PICA_SSO_FE/html/pica_login.html'
innerLoginUrl
:
'https://sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
yuequeyiIndexUrl
:
'https://saas.yunqueyi.com/pica_index.html'
}
}
}
}
src/utils/index.js
浏览文件 @
09c2bede
...
@@ -159,6 +159,11 @@ export function getInnerLoginUrl() {
...
@@ -159,6 +159,11 @@ export function getInnerLoginUrl() {
return
getConfigByEnvType
(
'innerLoginUrl'
)
return
getConfigByEnvType
(
'innerLoginUrl'
)
}
}
// 云鹊医首页
export
function
getYunQueYiUrl
(
param
)
{
return
getConfigByEnvType
(
'yuequeyiIndexUrl'
)
+
param
}
// 七牛上传视频和图片
// 七牛上传视频和图片
export
function
uploadVideo
()
{
export
function
uploadVideo
()
{
return
getConfigByEnvType
(
'qiniuResourceUrl'
)
return
getConfigByEnvType
(
'qiniuResourceUrl'
)
...
...
src/views/education/create-component.vue
浏览文件 @
09c2bede
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-col>
</el-col>
<el-col
:span=
"10"
v-if=
"hasCertificate"
>
<el-col
:span=
"10"
v-if=
"hasCertificate"
>
<el-form-item
label=
"选择证书"
prop=
"certificateId"
>
<el-form-item
label=
"选择证书"
prop=
"certificateId"
>
<el-select
v-model=
"portalComponent.certificateId"
@
change=
"selectChange"
placeholder=
"请选择资源包"
style=
"width:
60%
;"
>
<el-select
v-model=
"portalComponent.certificateId"
@
change=
"selectChange"
placeholder=
"请选择资源包"
style=
"width:
352px
;"
>
<el-option
<el-option
v-for=
"(item,index) in certificateIdSelect"
v-for=
"(item,index) in certificateIdSelect"
:key=
"index"
:key=
"index"
...
@@ -555,6 +555,8 @@ export default {
...
@@ -555,6 +555,8 @@ export default {
vm
.
getModuleData
()
vm
.
getModuleData
()
vm
.
getTestListData
()
vm
.
getTestListData
()
vm
.
getCourseData
()
vm
.
getCourseData
()
}
else
{
vm
.
$message
.
info
(
"暂存成功!"
)
}
}
}
}
})
})
...
@@ -564,13 +566,10 @@ export default {
...
@@ -564,13 +566,10 @@ export default {
const
isJPG
=
file
.
type
===
'image/jpeg'
const
isJPG
=
file
.
type
===
'image/jpeg'
const
isPNG
=
file
.
type
===
'image/png'
const
isPNG
=
file
.
type
===
'image/png'
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
if
(
!
isJPG
&&
!
isPNG
)
{
if
(
!
isJPG
&&
!
isPNG
&&
!
isLt2M
)
{
vm
.
$message
.
error
(
'图片不符合规范,请根据规范上传图片'
)
vm
.
$message
.
error
(
'图片不符合规范,请根据规范上传图片'
)
return
;
return
;
}
}
if
(
!
isLt2M
)
{
vm
.
$message
.
error
(
'图片不符合规范,请根据规范上传图片'
);
}
let
_img
=
new
FileReader
()
let
_img
=
new
FileReader
()
_img
.
readAsDataURL
(
file
)
_img
.
readAsDataURL
(
file
)
_img
.
onload
=
function
(
theFile
)
{
_img
.
onload
=
function
(
theFile
)
{
...
@@ -925,6 +924,8 @@ export default {
...
@@ -925,6 +924,8 @@ export default {
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
if
(
flag
==
2
)
{
if
(
flag
==
2
)
{
vm
.
$router
.
push
({
path
:
'item-component'
})
vm
.
$router
.
push
({
path
:
'item-component'
})
}
else
{
vm
.
$message
.
info
(
"暂存成功!"
)
}
}
}
else
{
}
else
{
vm
.
$message
({
vm
.
$message
({
...
...
src/views/layout/header.vue
浏览文件 @
09c2bede
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getLoginUrl
,
getInnerLoginUrl
}
from
'../../utils/index.js'
import
{
getLoginUrl
,
getInnerLoginUrl
,
getYunQueYiUrl
}
from
'../../utils/index.js'
import
{
mapGetters
}
from
'vuex'
let
vm
=
null
let
vm
=
null
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -39,7 +40,11 @@ export default {
...
@@ -39,7 +40,11 @@ export default {
systemInfoList
:
[]
systemInfoList
:
[]
}
}
},
},
computed
:
{},
computed
:
{
...
mapGetters
([
'_token'
])
},
created
()
{
created
()
{
vm
=
this
vm
=
this
},
},
...
@@ -54,7 +59,7 @@ export default {
...
@@ -54,7 +59,7 @@ export default {
}
}
}
}
if
(
command
===
'forward'
)
{
if
(
command
===
'forward'
)
{
window
.
location
.
href
=
'https://www.yunqueyi.com/'
window
.
location
.
href
=
getYunQueYiUrl
(
'?token='
+
vm
.
_token
)
}
}
}
}
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录