访视列表操作按钮修改

main
wangxiaoshuang 2024-04-15 09:25:22 +08:00
parent 353c2e839c
commit ffd81d7aa2
1 changed files with 55 additions and 34 deletions

View File

@ -226,58 +226,79 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!--修改检查--> <!--修改检查-->
<el-button <el-button
type="text" circle
icon="el-icon-edit-outline"
v-hasPermi="['trials:trials-panel:hirVisit:edit']" v-hasPermi="['trials:trials-panel:hirVisit:edit']"
:title="$t('trials:hirVisit:button:editStudy')"
:disabled="Number(scope.row.SubmitState) > 1" :disabled="Number(scope.row.SubmitState) > 1"
@click.stop="editStudy(scope.row)" @click.stop="editStudy(scope.row)"
>{{ $t("trials:hirVisit:button:editStudy") }}</el-button />
>
<!--提交--> <!--提交-->
<el-button <el-button
type="text" circle
icon="el-icon-position"
v-hasPermi="['trials:trials-panel:hirVisit:submit']" v-hasPermi="['trials:trials-panel:hirVisit:submit']"
:disabled=" :disabled="
Number(scope.row.SubmitState) != 1 || Number(scope.row.SubmitState) != 1 ||
!scope.row.VisitLatestStudyTime !scope.row.VisitLatestStudyTime
" "
:title="$t('common:button:submit')"
@click.stop="submit(scope.row)" @click.stop="submit(scope.row)"
>{{ $t("common:button:submit") }}</el-button />
>
<!--删除--> <!--删除-->
<el-button <el-button
type="text" circle
icon="el-icon-delete"
v-hasPermi="['trials:trials-panel:hirVisit:remove']" v-hasPermi="['trials:trials-panel:hirVisit:remove']"
@click.stop="remove(scope.row)" @click.stop="remove(scope.row)"
:disabled="Number(scope.row.SubmitState) > 0" :disabled="Number(scope.row.SubmitState) > 0"
>{{ $t("common:button:delete") }}</el-button :title="$t('common:button:delete')"
/>
<el-dropdown
style="margin-left: 10px"
v-if="
hasPermi(['trials:trials-panel:hirVisit:result']) ||
hasPermi(['trials:trials-panel:hirVisit:downlaod'])
"
> >
<!--评估结果-->
<el-button <el-button
type="text" class="el-dropdown-link"
circle
icon="el-icon-more"
:title="$t('common:action:action')"
>
</el-button>
<el-dropdown-menu slot="dropdown">
<!--评估结果-->
<el-dropdown-item
v-hasPermi="['trials:trials-panel:hirVisit:result']" v-hasPermi="['trials:trials-panel:hirVisit:result']"
@click.stop="result(scope.row)" @click.stop="result(scope.row)"
disabled disabled
>{{ $t("trials:adReview:title:result") }}</el-button >{{ $t("trials:adReview:title:result") }}</el-dropdown-item
> >
<!--下载影像--> <!--下载影像-->
<el-button <el-dropdown-item
type="text"
v-hasPermi="['trials:trials-panel:hirVisit:download']" v-hasPermi="['trials:trials-panel:hirVisit:download']"
@click.stop="downloadImage(scope.row)" @click.stop="downloadImage(scope.row)"
:disabled=" :disabled="
Number(scope.row.SubmitState) === 0 || Number(scope.row.SubmitState) === 0 ||
!scope.row.VisitLatestStudyTime !scope.row.VisitLatestStudyTime
" "
>{{ $t("trials:reading:button:uploadImages") }}</el-button >{{
$t("trials:reading:button:uploadImages")
}}</el-dropdown-item
> >
<!--下载医疗报告--> <!--下载医疗报告-->
<el-button <el-dropdown-item
type="text"
v-hasPermi="['trials:trials-panel:hirVisit:download']" v-hasPermi="['trials:trials-panel:hirVisit:download']"
@click.stop="downloadReport(scope.row)" @click.stop="downloadReport(scope.row)"
disabled disabled
>{{ $t("trials:reading:button:uploadReport") }}</el-button >{{
$t("trials:reading:button:uploadReport")
}}</el-dropdown-item
> >
</el-dropdown-menu>
</el-dropdown>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>