|
@@ -3,6 +3,7 @@ import { Search } from '@element-plus/icons-vue'
|
|
|
import { RouteLocationRaw, useRouter } from 'vue-router'
|
|
|
import { Grade, Status, Subject } from '~/store/info'
|
|
|
import user from '~/store/user'
|
|
|
+import { download } from "~/utils/request";
|
|
|
|
|
|
const router = useRouter()
|
|
|
function routerPush(_route: RouteLocationRaw) {
|
|
@@ -66,13 +67,14 @@ function doDelete() {
|
|
|
function doExport() {
|
|
|
if (multipleSelection.value.length === 0)
|
|
|
return ElMessage.error('请先勾选导出的数据')
|
|
|
- request({
|
|
|
- url: '/dyaw/ctfx/index',
|
|
|
- data: {
|
|
|
+
|
|
|
+
|
|
|
+ download('/dyaw/ctfx/index',
|
|
|
+ {
|
|
|
dc_id: multipleSelection.value.map(item => item.dc_id).join(','),
|
|
|
- api: 'xls'
|
|
|
+ site: 'dyaw'
|
|
|
}
|
|
|
- })
|
|
|
+ )
|
|
|
}
|
|
|
|
|
|
|