对接认证目录权限
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||
<div style="margin-bottom: 60px">
|
||||
<div class="table-operator">
|
||||
<div class="operator-text" @click="addData">
|
||||
<div class="operator-text" v-if="isDisplayNum == 2" @click="addData">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('add')}}
|
||||
</div>
|
||||
@@ -73,13 +73,14 @@
|
||||
certificationDirectoryAdd,
|
||||
viewFileModel
|
||||
},
|
||||
props: ['isDisplayNum'],
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
queryParam: {},
|
||||
confirmLoading: false,
|
||||
selectedRowKeys: [],
|
||||
columns: [
|
||||
columnsAll: [
|
||||
{
|
||||
title: this.$t('directoryName'),
|
||||
dataIndex: 'directoryName',
|
||||
@@ -143,6 +144,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
columns() {
|
||||
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
|
||||
if (this.isDisplayNum != 2) {
|
||||
for (var i = 0; i < columnResult.length; i++) {
|
||||
if (columnResult[i].title === this.$t('operation')) {
|
||||
columnResult.splice(i, 1)
|
||||
i--
|
||||
}
|
||||
}
|
||||
}
|
||||
return columnResult
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user