| | |
| | | <script setup> |
| | | import { getCurrentInstance, ref, computed, reactive, onMounted } from 'vue'; |
| | | import { get, post } from '@/utils/request.js' |
| | | import { get, post, postBlob } from '@/utils/request.js' |
| | | import * as Icons from "@ant-design/icons-vue"; |
| | | import EditView from './edit.vue' |
| | | import { message, Modal } from 'ant-design-vue'; |
| | |
| | | } |
| | | |
| | | const handleExport = async (intl) => { |
| | | post('/api/menu/export', {}).then(result => { |
| | | postBlob('/api/menu/export', {}).then(result => { |
| | | const blob = new Blob([result.data], { type: 'application/vnd.ms-excel' }); |
| | | window.location.href = window.URL.createObjectURL(blob); |
| | | return true; |
| | |
| | | <component :is="components[ref(record.icon).value]" /> |
| | | </template> |
| | | </a-table-column> |
| | | <a-table-column :title="formatMessage('db.sys_menu.language_id', '国际化ID')" key="languageId" data-index="languageId" /> |
| | | <a-table-column :title="formatMessage('db.sys_menu.language_id', '国际化ID')" key="languageId" |
| | | data-index="languageId" /> |
| | | <a-table-column :title="formatMessage('db.sys_menu.sort', '排序')" key="sort" data-index="sort" /> |
| | | <a-table-column :title="formatMessage('db.sys_menu.status', '状态')" key="status$" data-index="status$" /> |
| | | <a-table-column :title="formatMessage('db.sys_menu.update_time', '修改时间')" key="updateTime$" data-index="updateTime$" /> |
| | | <a-table-column :title="formatMessage('db.sys_menu.update_time', '修改时间')" key="updateTime$" |
| | | data-index="updateTime$" /> |
| | | <a-table-column :title="formatMessage('common.operation', '操作')" key="oper" data-index="oper"> |
| | | <template #default="{ record }"> |
| | | <div style="display: flex;justify-content: space-evenly;"> |