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

@@ -67,7 +67,7 @@
<div class="tit">{{ fileName }}</div>
<div class="stateloading">正在上传</div>
</div>
<a-progress :percent="uploadpercent"/>
<a-progress :percent="uploadpercent" />
<!-- <div class="prog">
<div class="inprogloading"></div>
</div> -->
@@ -87,7 +87,7 @@
<div class="tit">{{ fileName }}</div>
<div class="statedefeat">上传失败</div>
</div>
<a-progress :percent="uploadpercent"/>
<a-progress :percent="uploadpercent" />
<!-- <div class="prog">
<div class="inprogdefeat"></div>
</div> -->
@@ -122,7 +122,7 @@
<div class="tit">{{ fileName }}</div>
<div class="statesucce">上传成功</div>
</div>
<a-progress :percent="uploadpercent"/>
<a-progress :percent="uploadpercent" />
<!-- <div class="prog">
<div class="inprogsucce"></div>
</div> -->
@@ -186,15 +186,15 @@
</div>
<!-- 加载动画 -->
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
<a-spin :spinning="addLoading" tip=""/>
<a-spin :spinning="addLoading" tip="" />
</div>
</a-drawer>
</template>
<script>
import {reactive, toRefs} from "vue";
import {message} from "ant-design-vue";
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 { BATCH_IMPORT_SCORE } from "@/api/config";
export default {
name: "EScore",
@@ -254,7 +254,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_SCORE_TEMPLATE,
});
const closeDrawer = () => {
@@ -392,7 +393,10 @@ export default {
};
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 {