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
提交
32627d1b
提交
32627d1b
编写于
5月 15, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
居民列表
上级
d2c23d09
变更
5
展开全部
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
248 行增加
和
62 行删除
+248
-62
patients.js
src/router/patients.js
+2
-2
patientsapi.js
src/utils/patients/patientsapi.js
+22
-4
slidebar.vue
src/views/layout/slidebar.vue
+2
-2
patients-list.vue
src/views/patients/mypatients-manage/patients-list.vue
+187
-49
not-complete-list.vue
src/views/patients/not-complete/not-complete-list.vue
+35
-5
未找到文件。
src/router/patients.js
浏览文件 @
32627d1b
...
...
@@ -105,10 +105,10 @@ const patientsRouters = {
path
:
'not-complete'
,
component
:
notCompleteManage
,
name
:
'notCompleteManage'
,
redirect
:
'not-complete/
not-complete
'
,
redirect
:
'not-complete/
uncompleted-list
'
,
children
:
[
{
path
:
'
not-complete
'
,
path
:
'
uncompleted-list
'
,
component
:
notCompleteList
,
name
:
'notCompleteList'
,
meta
:
{
...
...
src/utils/patients/patientsapi.js
浏览文件 @
32627d1b
...
...
@@ -19,6 +19,15 @@ export const getConstants = (params) => {
/*居民管理*/
export
const
getPatientList
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/patients/infolist`
),
method
:
'post'
,
data
:
data
,
description
:
'获取居民列表'
,
})
};
export
const
getDiseasesList
=
(
params
)
=>
{
return
fetch
({
headers
,
...
...
@@ -71,21 +80,30 @@ export const getNotCompleteList = (params) => {
description
:
'获取资料不全居民列表'
,
})
};
export
const
sendCompleteMessage
=
(
params
)
=>
{
export
const
sendCompleteMessage
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/patients/remind`
),
method
:
'post'
,
data
:
params
,
data
:
data
,
description
:
'提醒居民完善信息'
,
})
};
export
const
getNotCompleteCount
=
(
params
)
=>
{
export
const
sendCompleteMessageList
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/patients/list/remind`
),
method
:
'post'
,
data
:
data
,
description
:
'批量提醒居民完善信息'
,
})
};
export
const
getNotCompleteCount
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/patients/uncomplate/counts`
),
method
:
'get'
,
data
:
params
,
data
:
data
,
description
:
'获取未完善居民人数'
,
})
};
...
...
src/views/layout/slidebar.vue
浏览文件 @
32627d1b
...
...
@@ -11,7 +11,7 @@
<p
class=
"redNum"
v-if=
"subItem.title == '资料不全居民'
&¬CompleteCount
&&$route.path!='/patients-manage/not-complete/
not-complete
'"
&&$route.path!='/patients-manage/not-complete/
uncompleted-list
'"
>
<span
v-if=
"notCompleteCount>999"
>
+999
</span>
<span
v-else
>
{{notCompleteCount}}
</span>
...
...
@@ -103,7 +103,7 @@ export default {
{
title
:
'资料不全居民'
,
icon
:
'el-icon-setting'
,
index
:
'patients-manage/not-complete/
not-complete
'
index
:
'patients-manage/not-complete/
uncompleted-list
'
}
]
}
...
...
src/views/patients/mypatients-manage/patients-list.vue
浏览文件 @
32627d1b
此差异已折叠。
点击以展开。
src/views/patients/not-complete/not-complete-list.vue
浏览文件 @
32627d1b
...
...
@@ -78,7 +78,10 @@
<
script
>
import
BreadCrumb
from
'../../../components/breadcrumb.vue'
import
{
getNotCompleteList
,
sendCompleteMessage
,
getNotCompleteCount
}
from
'../../../utils/patients/patientsapi'
import
{
getNotCompleteList
,
sendCompleteMessage
,
getNotCompleteCount
,
sendCompleteMessageList
}
from
'../../../utils/patients/patientsapi'
export
default
{
name
:
"not-complete"
,
components
:
{
...
...
@@ -159,13 +162,39 @@
});
},
sendCompleteMessageMultiple
(
item
)
{
sendCompleteMessageMultiple
()
{
if
(
!
this
.
selectList
.
length
)
{
this
.
$message
({
message
:
'请选择居民'
,
type
:
'warning'
});
return
;
}
let
patientIdList
=
[]
this
.
selectList
.
forEach
(
item
=>
{
patientIdList
.
push
(
item
.
patientId
)
})
sendCompleteMessageList
({
qrcodeType
:
1
,
patientIds
:
patientIdList
,
}).
then
((
data
)
=>
{
if
(
data
.
code
==
"000000"
)
{
this
.
$message
({
message
:
'已向居民发送提醒'
,
type
:
'success'
});
}
else
{
this
.
$message
({
message
:
data
.
message
,
type
:
'error'
});
}
}).
catch
(
function
(
error
)
{
this
.
$message
({
message
:
error
,
type
:
'error'
});
})
},
getNotCompleteNum
()
{
getNotCompleteCount
().
then
((
data
)
=>
{
...
...
@@ -245,6 +274,7 @@
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background
:
#449284
!
important
;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录