|
@@ -31,6 +31,15 @@
|
|
|
折叠全部
|
|
折叠全部
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<!-- <el-button type="primary" size="mini" icon="el-icon-upload2" plain @click="uploadFile">导入</el-button> -->
|
|
<!-- <el-button type="primary" size="mini" icon="el-icon-upload2" plain @click="uploadFile">导入</el-button> -->
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-download"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="exportData"
|
|
|
|
|
+ >
|
|
|
|
|
+ 导出
|
|
|
|
|
+ </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 标题列 -->
|
|
<!-- 标题列 -->
|
|
|
<template v-slot:name="{ row }">
|
|
<template v-slot:name="{ row }">
|
|
@@ -123,7 +132,8 @@ import importDialog from '@/components/upload/import-dialog.vue';
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
|
listOrganizations,
|
|
listOrganizations,
|
|
|
- removeOrganization
|
|
|
|
|
|
|
+ removeOrganization,
|
|
|
|
|
+ exportGroupsAPI
|
|
|
} from '@/api/system/organization';
|
|
} from '@/api/system/organization';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -275,6 +285,12 @@ export default {
|
|
|
foldAll() {
|
|
foldAll() {
|
|
|
this.$refs.table.toggleRowExpansionAll(false);
|
|
this.$refs.table.toggleRowExpansionAll(false);
|
|
|
},
|
|
},
|
|
|
|
|
+ // 导出数据
|
|
|
|
|
+ exportData() {
|
|
|
|
|
+ exportGroupsAPI().then(() => {
|
|
|
|
|
+ // this.$message.success('导出成功');
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
/* 显示编辑 */
|
|
/* 显示编辑 */
|
|
|
openEdit(item) {
|
|
openEdit(item) {
|
|
|
this.editData = item;
|
|
this.editData = item;
|