增加部门、用户、角色、日志按钮权限配置
This commit is contained in:
@@ -3,8 +3,13 @@
|
||||
<el-header>
|
||||
<div class="left-panel">
|
||||
<el-button type="primary" v-auth="'addCompany'" :size="size" icon="el-icon-plus" @click="add">新增公司</el-button>
|
||||
<scImport :size="size" title="批量导入公司组织" @parentParams="importUpload" @importSuccess="importSuccess">
|
||||
<div v-auth="'companyImportTemplate'" @click="importTemplate">下载导入模版</div>
|
||||
<scImport ref="scImport" :size="size" title="批量导入公司组织" @parentParams="importUpload" @importSuccess="importSuccess">
|
||||
<template #header>
|
||||
<el-button v-auth="'organizationImport'" type="primary" :size="size" plain @click="importFile">批量导入</el-button>
|
||||
</template>
|
||||
<template #download>
|
||||
<div v-auth="'companyImportTemplate'" @click="importTemplate">下载导入模版</div>
|
||||
</template>
|
||||
</scImport>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
@@ -162,6 +167,11 @@ export default {
|
||||
},
|
||||
|
||||
// 批量导入
|
||||
importFile(){
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.scImport.importFile();
|
||||
})
|
||||
},
|
||||
async importTemplate() {
|
||||
const res = await this.$API.system.company.template.post();
|
||||
const blob = new Blob([res]);
|
||||
|
||||
Reference in New Issue
Block a user