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"
|
:multiple="false"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
:data="{
|
:data="{
|
||||||
targetId: Number(courseId),
|
targetId: Number(courseId),
|
||||||
type: courseType,
|
type: courseType,
|
||||||
userId: userInfo.id,
|
userId: userInfo.id,
|
||||||
userName: userInfo.realName,
|
userName: userInfo.realName,
|
||||||
} "
|
}"
|
||||||
:showUploadList="false"
|
:showUploadList="false"
|
||||||
>
|
>
|
||||||
<p class="ant-upload-drag-icon">
|
<p class="ant-upload-drag-icon">
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {computed, reactive, toRefs} from "vue";
|
import { computed, reactive, toRefs } from "vue";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import * as api from "../../api/index1";
|
import * as api from "../../api/index1";
|
||||||
import { BATCH_IMPORT_SCORE } from "@/api/config";
|
import { BATCH_IMPORT_SCORE } from "@/api/config";
|
||||||
@@ -209,7 +209,8 @@ export default {
|
|||||||
locationHref:
|
locationHref:
|
||||||
location.href.indexOf("http://") !== -1
|
location.href.indexOf("http://") !== -1
|
||||||
? "http://43.143.139.204:12016/"
|
? "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,
|
template: process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE,
|
||||||
importStudent:
|
importStudent:
|
||||||
process.env.VUE_APP_BASE_API + "/admin/student/importStudent",
|
process.env.VUE_APP_BASE_API + "/admin/student/importStudent",
|
||||||
@@ -226,7 +227,7 @@ export default {
|
|||||||
fileName: "",
|
fileName: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const userInfo = computed(()=>store.state.userInfo)
|
const userInfo = computed(() => store.state.userInfo);
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
clearInterval(state.timers);
|
clearInterval(state.timers);
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
<div class="tit">{{ fileName }}</div>
|
<div class="tit">{{ fileName }}</div>
|
||||||
<div class="stateloading">正在上传</div>
|
<div class="stateloading">正在上传</div>
|
||||||
</div>
|
</div>
|
||||||
<a-progress :percent="uploadpercent"/>
|
<a-progress :percent="uploadpercent" />
|
||||||
<!-- <div class="prog">
|
<!-- <div class="prog">
|
||||||
<div class="inprogloading"></div>
|
<div class="inprogloading"></div>
|
||||||
</div> -->
|
</div> -->
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
<div class="tit">{{ fileName }}</div>
|
<div class="tit">{{ fileName }}</div>
|
||||||
<div class="statedefeat">上传失败</div>
|
<div class="statedefeat">上传失败</div>
|
||||||
</div>
|
</div>
|
||||||
<a-progress :percent="uploadpercent"/>
|
<a-progress :percent="uploadpercent" />
|
||||||
<!-- <div class="prog">
|
<!-- <div class="prog">
|
||||||
<div class="inprogdefeat"></div>
|
<div class="inprogdefeat"></div>
|
||||||
</div> -->
|
</div> -->
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
<div class="tit">{{ fileName }}</div>
|
<div class="tit">{{ fileName }}</div>
|
||||||
<div class="statesucce">上传成功</div>
|
<div class="statesucce">上传成功</div>
|
||||||
</div>
|
</div>
|
||||||
<a-progress :percent="uploadpercent"/>
|
<a-progress :percent="uploadpercent" />
|
||||||
<!-- <div class="prog">
|
<!-- <div class="prog">
|
||||||
<div class="inprogsucce"></div>
|
<div class="inprogsucce"></div>
|
||||||
</div> -->
|
</div> -->
|
||||||
@@ -186,15 +186,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 加载动画 -->
|
<!-- 加载动画 -->
|
||||||
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
||||||
<a-spin :spinning="addLoading" tip=""/>
|
<a-spin :spinning="addLoading" tip="" />
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {reactive, toRefs} from "vue";
|
import { reactive, toRefs } from "vue";
|
||||||
import {message} from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import * as api from "../../api/index1";
|
import * as api from "../../api/index1";
|
||||||
import {BATCH_IMPORT_SCORE} from "@/api/config";
|
import { BATCH_IMPORT_SCORE } from "@/api/config";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "EScore",
|
name: "EScore",
|
||||||
@@ -254,7 +254,8 @@ export default {
|
|||||||
locationHref:
|
locationHref:
|
||||||
location.href.indexOf("http://") !== -1
|
location.href.indexOf("http://") !== -1
|
||||||
? "http://43.143.139.204:12016/"
|
? "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_SCORE_TEMPLATE,
|
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
|
||||||
});
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
@@ -392,7 +393,10 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function downTemplate() {
|
function downTemplate() {
|
||||||
window.open(process.env.VUE_APP_FILE_PATH + process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE);
|
window.open(
|
||||||
|
process.env.VUE_APP_FILE_PATH +
|
||||||
|
process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
console.log(1222)
|
console.log(1222);
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
fileType: ["xls", "xlsx"],
|
fileType: ["xls", "xlsx"],
|
||||||
importLeader:
|
importLeader:
|
||||||
@@ -278,11 +278,11 @@ export default {
|
|||||||
locationHref:
|
locationHref:
|
||||||
location.href.indexOf("http://") !== -1
|
location.href.indexOf("http://") !== -1
|
||||||
? "http://43.143.139.204:12016/"
|
? "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_SCORE_TEMPLATE,
|
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
|
||||||
});
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
|
||||||
ctx.emit("closeDraw", true);
|
ctx.emit("closeDraw", true);
|
||||||
ctx.emit("update:TaskFaceImpStuvisible", false);
|
ctx.emit("update:TaskFaceImpStuvisible", false);
|
||||||
state.fileList = [];
|
state.fileList = [];
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
>
|
>
|
||||||
<div class="drawerMain">
|
<div class="drawerMain">
|
||||||
<!-- 2022-11-30注释 后面放开 -->
|
<!-- 2022-11-30注释 后面放开 -->
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="headerTitle">批量面授报名</div>
|
<div class="headerTitle">批量面授报名</div>
|
||||||
<img
|
<img
|
||||||
style="width: 29px; height: 29px; cursor: pointer"
|
style="width: 29px; height: 29px; cursor: pointer"
|
||||||
@@ -220,11 +220,11 @@ export default {
|
|||||||
locationHref:
|
locationHref:
|
||||||
location.href.indexOf("http://") !== -1
|
location.href.indexOf("http://") !== -1
|
||||||
? "http://43.143.139.204:12016/"
|
? "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_SCORE_TEMPLATE,
|
template: process.env.VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE,
|
||||||
});
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
|
||||||
ctx.emit("closeDraw", true);
|
ctx.emit("closeDraw", true);
|
||||||
ctx.emit("update:TaskFaceImpStuvisible", false);
|
ctx.emit("update:TaskFaceImpStuvisible", false);
|
||||||
state.fileList = [];
|
state.fileList = [];
|
||||||
|
|||||||
@@ -372,7 +372,8 @@ export default defineComponent({
|
|||||||
locationHref:
|
locationHref:
|
||||||
location.href.indexOf("http://") !== -1
|
location.href.indexOf("http://") !== -1
|
||||||
? "http://43.143.139.204:12016/"
|
? "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,
|
||||||
|
|
||||||
//目标任务
|
//目标任务
|
||||||
orgSelect: [],
|
orgSelect: [],
|
||||||
|
|||||||
@@ -1629,7 +1629,7 @@ export default {
|
|||||||
locationHref:
|
locationHref:
|
||||||
location.href.indexOf("http://") !== -1
|
location.href.indexOf("http://") !== -1
|
||||||
? "http://43.143.139.204:12016/"
|
? "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,
|
||||||
isreload: true,
|
isreload: true,
|
||||||
TaskFaceImpStuvisible: false,
|
TaskFaceImpStuvisible: false,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user