admin与oa权限配置
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2024-05-11 16:21:56 +08:00
parent d2a1d75f91
commit b1850e8056
9 changed files with 43 additions and 4 deletions

View File

@ -284,7 +284,7 @@ export default {
this.$router.replace({ path: res[0].path });
return;
}
if (this.hasPermi(["role:pm",'role:crc'])) {
if (this.hasPermi(["role:pm",'role:oa','role:admin'])) {
this.$router.replace({ path: "/trials/trials-inspection" });
} else if (this.hasPermi(["role:oa"])) {
this.$router.replace({ path: "/system" });

View File

@ -125,6 +125,7 @@
<!-- 移除项目 -->
<el-button
circle
v-hasPermi="['trials:trialsInspection:delTrials']"
icon="el-icon-delete"
:title="$t('common:button:remove')"
@click.stop="remove(scope.row)"

View File

@ -143,6 +143,7 @@
<!--删除-->
<el-button
circle
v-hasPermi="['trials:trialsInspection:delStudy']"
icon="el-icon-delete"
:title="$t('trials:inspection:button:delete')"
@click.stop="deletePatientStudy(scope.row)"

View File

@ -231,10 +231,21 @@
sortable="custom"
></el-table-column>
<!--操作-->
<el-table-column :label="$t('common:action:action')" min-width="100" fixed="right">
<el-table-column
:label="$t('common:action:action')"
min-width="100"
fixed="right"
v-if="
hasPermi([
'trials:trialsInspection:addTrials',
'trials:trialsInspection:delPatient',
])
"
>
<template slot-scope="scope">
<el-button
circle
v-hasPermi="['trials:trialsInspection:addTrials']"
icon="el-icon-plus"
:title="$t('trials:inspection:button:addTrials')"
@click.stop="handleOpenDialog(scope.row, 'add')"
@ -242,6 +253,7 @@
<el-button
circle
icon="el-icon-delete"
v-hasPermi="['trials:trialsInspection:delPatient']"
:title="$t('trials:inspection:button:delete')"
@click.stop="deletePatientStudyAllData(scope.row)"
/>

View File

@ -32,7 +32,7 @@
<!-- 工作台 -->
<!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span>
</el-menu-item> -->
<el-menu-item v-if="hasPermi(['role:pm','role:crc'])" index="1">
<el-menu-item v-if="hasPermi(['role:pm','role:oa','role:admin'])" index="1">
<i class="el-icon-odometer" />
<!-- 检查 -->
<span slot="title">{{ $t("trials:menuTitle:inspection") }}</span>

View File

@ -99,6 +99,7 @@
<!-- 诊断报告 -->
<el-button
icon="el-icon-document"
v-hasPermi="['trials:trials-panel:hirVisit:result']"
disabled
:title="$t('trials:inspection:button:diagnosticReport')"
circle

View File

@ -107,6 +107,7 @@
<!-- 诊断报告 -->
<el-button
icon="el-icon-document"
v-hasPermi="['trials:trials-panel:hirVisit:result']"
disabled
:title="$t('trials:inspection:button:diagnosticReport')"
circle

View File

@ -216,6 +216,13 @@
:label="$t('common:action:action')"
min-width="150"
fixed="right"
v-if="
hasPermi([
'trials:trials-panel:study:view',
'trials:trials-panel:study:editVisit',
'trials:trials-panel:study:delStudy',
])
"
>
<template slot-scope="scope">
<!-- 查看 -->
@ -245,10 +252,20 @@
icon="el-icon-delete"
@click.stop="remove(scope.row)"
class="detail"
v-hasPermi="['trials:trials-panel:study:delStudy']"
:disabled="!scope.row.SubjectVisitId"
v-if="activeName === 'notSubmit'"
:title="$t('common:button:remove')"
/>
<!-- 诊断报告 -->
<el-button
circle
icon="el-icon-document"
@click.stop="report(scope.row)"
v-hasPermi="['trials:trials-panel:study:view']"
:title="$t('trials:inspection:button:diagnosticReport')"
disabled
/>
</template>
</el-table-column>
</el-table>
@ -331,6 +348,7 @@ export default {
this.getList();
},
methods: {
report() {},
// 访
async remove(item) {
try {

View File

@ -52,9 +52,14 @@
</template>
</el-table-column>
<!--操作-->
<el-table-column :label="$t('common:action:action')" width="80">
<el-table-column
:label="$t('common:action:action')"
width="80"
v-if="hasPermi(['trials:trials-panel:subject:delPatient'])"
>
<template slot-scope="scope">
<el-button
v-hasPermi="['trials:trials-panel:subject:delPatient']"
circle
icon="el-icon-delete"
:title="$t('trials:subject:patientStudyList:button:delete')"