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 }); this.$router.replace({ path: res[0].path });
return; return;
} }
if (this.hasPermi(["role:pm",'role:crc'])) { if (this.hasPermi(["role:pm",'role:oa','role:admin'])) {
this.$router.replace({ path: "/trials/trials-inspection" }); this.$router.replace({ path: "/trials/trials-inspection" });
} else if (this.hasPermi(["role:oa"])) { } else if (this.hasPermi(["role:oa"])) {
this.$router.replace({ path: "/system" }); this.$router.replace({ path: "/system" });

View File

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

View File

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

View File

@ -231,10 +231,21 @@
sortable="custom" sortable="custom"
></el-table-column> ></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"> <template slot-scope="scope">
<el-button <el-button
circle circle
v-hasPermi="['trials:trialsInspection:addTrials']"
icon="el-icon-plus" icon="el-icon-plus"
:title="$t('trials:inspection:button:addTrials')" :title="$t('trials:inspection:button:addTrials')"
@click.stop="handleOpenDialog(scope.row, 'add')" @click.stop="handleOpenDialog(scope.row, 'add')"
@ -242,6 +253,7 @@
<el-button <el-button
circle circle
icon="el-icon-delete" icon="el-icon-delete"
v-hasPermi="['trials:trialsInspection:delPatient']"
:title="$t('trials:inspection:button:delete')" :title="$t('trials:inspection:button:delete')"
@click.stop="deletePatientStudyAllData(scope.row)" @click.stop="deletePatientStudyAllData(scope.row)"
/> />

View File

@ -32,7 +32,7 @@
<!-- 工作台 --> <!-- 工作台 -->
<!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span> <!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span>
</el-menu-item> --> </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" /> <i class="el-icon-odometer" />
<!-- 检查 --> <!-- 检查 -->
<span slot="title">{{ $t("trials:menuTitle:inspection") }}</span> <span slot="title">{{ $t("trials:menuTitle:inspection") }}</span>

View File

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

View File

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

View File

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

View File

@ -52,9 +52,14 @@
</template> </template>
</el-table-column> </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"> <template slot-scope="scope">
<el-button <el-button
v-hasPermi="['trials:trials-panel:subject:delPatient']"
circle circle
icon="el-icon-delete" icon="el-icon-delete"
:title="$t('trials:subject:patientStudyList:button:delete')" :title="$t('trials:subject:patientStudyList:button:delete')"