update 文档对比按钮权限

This commit is contained in:
赵霄
2023-09-20 11:53:46 +08:00
parent 4601acb8b2
commit 551071aa17
3 changed files with 59 additions and 19 deletions
@@ -6,15 +6,30 @@
@back="handleBack">
<template v-slot:titleRightCustom>
<!--查看比对结果-->
<a-button class="header-btn" type="primary" icon="eye" ghost @click="viewTheComparisonResultsClick">
<a-button class="header-btn"
type="primary"
icon="eye"
ghost
@click="viewTheComparisonResultsClick"
v-has="'docComparison:dataComparison:viewTheComparisonResults'">
{{ $t('docTool.comparison.viewTheComparisonResults') }}
</a-button>
<!--添加全文评论-->
<a-button class="header-btn" type="primary" icon="message" ghost @click="addFullTextCommentClick">
<a-button class="header-btn"
type="primary"
icon="message"
ghost
@click="addFullTextCommentClick"
v-has="'docComparison:dataComparison:addFullTextComment'">
{{ $t('docTool.comparison.addFullTextComment') }}
</a-button>
<!--关闭/打开自动匹配-->
<a-button class="header-btn" type="primary" :icon="isMatching?'close-circle':'check-circle'" ghost @click="turnOffAutomaticMatchingClick">
<a-button class="header-btn"
type="primary"
:icon="isMatching?'close-circle':'check-circle'"
ghost
@click="turnOffAutomaticMatchingClick"
v-has="'docComparison:dataComparison:turnOffAutomaticMatching'">
{{ isMatching ? $t('docTool.comparison.turnOffAutomaticMatching') : $t('docTool.comparison.turnOnAutoMatch') }}
</a-button>
</template>
@@ -100,10 +115,14 @@
<div class="submit-button">
<!--一致-->
<a-button style="margin-right: 10px" type="primary" @click="consistentAssessmentClick">{{ $t('docTool.comparison.consistentAssessment') }}
<a-button style="margin-right: 10px"
type="primary"
@click="consistentAssessmentClick"
v-has="'docComparison:dataComparison:consistentAssessment'">
{{ $t('docTool.comparison.consistentAssessment') }}
</a-button>
<!--保存-->
<a-button type="primary" @click="submit">{{ $t('preservation') }}</a-button>
<a-button type="primary" @click="submit" v-has="'docComparison:dataComparison:save'">{{ $t('preservation') }}</a-button>
</div>
<!--全文评论-->