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