|
@@ -20,6 +20,7 @@
|
|
|
<div>
|
|
|
<div style="height: calc(-203px + 100vh);overflow-y: auto; margin-top: 3px">
|
|
|
<el-tree
|
|
|
+ :highlight-current="true"
|
|
|
class="filter-tree"
|
|
|
:data="deptOptions"
|
|
|
default-expand-all
|
|
@@ -42,9 +43,9 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
class="se" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="patientName">
|
|
|
+ <el-form-item prop="name">
|
|
|
<el-input
|
|
|
- v-model="queryParams.patientName"
|
|
|
+ v-model="queryParams.name"
|
|
|
placeholder="请输入患者姓名"
|
|
|
clearable
|
|
|
@keyup.enter.native="handleQuery"
|
|
@@ -144,7 +145,7 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
physician: undefined,
|
|
|
- patientName: undefined,
|
|
|
+ name: undefined,
|
|
|
department: undefined,
|
|
|
deptId: undefined,
|
|
|
startTime:undefined,
|
|
@@ -158,6 +159,11 @@ export default {
|
|
|
this.queryParams.startTime = newVal[0].toString(); // 开始日期
|
|
|
this.queryParams.endTime = newVal[1].toString(); // 结束日期
|
|
|
}
|
|
|
+ if(!newVal){
|
|
|
+ this.queryParams.startTime = ''; // 开始日期
|
|
|
+ this.queryParams.endTime = ''; // 结束日期
|
|
|
+ this.handleQuery();
|
|
|
+ }
|
|
|
},
|
|
|
filterText(val) {
|
|
|
this.$refs.tree.filter(val);
|
|
@@ -197,7 +203,9 @@ export default {
|
|
|
url: '/system/user/deptTree',
|
|
|
}).then((response) => {
|
|
|
this.deptOptions = response.data
|
|
|
- this.queryParams.deptId = response.data[0].id;
|
|
|
+ if(response.data.id != null){
|
|
|
+ this.queryParams.deptId = response.data[0].id;
|
|
|
+ }
|
|
|
this.getList();
|
|
|
})
|
|
|
},
|