添加创建者权限

This commit is contained in:
qq787203167
2022-06-10 14:02:10 +08:00
parent 79fbe8506c
commit d2dcc22670
3 changed files with 27 additions and 8 deletions
+8 -4
View File
@@ -21,10 +21,11 @@
<span v-if="ol.text==$t('check')">
{{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}}
</span>
<span v-if="ol.text==$t('download')" v-has="'ocr:ocrRestful:downFile'">
<span v-if="ol.text==$t('download') && record.createBy == userData.username"
v-has="'ocr:ocrRestful:downFile'">
{{record.resultContent=='转换成功'?ol.text:''}}
</span>
<span v-if="ol.text==$t('delete')" v-has="'ocr:ocrRecord:delete'">
<span v-if="ol.text==$t('delete') && record.createBy == userData.username" v-has="'ocr:ocrRecord:delete'">
{{ol.text}}
</span>
</a>
@@ -62,6 +63,7 @@
<script>
import eventBUs from '../../common/event'
import { getAction, postAction } from '@/api/manage'
import { mapGetters } from 'vuex'
export default {
name: 'ocrTable',
@@ -90,6 +92,7 @@
return {
jsonBody: [],
checkboxList: [],
userData: {},
tableAll: false,
indeterminate: false,
columns: [],
@@ -122,9 +125,10 @@
})
this.getData()
this.getTableList()
this.userData = this.userInfo()
},
methods: {
...mapGetters(['userInfo']),
getTextWith(text, fontStyle) {
var canvas = document.createElement('canvas')
var context = canvas.getContext('2d')
@@ -146,7 +150,7 @@
dataIndex: res.db_field_name,
align: 'center',
ellipsis: true,
width:170,
width: 170,
sorter: res.sort
})
if (res.click) {