修改中心调研缺陷
parent
7a6bac4c6c
commit
e4453bced6
|
@ -250,9 +250,12 @@ export default {
|
|||
},
|
||||
// 获取系统用户类型
|
||||
getUserType() {
|
||||
return new Promise(resolve => {
|
||||
getUserTypeList(3).then(res => {
|
||||
this.userTypeOptions = res.Result
|
||||
})
|
||||
resolve()
|
||||
}).catch(() => { resolve() })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<el-form ref="participantForm" :model="form" :rules="rules" label-width="200px" :inline="true">
|
||||
<el-form ref="participantForm" :model="form" :rules="rules" label-width="200px" :inline="true" v-loading="loading">
|
||||
<div class="base-dialog-body">
|
||||
<!-- 姓 -->
|
||||
<el-form-item :label="$t('trials:staffResearch:form:lastName')" prop="LastName">
|
||||
|
@ -203,7 +203,8 @@ export default {
|
|||
userTypeEnumInt: 0,
|
||||
errorMsg: '',
|
||||
crcId: '',
|
||||
craId: ''
|
||||
craId: '',
|
||||
loading:false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -211,13 +212,15 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
async initForm() {
|
||||
this.loading = true
|
||||
await this.getUserType()
|
||||
Object.keys(this.data).forEach(key => {
|
||||
this.form[key] = this.data[key]
|
||||
})
|
||||
if (zzSessionStorage.getItem('userTypeEnumInt')) {
|
||||
this.userTypeEnumInt = zzSessionStorage.getItem('userTypeEnumInt') * 1
|
||||
}
|
||||
this.getUserType()
|
||||
this.loading = false
|
||||
},
|
||||
// 保存参与者信息
|
||||
handleSave() {
|
||||
|
@ -275,6 +278,7 @@ export default {
|
|||
},
|
||||
// 获取系统用户类型
|
||||
getUserType() {
|
||||
return new Promise(resolve => {
|
||||
getUserTypeList(3).then(res => {
|
||||
this.userTypeOptions = res.Result
|
||||
var crcObj = res.Result.find(i => i.UserTypeEnum === 2)
|
||||
|
@ -282,6 +286,8 @@ export default {
|
|||
var craObj = res.Result.find(i => i.UserTypeEnum === 9)
|
||||
this.craId = craObj ? craObj.Id : ''
|
||||
})
|
||||
resolve()
|
||||
}).catch(() => { resolve() })
|
||||
},
|
||||
handleIsCorrectChange(val) {
|
||||
if (!val) {
|
||||
|
|
Loading…
Reference in New Issue