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
提交
b7e7c029
提交
b7e7c029
编写于
3月 18, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
store初始化&居民列表页fixed
上级
af2e5356
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
116 行增加
和
75 行删除
+116
-75
index.js
src/store/index.js
+5
-1
index.js
src/store/modules/followup/index.js
+6
-0
planManage.js
src/store/modules/followup/planManage.js
+39
-0
followapis.js
src/utils/followup/followapis.js
+7
-0
resident-list.vue
src/views/followup/plan-manage/resident-list.vue
+59
-74
未找到文件。
src/store/index.js
浏览文件 @
b7e7c029
import
Vue
from
'vue'
import
Vuex
from
'vuex'
import
common
from
'./modules/common'
//随访
import
followModules
from
'./modules/followup/index'
import
getters
from
'./getters'
...
...
@@ -8,7 +11,8 @@ Vue.use(Vuex)
export
default
new
Vuex
.
Store
({
modules
:
{
common
common
,
...
followModules
},
getters
})
...
...
src/store/modules/followup/index.js
0 → 100644
浏览文件 @
b7e7c029
import
planManage
from
'./planManage'
const
followModules
=
{
planManage
}
export
default
followModules
src/store/modules/followup/planManage.js
0 → 100644
浏览文件 @
b7e7c029
import
followApi
from
'../../../utils/followup/followapis'
export
default
{
namespaced
:
true
,
state
:
{
residentList
:
{
//居民列表
pageNum
:
1
,
//当前页码
pageSize
:
10
,
//每页数据大小
total
:
null
,
//总数
},
groupList
:
[],
//分组列表
},
mutations
:
{
GET_RESIDENT_LIST
(
state
,
payload
)
{
state
.
residentList
=
payload
},
GET_GROUP_LIST
(
state
,
payload
)
{
state
.
groupList
=
payload
.
labelDtoList
}
},
actions
:
{
getResidentList
(
context
,
payload
)
{
const
{
pageSize
,
pageNum
}
=
context
.
state
.
residentList
;
followApi
.
getResidentList
({
pageSize
,
pageNum
,
...
payload
}).
then
(({
data
})
=>
{
context
.
commit
(
'GET_RESIDENT_LIST'
,
data
);
});
},
getGroupList
(
context
,
payload
)
{
followApi
.
getGroupList
({}).
then
(({
data
})
=>
{
context
.
commit
(
'GET_GROUP_LIST'
,
data
);
});
}
},
}
src/utils/followup/followapis.js
浏览文件 @
b7e7c029
...
...
@@ -14,6 +14,13 @@ const planManageApi = [
name
:
'getResidentList'
,
description
:
'获取居民列表'
,
},
{
url
:
'/followup/planPatient/group'
,
method
:
'get'
,
params
:
'params'
,
name
:
'getGroupList'
,
description
:
'获取分组列表'
,
},
]
...
...
src/views/followup/plan-manage/resident-list.vue
浏览文件 @
b7e7c029
...
...
@@ -10,48 +10,47 @@
<p
class=
"page-title"
>
随访计划名称
</p>
<div
class=
"search-div"
>
<div
class=
"search-input"
>
<el-form
:model=
"searchData"
:inline=
"true"
:label-width=
"labelWidth"
>
<el-form-item
label=
"姓名:"
>
<el-input
v-model=
"searchData.
resid
entName"
placeholder=
"请输入姓名"
></el-input>
<el-form
:model=
"searchData"
ref=
"searchData"
:inline=
"true"
:label-width=
"labelWidth"
>
<el-form-item
label=
"姓名:"
prop=
"patientName"
>
<el-input
v-model=
"searchData.
pati
entName"
placeholder=
"请输入姓名"
></el-input>
</el-form-item>
<el-form-item
label=
"手机号:"
>
<el-input
v-model=
"searchData.
phoneNumber
"
placeholder=
"请输入手机号"
></el-input>
<el-form-item
label=
"手机号:"
prop=
"mobile"
>
<el-input
v-model=
"searchData.
mobile
"
placeholder=
"请输入手机号"
></el-input>
</el-form-item>
<el-form-item
label=
"分组:"
>
<el-select
v-model=
"searchData.
group
"
>
<el-form-item
label=
"分组:"
prop=
"labelId"
>
<el-select
v-model=
"searchData.
labelId
"
>
<el-option
v-for=
"item in group
Option
"
:key=
"item.
value
"
:label=
"item.label"
:value=
"item.
value
"
>
v-for=
"item in group
List
"
:key=
"item.
labelId
"
:label=
"item.label
Name
"
:value=
"item.
labelId
"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"随访开始时间:"
>
<el-select
v-model=
"searchData.startTime"
>
<el-option
v-for=
"item in groupOption"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
<el-form-item
label=
"随访开始时间:"
prop=
"startDate"
>
<el-date-picker
v-model=
"searchData.startDate"
type=
"datetime"
format=
"yyyy-MM-dd hh:mm:ss"
value-format=
"yyyy-MM-dd hh:mm:ss"
placeholder=
"选择随访开始时间"
>
</el-date-picker>
</el-form-item>
</el-form>
</div>
<div
class=
"search-btn"
>
<el-button
class=
"button-green"
type=
"primary"
>
查询
</el-button>
<el-button
class=
"button-white"
plain
>
重置
</el-button>
<el-button
class=
"button-green"
type=
"primary"
@
click=
"searchResidentList"
>
查询
</el-button>
<el-button
class=
"button-white"
plain
@
click=
"resetSearchData('searchData')"
>
重置
</el-button>
</div>
</div>
<div
class=
"resident-table table-content"
>
<el-radio-group
v-model=
"
tableType
"
>
<el-radio-button
label=
"0"
>
未完成(
{{
typeNums
.
notCount
}}
)
</el-radio-button>
<el-radio-button
label=
"1"
>
进行中(
{{
typeNums
.
handCount
}}
)
</el-radio-button>
<el-radio-button
label=
"2"
>
已结束(
{{
typeNums
.
yesCount
}}
)
</el-radio-button>
<el-radio-group
v-model=
"
status
"
>
<el-radio-button
label=
"0"
>
未完成(
{{
residentList
.
notCount
}}
)
</el-radio-button>
<el-radio-button
label=
"1"
>
进行中(
{{
residentList
.
handCount
}}
)
</el-radio-button>
<el-radio-button
label=
"2"
>
已结束(
{{
residentList
.
yesCount
}}
)
</el-radio-button>
</el-radio-group>
<el-table
:data=
"resident
Data
"
:data=
"resident
List.fPlanPatientInfoDtoList
"
center
style=
"width: 100%;margin-top: 20px;"
>
<el-table-column
...
...
@@ -98,14 +97,14 @@
</el-table>
<el-pagination
background
v-if=
"resident
Data.length
"
v-if=
"resident
List.fPlanPatientInfoDtoList
"
@
size-change=
"handleSizeChangePre"
@
current-change=
"handleCurrentChangePre"
layout=
"total, sizes, prev, pager, next, jumper"
:current-page=
"pageNum"
:current-page=
"
residentList.
pageNum"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"pageSize"
:total=
"total"
>
:page-size=
"
residentList.
pageSize"
:total=
"
residentList.
total"
>
</el-pagination>
</div>
</div>
...
...
@@ -113,8 +112,9 @@
</template>
<
script
>
import
api
from
'../../../utils/followup/followapis'
;
import
BreadCrumb
from
'@/components/breadcrumb'
import
{
mapState
,
mapActions
}
from
'vuex'
export
default
{
name
:
"residentList"
,
components
:
{
...
...
@@ -134,64 +134,55 @@
value
:
'全部'
,
label
:
'全部'
}],
tableType
:
0
,
//列表筛选条件
typeNums
:
{
},
residentData
:
[],
//居民列表
pageNum
:
1
,
pageSize
:
10
,
total
:
''
,
status
:
0
,
//列表筛选条件
}
},
created
()
{
},
mounted
()
{
this
.
getResidentList
({
pageNum
:
1
,
pageSize
:
10
,
status
:
0
,
this
.
getResidentList
();
this
.
getGroupList
();
//获取分组列表
},
computed
:
{
...
mapState
(
'planManage'
,{
residentList
:
state
=>
state
.
residentList
,
groupList
:
state
=>
state
.
groupList
})
},
methods
:
{
handleSizeChangePre
()
{
...
mapActions
(
'planManage'
,
[
'getResidentList'
,
'getGroupList'
]),
handleSizeChangePre
(
pageSize
)
{
this
.
getResidentList
({
pageNum
:
1
,
pageSize
:
10
,
status
:
0
,
pageSize
,
status
:
this
.
status
})
},
handleCurrentChangePre
()
{
handleCurrentChangePre
(
pageNum
)
{
this
.
getResidentList
({
pageNum
,
status
:
this
.
status
})
},
goPatientDetail
(
patientId
)
{
//居民详情页
this
.
$router
.
push
(
'/followup/plan-manage/resident-detail'
)
},
getResidentList
(
param
)
{
//获取居民列表
api
.
getResidentList
({
...
param
,
planId
:
123
//从路由里获取
}).
then
(({
data
})
=>
{
this
.
residentData
=
data
.
fPlanPatientInfoDtoList
;
this
.
total
=
data
.
total
this
.
typeNums
=
{
notCount
:
data
.
notCount
,
handCount
:
data
.
handCount
,
yesCount
:
data
.
yesCount
,
}
});
searchResidentList
()
{
//查询居民列表
this
.
getResidentList
({
...
this
.
searchData
,
status
:
this
.
status
})
},
resetSearchData
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
}
},
watch
:
{
tableType
(
val
)
{
status
(
val
)
{
this
.
getResidentList
({
pageNum
:
1
,
pageSize
:
10
,
status
:
val
,
...
this
.
searchData
})
}
}
...
...
@@ -202,10 +193,4 @@
@import
'../../../style/followup/followup-common'
;
@import
'../../../style/followup/element-reset.css'
;
.resident-list
{
.resident-content
{
}
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录