修改禅道已知bug
This commit is contained in:
@@ -21,11 +21,11 @@
|
||||
<!-- <span v-if="ol.text==$t('check')">-->
|
||||
<!-- {{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}}-->
|
||||
<!-- </span>-->
|
||||
<span v-if="ol.text==$t('download') && record.createBy == userData.username"
|
||||
<span v-if="ol.text==$t('download') && (record.createBy == userData.username || administrators)"
|
||||
v-has="'ocr:ocrRestful:downFile'">
|
||||
{{record.resultContent=='转换成功'?ol.text:''}}
|
||||
</span>
|
||||
<span v-if="ol.text==$t('delete') && record.createBy == userData.username" v-has="'ocr:ocrRecord:delete'">
|
||||
<span v-if="ol.text==$t('delete') && (record.createBy == userData.username || administrators)" v-has="'ocr:ocrRecord:delete'">
|
||||
{{ol.text}}
|
||||
</span>
|
||||
</a>
|
||||
@@ -105,7 +105,8 @@
|
||||
searchParmes: {},
|
||||
loading: false,
|
||||
orderBy: '1',
|
||||
orderByField: ''
|
||||
orderByField: '',
|
||||
administrators:false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -131,6 +132,14 @@
|
||||
this.getData()
|
||||
this.getTableList()
|
||||
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
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
beforeDestroy(){
|
||||
eventBUs.$off('searchQuery')
|
||||
|
||||
Reference in New Issue
Block a user