提交 48ee1bfd 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

fixed

上级 fcb202e4
...@@ -2,24 +2,39 @@ import axios from '../fetch'; ...@@ -2,24 +2,39 @@ import axios from '../fetch';
import utils from './followupUtils'; import utils from './followupUtils';
// 随访接口域名
let domain = ' ';
if (process.env.APIDOMAIN === 'prod') {
domain = ' ';
} else if (process.env.APIDOMAIN === 'test') {
domain = ' ';
} else if (process.env.APIDOMAIN === 'uat') {
domain = ' ';
} else if (process.env.APIDOMAIN === 'dev') {
domain = ' ';
}
/*计划管理API*/ /*计划管理API*/
const planManageApi = [ const planManageApi = [
{ {
url: '/followup/planPatient', url: '/followup/planPatient',
method: 'GET', method: 'GET',
params: 'params', params: 'params',
name: 'getApproveList', name: 'getResidentList',
description: '获取居民列表', description: '获取居民列表',
}, },
] ]
const api = {}; const api = {};
const apis = [...planManageApi]; const apis = [...planManageApi];
apis.forEach(item => api[item.name] = (params = {}, extraConfig = {}) => { apis.forEach(item => api[item.name] = (params = {}, extraConfig = {}) => {
const config = { const config = {
baseURL: domain,
url: item.url, url: item.url,
method: item.method, method: item.method,
}; };
......
...@@ -155,7 +155,9 @@ ...@@ -155,7 +155,9 @@
created() { created() {
console.log('api',api) console.log('api',api)
}, },
mounted() {}, mounted() {
this.getResidentList()
},
methods: { methods: {
handleSizeChangePre() { handleSizeChangePre() {
...@@ -167,6 +169,20 @@ ...@@ -167,6 +169,20 @@
alert(1+patientId) alert(1+patientId)
this.$router.push('/followup/plan-manage/resident-detail') this.$router.push('/followup/plan-manage/resident-detail')
},
getResidentList() { //获取居民列表
api.getResidentList({
pageNum: this.pageNum,
pageSize: this.pageSize,
status: 0,
startData: '',
planId: '',
mobile: '',
patientName: ''
}).then(({data}) => {
});
} }
} }
} }
......
...@@ -66,6 +66,9 @@ ...@@ -66,6 +66,9 @@
prop="patientName" prop="patientName"
label="姓名" label="姓名"
align="center"> align="center">
<template slot-scope="scope">
<el-button type="text" @click="goPatientDetail(scope.row.patientId)" >{{scope.row.patientName}}</el-button>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="sexName" prop="sexName"
...@@ -135,7 +138,15 @@ ...@@ -135,7 +138,15 @@
}], }],
tableType: 0, //列表筛选条件 tableType: 0, //列表筛选条件
reservationData: [ reservationData: [
{
"patientId": "居民ID",
"patientName": "居民姓名",
"sex": "性别",
"sexName": "性别名字",
"time": "随访开始时间",
"labelId": "分组ID",
"labelName": "分组名字"
}
], //居民列表 ], //居民列表
pageNum: 1, pageNum: 1,
pageSize: 15, pageSize: 15,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册