1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| import { reactive } from 'vue'; import type { UploadChangeParam } from 'ant-design-vue'; import { UploadOutlined } from '@ant-design/icons-vue'; import * as XLSX from 'xlsx'; interface Idata { candidate: string, name: string, chinese: number, math: number, english: number, computer: number, totalScore: number, provinceRank: number, classRank: number } interface SourceDate { "考生号": string, "姓名": string, "数学": number, "英语": number, "计算机": number, "语文": number, "总分": number, "全省排名": number, "全班排名": number } const rt = reactive({ data: [] as Idata[], fileList: [] as UploadChangeParam[] })
const columns = [ { title: '考生号', dataIndex: 'candidate', key: 'candidate', }, { title: '姓名', dataIndex: 'name', key: 'name', }, { title: '语文', dataIndex: 'chinese', key: 'chinese', }, { title: '数学', key: 'math', dataIndex: 'math', }, { title: '英语', key: 'english', dataIndex: 'english', }, { title: '计算机', dataIndex: 'computer', key: 'computer', }, { title: '总分', dataIndex: 'totalScore', key: 'totalScore', }, { title: '全省排名', dataIndex: 'provinceRank', key: 'provinceRank', }, { title: '全班排名', dataIndex: 'classRank', key: 'classRank', } ]
|