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
提交
e002c00b
提交
e002c00b
编写于
3月 20, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
随访时间列表
上级
41a0c75c
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
59 行增加
和
22 行删除
+59
-22
planManage.js
src/store/followup/planManage.js
+12
-1
followapis.js
src/utils/followup/followapis.js
+21
-8
follow-time.vue
src/views/followup/plan-manage/dialog/follow-time.vue
+13
-9
plan-detail.vue
src/views/followup/plan-manage/plan-detail.vue
+13
-4
未找到文件。
src/store/followup/planManage.js
浏览文件 @
e002c00b
...
@@ -10,7 +10,8 @@ export default {
...
@@ -10,7 +10,8 @@ export default {
},
},
groupList
:
[],
//分组列表
groupList
:
[],
//分组列表
residentDetail
:
{},
//居民详情,
residentDetail
:
{},
//居民详情,
planDetail
:
{},
// 计划详情页
planDetail
:
{},
// 计划详情页,
nodeTimeList
:
[],
//随访时间节点列表
},
},
mutations
:
{
mutations
:
{
...
@@ -25,6 +26,9 @@ export default {
...
@@ -25,6 +26,9 @@ export default {
},
},
GET_PLAN_DETAIL
(
state
,
payload
)
{
GET_PLAN_DETAIL
(
state
,
payload
)
{
state
.
planDetail
=
payload
state
.
planDetail
=
payload
},
GET_NODE_TIME_LIST
(
state
,
payload
)
{
state
.
nodeTimeList
=
payload
}
}
},
},
actions
:
{
actions
:
{
...
@@ -56,6 +60,13 @@ export default {
...
@@ -56,6 +60,13 @@ export default {
}).
then
(({
data
})
=>
{
}).
then
(({
data
})
=>
{
context
.
commit
(
'GET_PLAN_DETAIL'
,
data
);
context
.
commit
(
'GET_PLAN_DETAIL'
,
data
);
});
});
},
getNodeTimeList
(
context
,
payload
)
{
followApi
.
getNodeTimeList
({},
{
urlSuffix
:
payload
}).
then
(({
data
})
=>
{
context
.
commit
(
'GET_NODE_TIME_LIST'
,
data
);
});
}
}
},
},
}
}
src/utils/followup/followapis.js
浏览文件 @
e002c00b
...
@@ -8,18 +8,25 @@ import utils from './followupUtils';
...
@@ -8,18 +8,25 @@ import utils from './followupUtils';
/*计划管理API*/
/*计划管理API*/
const
planManageApi
=
[
const
planManageApi
=
[
{
{
url
:
'/
followup/planPatient
/'
,
url
:
'/
plans
/'
,
method
:
'get'
,
method
:
'get'
,
params
:
'params'
,
params
:
'params'
,
name
:
'get
ResidentList
'
,
name
:
'get
PlanDetail
'
,
description
:
'获取
居民列表
'
,
description
:
'获取
计划详情
'
,
},
},
{
{
url
:
'
/plans/
'
,
url
:
''
,
method
:
'get'
,
method
:
'get'
,
params
:
'params'
,
params
:
'params'
,
name
:
'getPlanDetail'
,
name
:
'getNodeTimeList'
,
description
:
'获取计划详情'
,
description
:
'获取随访时间节点列表'
,
},
{
url
:
'/followup/planPatient/'
,
method
:
'get'
,
params
:
'params'
,
name
:
'getResidentList'
,
description
:
'获取居民列表'
,
},
},
{
{
url
:
'/followup/planPatient/group'
,
url
:
'/followup/planPatient/group'
,
...
@@ -91,12 +98,18 @@ apis.forEach(item => api[item.name] = (params = {}, extraConfig = {}) => {
...
@@ -91,12 +98,18 @@ apis.forEach(item => api[item.name] = (params = {}, extraConfig = {}) => {
// method: item.method,
// method: item.method,
// };
// };
let
config
=
{};
let
config
=
{};
if
(
item
.
name
==
'getBasicData'
)
{
if
(
item
.
name
==
'getBasicData'
)
{
config
=
{
config
=
{
url
:
getBasicDataApi
(
item
.
url
),
url
:
getBasicDataApi
(
item
.
url
),
method
:
item
.
method
,
method
:
item
.
method
,
};
};
}
else
{
}
else
if
(
item
.
name
==
'getNodeTimeList'
)
{
let
url
=
`/plan/
${
extraConfig
.
urlSuffix
}
/time`
config
=
{
url
:
getFollowUpApi
(
url
),
method
:
item
.
method
,
};
}
else
{
config
=
{
config
=
{
url
:
getFollowUpApi
(
item
.
url
),
url
:
getFollowUpApi
(
item
.
url
),
method
:
item
.
method
,
method
:
item
.
method
,
...
...
src/views/followup/plan-manage/dialog/follow-time.vue
浏览文件 @
e002c00b
...
@@ -8,25 +8,21 @@
...
@@ -8,25 +8,21 @@
center
>
center
>
<div
class=
"finish-content"
>
<div
class=
"finish-content"
>
<el-table
<el-table
:data=
"
followUp
TimeList"
:data=
"
node
TimeList"
center
center
style=
"width: 100%;margin-top: 20px;"
>
style=
"width: 100%;margin-top: 20px;"
>
<el-table-column
<el-table-column
prop=
"
nickName
"
prop=
"
timeStr
"
label=
"随访计划开始时间"
label=
"随访计划开始时间"
align=
"center"
>
align=
"center"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
mobilePhone
"
prop=
"
num
"
label=
"人数"
label=
"人数"
align=
"center"
>
align=
"center"
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"button-green"
@
click=
"clickClose"
type=
"primary"
>
取 消
</el-button>
<el-button
class=
"button-white"
@
click=
"clickClose"
plain
>
确 定
</el-button>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -41,18 +37,26 @@
...
@@ -41,18 +37,26 @@
return
false
;
return
false
;
}
}
},
},
followUp
TimeList
:
{
node
TimeList
:
{
type
:
Array
,
type
:
Array
,
default
:
function
()
{
default
:
function
()
{
return
[]
return
[]
}
}
}
}
},
},
mounted
()
{
if
(
this
.
planId
)
{
}
},
data
()
{
data
()
{
return
{
return
{
showFollowTime
:
true
showFollowTime
:
true
,
followUpTimeList
:
[]
}
}
},
},
methods
:
{
methods
:
{
clickClose
()
{
clickClose
()
{
this
.
$emit
(
'closeFollowTime'
,
false
)
this
.
$emit
(
'closeFollowTime'
,
false
)
...
...
src/views/followup/plan-manage/plan-detail.vue
浏览文件 @
e002c00b
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<div
class=
"group-info base-content"
>
<div
class=
"group-info base-content"
>
<div
class=
"content-div"
>
<div
class=
"content-div"
>
<div
class=
"c-title"
>
随访居民:
</div>
<div
class=
"c-title"
>
随访居民:
</div>
<div
class=
"c-content"
>
{{
planDetail
.
num
}}
人
<el-button
type=
"text"
@
click=
"goToResidentList"
>
查看居民>
</el-button></div>
<div
class=
"c-content
has-operation
"
>
{{
planDetail
.
num
}}
人
<el-button
type=
"text"
@
click=
"goToResidentList"
>
查看居民>
</el-button></div>
</div>
</div>
</div>
</div>
<div
class=
"followup-info base-content"
>
<div
class=
"followup-info base-content"
>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<div
class=
"followup-info base-content"
>
<div
class=
"followup-info base-content"
>
<div
class=
"content-div"
>
<div
class=
"content-div"
>
<div
class=
"c-title"
>
随访开始时间:
</div>
<div
class=
"c-title"
>
随访开始时间:
</div>
<div
class=
"c-content
"
>
{{
planDetail
.
timeStr
}}
<el-button
type=
"text"
@
click=
"goToFollowTime"
>
查看全部>
</el-button></div>
<div
class=
"c-content
has-operation"
>
{{
planDetail
.
timeStr
}}
<el-button
class=
"btn-text"
type=
"text"
@
click=
"goToFollowTime"
>
查看全部>
</el-button></div>
</div>
</div>
</div>
</div>
<div
class=
"followup-info base-content"
>
<div
class=
"followup-info base-content"
>
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<follow-time
:showThisPage=
"showFollowTime"
@
closeFollowTime=
"closeFollowTime"
></follow-time>
<follow-time
:showThisPage=
"showFollowTime"
:nodeTimeList=
"nodeTimeList"
@
closeFollowTime=
"closeFollowTime"
></follow-time>
</div>
</div>
</
template
>
</
template
>
...
@@ -111,15 +111,17 @@
...
@@ -111,15 +111,17 @@
},
},
mounted
()
{
mounted
()
{
this
.
getPlanDetail
(
this
.
$route
.
query
.
planId
);
//获取居民详情
this
.
getPlanDetail
(
this
.
$route
.
query
.
planId
);
//获取居民详情
this
.
getNodeTimeList
(
this
.
planId
);
// 获取随访时间列表
},
},
computed
:
{
computed
:
{
...
mapState
(
'planManage'
,
{
...
mapState
(
'planManage'
,
{
residentDetail
:
state
=>
state
.
residentDetail
,
residentDetail
:
state
=>
state
.
residentDetail
,
planDetail
:
state
=>
state
.
planDetail
,
planDetail
:
state
=>
state
.
planDetail
,
nodeTimeList
:
state
=>
state
.
nodeTimeList
})
})
},
},
methods
:
{
methods
:
{
...
mapActions
(
'planManage'
,
[
'getResidentDetail'
,
'getPlanDetail'
]),
...
mapActions
(
'planManage'
,
[
'getResidentDetail'
,
'getPlanDetail'
,
'getNodeTimeList'
]),
goToFollowTime
()
{
goToFollowTime
()
{
this
.
showFollowTime
=
true
this
.
showFollowTime
=
true
},
},
...
@@ -172,6 +174,13 @@
...
@@ -172,6 +174,13 @@
width
:
115px
;
width
:
115px
;
}
}
}
}
.has-operation
{
button
{
height
:
19
.2px
;
padding
:
0
0
0
15px
;
}
}
}
}
}
}
.time-nodes
{
.time-nodes
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录