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

fixed

上级 fcb202e4
......@@ -2,24 +2,39 @@ import axios from '../fetch';
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*/
const planManageApi = [
{
url: '/followup/planPatient',
method: 'GET',
params: 'params',
name: 'getApproveList',
name: 'getResidentList',
description: '获取居民列表',
},
]
const api = {};
const apis = [...planManageApi];
apis.forEach(item => api[item.name] = (params = {}, extraConfig = {}) => {
const config = {
baseURL: domain,
url: item.url,
method: item.method,
};
......
......@@ -155,7 +155,9 @@
created() {
console.log('api',api)
},
mounted() {},
mounted() {
this.getResidentList()
},
methods: {
handleSizeChangePre() {
......@@ -167,6 +169,20 @@
alert(1+patientId)
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 @@
prop="patientName"
label="姓名"
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
prop="sexName"
......@@ -135,7 +138,15 @@
}],
tableType: 0, //列表筛选条件
reservationData: [
{
"patientId": "居民ID",
"patientName": "居民姓名",
"sex": "性别",
"sexName": "性别名字",
"time": "随访开始时间",
"labelId": "分组ID",
"labelName": "分组名字"
}
], //居民列表
pageNum: 1,
pageSize: 15,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册