修改禅道已知bug
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
{{title && title.length > 18?title.slice(0,17)+'...':title}}
|
||||
</span>
|
||||
<template #overlay>
|
||||
<a-menu v-if="$route.query.createBy == userData.username"
|
||||
<a-menu v-if="$route.query.createBy == userData.username || administrators"
|
||||
@click="({ key: menuKey }) => onContextMenuClick(treeKey, menuKey, record)">
|
||||
<a-menu-item key="1" @click="orgAdd" v-has="'split:sarFileSplitMenu:add'">{{$t('newNode')}}
|
||||
</a-menu-item>
|
||||
@@ -67,19 +67,19 @@
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div class="operator-text" @click="handleCopyManage"
|
||||
v-if="$route.query.createBy == userData.username"
|
||||
v-if="$route.query.createBy == userData.username || administrators"
|
||||
v-has="'split:sarFileSplitItems:copy'">
|
||||
<a-icon type="copy"/>
|
||||
{{ $t('copy') }}
|
||||
</div>
|
||||
<div class="operator-text" @click="handleAddManage"
|
||||
v-if="$route.query.createBy == userData.username"
|
||||
v-if="$route.query.createBy == userData.username || administrators"
|
||||
v-has="'split:sarFileSplitItems:add'">
|
||||
<a-icon type="plus"/>
|
||||
{{ $t('add') }}
|
||||
</div>
|
||||
<div class="operator-text upload-split"
|
||||
v-if="$route.query.createBy == userData.username"
|
||||
v-if="$route.query.createBy == userData.username || administrators"
|
||||
@click="handleImportManage" v-has="'split:sarFileSplitItems:import'">
|
||||
<a-icon type="import" :rotate="-90" v-if="uploadMenuId===undefined||uploadMenuId===''"/>
|
||||
{{ (uploadMenuId===''||uploadMenuId===undefined)? $t('import'):'' }}
|
||||
@@ -94,25 +94,25 @@
|
||||
{{ $t('export') }}
|
||||
</div>
|
||||
<div class="operator-text" @click="handleDownManage"
|
||||
v-if="$route.query.createBy == userData.username"
|
||||
v-if="$route.query.createBy == userData.username || administrators"
|
||||
v-has="'split:sarFileSplitItems:template'">
|
||||
<a-icon type="download"/>
|
||||
{{ $t('TemplateDownload') }}
|
||||
</div>
|
||||
<div class="operator-text" @click="handleMergeManage"
|
||||
v-if="$route.query.createBy == userData.username"
|
||||
v-if="$route.query.createBy == userData.username || administrators"
|
||||
v-has="'split:sarFileSplitItems:merge'">
|
||||
<a-icon type="snippets"/>
|
||||
{{ $t('MergerClause') }}
|
||||
</div>
|
||||
<div class="operator-text" @click="handleManage"
|
||||
v-if="$route.query.createBy == userData.username"
|
||||
v-if="$route.query.createBy == userData.username || administrators"
|
||||
v-has="'split:sarFileSplitItems:set'">
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('BatchSetting') }}
|
||||
</div>
|
||||
<div class="operator-text" @click="handleBatCancel"
|
||||
v-if="$route.query.createBy == userData.username"
|
||||
v-if="$route.query.createBy == userData.username || administrators"
|
||||
v-has="'split:sarFileSplitItems:delete'">
|
||||
<a-icon type="delete"/>
|
||||
{{ $t('BatchDelete') }}
|
||||
@@ -126,7 +126,7 @@
|
||||
:OperationList="OperationList"
|
||||
:infoId="$route.query.infoId"
|
||||
:menuId="menuId"
|
||||
:showAction="$route.query.createBy == userData.username ? true :false"
|
||||
:showAction="$route.query.createBy == userData.username || administrators ? true :false"
|
||||
@onSelectChange="onSelectChange"
|
||||
@deleteClick="deleteClick"
|
||||
@editClick="editClick"
|
||||
@@ -320,7 +320,8 @@
|
||||
parameter: {},
|
||||
widthBrown: '',
|
||||
creenWidth: document.body.clientWidth,
|
||||
brownHeight: document.documentElement.clientHeight
|
||||
brownHeight: document.documentElement.clientHeight,
|
||||
administrators:false,
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -357,6 +358,14 @@
|
||||
|
||||
|
||||
this.userData = 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.infoId = this.$route.query.infoId
|
||||
console.log('info', this.$route.query)
|
||||
this.loadMenuData()
|
||||
|
||||
Reference in New Issue
Block a user