diff --git a/src/api/admin.js b/src/api/admin.js
index 152cbaf..554c469 100644
--- a/src/api/admin.js
+++ b/src/api/admin.js
@@ -357,11 +357,12 @@ export function deleteHospitalGroup(id) {
method: 'delete'
})
}
-// 删除课题组
-export function getGAUserList() {
+// 获取课题组相关ga
+export function getGAUserList(params) {
return request({
url: `/HospitalGroup/getGAUserList`,
- method: 'get'
+ method: 'get',
+ params
})
}
// 修改检查课题组
diff --git a/src/views/system/hospital/components/groupList.vue b/src/views/system/hospital/components/groupList.vue
index a8cae8b..3f61f62 100644
--- a/src/views/system/hospital/components/groupList.vue
+++ b/src/views/system/hospital/components/groupList.vue
@@ -102,7 +102,8 @@
-
+
@@ -216,9 +217,12 @@ export default {
})
this.from.IdentityUserIdList = []
},
- async getGAUserList() {
+ async getGAUserList(HospitalGroupId) {
try {
- let res = await getGAUserList()
+ let data = {
+ HospitalGroupId
+ }
+ let res = await getGAUserList(data)
if (res.IsSuccess) {
this.GAUserList = res.Result
}
@@ -239,12 +243,16 @@ export default {
})
},
handleAdd() {
- this.getGAUserList()
+ // this.getGAUserList()
+ Object.keys(this.from).forEach(key => {
+ this.from[key] = null
+ })
+ this.from.IdentityUserIdList = []
this.status = 'add'
this.visible = true
},
handleEdit(row) {
- this.getGAUserList()
+ this.getGAUserList(row.Id)
this.status = 'edit'
Object.keys(this.from).forEach(key => {
this.from[key] = row[key]