提交 36d80cc8 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

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

Merge branch 'dev-followUp-20190312' of http://192.168.110.53/com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-followUp-20190312
文件已删除
...@@ -6,4 +6,5 @@ dist/ ...@@ -6,4 +6,5 @@ dist/
/yqy/ /yqy/
node_modules/ node_modules/
.DS_Store .DS_Store
.vscode .vscode/
.idea/
此差异已折叠。
{
"editor.fontSize": 15
}
\ No newline at end of file
...@@ -48,10 +48,10 @@ export default { ...@@ -48,10 +48,10 @@ export default {
}, },
created() { created() {
vm = this vm = this
vm.getToken() // vm.getToken()
}, },
mounted() { mounted() {
}, },
methods: { methods: {
// 解密token // 解密token
...@@ -69,13 +69,13 @@ export default { ...@@ -69,13 +69,13 @@ export default {
} else { } else {
if(!localStorage.getItem('storageToken')) { if(!localStorage.getItem('storageToken')) {
window.location.href = getLoginUrl('?from=work&type=logout') // 没有token返回登录页面 window.location.href = getLoginUrl('?from=work&type=logout') // 没有token返回登录页面
return return
} }
} }
}else { }else {
if(!localStorage.getItem('storageToken')) { if(!localStorage.getItem('storageToken')) {
window.location.href = getLoginUrl('?from=work&type=logout') // 没有token返回登录页面 window.location.href = getLoginUrl('?from=work&type=logout') // 没有token返回登录页面
return return
} }
} }
vm.changeToken(vm.token) vm.changeToken(vm.token)
......
...@@ -60,7 +60,7 @@ export const getPlanDetail = (planId) => { ...@@ -60,7 +60,7 @@ export const getPlanDetail = (planId) => {
export const getNodeTimeList = (planId) => { export const getNodeTimeList = (planId) => {
return fetch({ return fetch({
headers, headers,
url: getFollowUpSC(`/followup/plans/${planId}/time`), url: getFollowUpSC(`/followup/plan/${planId}/time`),
method: 'get', method: 'get',
description: '获取随访时间节点列表', description: '获取随访时间节点列表',
}) })
......
...@@ -80,13 +80,45 @@ ...@@ -80,13 +80,45 @@
name: '', name: '',
startYear: '0', startYear: '0',
}, },
timeRangeList:[{ timeRangeList:[
{
label: '2019年', label: '2019年',
value: 1 value: 1
},{ },{
label: '2018年', label: '2020年',
value: 2 value: 2
}], }, {
label: '2021年',
value: 3
},{
label: '2022年',
value: 4
},{
label: '2023年',
value: 5
},{
label: '2024年',
value: 6
},{
label: '2025年',
value: 7
},{
label: '2026年',
value: 8
},{
label: '2027年',
value: 9
},{
label: '2028年',
value: 10
},{
label: '2029年',
value: 11
},{
label: '2030年',
value: 12
}
],
paginationSet: { paginationSet: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
......
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
</div> </div>
<div class="table-content"> <div class="table-content">
<el-radio-group v-model="activeName" @change="handlerClick" size="small"> <el-radio-group v-model="activeName" @change="handlerClick" size="small">
<el-radio-button label="0">全部({{recordList.count}}</el-radio-button> <el-radio-button label="">全部({{recordList.count}})</el-radio-button>
<el-radio-button label="1">已完成({{recordList.acceptCount}}</el-radio-button> <el-radio-button label="2">已完成({{recordList.finishedCount}})</el-radio-button>
<el-radio-button label="2">未完成({{recordList.refuseCount}}</el-radio-button> <el-radio-button label="1">未完成({{recordList.unfinishedCount}})</el-radio-button>
</el-radio-group> </el-radio-group>
<el-table :data="recordList.fuPlanInfoList" style="width: 100%;margin-top: 20px;"> <el-table :data="recordList.enteringDtos" style="width: 100%;margin-top: 20px;">
<el-table-column prop="nickname" label="姓名" min-width="100" align="center"> <el-table-column prop="nickname" label="姓名" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="cursor: pointer" @click="visitDetail(scope.row)">{{scope.row.nickname}}</span> <span style="cursor: pointer" @click="visitDetail(scope.row)">{{scope.row.nickname}}</span>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<el-row type="flex" justify="end" class="margin-top20"> <el-row type="flex" justify="end" class="margin-top20">
<el-pagination <el-pagination
background background
v-if="recordList.fuPlanInfoList" v-if="recordList.enteringDtos"
@size-change="handleSizeChangePre" @size-change="handleSizeChangePre"
@current-change="handleCurrentChangePre" @current-change="handleCurrentChangePre"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
nickname: '', nickname: '',
mobilePhone: '' mobilePhone: ''
}, },
activeName: 0, activeName: '',
paginationSet: { paginationSet: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
...@@ -146,30 +146,31 @@ ...@@ -146,30 +146,31 @@
// ...mapActions('reservationManage', ['getConstantsData']), // ...mapActions('reservationManage', ['getConstantsData']),
...mapActions('recordManage', ['getRecordList', 'getEnteringInfo']), ...mapActions('recordManage', ['getRecordList', 'getEnteringInfo']),
async search(currentPage){ async search(currentPage){
if(this.timeRangeList.length>0) { if(this.timeRangeList) {
this.searchData.beginTime = this.timeRangeList[0]; this.searchData.beginTime = this.timeRangeList[0];
this.searchData.endTime = this.timeRangeList[1]; this.searchData.endTime = this.timeRangeList[1];
}else {
this.searchData.beginTime = '';
this.searchData.endTime = '';
} }
await this.getRecordList({ await this.getRecordList({
info: { ...this.searchData,
...this.searchData, status: this.activeName,
status: this.activeName, pageNo: currentPage || this.paginationSet.pageNo,
pageNo: currentPage || this.paginationSet.pageNo, pageSize: this.paginationSet.pageSize,
pageSize: this.paginationSet.pageSize,
},
}); });
const {pageNo, pageSize, count, acceptCount, refuseCount} = this.recordList; const {pageNo, pageSize, count, finishedCount, unfinishedCount} = this.recordList;
if(this.activeName == 0){ if(this.activeName == ''){
this.paginationSet.total = count; this.paginationSet.total = count;
}else if(this.activeName == 2){
this.paginationSet.total = finishedCount;
}else if(this.activeName == 1){ }else if(this.activeName == 1){
this.paginationSet.total = acceptCount; this.paginationSet.total = unfinishedCount;
}else {
this.paginationSet.total = refuseCount;
} }
this.paginationSet = { this.paginationSet = {
...this.paginationSet, ...this.paginationSet,
pageNo, pageNo,
pageSize: 10, pageSize: pageSize,
} }
}, },
reseat(){ reseat(){
...@@ -177,11 +178,12 @@ ...@@ -177,11 +178,12 @@
this.searchData.nickname = ''; this.searchData.nickname = '';
this.searchData.mobilePhone = ''; this.searchData.mobilePhone = '';
this.timeRangeList = []; this.timeRangeList = [];
this.searchData.beginTime = '';
this.searchData.endTime = '';
this.search(1); this.search(1);
}, },
async visitDetail(row){ async visitDetail(row){
await this.getEnteringInfo({patientId:row.patientId,fuPlanPatientTimesId:row.fuPlanPatientTimesId}); await this.getEnteringInfo({patientId:row.patientId,fuPlanPatientTimesId:row.fuPlanPatientTimesId});
//await this.getEnteringInfo({});
this.dialogDetailShow = true; this.dialogDetailShow = true;
// this.enteringRow = row; // this.enteringRow = row;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册