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
提交
128369d6
提交
128369d6
编写于
7月 19, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加dev环境
上级
45d3be6e
变更
13
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
136 行增加
和
68 行删除
+136
-68
env-config.js
src/utils/env-config.js
+5
-2
index.js
src/utils/index.js
+4
-0
mixins.js
src/utils/mixins.js
+19
-1
course-training.vue
src/views/learning/course-training.vue
+10
-4
data-alignment.vue
src/views/learning/data-alignment.vue
+3
-3
export-download.vue
src/views/learning/export-download.vue
+6
-0
item-course-analysis.vue
src/views/learning/item-course-analysis.vue
+39
-18
item-crowd-analysis.vue
src/views/learning/item-crowd-analysis.vue
+1
-1
item-examination-analysis.vue
src/views/learning/item-examination-analysis.vue
+27
-15
item-list.vue
src/views/learning/item-list.vue
+1
-1
item-part-in.vue
src/views/learning/item-part-in.vue
+19
-21
name-list.vue
src/views/learning/name-list.vue
+1
-1
report-list.vue
src/views/learning/report-list.vue
+1
-1
未找到文件。
src/utils/env-config.js
浏览文件 @
128369d6
...
...
@@ -8,9 +8,9 @@ export const envConfig = {
// baseUrl: 'https://test1-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: 'https://dev-sc.yunqueyi.com/',
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
qiniuFileUrl
:
"https://dev-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
...
...
@@ -23,6 +23,8 @@ export const envConfig = {
saasDomainUrl
:
'https://dev-saas.yunqueyi.com/'
,
workApiUrl
:
'https://dev-work.yunqueyi.com/web'
,
workApiSrc
:
'https://dev-work.yunqueyi.com'
,
// reportUrl: 'http://10.177.15.150:10401/',
reportUrl
:
'https://dev-sc-report.yunqueyi.com/'
,
},
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
...
...
@@ -37,6 +39,7 @@ export const envConfig = {
saasDomainUrl
:
'https://dev-saas.yunqueyi.com/'
,
workApiUrl
:
'https://dev-work.yunqueyi.com/web'
,
workApiSrc
:
'https://dev-work.yunqueyi.com'
,
reportUrl
:
'https://dev-sc-report.yunqueyi.com/'
,
},
test
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
...
...
src/utils/index.js
浏览文件 @
128369d6
...
...
@@ -207,3 +207,7 @@ function getConfigByEnvType(urlType) {
}
// 获取report服务器域名地址
export
function
getReportUrl
(
url
)
{
return
getConfigByEnvType
(
'reportUrl'
)
+
url
}
\ No newline at end of file
src/utils/mixins.js
浏览文件 @
128369d6
import
fetch
from
'@/utils/fetch'
import
{
getBaseUrl
,
getWorkApi
}
from
'@/utils/index'
import
{
getBaseUrl
,
get
ReportUrl
,
get
WorkApi
}
from
'@/utils/index'
module
.
exports
=
{
data
:
function
()
{
...
...
@@ -153,6 +153,16 @@ module.exports = {
data
:
para
})
},
reportGET
(
api
,
para
,
callback
,
str
)
{
// para.token = para.token || this.token || "343BCABC890349ACAF357FA79122F9FE"
let
url
=
api
+
this
.
getUrlPara
(
para
)
url
=
encodeURI
(
url
);
return
fetch
({
url
:
getReportUrl
(
url
),
method
:
'get'
,
data
:
para
})
},
// saas-GET请求
saasGET
(
api
,
para
)
{
// para.token = para.token || this.token || "343BCABC890349ACAF357FA79122F9FE"
...
...
@@ -186,6 +196,14 @@ module.exports = {
data
:
para
})
},
reportPOST
(
api
,
para
,
callback
)
{
// para.token = para.token || this.token || "343BCABC890349ACAF357FA79122F9FE"
return
fetch
({
url
:
getReportUrl
(
api
),
method
:
'post'
,
data
:
para
})
},
// 通用saas-POST请求
saasPOST
(
api
,
para
,
cType
)
{
// para.token = para.token || this.token || "343BCABC890349ACAF357FA79122F9FE"
...
...
src/views/learning/course-training.vue
浏览文件 @
128369d6
...
...
@@ -89,6 +89,12 @@
<span>
{{
scope
.
row
.
gradeName
}}
</span>
</
template
>
</el-table-column>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/no-content1.png"
>
<p>
没有相关数据,请重新选择查询范围
</p>
</div>
</div>
</el-table>
<div
class=
"pagination"
>
<el-pagination
...
...
@@ -178,7 +184,7 @@ export default {
projectId
:
vm
.
queryData
.
projectId
,
hospitalIds
:
vm
.
queryData
.
ids
,
};
vm
.
GET
(
"report/portal/getHostitalName"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portal/getHostitalName"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
}
});
...
...
@@ -213,7 +219,7 @@ export default {
};
console
.
log
(
"course req"
,
req
);
openLoading
(
vm
);
vm
.
GET
(
"report/portalProjectCourse/getUserList"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portalProjectCourse/getUserList"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
tableData
=
res
.
data
.
list
;
...
...
@@ -225,7 +231,7 @@ export default {
let
reqRank
=
{
projectId
:
query
.
projectId
,
}
vm
.
GET
(
"report/portalProjectExam/getGradeList"
,
reqRank
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portalProjectExam/getGradeList"
,
reqRank
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
vm
.
rankList
=
res
.
data
.
list
;
}
...
...
@@ -243,7 +249,7 @@ export default {
};
console
.
log
(
"exam req"
,
req
);
openLoading
(
vm
);
vm
.
GET
(
"report/portalProjectExam/getUserList"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portalProjectExam/getUserList"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
tableData
=
res
.
data
.
list
;
...
...
src/views/learning/data-alignment.vue
浏览文件 @
128369d6
...
...
@@ -88,7 +88,7 @@
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/no-content1.png"
/>
<p>
没有
查询到相关结果
</p>
<p>
没有
相关数据,请重新选择查询范围
</p>
</div>
</div>
</el-table>
...
...
@@ -251,7 +251,7 @@ export default {
pageSize
:
vm
.
formData
.
pageSize
,
};
openLoading
(
vm
);
vm
.
GET
(
"report/portal/getProjectData"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portal/getProjectData"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
tableData
=
res
.
data
.
projectData
;
...
...
@@ -313,7 +313,7 @@ export default {
joinDoctorIdList
:
operationData
.
getAjustmentList
(
vm
.
changedDoctor
),
};
openLoading
(
vm
);
vm
.
POST
(
"report/portal/peopleAdjustment"
,
req
).
then
(
res
=>
{
vm
.
report
POST
(
"report/portal/peopleAdjustment"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
vm
.
$message
(
res
.
message
);
if
(
res
.
code
==
"000000"
)
{
...
...
src/views/learning/export-download.vue
浏览文件 @
128369d6
...
...
@@ -21,6 +21,12 @@
>
{{
scope
.
row
.
buttonText
}}
</el-button>
</
template
>
</el-table-column>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/no-content1.png"
>
<p>
没有相关数据,请重新选择查询范围
</p>
</div>
</div>
</el-table>
<div
class=
"pagination"
>
<el-pagination
...
...
src/views/learning/item-course-analysis.vue
浏览文件 @
128369d6
...
...
@@ -32,6 +32,12 @@
>
查看名单
</el-button>
</
template
>
</el-table-column>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/no-content1.png"
>
<p>
没有相关数据,请重新选择查询范围
</p>
</div>
</div>
</el-table>
<div
class=
"pagination"
>
<el-pagination
...
...
@@ -70,19 +76,19 @@ export default {
data
()
{
return
{
cardData
:
[
{
title
:
'项目所有课程数'
,
num
:
0
,
unit
:
'门课程'
,
},{
title
:
'项目所有课程总时长'
,
num
:
0
,
unit
:
'分钟'
,
},{
title
:
'项目人均学习时长'
,
num
:
0
,
unit
:
'分钟'
,
}
//
{
//
title: '项目所有课程数',
//
num: 0,
//
unit: '门课程',
//
},{
//
title: '项目所有课程总时长',
//
num: 0,
//
unit: '分钟',
//
},{
//
title: '项目人均学习时长',
//
num: 0,
//
unit: '分钟',
//
}
],
tableData
:
[],
totalRows
:
0
,
...
...
@@ -112,9 +118,24 @@ export default {
methods
:
{
setCardData
(
data
)
{
vm
.
totalRows
=
data
.
projectCourseCount
;
vm
.
cardData
[
0
].
num
=
data
.
projectCourseCount
;
vm
.
cardData
[
1
].
num
=
data
.
projectCourseTotalTime
;
vm
.
cardData
[
2
].
num
=
data
.
projectAvgStudyTime
;
vm
.
cardData
=
[
{
title
:
'项目所有课程数'
,
num
:
data
.
projectCourseCount
,
unit
:
'门课程'
,
},{
title
:
'项目所有课程总时长'
,
num
:
data
.
projectCourseTotalTime
,
unit
:
'分钟'
,
},{
title
:
'项目人均学习时长'
,
num
:
data
.
projectAvgStudyTime
,
unit
:
'分钟'
,
}
];
// vm.cardData[0].num = data.projectCourseCount;
// vm.cardData[1].num = data.projectCourseTotalTime;
// vm.cardData[2].num = data.projectAvgStudyTime;
},
search
()
{
if
(
vm
.
formInline
.
region
.
length
==
0
)
{
...
...
@@ -130,7 +151,7 @@ export default {
};
console
.
log
(
"3 req"
,
req
);
openLoading
(
vm
);
vm
.
GET
(
"report/portalProjectCourse/getTotal"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portalProjectCourse/getTotal"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
setCardData
(
res
.
data
)
...
...
@@ -139,7 +160,7 @@ export default {
let
reqList
=
req
;
reqList
.
pageNo
=
vm
.
pageNo
;
reqList
.
pageSize
=
vm
.
pageSize
;
vm
.
GET
(
"report/portalProjectCourse/getCourseList"
,
reqList
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portalProjectCourse/getCourseList"
,
reqList
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
tableData
=
res
.
data
.
list
;
...
...
src/views/learning/item-crowd-analysis.vue
浏览文件 @
128369d6
...
...
@@ -93,7 +93,7 @@ export default {
};
console
.
log
(
"2 req"
,
req
);
openLoading
(
vm
);
vm
.
GET
(
"report/portal/getPeoplesDetails"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portal/getPeoplesDetails"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
this
.
crowdData
=
res
.
data
;
...
...
src/views/learning/item-examination-analysis.vue
浏览文件 @
128369d6
...
...
@@ -26,7 +26,7 @@
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/no-content1.png"
>
<p>
没有
查询到相关结果
</p>
<p>
没有
相关数据,请重新选择查询范围
</p>
</div>
</div>
</el-table>
...
...
@@ -73,16 +73,16 @@ export default {
projectId
:
''
,
tableData
:
[],
cardData
:
[
{
title
:
"项目所有考试数"
,
num
:
0
,
unit
:
"门考试"
},
{
title
:
"项目所有考题数"
,
num
:
0
,
unit
:
"道题"
}
//
{
//
title: "项目所有考试数",
//
num: 0,
//
unit: "门考试"
//
},
//
{
//
title: "项目所有考题数",
//
num: 0,
//
unit: "道题"
//
}
],
totalRows
:
0
,
//数据总数
pageNo
:
1
,
//当前是第几页
...
...
@@ -111,8 +111,20 @@ export default {
methods
:
{
setCardData
(
data
)
{
vm
.
totalRows
=
data
.
projectExamCount
;
vm
.
cardData
[
0
].
num
=
data
.
projectExamCount
;
vm
.
cardData
[
1
].
num
=
data
.
projectExamQuestionCount
;
vm
.
cardData
=
[
{
title
:
"项目所有考试数"
,
num
:
data
.
projectExamCount
,
unit
:
"门考试"
},
{
title
:
"项目所有考题数"
,
num
:
data
.
projectExamQuestionCount
,
unit
:
"道题"
}
];
// vm.cardData[0].num = data.projectExamCount;
// vm.cardData[1].num = data.projectExamQuestionCount;
},
// 搜索列表
search
()
{
...
...
@@ -129,7 +141,7 @@ export default {
};
console
.
log
(
"4 req"
,
req
);
openLoading
(
vm
);
vm
.
GET
(
"report/portalProjectExam/getTotal"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portalProjectExam/getTotal"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
setCardData
(
res
.
data
);
...
...
@@ -138,7 +150,7 @@ export default {
let
reqList
=
req
;
reqList
.
pageNo
=
vm
.
pageNo
;
reqList
.
pageSize
=
vm
.
pageSize
;
vm
.
GET
(
"report/portalProjectExam/getExamList"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portalProjectExam/getExamList"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
tableData
=
res
.
data
.
list
;
...
...
src/views/learning/item-list.vue
浏览文件 @
128369d6
...
...
@@ -375,7 +375,7 @@ export default {
countyId
:
countyId
};
openLoading
(
vm
);
vm
.
GET
(
"report/portal/getOrganizationList"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portal/getOrganizationList"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
this
.
organizationList
=
operationData
.
getLearnOrganization
(
...
...
src/views/learning/item-part-in.vue
浏览文件 @
128369d6
...
...
@@ -32,6 +32,12 @@
<el-table-column
prop=
"endTime"
label=
"完成项目日期"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
endTime
|
liveDateFilter
}}
</
template
>
</el-table-column>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/no-content1.png"
>
<p>
没有相关数据,请重新选择查询范围
</p>
</div>
</div>
</el-table>
</div>
</template>
...
...
@@ -64,30 +70,22 @@ export default {
projectId
:
""
,
finishDetail
:
[],
cardData
:
[
{
title
:
"应参与机构数"
,
num
:
0
,
},
{
title
:
"应参与人数"
,
num
:
0
,
},
{
title
:
"已参与人数"
,
num
:
0
,
},
{
title
:
"项目获证人数"
,
num
:
0
,
},
// {
// title: "
优秀证书人
数",
// title: "
应参与机构
数",
// num: 0,
// },
// {
// title: "
合格证书
人数",
// title: "
应参与
人数",
// num: 0,
// }
// },
// {
// title: "已参与人数",
// num: 0,
// },
// {
// title: "项目获证人数",
// num: 0,
// },
],
showChart
:
false
,
showTable
:
false
...
...
@@ -130,7 +128,7 @@ export default {
};
console
.
log
(
"1 req"
,
req
);
openLoading
(
vm
);
vm
.
GET
(
"report/portal/getParticipateInfo"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portal/getParticipateInfo"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
this
.
getCardData
(
res
.
data
);
...
...
@@ -138,7 +136,7 @@ export default {
this
.
getTableData
();
}
});
vm
.
GET
(
"report/portal/top"
,
req
).
then
(
res
=>
{
vm
.
report
GET
(
"report/portal/top"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
this
.
getRank
(
res
.
data
);
...
...
src/views/learning/name-list.vue
浏览文件 @
128369d6
...
...
@@ -46,7 +46,7 @@
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/no-content1.png"
/>
<p>
没有
查询到相关结果
</p>
<p>
没有
相关数据,请重新选择查询范围
</p>
</div>
</div>
</el-table>
...
...
src/views/learning/report-list.vue
浏览文件 @
128369d6
...
...
@@ -55,7 +55,7 @@
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/no-content1.png"
/>
<p>
没有
查询到相关结果
</p>
<p>
没有
相关数据,请重新选择查询范围
</p>
</div>
</div>
</el-table>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录