管理课题组管理员信息填写变更
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-08-29 09:28:54 +08:00
parent 5988ad8703
commit c62c80733f
2 changed files with 17 additions and 8 deletions

View File

@ -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
})
}
// 修改检查课题组

View File

@ -102,7 +102,8 @@
<el-form-item :label="$t('system:hospital:group:ContactPhone')" prop="ContactPhone">
<el-input v-model="from.ContactPhone" clearable />
</el-form-item>
<el-form-item :label="$t('system:hospital:group:IdentityUserIdList')" prop="IdentityUserIdList">
<el-form-item :label="$t('system:hospital:group:IdentityUserIdList')" prop="IdentityUserIdList"
v-if="status === 'edit'">
<el-select ref="userType" v-model="from.IdentityUserIdList" size="small" placeholder="Please select"
multiple style="width: 100%">
<template v-for="user of GAUserList">
@ -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]