feat: Add Export in some menu

fix: Left menu height
fix: Export csv when double quotation marks in data
This commit is contained in:
lejianwen
2025-06-15 17:16:27 +08:00
parent 42cc3974d4
commit fc7e0595a1
12 changed files with 84 additions and 4286 deletions
+5
View File
@@ -15,6 +15,7 @@
<el-form-item>
<el-button type="primary" @click="handlerQuery">{{ T('Filter') }}</el-button>
<el-button type="danger" @click="toBatchDelete">{{ T('BatchDelete') }}</el-button>
<el-button type="success" @click="toExport">{{ T('Export') }}</el-button>
</el-form-item>
</el-form>
</el-card>
@@ -62,6 +63,8 @@
import { loadAllUsers } from '@/global'
import { useRepositories } from '@/views/login/log.js'
import { T } from '@/utils/i18n'
import { list } from '@/api/peer'
import { downBlob, jsonToCsv } from '@/utils/file'
const { allUsers, getAllUsers } = loadAllUsers()
getAllUsers()
@@ -73,6 +76,7 @@
handlerQuery,
del,
batchdel,
toExport,
} = useRepositories('admin')
onMounted(getList)
@@ -91,6 +95,7 @@
}
batchdel(multipleSelection.value)
}
</script>
<style scoped lang="scss">