Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
f6236ec2
提交
f6236ec2
编写于
8月 05, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
浙江项目特殊处理
上级
fa08f798
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
25 行增加
和
19 行删除
+25
-19
env-config.js
src/utils/env-config.js
+4
-4
fetch.js
src/utils/fetch.js
+1
-1
item-list.vue
src/views/learning/item-list.vue
+20
-14
未找到文件。
src/utils/env-config.js
浏览文件 @
f6236ec2
...
@@ -10,8 +10,8 @@ export const envConfig = {
...
@@ -10,8 +10,8 @@ export const envConfig = {
// baseUrl: 'https://uat-sc.yunqueyi.com/',
// baseUrl: 'https://uat-sc.yunqueyi.com/',
// baseUrl: 'http://10.177.15.150:10401/',
// baseUrl: 'http://10.177.15.150:10401/',
// baseUrl: 'http://10.177.15.150:11905/',
// baseUrl: 'http://10.177.15.150:11905/',
//
baseUrl: 'https://dev-sc.yunqueyi.com/',
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
//
baseUrl: 'https://test1-sc.yunqueyi.com/',
apiUrl
:
'https://dev-api.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"
,
...
@@ -26,8 +26,8 @@ export const envConfig = {
...
@@ -26,8 +26,8 @@ export const envConfig = {
workApiSrc
:
'https://dev-work.yunqueyi.com'
,
workApiSrc
:
'https://dev-work.yunqueyi.com'
,
// reportUrl: 'http://10.177.15.150:10401/',
// reportUrl: 'http://10.177.15.150:10401/',
// reportUrl: 'http://192.168.140.13:10401/',
// reportUrl: 'http://192.168.140.13:10401/',
//
reportUrl: 'https://dev-sc-report.yunqueyi.com/',
reportUrl
:
'https://dev-sc-report.yunqueyi.com/'
,
reportUrl
:
'https://test1-sc-report.yunqueyi.com/'
,
//
reportUrl: 'https://test1-sc-report.yunqueyi.com/',
},
},
dev
:
{
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
...
...
src/utils/fetch.js
浏览文件 @
f6236ec2
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
}
}
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
config
.
headers
[
'token'
]
=
'
E5F82EDD958941C29BCDDDED410ACDB3
'
;
config
.
headers
[
'token'
]
=
'
2CD0420B09584AFAA2B6CFD85252E1AB
'
;
}
else
{
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
}
...
...
src/views/learning/item-list.vue
浏览文件 @
f6236ec2
...
@@ -206,6 +206,7 @@ export default {
...
@@ -206,6 +206,7 @@ export default {
dialogVisible
:
false
,
dialogVisible
:
false
,
dialogUpdate
:
false
,
dialogUpdate
:
false
,
displayExam
:
2
,
displayExam
:
2
,
flag
:
1
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -221,7 +222,7 @@ export default {
...
@@ -221,7 +222,7 @@ export default {
this
.
projectId
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"id"
);
this
.
projectId
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"id"
);
this
.
curmbThird
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"projectName"
);
this
.
curmbThird
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"projectName"
);
this
.
getDisplay
();
this
.
getDisplay
();
this
.
getRegionOption
();
//
this.getRegionOption();
},
},
mounted
:
function
()
{
mounted
:
function
()
{
commonUtil
.
resizeHeight
();
commonUtil
.
resizeHeight
();
...
@@ -239,6 +240,9 @@ export default {
...
@@ -239,6 +240,9 @@ export default {
vm
.
showOriginal
=
res
.
data
.
status
;
vm
.
showOriginal
=
res
.
data
.
status
;
vm
.
roleType
=
res
.
data
.
roleType
;
vm
.
roleType
=
res
.
data
.
roleType
;
vm
.
displayExam
=
res
.
data
.
existExam
;
vm
.
displayExam
=
res
.
data
.
existExam
;
vm
.
flag
=
res
.
data
.
flag
;
vm
.
getRegionOption
();
}
}
});
});
},
},
...
@@ -354,19 +358,21 @@ export default {
...
@@ -354,19 +358,21 @@ export default {
},
},
//获取地区
//获取地区
getRegionOption
()
{
getRegionOption
()
{
// this.optionsRegion = operationData.getRegionOption();
if
(
vm
.
flag
==
2
&&
vm
.
roleType
==
"L1"
)
{
this
.
optionsRegion
=
[{
id
:
11
,
provinceId
:
330
,
provinceName
:
"浙江省"
,
value
:
330
,
label
:
"浙江省"
}]
let
req
=
{};
}
else
{
openLoading
(
vm
);
let
req
=
{};
vm
.
GET
(
"basic-data/position/provinces"
,
req
).
then
(
res
=>
{
openLoading
(
vm
);
closeLoading
(
vm
);
vm
.
GET
(
"basic-data/position/provinces"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
closeLoading
(
vm
);
this
.
optionsRegion
=
operationData
.
setRegionOption
(
if
(
res
.
code
==
"000000"
)
{
res
.
data
.
provinceList
this
.
optionsRegion
=
operationData
.
setRegionOption
(
);
res
.
data
.
provinceList
// console.log("this.optionsRegion", this.optionsRegion);
);
}
// console.log("this.optionsRegion", this.optionsRegion);
});
}
});
}
},
},
getOrganizationList
()
{
getOrganizationList
()
{
this
.
organizationList
=
[
this
.
organizationList
=
[
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录