【更新】业务模块前端增加导出方法

pull/92/head
xuyuxiang 2023-03-13 17:22:22 +08:00
parent 25e3b339c1
commit b47192516a
1 changed files with 11 additions and 1 deletions

View File

@ -129,7 +129,7 @@
<a-menu-item v-if="hasPerm('bizUserGrantRole')">
<a @click="selectRole(record)">{{ $t('user.grantRole') }}</a>
</a-menu-item>
<a-menu-item v-if="hasPerm('bizUserGrantRole')">
<a-menu-item v-if="hasPerm('bizUserExportUserInfo')">
<a @click="exportUserInfo(record)">{{ $t('user.exportUserInfo') }}</a>
</a-menu-item>
</a-menu>
@ -159,6 +159,7 @@
import roleSelectorPlus from '@/components/Selector/roleSelectorPlus.vue'
import Form from './form.vue'
import ImpExp from './impExp.vue'
import userApi from "@/api/sys/userApi";
const columns = [
{
@ -381,6 +382,15 @@
const resetPassword = (record) => {
bizUserApi.userResetPassword(record).then(() => {})
}
//
const exportUserInfo = (record) => {
const params = {
id: record.id
}
bizUserApi.userExportUserInfo(params).then((res) => {
downloadUtil.resultDownload(res)
})
}
</script>
<style scoped>