Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
45d3be6e
提交
45d3be6e
编写于
7月 19, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数据修改
上级
c4310e63
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
54 行增加
和
30 行删除
+54
-30
operation.js
src/utils/operation.js
+9
-8
course-training.vue
src/views/learning/course-training.vue
+18
-1
data-alignment.vue
src/views/learning/data-alignment.vue
+13
-9
item-course-analysis.vue
src/views/learning/item-course-analysis.vue
+6
-5
item-crowd-analysis.vue
src/views/learning/item-crowd-analysis.vue
+1
-1
item-examination-analysis.vue
src/views/learning/item-examination-analysis.vue
+4
-3
item-part-in.vue
src/views/learning/item-part-in.vue
+3
-3
未找到文件。
src/utils/operation.js
浏览文件 @
45d3be6e
...
...
@@ -470,12 +470,12 @@ export function getRank(xAxisData, seriesData) {
};
return
option
;
}
export
function
getSearchType
(
formData
)
{
export
function
getSearchType
(
formData
,
checkAll
)
{
let
type
=
0
;
if
(
formData
.
region
.
length
==
1
||
formData
.
region
.
length
==
2
)
{
type
=
formData
.
region
.
length
;
}
else
if
(
formData
.
region
.
length
==
3
)
{
if
(
formData
.
organization
.
length
==
0
)
{
if
(
formData
.
organization
.
length
==
0
||
checkAll
===
true
)
{
type
=
3
;
}
else
{
type
=
4
...
...
@@ -501,19 +501,20 @@ export function getIds(formData, organizationList, checkAll) {
}
else
{
//机构id 选了'全部'
if
(
checkAll
===
true
)
{
for
(
let
i
=
0
;
i
<
organizationList
.
length
;
i
++
)
{
if
(
organizationList
[
i
].
value
!=
0
)
{
ids
+=
organizationList
[
i
].
value
+
','
;
}
}
// for (let i = 0; i < organizationList.length; i++) {
// if (organizationList[i].value != 0) {
// ids += organizationList[i].value + ',';
// }
// }
ids
=
formData
.
region
[
formData
.
region
.
length
-
1
];
}
else
{
for
(
let
i
=
0
;
i
<
formData
.
organization
.
length
;
i
++
)
{
if
(
formData
.
organization
[
i
]
!=
0
)
{
ids
+=
formData
.
organization
[
i
]
+
','
;
}
}
ids
=
ids
.
substring
(
0
,
ids
.
length
-
1
);
}
ids
=
ids
.
substring
(
0
,
ids
.
length
-
1
);
}
return
ids
;
}
...
...
src/views/learning/course-training.vue
浏览文件 @
45d3be6e
...
...
@@ -41,7 +41,7 @@
</el-form-item>
</el-form>
<div
class=
"form-button"
>
<el-button
@
click=
"search()"
type=
"primary"
>
查询
</el-button>
<el-button
@
click=
"search
Data
()"
type=
"primary"
>
查询
</el-button>
<el-button
@
click=
"resetForm()"
>
重置
</el-button>
</div>
<el-table
:data=
"tableData"
class=
"course-table"
>
...
...
@@ -173,10 +173,27 @@ export default {
commonUtil
.
resizeHeight
();
},
methods
:
{
getHostital
()
{
let
req
=
{
projectId
:
vm
.
queryData
.
projectId
,
hospitalIds
:
vm
.
queryData
.
ids
,
};
vm
.
GET
(
"report/portal/getHostitalName"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
}
});
},
getInitData
()
{
vm
.
queryData
=
this
.
$route
.
query
;
vm
.
tableType
=
vm
.
queryData
.
tableType
;
console
.
log
(
"queryData"
,
vm
.
queryData
);
if
(
vm
.
queryData
.
type
==
4
)
{
vm
.
getHostital
();
}
},
searchData
()
{
vm
.
formData
.
pageNo
=
1
;
vm
.
search
();
},
search
()
{
let
query
=
this
.
queryData
;
...
...
src/views/learning/data-alignment.vue
浏览文件 @
45d3be6e
...
...
@@ -56,7 +56,7 @@
</el-form-item>
</el-form>
<div
class=
"form-button"
>
<el-button
@
click=
"search()"
type=
"primary"
>
查询
</el-button>
<el-button
@
click=
"search
Data
()"
type=
"primary"
>
查询
</el-button>
<el-button
@
click=
"resetForm()"
>
重置
</el-button>
</div>
<div
class=
"line"
></div>
...
...
@@ -136,9 +136,9 @@ export default {
return
{
formData
:
{
achievementStatus
:
""
,
status
:
3
,
status
:
1
,
pageNo
:
1
,
pageSize
:
2
,
pageSize
:
10
,
},
achievementList
:
[
//项目状态
...
...
@@ -159,22 +159,20 @@ export default {
//项目状态
{
label
:
"全部"
,
value
:
3
value
:
1
},
{
label
:
"归入统计"
,
value
:
1
value
:
2
},
{
label
:
"移除统计"
,
value
:
2
value
:
3
},
],
tableData
:
[],
multipleSelection
:
[],
//被选中的行
totalRows
:
0
,
//数据总数
pageNo
:
1
,
//当前是第几页
pageSize
:
2
,
//页面总数
getRowKeys
(
row
)
{
return
row
.
doctorId
;
},
...
...
@@ -196,6 +194,7 @@ export default {
//父组件传值
this
.
$on
(
"search"
,
()
=>
{
this
.
search
();
this
.
$refs
.
multipleTable
.
clearSelection
();
});
},
methods
:
{
...
...
@@ -231,10 +230,15 @@ export default {
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
vm
.
formData
.
pageNo
=
val
;
vm
.
search
();
},
close
()
{
this
.
$emit
(
"closeDialog"
);
},
searchData
()
{
vm
.
formData
.
pageNo
=
1
;
vm
.
search
();
},
search
()
{
let
checkAll
=
operationData
.
hasAll
(
vm
.
formInline
.
organization
);
let
req
=
{
...
...
@@ -242,7 +246,7 @@ export default {
achievementStatus
:
vm
.
formData
.
achievementStatus
,
status
:
vm
.
formData
.
status
,
ids
:
operationData
.
getIds
(
vm
.
formInline
,
vm
.
organizationList
,
checkAll
),
type
:
operationData
.
getSearchType
(
vm
.
formInline
),
type
:
operationData
.
getSearchType
(
vm
.
formInline
,
checkAll
),
pageNo
:
vm
.
formData
.
pageNo
,
pageSize
:
vm
.
formData
.
pageSize
,
};
...
...
src/views/learning/item-course-analysis.vue
浏览文件 @
45d3be6e
...
...
@@ -98,6 +98,7 @@ export default {
mounted
:
function
()
{
this
.
$on
(
'search'
,()
=>
{
// console.log(this.formInline);
this
.
pageNo
=
1
;
this
.
search
();
});
this
.
$on
(
"init"
,
()
=>
{
...
...
@@ -124,7 +125,7 @@ export default {
let
req
=
{
projectId
:
vm
.
projectId
,
ids
:
operationData
.
getIds
(
vm
.
formInline
,
vm
.
organizationList
,
checkAll
),
type
:
operationData
.
getSearchType
(
vm
.
formInline
),
type
:
operationData
.
getSearchType
(
vm
.
formInline
,
checkAll
),
originalFlag
:
vm
.
formInline
.
checked
==
false
?
0
:
1
};
console
.
log
(
"3 req"
,
req
);
...
...
@@ -154,19 +155,19 @@ export default {
routerData
.
tableType
=
1
;
routerData
.
courseId
=
data
.
courseId
;
routerData
.
ids
=
operationData
.
getIds
(
vm
.
formInline
,
vm
.
organizationList
,
checkAll
);
routerData
.
type
=
operationData
.
getSearchType
(
vm
.
formInline
),
routerData
.
type
=
operationData
.
getSearchType
(
vm
.
formInline
,
checkAll
),
routerData
.
originalFlag
=
vm
.
formInline
.
checked
==
false
?
0
:
1
this
.
$router
.
push
({
path
:
'/course-training'
,
query
:
routerData
});
},
handleSizeChange
(
val
)
{
console
.
log
(
`每页
${
val
}
条`
);
this
.
vm
.
pageSize
=
val
;
vm
.
pageSize
=
val
;
},
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
this
.
vm
.
pageNo
=
val
;
this
.
search
();
vm
.
pageNo
=
val
;
vm
.
search
();
},
},
}
...
...
src/views/learning/item-crowd-analysis.vue
浏览文件 @
45d3be6e
...
...
@@ -87,7 +87,7 @@ export default {
let
req
=
{
projectId
:
vm
.
projectId
,
cityOrHospitalId
:
operationData
.
getIds
(
vm
.
formInline
,
vm
.
organizationList
,
checkAll
),
kind
:
operationData
.
getSearchType
(
vm
.
formInline
),
kind
:
operationData
.
getSearchType
(
vm
.
formInline
,
checkAll
),
type
:
vm
.
radio
,
originalFlag
:
vm
.
formInline
.
checked
==
false
?
0
:
1
};
...
...
src/views/learning/item-examination-analysis.vue
浏览文件 @
45d3be6e
...
...
@@ -96,7 +96,8 @@ export default {
// 挂载到Dom完成时
mounted
:
function
()
{
this
.
$on
(
'search'
,()
=>
{
console
.
log
(
this
.
formInline
);
// console.log(this.formInline);
this
.
pageNo
=
1
;
this
.
search
();
});
this
.
$on
(
"init"
,
()
=>
{
...
...
@@ -123,7 +124,7 @@ export default {
let
req
=
{
projectId
:
vm
.
projectId
,
ids
:
operationData
.
getIds
(
vm
.
formInline
,
vm
.
organizationList
,
checkAll
),
type
:
operationData
.
getSearchType
(
vm
.
formInline
),
type
:
operationData
.
getSearchType
(
vm
.
formInline
,
checkAll
),
originalFlag
:
vm
.
formInline
.
checked
==
false
?
0
:
1
};
console
.
log
(
"4 req"
,
req
);
...
...
@@ -163,7 +164,7 @@ export default {
// 换页
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
)
vm
.
pageNo
=
val
ue
vm
.
pageNo
=
val
vm
.
search
()
}
}
...
...
src/views/learning/item-part-in.vue
浏览文件 @
45d3be6e
...
...
@@ -125,7 +125,7 @@ export default {
let
req
=
{
projectId
:
vm
.
projectId
,
ids
:
operationData
.
getIds
(
vm
.
formInline
,
vm
.
organizationList
,
checkAll
),
type
:
operationData
.
getSearchType
(
vm
.
formInline
),
type
:
operationData
.
getSearchType
(
vm
.
formInline
,
checkAll
),
originalFlag
:
vm
.
formInline
.
checked
==
false
?
0
:
1
};
console
.
log
(
"1 req"
,
req
);
...
...
@@ -200,11 +200,11 @@ export default {
},
{
title
:
"已参与人数"
,
num
:
data
.
p
articipatePeopleCount
,
num
:
data
.
hasP
articipatePeopleCount
,
},
{
title
:
"项目获证人数"
,
num
:
data
.
particip
atePeopleCount
,
num
:
data
.
acquireCertific
atePeopleCount
,
}];
for
(
let
i
=
0
;
i
<
data
.
manyCertificate
.
length
;
i
++
)
{
let
obj
=
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录