|
@@ -56,6 +56,7 @@
|
|
|
</div>
|
|
|
<div class="table-operator" style="margin-bottom: 8px;">
|
|
|
<a-button type="primary" icon="plus" @click="$refs.baseModal.base()">新增</a-button>
|
|
|
+ <a-button style="margin-left: 8px" type="primary" icon="download" v-if="$auth('umps-user-export')" @click="doExport">导出</a-button>
|
|
|
<a-button
|
|
|
style="margin-left: 8px;"
|
|
|
type="primary"
|
|
@@ -118,10 +119,9 @@
|
|
|
import { STable, Ellipsis } from '@/components'
|
|
|
import BaseForm from './modules/BaseForm'
|
|
|
import ImportForm from '@/views/upms/user/modules/ImportForm'
|
|
|
-import { getUserPage, fetchUser, deleteUsers, resetUserPwd, updateUserStatus } from '@/api/upms/user'
|
|
|
+import { getUserPage, fetchUser, deleteUsers, resetUserPwd, updateUserStatus, exportUser } from '@/api/upms/user'
|
|
|
import { queryRole } from '@/api/upms/role'
|
|
|
import { getDeptTree } from '@/api/upms/dept'
|
|
|
-
|
|
|
const statusMap = {
|
|
|
1: {
|
|
|
status: 'success',
|
|
@@ -345,6 +345,14 @@ export default {
|
|
|
onExpand (expandedKeys) {
|
|
|
this.expandedKeys = expandedKeys
|
|
|
this.autoExpandParent = false
|
|
|
+ },
|
|
|
+ doExport () {
|
|
|
+ const parameter = {
|
|
|
+ ...this.queryParam
|
|
|
+ }
|
|
|
+ exportUser(parameter).then(file => {
|
|
|
+ this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|