添加按钮权限
This commit is contained in:
+2
-1
@@ -60,7 +60,7 @@
|
||||
<span style="cursor: pointer"
|
||||
@click="fileClick(resultData.fileNameRight,resultData.fileIdRight)">{{resultData.fileNameRight}}</span>
|
||||
</div>
|
||||
<div class="detail-content-header-content-rightOne">
|
||||
<div class="detail-content-header-content-rightOne" :title="$t('comparisonDifferenceComment')">
|
||||
{{$t('comparisonDifferenceComment')}}
|
||||
</div>
|
||||
<div class="detail-content-header-content-right" v-if="!isDisplay">
|
||||
@@ -494,6 +494,7 @@
|
||||
.operator-text-text {
|
||||
cursor: pointer;
|
||||
margin-right: 53px;
|
||||
max-width: 138px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #040B29;
|
||||
|
||||
@@ -42,11 +42,11 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="initiatingProcessClick" class="operator-text">
|
||||
<div @click="initiatingProcessClick" v-has="'documentComparison:Initiate'" class="operator-text">
|
||||
<a-icon type="apartment"/>
|
||||
{{$t('initiateComparison')}}
|
||||
</div>
|
||||
<div @click="BatchDelete" class="operator-text">
|
||||
<div @click="BatchDelete" v-has="'documentComparison:batchDelete'" class="operator-text">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -67,15 +67,15 @@
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="comparisonResultsClick(record)">{{$t('comparisonResults')}}</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username"
|
||||
v-if="record.createBy == userInfoQuery.username || administrators"
|
||||
@click="subscribe(record)">
|
||||
{{!record.releaseState || record.releaseState == 'draft' ? $t('release') :$t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username && record.releaseState == 'draft'"
|
||||
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'"
|
||||
@click="edit(record)">{{$t('edit')}}</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username && record.releaseState == 'draft'"
|
||||
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseState == 'draft'"
|
||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||
</span>
|
||||
<span slot="serialNumberRight" :title="text" slot-scope="text,record">
|
||||
@@ -132,6 +132,7 @@
|
||||
pageNo: 1,
|
||||
queryParam: {},
|
||||
userInfoQuery: {},
|
||||
administrators:false,
|
||||
selectedRowKeysRecord: [],
|
||||
columns: [
|
||||
{
|
||||
@@ -233,6 +234,14 @@
|
||||
this.queryParam = { ...this.queryParam }
|
||||
}
|
||||
this.userInfoQuery = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -59,15 +59,15 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="uploadClick" class="operator-text">
|
||||
<div @click="uploadClick" v-has="'documentTranslation:upload'" class="operator-text">
|
||||
<a-icon type="cloud-upload"/>
|
||||
{{$t('upload1')}}
|
||||
</div>
|
||||
<div @click="RetrieveFilesClick" class="operator-text">
|
||||
<div @click="RetrieveFilesClick" v-has="'documentTranslation:retrieval'" class="operator-text">
|
||||
<a-icon type="database"/>
|
||||
{{$t('RetrieveFiles')}}
|
||||
</div>
|
||||
<div @click="BatchDelete" class="operator-text">
|
||||
<div @click="BatchDelete" v-has="'documentTranslation:batchDeletion'" class="operator-text">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
@@ -86,18 +86,22 @@
|
||||
>
|
||||
<!-- -->
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="viewClick(record)">{{$t('view')}}</a>
|
||||
<a class="text-operation"
|
||||
v-has="'documentTranslation:view'"
|
||||
@click="viewClick(record)">{{$t('view')}}</a>
|
||||
<!-- <a class="text-operation" @click="checkClick(record)">{{$t('check')}}</a>-->
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username"
|
||||
v-if="record.createBy == userInfoQuery.username || administrators"
|
||||
@click="subscribe(record)">
|
||||
{{!record.releaseCondition || record.releaseCondition == 'draft' ? $t('release') :$t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation"
|
||||
v-has="'documentTranslation:download'"
|
||||
v-if="record.translationResult == 'Translation done'"
|
||||
@click="downloadData(record)">{{$t('download')}}</a>
|
||||
<a class="text-operation"
|
||||
v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'"
|
||||
v-has="'documentTranslation:delete'"
|
||||
v-if="(record.createBy == userInfoQuery.username || administrators) && record.releaseCondition == 'draft'"
|
||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||
</span>
|
||||
<span slot="standardTitle" slot-scope="text,record" :title="text">
|
||||
@@ -158,6 +162,7 @@
|
||||
queryParam: {},
|
||||
userInfoQuery: {},
|
||||
selectedRowKeysRecord: [],
|
||||
administrators:false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('standard'),
|
||||
@@ -233,6 +238,14 @@
|
||||
}
|
||||
this.getList()
|
||||
this.userInfoQuery = this.userInfo()
|
||||
this.administrators = false
|
||||
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
|
||||
this.userInfo().userRoleList.forEach(res => {
|
||||
if (res.roleCode == 'admin') {
|
||||
this.administrators = true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
|
||||
@@ -8,11 +8,14 @@
|
||||
:url="url"/>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="handleCompare" class="operator-text">
|
||||
<div @click="handleCompare" v-has="'regulatoryEarlyWarning:push'"
|
||||
class="operator-text">
|
||||
<a-icon type="rocket" :rotate="45"/>
|
||||
{{$t('Push')}}
|
||||
</div>
|
||||
<div @click="handleExport" class="operator-text">
|
||||
<div @click="handleExport"
|
||||
v-has="'regulatoryEarlyWarning:export'"
|
||||
class="operator-text">
|
||||
<a-icon type="export" :rotate="-90"/>
|
||||
{{$t('export')}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user