mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
feat:修改upload
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user