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
+11
View File
@@ -8,6 +8,7 @@
<el-form-item>
<el-button type="primary" @click="handlerQuery">{{ T('Filter') }}</el-button>
<el-button type="danger" @click="toAdd">{{ T('Add') }}</el-button>
<el-button type="success" @click="toExport">{{ T('Export') }}</el-button>
</el-form-item>
</el-form>
</el-card>
@@ -63,14 +64,24 @@
import { DISABLE_STATUS, ENABLE_STATUS } from '@/utils/common_options'
import { update } from '@/api/user'
import { ElMessageBox, ElMessage } from 'element-plus'
import { onMounted, watch } from 'vue'
//列表
const {
listRes,
listQuery,
handlerQuery,
getList,
getGroups,
toExport,
} = useRepositories()
onMounted(getGroups)
onMounted(getList)
watch(() => listQuery.page, getList)
watch(() => listQuery.page_size, handlerQuery)
const { toEdit, toAdd, toAddressBook, toTag } = useToEditOrAdd()
const { changePass } = useChangePwd()