|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
|
<view class="main">
|
|
|
- <view style="padding: 15px 0;">
|
|
|
+ <view style="padding: 15px 0">
|
|
|
<u-search placeholder="患者姓名" v-model="param.patientName" bgColor="white" :showAction="false" @search="refresh()" @clear="(param.patientName = ''), refresh()"></u-search>
|
|
|
</view>
|
|
|
<view class="list">
|
|
|
- <view class="item" v-for="(item, index) in list" :key="index" @click="go('/pages/detection/doctor/list?cardId='+item.cardId+'&patId=' + item.patId+'&patientName='+ item.name)">
|
|
|
+ <view class="item" v-for="(item, index) in list" :key="index" @click="go('/pages/detection/doctor/list?cardId=' + item.cardId + '&patId=' + item.patId + '&patientName=' + item.name)">
|
|
|
<view class="title omit">
|
|
|
<text>{{ item.name }}</text>
|
|
|
- <text class="check">({{ item.cardId }})</text>
|
|
|
+ <text class="check">({{ item.cardId }})</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-empty v-if="list.length == 0" text="暂无患者"></u-empty>
|
|
@@ -20,9 +20,9 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
list: [],
|
|
|
- param:{
|
|
|
- pageNum:1,
|
|
|
- pageSize:20,
|
|
|
+ param: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20
|
|
|
},
|
|
|
loadMore: true
|
|
|
};
|
|
@@ -35,20 +35,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getData() {
|
|
|
+ this.param.userId = this.getUser().userId;
|
|
|
this.http.request({
|
|
|
- url: '/system/user/deptTree',
|
|
|
+ url: '/work/visit/patientCard',
|
|
|
+ data: this.param,
|
|
|
success: (res) => {
|
|
|
- console.log(res);
|
|
|
- this.param.departmentName = res.data.data[0].label
|
|
|
- this.http.request({
|
|
|
- url: '/work/visit/patientCard',
|
|
|
- data: this.param,
|
|
|
- success: (res) => {
|
|
|
- this.loadMore = res.data.pages > this.param.pageNum ? true : false;
|
|
|
- res.data.rows.forEach((item) => {
|
|
|
- this.list.push(item);
|
|
|
- });
|
|
|
- }
|
|
|
+ this.loadMore = res.data.pages > this.param.pageNum ? true : false;
|
|
|
+ res.data.rows.forEach((item) => {
|
|
|
+ this.list.push(item);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -62,8 +56,7 @@ export default {
|
|
|
this.param.pageNum = 1;
|
|
|
this.list = [];
|
|
|
this.getData();
|
|
|
- },
|
|
|
-
|
|
|
+ }
|
|
|
},
|
|
|
//上拉加载
|
|
|
onReachBottom() {
|