提交 fbf56730 编写于 作者: hujun's avatar hujun

Merge branch 'dev-patients-20190513' into 'release-0612'

Dev patients 20190513



See merge request !29
...@@ -26,9 +26,11 @@ ...@@ -26,9 +26,11 @@
:data="searchData.tableData" :data="searchData.tableData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
:row-key="getRowKeys"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column <el-table-column
type="selection" type="selection"
:reserve-selection="true"
width="55"> width="55">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -78,7 +80,7 @@ ...@@ -78,7 +80,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:total="searchData.totalRows" :total="searchData.totalRows"
:current-page="1" :current-page="searchData.pageNo"
:page-sizes="[15, 30, 50, 100]" :page-sizes="[15, 30, 50, 100]"
:page-size="searchData.pageSize" :page-size="searchData.pageSize"
layout="total, sizes, prev, pager, next, jumper"> layout="total, sizes, prev, pager, next, jumper">
...@@ -192,6 +194,10 @@ ...@@ -192,6 +194,10 @@
singleDeleteInfo: [], singleDeleteInfo: [],
multipleSelection: [], multipleSelection: [],
selectPatientType: 2, //选择居民时需要的type类型 selectPatientType: 2, //选择居民时需要的type类型
getRowKeys(row) {
// console.log('>>>> ', row)
return row.id;
},
} }
}, },
components: { components: {
...@@ -228,6 +234,7 @@ ...@@ -228,6 +234,7 @@
pageNo: this.searchData.pageNo, pageNo: this.searchData.pageNo,
pageSize: this.searchData.pageSize, pageSize: this.searchData.pageSize,
}; };
getLabelDetail(labelId, params).then(data => { getLabelDetail(labelId, params).then(data => {
// console.log('获取分组详情>> ', data) // console.log('获取分组详情>> ', data)
if(data.data){ if(data.data){
...@@ -251,7 +258,6 @@ ...@@ -251,7 +258,6 @@
this.getDetail(); this.getDetail();
}, },
handleCurrentChange(val){ handleCurrentChange(val){
console.log('handleCurrentChange>>>', val)
// 切换当前页 // 切换当前页
this.searchData.pageNo = val; this.searchData.pageNo = val;
this.getDetail(); this.getDetail();
...@@ -395,7 +401,8 @@ ...@@ -395,7 +401,8 @@
type: 'success' type: 'success'
}); });
this.showDeletePatientsDialog = false; this.showDeletePatientsDialog = false;
this.getDetail(); // 删除后去第一页
this.handleCurrentChange(1);
}else{ }else{
this.$message({ this.$message({
message: '请求接口失败,请重新再试', message: '请求接口失败,请重新再试',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册