|
@@ -23,7 +23,7 @@
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table :data="response.rows" border height="calc(100vh - 240px)">
|
|
|
+ <el-table :data="response.rows" border height="calc(100vh - 240px)" v-loading="loading">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="患者姓名" align="center" prop="name" width="110" />
|
|
|
<el-table-column label="性别" align="center" prop="state" width="70">
|
|
@@ -82,13 +82,15 @@ export default {
|
|
|
return {
|
|
|
user: this.$store.state.user,
|
|
|
dateRange: [],
|
|
|
+ loading: false,
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
physician: null,
|
|
|
name: null,
|
|
|
department: null,
|
|
|
- deptId: null
|
|
|
+ deptId: null,
|
|
|
+ userId: null
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -100,12 +102,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|
|
|
+ this.loading = true;
|
|
|
if (this.dateRange) {
|
|
|
this.queryParams.dateBegin = this.dateRange[0];
|
|
|
this.queryParams.dateEnd = this.dateRange[1];
|
|
|
}
|
|
|
- this.get({ url: '/work/visit/patientCard', data: this.queryParams }).then((response) => {
|
|
|
+ this.get({ url: '/work/visit/patientCard', data: this.queryParams, loading: 'false' }).then((response) => {
|
|
|
this.response = response;
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
op(tag, row, type) {
|
|
@@ -116,7 +120,11 @@ export default {
|
|
|
this.iframe({ obj: listByUser, param: { patientId: row.patId, patientName: row.name, type: type }, title: row.name + '的' + (type == 0 ? '复诊提醒记录' : '出院随访记录'), width: '80%', height: '80%' });
|
|
|
}
|
|
|
},
|
|
|
- handleQuery() {
|
|
|
+ handleQuery(e) {
|
|
|
+ if (e != undefined && e.deptId) {
|
|
|
+ this.queryParams.userId = null;
|
|
|
+ this.queryParams.deptId = e.deptId;
|
|
|
+ }
|
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
},
|