增加部门、用户、角色、日志按钮权限配置
This commit is contained in:
@@ -17,14 +17,19 @@
|
||||
<el-button type="danger" v-auth="'delUser'" plain :size="size" icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
|
||||
<el-button type="primary" v-auth="'addUserRoles'" plain :size="size" :disabled="selection.length==0" @click="role">分配角色</el-button>
|
||||
<el-button type="primary" plain :size="size" :disabled="selection.length==0" @click="rePwd">密码重置</el-button>
|
||||
<scImport :size="size" title="批量导入用户" @parentParams="importUpload" @importSuccess="importSuccess">
|
||||
<div v-auth="'userImportTemplate'" @click="importTemplate">下载导入模版</div>
|
||||
<scImport ref="scImport" :size="size" title="批量导入用户" @parentParams="importUpload" @importSuccess="importSuccess">
|
||||
<template #header>
|
||||
<el-button v-auth="'userImport'" type="primary" :size="size" plain @click="importFile">批量导入</el-button>
|
||||
</template>
|
||||
<template #download>
|
||||
<div v-auth="'userImportTemplate'" @click="importTemplate">下载导入模版</div>
|
||||
</template>
|
||||
</scImport>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<div class="right-panel-search">
|
||||
<scExport :size="size" @exportData="exportData" @updateShow="exportChangeShow" :show="exportShow" type="7">
|
||||
<el-button :size="size" v-auths="'userExport'" icon="sc-icon-Download" @click="exportData">下载</el-button>
|
||||
<el-button :size="size" v-auth="'userExport'" icon="sc-icon-Download" @click="exportData">下载</el-button>
|
||||
</scExport>
|
||||
</div>
|
||||
</div>
|
||||
@@ -197,6 +202,11 @@
|
||||
},
|
||||
|
||||
// 批量导入
|
||||
importFile(){
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.scImport.importFile();
|
||||
})
|
||||
},
|
||||
async importTemplate() {
|
||||
const res = await this.$API.system.user.template.post();
|
||||
const blob = new Blob([res]);
|
||||
|
||||
Reference in New Issue
Block a user