Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
d2c23d09
提交
d2c23d09
编写于
5月 15, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
常量接口&居民列表
上级
6388a247
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
264 行增加
和
6 行删除
+264
-6
fetch.js
src/utils/fetch.js
+1
-1
patientsapi.js
src/utils/patients/patientsapi.js
+13
-0
slidebar.vue
src/views/layout/slidebar.vue
+20
-3
patients-list.vue
src/views/patients/mypatients-manage/patients-list.vue
+230
-2
未找到文件。
src/utils/fetch.js
浏览文件 @
d2c23d09
...
@@ -21,7 +21,7 @@ service.interceptors.request.use(config => {
...
@@ -21,7 +21,7 @@ service.interceptors.request.use(config => {
if
(
config
.
headers
[
'sysCode'
]
==
undefined
)
{
if
(
config
.
headers
[
'sysCode'
]
==
undefined
)
{
config
.
headers
[
'sysCode'
]
=
12
config
.
headers
[
'sysCode'
]
=
12
}
}
config
.
headers
[
'token'
]
=
'
D34A213A354849A0B08A241771F7A675
'
config
.
headers
[
'token'
]
=
'
1A89828EE5164DFF95C73F9C13FF51A0
'
// config.headers['token'] = localStorage.getItem('storageToken')
// config.headers['token'] = localStorage.getItem('storageToken')
config
.
headers
[
'deviceInfo'
]
=
JSON
.
stringify
({
"app_channel"
:
""
,
"app_mac"
:
""
,
"app_uuid"
:
""
,
"app_version"
:
""
,
"device_brand"
:
""
,
"device_ip"
:
""
,
"device_model"
:
""
,
"device_net"
:
""
,
"device_ops"
:
""
,
"resolution_wh"
:
""
,
"system_level"
:
""
,
"device_type"
:
'10'
})
config
.
headers
[
'deviceInfo'
]
=
JSON
.
stringify
({
"app_channel"
:
""
,
"app_mac"
:
""
,
"app_uuid"
:
""
,
"app_version"
:
""
,
"device_brand"
:
""
,
"device_ip"
:
""
,
"device_model"
:
""
,
"device_net"
:
""
,
"device_ops"
:
""
,
"resolution_wh"
:
""
,
"system_level"
:
""
,
"device_type"
:
'10'
})
}
}
...
...
src/utils/patients/patientsapi.js
浏览文件 @
d2c23d09
...
@@ -5,6 +5,19 @@ import { getBaseUrl, getSaasDomain, getSaasApiDomain } from '@/utils/index'
...
@@ -5,6 +5,19 @@ import { getBaseUrl, getSaasDomain, getSaasApiDomain } from '@/utils/index'
const
headers
=
{
const
headers
=
{
sysCode
:
9
sysCode
:
9
}
}
/*常量API*/
export
const
getConstants
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`basic-data/constants/`
),
method
:
'get'
,
params
:
params
,
description
:
'获取常量'
,
})
};
/*居民管理*/
/*居民管理*/
export
const
getDiseasesList
=
(
params
)
=>
{
export
const
getDiseasesList
=
(
params
)
=>
{
return
fetch
({
return
fetch
({
...
...
src/views/layout/slidebar.vue
浏览文件 @
d2c23d09
...
@@ -7,7 +7,15 @@
...
@@ -7,7 +7,15 @@
<template
slot=
"title"
><i
:class=
"item.icon"
></i>
{{
item
.
title
}}
</
template
>
<template
slot=
"title"
><i
:class=
"item.icon"
></i>
{{
item
.
title
}}
</
template
>
<el-menu-item
v-for=
"(subItem,i) in item.subs"
:key=
"i"
:index=
"'/'+subItem.index"
>
<el-menu-item
v-for=
"(subItem,i) in item.subs"
:key=
"i"
:index=
"'/'+subItem.index"
>
<i
class=
"sub-icon"
:class=
"subItem.icon"
></i>
<i
class=
"sub-icon"
:class=
"subItem.icon"
></i>
{{subItem.title}}
<span
class=
"redNum"
v-if=
"subItem.title == '资料不全居民'&¬CompleteCount"
>
+{{notCompleteCount}}
</span>
{{subItem.title}}
<p
class=
"redNum"
v-if=
"subItem.title == '资料不全居民'
&¬CompleteCount
&&$route.path!='/patients-manage/not-complete/not-complete'"
>
<span
v-if=
"notCompleteCount>999"
>
+999
</span>
<span
v-else
>
{{notCompleteCount}}
</span>
</p>
</el-menu-item>
</el-menu-item>
</el-submenu>
</el-submenu>
</template>
</template>
...
@@ -162,8 +170,17 @@ export default {
...
@@ -162,8 +170,17 @@ export default {
// }
// }
}
}
.redNum
{
.redNum
{
margin-left
:
20px
;
display
:
inline-block
;
color
:
#D22B3F
;
border-radius
:
10px
;
margin-left
:
15px
;
background
:
#EE263E
;
color
:
#fff
;
font-size
:
12px
;
line-height
:
12px
;
padding
:
5px
10px
;
span
{
display
:
block
;
}
}
}
}
}
</
style
>
</
style
>
...
...
src/views/patients/mypatients-manage/patients-list.vue
浏览文件 @
d2c23d09
<
template
>
<
template
>
<p>
居民管理
</p>
<section
class=
"not-complete-wrap"
>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
>
</bread-crumb>
<section
class=
"not-complete-content screenSet"
>
<h1
class=
"page-title"
>
我的居民:共800人
</h1>
<div
class=
"search-div"
>
<div
class=
"search-input"
>
<el-form
:model=
"searchData"
ref=
"searchData"
:inline=
"true"
:label-width=
"labelWidth"
>
<el-form-item
label=
"性别:"
prop=
"patientName"
>
<el-input
v-model=
"searchData.patientName"
size=
"small"
placeholder=
"请输入姓名"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"年龄段:"
prop=
"mobile"
>
<el-input
v-model=
"searchData.mobile"
size=
"small"
placeholder=
"请输入手机号"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"诊断:"
prop=
"startDate"
size=
"small"
>
<el-select
v-model=
"searchData.startDate"
size=
"small"
clearable
:popper-append-to-body=
"false"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
v-for=
"(item, index) in followStartTimeList"
:key=
"item+index"
:label=
"item"
:value=
"item"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"分组:"
prop=
"labelId"
>
<el-select
v-model=
"searchData.labelId"
size=
"small"
clearable
:popper-append-to-body=
"false"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
v-for=
"item in groupList"
:key=
"item.labelId"
:label=
"item.labelName"
:value=
"item.labelId"
>
</el-option>
</el-select>
</el-form-item>
</el-form>
</div>
<div
class=
"search-btn"
>
<el-button
class=
"button-green"
type=
"primary"
size=
"small"
@
click=
"searchResidentList"
>
查询
</el-button>
<el-button
class=
"button-white"
plain
size=
"small"
@
click=
"resetSearchData('searchData')"
>
重置
</el-button>
</div>
</div>
<el-table
:data=
"notCompleteList"
:row-key=
"getRowKeys"
@
selection-change=
"handleSelectionChange"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"headimgurl"
label=
"姓名"
width=
"100"
lign=
"center"
>
<template
slot-scope=
"scope"
>
<img
class=
"user-photo"
:src=
"scope.row.headimgurl"
/>
</
template
>
</el-table-column>
<el-table-column
prop=
"wechatUsername"
width=
"200"
label=
"性别"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"country"
label=
"年龄"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"wechatCreatedTime"
label=
"分组"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"wechatCreatedTime"
label=
"诊断"
align=
"center"
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<!--
<el-button
v-if=
"scope.row.isRemind==1"
type=
"text"
@
click=
"sendMessageSingle(scope.row)"
>
提醒完善信息
</el-button>
<el-button
v-else-if=
"scope.row.isRemind==2"
type=
"text"
style=
"color: #999"
>
提醒已发送
</el-button>
-->
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination"
v-if=
"notCompleteList.length"
>
<el-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"pagination.pageNo"
:page-sizes=
"[15, 30, 50, 100]"
:page-size=
"pagination.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"pagination.totalRows"
>
</el-pagination>
</div>
</section>
</section>
</template>
</template>
<
script
>
<
script
>
import
BreadCrumb
from
'../../../components/breadcrumb.vue'
import
{
getConstants
}
from
'../../../utils/patients/patientsapi'
export
default
{
name
:
"not-complete"
,
components
:
{
BreadCrumb
},
data
()
{
return
{
curmbFirst
:
'居民管理'
,
curmbSecond
:
'资料不全居民'
,
notCompleteList
:
[],
//未完善列表
pagination
:
{
pageNo
:
1
,
pageSize
:
15
,
},
searchData
:
{},
getRowKeys
(
row
)
{
return
row
.
patientId
;
},
selectList
:
[]
}
},
created
()
{
//const vm = this;
},
mounted
()
{
getConstants
({
numList
:
'P006,P057'
,
})
},
methods
:
{
handleSelectionChange
(
val
)
{
this
.
selectList
=
val
;
},
handleSizeChange
(
val
)
{
this
.
pagination
.
pageSize
=
val
this
.
getNotComplete
()
},
handleCurrentChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
getNotComplete
()
},
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
>
.not-complete-wrap
{
.not-complete-content
{
padding
:
30px
;
background
:
#ffffff
;
.tip
{
font-size
:
12px
;
padding
:
30px
0
;
line-height
:
32px
;
}
.page-title
{
font-size
:
20px
;
color
:
#F1E2F3
D
;
padding-bottom
:
20px
;
border-bottom
:
1px
solid
#efefef
;
}
.search-div
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
padding
:
30px
0
10px
0
;
border-bottom
:
1px
solid
#efefef
;
.search-btn
{
min-width
:
127px
;
}
}
.blank-wrap
{
@media
screen
and
(
min-width
:
1240px
)
and
(
max-width
:
1545px
){
height
:
300px
;
}
@media
screen
and
(
min-width
:
1545px
)
and
(
max-width
:
1600px
){
height
:
500px
;
}
@media
screen
and
(
min-width
:
1600px
){
height
:
600px
;
}
.blank-content
{
text-align
:
center
;
img
{
width
:
100px
;
}
p
{
font-size
:
20px
;
color
:
#999
;
}
}
}
.user-photo
{
border-radius
:
50%
;
width
:
40px
;
}
}
/*重置表格选择框*/
.el-checkbox__input.is-checked
.el-checkbox__inner
,
.el-checkbox__input.is-indeterminate
.el-checkbox__inner
{
border-color
:
#449284
;
background-color
:
#449284
;
}
.el-checkbox__inner
{
border-color
:
#DCDFE6
!
important
;
}
.el-checkbox__input.is-focus
,
.el-checkbox__inner
:hover
,
.el-checkbox__inner.is-focus
{
border-color
:
#449284
!
important
;
}
.el-button--text
{
color
:
#449284
;
}
.fontGreen
{
color
:
#449284
;
}
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background
:
#449284
!
important
;
}
}
</
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录