工作台用户名

uat_us
熊飞 2024-03-13 15:49:48 +08:00
parent d131953beb
commit c73c84b15d
1 changed files with 5 additions and 3 deletions

View File

@ -64,7 +64,7 @@
>
{{ $t('common:button:cancel') }}
</el-button>
<el-button size="small" type="primary" :loading="btnLoading" @click="save(true)">
<el-button size="small" type="primary" :disabled="!IsAllowAutoAllocate" :loading="btnLoading" @click="save(true)">
{{$t('trials:grouptConsistencyAnalysis:button:RandomCreate')}}
</el-button>
<!-- 生成 -->
@ -129,7 +129,8 @@ export default {
loading: false,
trialId: this.$route.query.trialId,
SelectList: [],
btnLoading: false
btnLoading: false,
IsAllowAutoAllocate: true
}
},
mounted() {
@ -177,11 +178,12 @@ export default {
this.loading = true
this.searchData.TrialReadingCriterionId = this.TrialReadingCriterionId
getGroupConsistentRuleSubjectList(this.searchData).then(res => {
if (res.OtherInfo) {
if (res.OtherInfo.Rule) {
this.$emit('setReaderRulesFormVisible', false)
} else {
this.$emit('setReaderRulesFormVisible', true)
}
this.IsAllowAutoAllocate = res.OtherInfo.IsAllowAutoAllocate
this.loading = false
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount