访视操作按钮事件修改

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