feat:修改upload

This commit is contained in:
lixg
2023-03-05 22:11:38 +08:00
parent 3c138aa3b8
commit 85349afbfc
6 changed files with 31 additions and 25 deletions

View File

@@ -38,11 +38,11 @@
:multiple="false"
@change="handleChange"
:data="{
targetId: Number(courseId),
type: courseType,
userId: userInfo.id,
userName: userInfo.realName,
} "
targetId: Number(courseId),
type: courseType,
userId: userInfo.id,
userName: userInfo.realName,
}"
:showUploadList="false"
>
<p class="ant-upload-drag-icon">
@@ -182,7 +182,7 @@
</template>
<script>
import {computed, reactive, toRefs} from "vue";
import { computed, reactive, toRefs } from "vue";
import { message } from "ant-design-vue";
import * as api from "../../api/index1";
import { BATCH_IMPORT_SCORE } from "@/api/config";
@@ -209,7 +209,8 @@ export default {
locationHref:
location.href.indexOf("http://") !== -1
? "http://43.143.139.204:12016/"
: location.href.slice(0, location.href.indexOf("/m")) + "/upload/",
: location.href.slice(0, location.href.indexOf("/m")) +
process.env.VUE_APP_FILE_PATH,
template: process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE,
importStudent:
process.env.VUE_APP_BASE_API + "/admin/student/importStudent",
@@ -226,7 +227,7 @@ export default {
fileName: "",
});
const userInfo = computed(()=>store.state.userInfo)
const userInfo = computed(() => store.state.userInfo);
const closeDrawer = () => {
clearInterval(state.timers);