mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
fix bug
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
<div class="right">
|
||||
<div style="height: 176px; margin-bottom: 20px">
|
||||
<a-upload-dragger v-model:fileList="fileList" :action="importHomeWork" name="uploadFile" :multiple="true"
|
||||
:headers="headers"
|
||||
@change="handleChange" :showUploadList="false" :data="{
|
||||
type: type,
|
||||
taskId: Number(id),
|
||||
@@ -155,6 +156,7 @@ import { reactive, toRefs } from "vue";
|
||||
import { message } from "ant-design-vue";
|
||||
import * as api from "../../api/index1";
|
||||
import { BATCH_IMPORT_SCORE } from "@/api/config";
|
||||
import {getCookieForName} from "@/api/method";
|
||||
export default {
|
||||
name: "EScore",
|
||||
props: {
|
||||
@@ -201,6 +203,8 @@ export default {
|
||||
downloadErrUrl: null, //下载失败数据
|
||||
fileName: "",
|
||||
});
|
||||
const headers = { token: getCookieForName("token") };
|
||||
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:eScorevisible", false);
|
||||
state.fileList = [];
|
||||
@@ -344,6 +348,7 @@ export default {
|
||||
closeDrawer,
|
||||
handleChange,
|
||||
downTemplate,
|
||||
headers,
|
||||
BATCH_IMPORT_SCORE,
|
||||
beforeUpload,
|
||||
handleUpload,
|
||||
|
||||
Reference in New Issue
Block a user