Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
b2bc9d1a
提交
b2bc9d1a
编写于
5月 14, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
865e7d1c
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
38 行增加
和
16 行删除
+38
-16
opinionDialog.vue
src/components/opinionDialog.vue
+3
-10
env-config.js
src/utils/env-config.js
+5
-5
index.js
src/utils/index.js
+5
-0
patientsapi.js
src/utils/patients/patientsapi.js
+25
-1
未找到文件。
src/components/opinionDialog.vue
浏览文件 @
b2bc9d1a
...
@@ -83,6 +83,7 @@
...
@@ -83,6 +83,7 @@
<
script
>
<
script
>
import
fetch
from
'@/utils/fetch'
import
fetch
from
'@/utils/fetch'
import
{
envConfig
}
from
'@/utils/env-config'
import
{
envConfig
}
from
'@/utils/env-config'
import
{
getQiniuToken
,
submitFeedback
}
from
'@/utils/patients/patientsapi'
export
default
{
export
default
{
data
(){
data
(){
...
@@ -131,7 +132,7 @@
...
@@ -131,7 +132,7 @@
this
.
$message
.
warning
(
`最多上传
${
this
.
imgLimit
}
张图片`
);
this
.
$message
.
warning
(
`最多上传
${
this
.
imgLimit
}
张图片`
);
return
;
return
;
}
}
this
.
GET
(
'/file/image/token'
).
then
((
res
)
=>
{
getQiniuToken
(
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
this
.
imgToken
=
res
.
data
.
token
;
this
.
imgToken
=
res
.
data
.
token
;
}
else
{
}
else
{
...
@@ -156,15 +157,7 @@
...
@@ -156,15 +157,7 @@
contact_information
:
this
.
form
.
contact
,
contact_information
:
this
.
form
.
contact
,
url
:
this
.
urlString
,
url
:
this
.
urlString
,
};
};
fetch
({
submitFeedback
(
data
).
then
(
res
=>
{
url
:
'https://dev-api.yunqueyi.com/web/companys/feedback'
,
method
:
'POST'
,
data
,
headers
:{
noSysCode
:
true
,
"Content-Type"
:
'application/json'
}
}).
then
(
res
=>
{
this
.
dialogFormVisible
=
false
;
this
.
dialogFormVisible
=
false
;
this
.
innerVisible
=
true
;
this
.
innerVisible
=
true
;
})
})
...
...
src/utils/env-config.js
浏览文件 @
b2bc9d1a
...
@@ -10,7 +10,7 @@ export const envConfig = {
...
@@ -10,7 +10,7 @@ export const envConfig = {
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
saasUrl
:
'https://dev.yunqueyi.com
'
,
apiUrl
:
'https://dev-api.yunqueyi.com/
'
,
qiniuFileUrl
:
"https://dev-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://dev-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
...
@@ -21,7 +21,7 @@ export const envConfig = {
...
@@ -21,7 +21,7 @@ export const envConfig = {
},
},
dev
:
{
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
saasUrl
:
'https://dev.yunqueyi.com
'
,
apiUrl
:
'https://dev-api.yunqueyi.com/
'
,
qiniuFileUrl
:
"https://dev-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://dev-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
...
@@ -32,7 +32,7 @@ export const envConfig = {
...
@@ -32,7 +32,7 @@ export const envConfig = {
},
},
test
:
{
test
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
saasUrl
:
'https://test1.yunqueyi.com
'
,
apiUrl
:
'https://test1-api.yunqueyi.com/
'
,
qiniuFileUrl
:
"https://test1-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://test1-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
...
@@ -43,7 +43,7 @@ export const envConfig = {
...
@@ -43,7 +43,7 @@ export const envConfig = {
},
},
uat
:
{
uat
:
{
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
saasUrl
:
'https://uat.yunqueyi.com
'
,
apiUrl
:
'https://uat-api.yunqueyi.com/
'
,
qiniuFileUrl
:
"https://uat-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://uat-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://video.yunqueyi.com"
,
// 视频
qiniuResourceUrl
:
"https://video.yunqueyi.com"
,
// 视频
qiniuImgUrl
:
"https://files.yunqueyi.com"
,
qiniuImgUrl
:
"https://files.yunqueyi.com"
,
...
@@ -54,7 +54,7 @@ export const envConfig = {
...
@@ -54,7 +54,7 @@ export const envConfig = {
},
},
pro
:
{
pro
:
{
baseUrl
:
'https://sc.yunqueyi.com/'
,
baseUrl
:
'https://sc.yunqueyi.com/'
,
saasUrl
:
'https://api.yunqueyi.com
'
,
apiUrl
:
'https://api.yunqueyi.com/
'
,
qiniuFileUrl
:
"https://sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://video.yunqueyi.com"
,
qiniuResourceUrl
:
"https://video.yunqueyi.com"
,
qiniuImgUrl
:
"https://files.yunqueyi.com"
,
qiniuImgUrl
:
"https://files.yunqueyi.com"
,
...
...
src/utils/index.js
浏览文件 @
b2bc9d1a
...
@@ -177,6 +177,11 @@ export function getSaasDomain(url) {
...
@@ -177,6 +177,11 @@ export function getSaasDomain(url) {
return
getConfigByEnvType
(
'saasDomainUrl'
)
+
url
return
getConfigByEnvType
(
'saasDomainUrl'
)
+
url
}
}
// 获取saas端api域名地址
export
function
getSaasApiDomain
(
url
)
{
return
getConfigByEnvType
(
'apiUrl'
)
+
url
}
// 根据不同环境,生成URL
// 根据不同环境,生成URL
function
getConfigByEnvType
(
urlType
)
{
function
getConfigByEnvType
(
urlType
)
{
return
envConfig
[
process
.
env
.
BUILD_ENV
][
urlType
]
return
envConfig
[
process
.
env
.
BUILD_ENV
][
urlType
]
...
...
src/utils/patients/patientsapi.js
浏览文件 @
b2bc9d1a
import
fetch
from
'../fetch'
;
import
fetch
from
'../fetch'
;
import
{
getBaseUrl
,
getSaasDomain
}
from
'@/utils/index'
import
{
getBaseUrl
,
getSaasDomain
,
getSaasApiDomain
}
from
'@/utils/index'
const
headers
=
{
const
headers
=
{
...
@@ -16,4 +16,28 @@ export const getDiseasesList = (params) => {
...
@@ -16,4 +16,28 @@ export const getDiseasesList = (params) => {
})
})
};
};
// 获取七牛上传token
export
const
getQiniuToken
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`file/image/token`
),
method
:
'get'
,
params
:
params
,
})
};
// 意见反馈 getSaasApiDomain
export
const
submitFeedback
=
(
data
)
=>
{
return
fetch
({
headers
:
{
noSysCode
:
true
,
"Content-Type"
:
'application/json'
},
url
:
getSaasApiDomain
(
`web/companys/feedback`
),
method
:
'post'
,
data
:
data
,
})
};
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录