|
@@ -153,16 +153,22 @@ export default {
|
|
|
url: '/system/user/deptTree',
|
|
|
}).then((response) => {
|
|
|
this.deptOptions = response.data
|
|
|
+ this.queryParams.deptId = response.data[0].id;
|
|
|
+ this.getList();
|
|
|
})
|
|
|
},
|
|
|
handleNodeClick(data) {
|
|
|
- this.queryParams.departmentName = data.label
|
|
|
+ if(this.queryParams.deptId === data.id){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.queryParams.deptId = data.id
|
|
|
this.getList()
|
|
|
},
|
|
|
selects(rows) {
|
|
|
this.ids = rows.map((item) => item.id)
|
|
|
},
|
|
|
op(tag, row) {
|
|
|
+ console.log(row.patId)
|
|
|
this.iframe({
|
|
|
obj: window,
|
|
|
param: { id: row.patId },
|