ea、qa权限配置

uat_us
wangxiaoshuang 2024-03-14 10:23:26 +08:00
parent 68ea60857d
commit 157b65c507
2 changed files with 20 additions and 6 deletions

View File

@ -29,6 +29,7 @@
width="150" width="150"
prop="FirstName" prop="FirstName"
sortable="custom" sortable="custom"
v-if="!hasPermi(['role:ea'])"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.DoctorId}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.DoctorId}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button>
@ -39,6 +40,7 @@
prop="ChineseName" prop="ChineseName"
sortable="custom" sortable="custom"
:label="$t('trials:enrolledReviews:table:nameCN')" :label="$t('trials:enrolledReviews:table:nameCN')"
v-if="!hasPermi(['role:ea'])"
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
/> />
@ -46,7 +48,7 @@
<el-table-column <el-table-column
prop="UserName" prop="UserName"
:label="$t('trials:enrolledReviews:table:userName')" :label="$t('trials:enrolledReviews:table:userName')"
width="150" :width="hasPermi(['role:ea'])?300:150"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
/> />
@ -54,7 +56,7 @@
<el-table-column <el-table-column
prop="EnrollTimeStr" prop="EnrollTimeStr"
:label="$t('trials:enrolledReviews:table:enrollmentTime')" :label="$t('trials:enrolledReviews:table:enrollmentTime')"
width="200" :width="hasPermi(['role:ea'])?320:200"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
> >
@ -77,6 +79,7 @@
:active-value="true" :active-value="true"
:inactive-value="false" :inactive-value="false"
@change="(v) => {return isEnableChange(scope.row, v)}" @change="(v) => {return isEnableChange(scope.row, v)}"
:disabled="!hasPermi(['trials:trials-panel:enrolled-reviewers:list:edit'])"
/> />
<span>{{$fd('IsEnable', scope.row.IsEnable)}}</span> <span>{{$fd('IsEnable', scope.row.IsEnable)}}</span>
</div> </div>
@ -84,6 +87,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-for="ite of TrialReadingCriterionList" v-for="ite of TrialReadingCriterionList"
:key="ite"
:label="ite.TrialReadingCriterionName" :label="ite.TrialReadingCriterionName"
width="360" width="360"
header-align="center" header-align="center"
@ -95,7 +99,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="item of scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}) ? scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).ReadingCategorys : []"> <span v-for="item of scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}) ? scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).ReadingCategorys : []" :key="item">
<el-tag v-if="item === 1" type="primary">{{ $fd('ReadingCategory', item) + ' & ' + $fd('ReadingCategory', 2) }}</el-tag> <el-tag v-if="item === 1" type="primary">{{ $fd('ReadingCategory', item) + ' & ' + $fd('ReadingCategory', 2) }}</el-tag>
<!-- <el-tag v-if="item === 2" type="info">{{ $fd('ReadingCategory', item) }}</el-tag>--> <!-- <el-tag v-if="item === 2" type="info">{{ $fd('ReadingCategory', item) }}</el-tag>-->
<el-tag v-if="item === 4" type="danger">{{ $fd('ReadingCategory', item) }}</el-tag> <el-tag v-if="item === 4" type="danger">{{ $fd('ReadingCategory', item) }}</el-tag>
@ -121,6 +125,7 @@
:active-value="true" :active-value="true"
:inactive-value="false" :inactive-value="false"
@change="(v) => {return isConsistencyChange(scope.row, ite, v, true)}" @change="(v) => {return isConsistencyChange(scope.row, ite, v, true)}"
:disabled="!hasPermi(['trials:trials-panel:enrolled-reviewers:list:edit'])"
/> />
<span v-if="scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).IsJoinAnalysis">{{$fd('YesOrNo', scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).IsJoinAnalysis)}}</span> <span v-if="scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).IsJoinAnalysis">{{$fd('YesOrNo', scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).IsJoinAnalysis)}}</span>
<span v-else>{{$fd('YesOrNo',false)}}</span> <span v-else>{{$fd('YesOrNo',false)}}</span>
@ -253,9 +258,15 @@
default-first-option default-first-option
style="width: 70%" style="width: 70%"
> >
<el-option v-for="item of $d.ReadingCategory" v-if="item.value === 1" :key="item.id" :value="1" :label="$fd('ReadingCategory', 1) + ' & ' + $fd('ReadingCategory', 2)" /> <template v-for="item of $d.ReadingCategory">
<el-option v-for="item of $d.ReadingCategory" v-if="item.value === 4 && IsArbitrationReading" :key="item.id" :value="item.value" :label="$fd('ReadingCategory', 4)" /> <el-option v-if="item.value === 1" :key="item.id" :value="1" :label="$fd('ReadingCategory', 1) + ' & ' + $fd('ReadingCategory', 2)" />
<el-option v-for="item of $d.ReadingCategory" v-if="item.value === 5 && IsOncologyReading" :key="item.id" :value="item.value" :label="$fd('ReadingCategory', 5)" /> </template>
<template v-for="item of $d.ReadingCategory">
<el-option v-if="item.value === 4 && IsArbitrationReading" :key="item.id" :value="item.value" :label="$fd('ReadingCategory', 4)" />
</template>
<template v-for="item of $d.ReadingCategory">
<el-option v-if="item.value === 5 && IsOncologyReading" :key="item.id" :value="item.value" :label="$fd('ReadingCategory', 5)" />
</template>
</el-select> </el-select>
</template> </template>
<template slot="dialog-footer"> <template slot="dialog-footer">

View File

@ -355,6 +355,7 @@
circle circle
:title="$t('trials:pmMedicalReview:action:failure')" :title="$t('trials:pmMedicalReview:action:failure')"
:disabled="scope.row.IsInvalid || !!scope.row.AuditSignTime" :disabled="scope.row.IsInvalid || !!scope.row.AuditSignTime"
v-hasPermi="['trials:trials-panel:reading:pm-medical-feedback:failure']"
icon="el-icon-close" icon="el-icon-close"
@click="setMedicalReviewInvalid(scope.row)" @click="setMedicalReviewInvalid(scope.row)"
/> />
@ -363,6 +364,7 @@
:title="$t('trials:pmMedicalReview:action:assign')" :title="$t('trials:pmMedicalReview:action:assign')"
:disabled="!!scope.row.MedicalManagerUser || scope.row.IsInvalid || !!scope.row.AuditSignTime" :disabled="!!scope.row.MedicalManagerUser || scope.row.IsInvalid || !!scope.row.AuditSignTime"
icon="el-icon-thumb" icon="el-icon-thumb"
v-hasPermi="['trials:trials-panel:reading:pm-medical-feedback:assign']"
@click="assignMedicalReviewTask(scope.row, 1)" @click="assignMedicalReviewTask(scope.row, 1)"
/> />
<el-button <el-button
@ -370,6 +372,7 @@
:title="$t('trials:pmMedicalReview:action:cancelAssign')" :title="$t('trials:pmMedicalReview:action:cancelAssign')"
:disabled="!scope.row.MedicalManagerUser || scope.row.IsInvalid || !!scope.row.AuditSignTime" :disabled="!scope.row.MedicalManagerUser || scope.row.IsInvalid || !!scope.row.AuditSignTime"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
v-hasPermi="['trials:trials-panel:reading:pm-medical-feedback:cancelAssign']"
@click="assignMedicalReviewTask(scope.row, 3)" @click="assignMedicalReviewTask(scope.row, 3)"
/> />
</template> </template>