提交 df2a9c2d 编写于 作者: tao.wu's avatar tao.wu

Merge branch 'dev-followUp-20190312' of...

Merge branch 'dev-followUp-20190312' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-followUp-20190312
...@@ -43,6 +43,7 @@ export default { ...@@ -43,6 +43,7 @@ export default {
], ],
followStartTimeList: [], //随访时间 followStartTimeList: [], //随访时间
residentCrumb: [], //居民面包屑 residentCrumb: [], //居民面包屑
planModifyCrumb: [], //修改计划面包屑
selectResidentList: [], //修改计划已选居民 selectResidentList: [], //修改计划已选居民
}, },
mutations: { mutations: {
...@@ -111,6 +112,10 @@ export default { ...@@ -111,6 +112,10 @@ export default {
state.residentCrumb = payload state.residentCrumb = payload
sessionStorage.setItem('residentCrumb', JSON.stringify(state.residentCrumb)); sessionStorage.setItem('residentCrumb', JSON.stringify(state.residentCrumb));
}, },
SET_PLAN_MODIFY_CRUMB(state, payload) {
state.planModifyCrumb = payload
sessionStorage.setItem('planModifyCrumb', JSON.stringify(state.planModifyCrumb));
},
GET_SELECT_RESIDENT(state, payload) { GET_SELECT_RESIDENT(state, payload) {
state.selectResidentList = payload.fPlanPatientInfoDtoList state.selectResidentList = payload.fPlanPatientInfoDtoList
} }
...@@ -251,6 +256,9 @@ export default { ...@@ -251,6 +256,9 @@ export default {
setResidentCrumb(context, payload) { setResidentCrumb(context, payload) {
context.commit('SET_RESIDENT_CRUMB', payload); context.commit('SET_RESIDENT_CRUMB', payload);
}, },
setPlanModifyCrumb(context, payload) {
context.commit('SET_PLAN_MODIFY_CRUMB', payload);
},
getSelectResident(context, payload) { getSelectResident(context, payload) {
getResidentList({ getResidentList({
...payload ...payload
......
...@@ -128,7 +128,9 @@ ...@@ -128,7 +128,9 @@
'getPlanDetail', 'getPlanDetail',
'getNodeTimeList', 'getNodeTimeList',
'getNodeTimeContent', 'getNodeTimeContent',
'setResidentCrumb']), 'setResidentCrumb',
'setPlanModifyCrumb'
]),
goToFollowTime() { goToFollowTime() {
this.showFollowTime = true this.showFollowTime = true
}, },
...@@ -155,6 +157,25 @@ ...@@ -155,6 +157,25 @@
this.$router.push({path: '/followup/plan-manage/resident-list', query: {planId: this.$route.query.planId, planName: this.planDetail.name}}) this.$router.push({path: '/followup/plan-manage/resident-list', query: {planId: this.$route.query.planId, planName: this.planDetail.name}})
}, },
changePlan() { changePlan() {
let planModifyCrumb = [
{
name: '随访管理',
href: null
},
{
name: '计划管理',
href: `#/followup/plan-manage/plan-list`
},
{
name: '计划详情',
href: `#/followup/plan-manage/plan-detail?planId=${this.$route.query.planId}`
},
{
name: '修改计划',
href: null
}
]
this.setPlanModifyCrumb(planModifyCrumb)
this.$router.push({path: '/followup/plan-manage/plan-modify', query: {planId: this.$route.query.planId}}) this.$router.push({path: '/followup/plan-manage/plan-modify', query: {planId: this.$route.query.planId}})
}, },
closeFollowTime(isShow) { closeFollowTime(isShow) {
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
this.search(1); this.search(1);
}, },
methods: { methods: {
...mapActions('planManage', ['getPlanList', 'setResidentCrumb']), ...mapActions('planManage', ['getPlanList', 'setResidentCrumb', 'setPlanModifyCrumb']),
async search(currentPage){ async search(currentPage){
await this.getPlanList({ await this.getPlanList({
...this.searchData, ...this.searchData,
...@@ -185,6 +185,21 @@ ...@@ -185,6 +185,21 @@
this.$router.push({path: '/followup/plan-manage/resident-list', query: {planId:row.id, planName: row.name}}) this.$router.push({path: '/followup/plan-manage/resident-list', query: {planId:row.id, planName: row.name}})
}, },
changeRow(row){ changeRow(row){
let planModifyCrumb = [
{
name: '随访管理',
href: null
},
{
name: '计划管理',
href: `#/followup/plan-manage/plan-list`
},
{
name: '修改计划',
href: null
}
]
this.setPlanModifyCrumb(planModifyCrumb)
this.$router.push({path: '/followup/plan-manage/plan-modify', query: {planId:row.id}}) this.$router.push({path: '/followup/plan-manage/plan-modify', query: {planId:row.id}})
}, },
deleteRow(row){ deleteRow(row){
......
<template> <template>
<div class="plan-modify"> <div class="plan-modify">
<bread-crumb <div class="bread-crumb">
:curmbFirst="curmbFirst" <el-breadcrumb separator-class="el-icon-arrow-right" >
:curmbSecond="curmbSecond" <el-breadcrumb-item v-for="item in planModifyCrumb">
:curmbThird="curmbThird" <a v-if="item.href" :href="item.href">{{item.name}}</a>
:jumPathThird="jumPathThird"> <span v-else >{{item.name}}</span>
</bread-crumb> </el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="new-plan-content f-main-content screenSet"> <div class="new-plan-content f-main-content screenSet">
<div class="header"> <div class="header">
<div class="title"> <div class="title">
...@@ -75,7 +77,6 @@ ...@@ -75,7 +77,6 @@
</template> </template>
<script> <script>
import BreadCrumb from '@/components/breadcrumb'
import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient'; import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient';
import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient'; import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient';
import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node'; import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node';
...@@ -87,7 +88,6 @@ ...@@ -87,7 +88,6 @@
export default { export default {
name: "plan-modify", name: "plan-modify",
components: { components: {
BreadCrumb,
SelectPatient, SelectPatient,
HasSelectedPatient, HasSelectedPatient,
SetTimeNode, SetTimeNode,
...@@ -102,11 +102,7 @@ ...@@ -102,11 +102,7 @@
checkForm: false, checkForm: false,
patientIdList: [], //获取的病人列表 patientIdList: [], //获取的病人列表
hasSelectedList: [], //已选居民 hasSelectedList: [], //已选居民
/*面包屑配置*/ planModifyCrumb: [], //面包屑
curmbFirst: '随访管理',
curmbSecond: '计划管理',
curmbThird: '修改随访计划',
jumPathThird: '/followUp/plan-manage',
rules: { rules: {
name: [{ required: true, message: '请输入随访计划名称', trigger: 'blur' }], name: [{ required: true, message: '请输入随访计划名称', trigger: 'blur' }],
followupTemplate: [{ required: true, message: '请选择随访模板', trigger: 'change' }], followupTemplate: [{ required: true, message: '请选择随访模板', trigger: 'change' }],
...@@ -137,7 +133,8 @@ ...@@ -137,7 +133,8 @@
this.getSelectResident({ this.getSelectResident({
planId: this.$route.query.planId planId: this.$route.query.planId
}); //已选居民 }); //已选居民
let planModifyCrumbList = sessionStorage.getItem('planModifyCrumb');
this.planModifyCrumb = JSON.parse(planModifyCrumbList);
}, },
computed: { computed: {
...mapState('planManage', { ...mapState('planManage', {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册