[update] 内部工作组设置只有工作组才可以新增、导入右侧数据

This commit is contained in:
lideqin
2023-11-08 17:24:20 +08:00
parent 643552ccbd
commit 86ccb4318f
@@ -129,17 +129,17 @@
<div class="table-operator">
<!-- 当前登录人是当前左侧树选中节点的管理人员才有新增导入删除权限 -->
<!-- 新增-->
<a-button v-if="currentNodeObj.userId === currentUserId" icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
<a-button v-if="currentNodeObj.userId === currentUserId && currentNodeObj.level === 3" icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
<!-- 导入-->
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :data="importData" :action="importExcelUrl" @change="handleImportExcel">
<a-button v-if="currentNodeObj.userId === currentUserId" type="primary" icon="import" ghost @click="handleImport">{{ $t('import') }}</a-button>
<a-button v-if="currentNodeObj.userId === currentUserId && currentNodeObj.level === 3" type="primary" icon="import" ghost @click="handleImport">{{ $t('import') }}</a-button>
</a-upload>
<!-- 导出-->
<a-button icon="export" type="primary" ghost @click="handleExportXls($t('system.internalWorkGroup.exportName'))" v-has="'sys:innerWorkingGroup:export'">
{{ $t('export') }}
</a-button>
<!-- 模板下载-->
<a-button v-if="currentNodeObj.userId === currentUserId" type="primary" icon="download" ghost @click="downTemplate($t('system.internalWorkGroup.templateName'))">
<a-button v-if="currentNodeObj.userId === currentUserId && currentNodeObj.level === 3" type="primary" icon="download" ghost @click="downTemplate($t('system.internalWorkGroup.templateName'))">
{{ $t('templateDownload') }}
</a-button>
</div>