访视操作按钮事件修改

main
wangxiaoshuang 2024-04-15 15:22:03 +08:00
parent e70404b400
commit 5d759699a4
1 changed files with 8 additions and 3 deletions

View File

@ -263,6 +263,7 @@
hasPermi(['trials:trials-panel:hirVisit:result']) ||
hasPermi(['trials:trials-panel:hirVisit:downlaod'])
"
@command="(command) => handleCommand(command, scope.row)"
>
<el-button
class="el-dropdown-link"
@ -275,14 +276,14 @@
<!--评估结果-->
<el-dropdown-item
v-hasPermi="['trials:trials-panel:hirVisit:result']"
@click.stop="result(scope.row)"
disabled
command="result"
>{{ $t("trials:adReview:title:result") }}</el-dropdown-item
>
<!--下载影像-->
<el-dropdown-item
v-hasPermi="['trials:trials-panel:hirVisit:download']"
@click.stop="downloadImage(scope.row)"
command="downloadImage"
:disabled="
Number(scope.row.SubmitState) === 0 ||
!scope.row.VisitLatestStudyTime
@ -294,7 +295,7 @@
<!--下载医疗报告-->
<el-dropdown-item
v-hasPermi="['trials:trials-panel:hirVisit:download']"
@click.stop="downloadReport(scope.row)"
command="downloadReport"
disabled
>{{
$t("trials:reading:button:uploadReport")
@ -379,6 +380,10 @@ export default {
this.getList();
},
methods: {
//
handleCommand(command, item) {
this[command](item);
},
//
handleSearch() {
this.getList();