|
@@ -87,11 +87,6 @@
|
|
|
v-if="item.type == 1 || item.type == 3"
|
|
|
class="chapter_upload_l_i5"
|
|
|
></div>
|
|
|
- <div
|
|
|
- v-if="item.type == 4"
|
|
|
- class="chapter_upload_l_i8"
|
|
|
- style="margin-left: 1px"
|
|
|
- ></div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_ic">
|
|
|
<div class="chapter_upload_ic_l"></div>
|
|
@@ -105,7 +100,7 @@
|
|
|
<div class="chapter_upload_n">
|
|
|
<input
|
|
|
class="first"
|
|
|
- v-if="item.type == 1"
|
|
|
+ v-if="item.type == 1 || item.type == 3"
|
|
|
:placeholder="item.name"
|
|
|
/>
|
|
|
<input
|
|
@@ -113,19 +108,6 @@
|
|
|
v-if="item.type == 2"
|
|
|
:placeholder="item.name"
|
|
|
/>
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- :placeholder="item.name"
|
|
|
- v-if="item.type == 3"
|
|
|
- readonly="true"
|
|
|
- @click="selectAttText(0, index)"
|
|
|
- />
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- v-if="item.type == 4"
|
|
|
- :placeholder="item.name"
|
|
|
- @click="selectLine(0, index)"
|
|
|
- />
|
|
|
<div class="chapter_upload_ud">
|
|
|
<div class="chapter_upload_up"></div>
|
|
|
<div class="chapter_upload_down"></div>
|
|
@@ -136,31 +118,34 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="add_info_box">
|
|
|
- <!-- <button class="info_btn" @click="addImg($event)">
|
|
|
- 添加教学视频
|
|
|
- <input
|
|
|
- type="file"
|
|
|
- accept="video/mp4, video/quicktime, video/x-msvideo"
|
|
|
- style="display: none"
|
|
|
- capture="camera"
|
|
|
- @change="beforeUpload($event, 2, index, 0)"
|
|
|
- />
|
|
|
- </button> -->
|
|
|
<button class="info_btn" @click="addImg($event)">
|
|
|
上传附件
|
|
|
<input
|
|
|
type="file"
|
|
|
- accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo"
|
|
|
+ accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo,image/*"
|
|
|
style="display: none"
|
|
|
@change="beforeUpload($event, null, 0)"
|
|
|
/>
|
|
|
</button>
|
|
|
- <!-- <button class="info_btn" @click="addAttText(0)">
|
|
|
- 添加图文
|
|
|
- </button>
|
|
|
- <button class="info_btn" @click="openLine(0)">
|
|
|
- 添加链接
|
|
|
- </button> -->
|
|
|
+ </div>
|
|
|
+ <div v-if="raceOver.driQuestion.data.proVisible" class="mask">
|
|
|
+ <div class="progressBox">
|
|
|
+ <div class="lbox">
|
|
|
+ <img
|
|
|
+ src="../../../../assets/loading.gif"
|
|
|
+ />上传中,请稍后
|
|
|
+ </div>
|
|
|
+ <el-progress
|
|
|
+ :text-inside="true"
|
|
|
+ :stroke-width="20"
|
|
|
+ :percentage="
|
|
|
+ raceOver.driQuestion.data.progress
|
|
|
+ ? raceOver.driQuestion.data.progress
|
|
|
+ : 0
|
|
|
+ "
|
|
|
+ style="width: 80%"
|
|
|
+ ></el-progress>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -212,11 +197,6 @@
|
|
|
v-if="item1.type == 1 || item1.type == 3"
|
|
|
class="chapter_upload_l_i5"
|
|
|
></div>
|
|
|
- <div
|
|
|
- v-if="item1.type == 4"
|
|
|
- class="chapter_upload_l_i8"
|
|
|
- style="margin-left: 1px"
|
|
|
- ></div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_ic">
|
|
|
<div class="chapter_upload_ic_l"></div>
|
|
@@ -230,7 +210,7 @@
|
|
|
<div class="chapter_upload_n">
|
|
|
<input
|
|
|
class="first"
|
|
|
- v-if="item1.type == 1"
|
|
|
+ v-if="item1.type == 1 || item1.type == 3"
|
|
|
:placeholder="item1.name"
|
|
|
/>
|
|
|
<input
|
|
@@ -238,19 +218,6 @@
|
|
|
v-if="item1.type == 2"
|
|
|
:placeholder="item1.name"
|
|
|
/>
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- :placeholder="item1.name"
|
|
|
- v-if="item1.type == 3"
|
|
|
- readonly="true"
|
|
|
- @click="selectAttText(1, index1)"
|
|
|
- />
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- v-if="item1.type == 4"
|
|
|
- :placeholder="item1.name"
|
|
|
- @click="selectLine(1, index1)"
|
|
|
- />
|
|
|
<div class="chapter_upload_ud">
|
|
|
<div class="chapter_upload_up"></div>
|
|
|
<div class="chapter_upload_down"></div>
|
|
@@ -261,31 +228,34 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="add_info_box">
|
|
|
- <!-- <button class="info_btn" @click="addImg($event)">
|
|
|
- 添加教学视频
|
|
|
- <input
|
|
|
- type="file"
|
|
|
- accept="video/mp4, video/quicktime, video/x-msvideo"
|
|
|
- style="display: none"
|
|
|
- capture="camera"
|
|
|
- @change="beforeUpload($event, 2, index1, 1)"
|
|
|
- />
|
|
|
- </button> -->
|
|
|
<button class="info_btn" @click="addImg($event)">
|
|
|
上传附件
|
|
|
<input
|
|
|
type="file"
|
|
|
- accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo"
|
|
|
+ accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo,image/*"
|
|
|
style="display: none"
|
|
|
@change="beforeUpload($event, null, 1)"
|
|
|
/>
|
|
|
</button>
|
|
|
- <!-- <button class="info_btn" @click="addAttText(1)">
|
|
|
- 添加图文
|
|
|
- </button>
|
|
|
- <button class="info_btn" @click="openLine(1)">
|
|
|
- 添加链接
|
|
|
- </button> -->
|
|
|
+ </div>
|
|
|
+ <div v-if="raceOver.tarDesign.data.proVisible" class="mask">
|
|
|
+ <div class="progressBox">
|
|
|
+ <div class="lbox">
|
|
|
+ <img
|
|
|
+ src="../../../../assets/loading.gif"
|
|
|
+ />上传中,请稍后
|
|
|
+ </div>
|
|
|
+ <el-progress
|
|
|
+ :text-inside="true"
|
|
|
+ :stroke-width="20"
|
|
|
+ :percentage="
|
|
|
+ raceOver.tarDesign.data.progress
|
|
|
+ ? raceOver.tarDesign.data.progress
|
|
|
+ : 0
|
|
|
+ "
|
|
|
+ style="width: 80%"
|
|
|
+ ></el-progress>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -336,11 +306,6 @@
|
|
|
v-if="item2.type == 1 || item2.type == 3"
|
|
|
class="chapter_upload_l_i5"
|
|
|
></div>
|
|
|
- <div
|
|
|
- v-if="item2.type == 4"
|
|
|
- class="chapter_upload_l_i8"
|
|
|
- style="margin-left: 1px"
|
|
|
- ></div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_ic">
|
|
|
<div class="chapter_upload_ic_l"></div>
|
|
@@ -354,7 +319,7 @@
|
|
|
<div class="chapter_upload_n">
|
|
|
<input
|
|
|
class="first"
|
|
|
- v-if="item2.type == 1"
|
|
|
+ v-if="item2.type == 1 || item2.type == 3"
|
|
|
:placeholder="item2.name"
|
|
|
/>
|
|
|
<input
|
|
@@ -362,19 +327,6 @@
|
|
|
v-if="item2.type == 2"
|
|
|
:placeholder="item2.name"
|
|
|
/>
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- :placeholder="item2.name"
|
|
|
- v-if="item2.type == 3"
|
|
|
- readonly="true"
|
|
|
- @click="selectAttText(2, index2)"
|
|
|
- />
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- v-if="item2.type == 4"
|
|
|
- :placeholder="item2.name"
|
|
|
- @click="selectLine(2, index2)"
|
|
|
- />
|
|
|
<div class="chapter_upload_ud">
|
|
|
<div class="chapter_upload_up"></div>
|
|
|
<div class="chapter_upload_down"></div>
|
|
@@ -385,31 +337,34 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="add_info_box">
|
|
|
- <!-- <button class="info_btn" @click="addImg($event)">
|
|
|
- 添加教学视频
|
|
|
- <input
|
|
|
- type="file"
|
|
|
- accept="video/mp4, video/quicktime, video/x-msvideo"
|
|
|
- style="display: none"
|
|
|
- capture="camera"
|
|
|
- @change="beforeUpload($event, 2, index2, 2)"
|
|
|
- />
|
|
|
- </button> -->
|
|
|
<button class="info_btn" @click="addImg($event)">
|
|
|
上传附件
|
|
|
<input
|
|
|
type="file"
|
|
|
- accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo"
|
|
|
+ accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo,image/*"
|
|
|
style="display: none"
|
|
|
@change="beforeUpload($event, null, 2)"
|
|
|
/>
|
|
|
</button>
|
|
|
- <!-- <button class="info_btn" @click="addAttText(2)">
|
|
|
- 添加图文
|
|
|
- </button>
|
|
|
- <button class="info_btn" @click="openLine(2)">
|
|
|
- 添加链接
|
|
|
- </button> -->
|
|
|
+ </div>
|
|
|
+ <div v-if="raceOver.actiDesign.data.proVisible" class="mask">
|
|
|
+ <div class="progressBox">
|
|
|
+ <div class="lbox">
|
|
|
+ <img
|
|
|
+ src="../../../../assets/loading.gif"
|
|
|
+ />上传中,请稍后
|
|
|
+ </div>
|
|
|
+ <el-progress
|
|
|
+ :text-inside="true"
|
|
|
+ :stroke-width="20"
|
|
|
+ :percentage="
|
|
|
+ raceOver.actiDesign.data.progress
|
|
|
+ ? raceOver.actiDesign.data.progress
|
|
|
+ : 0
|
|
|
+ "
|
|
|
+ style="width: 80%"
|
|
|
+ ></el-progress>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -461,11 +416,6 @@
|
|
|
v-if="item3.type == 1 || item3.type == 3"
|
|
|
class="chapter_upload_l_i5"
|
|
|
></div>
|
|
|
- <div
|
|
|
- v-if="item3.type == 4"
|
|
|
- class="chapter_upload_l_i8"
|
|
|
- style="margin-left: 1px"
|
|
|
- ></div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_ic">
|
|
|
<div class="chapter_upload_ic_l"></div>
|
|
@@ -479,7 +429,7 @@
|
|
|
<div class="chapter_upload_n">
|
|
|
<input
|
|
|
class="first"
|
|
|
- v-if="item3.type == 1"
|
|
|
+ v-if="item3.type == 1 || item3.type == 3"
|
|
|
:placeholder="item3.name"
|
|
|
/>
|
|
|
<input
|
|
@@ -487,19 +437,6 @@
|
|
|
v-if="item3.type == 2"
|
|
|
:placeholder="item3.name"
|
|
|
/>
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- :placeholder="item3.name"
|
|
|
- v-if="item3.type == 3"
|
|
|
- readonly="true"
|
|
|
- @click="selectAttText(3, index3)"
|
|
|
- />
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- v-if="item3.type == 4"
|
|
|
- :placeholder="item3.name"
|
|
|
- @click="selectLine(3, index3)"
|
|
|
- />
|
|
|
<div class="chapter_upload_ud">
|
|
|
<div class="chapter_upload_up"></div>
|
|
|
<div class="chapter_upload_down"></div>
|
|
@@ -510,31 +447,34 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="add_info_box">
|
|
|
- <!-- <button class="info_btn" @click="addImg($event)">
|
|
|
- 添加教学视频
|
|
|
- <input
|
|
|
- type="file"
|
|
|
- accept="video/mp4, video/quicktime, video/x-msvideo"
|
|
|
- style="display: none"
|
|
|
- capture="camera"
|
|
|
- @change="beforeUpload($event, 2, index3, 3)"
|
|
|
- />
|
|
|
- </button> -->
|
|
|
<button class="info_btn" @click="addImg($event)">
|
|
|
上传附件
|
|
|
<input
|
|
|
type="file"
|
|
|
- accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo"
|
|
|
+ accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo,image/*"
|
|
|
style="display: none"
|
|
|
@change="beforeUpload($event, null, 3)"
|
|
|
/>
|
|
|
</button>
|
|
|
- <!-- <button class="info_btn" @click="addAttText(3)">
|
|
|
- 添加图文
|
|
|
- </button>
|
|
|
- <button class="info_btn" @click="openLine(3)">
|
|
|
- 添加链接
|
|
|
- </button> -->
|
|
|
+ </div>
|
|
|
+ <div v-if="raceOver.evaDesign.data.proVisible" class="mask">
|
|
|
+ <div class="progressBox">
|
|
|
+ <div class="lbox">
|
|
|
+ <img
|
|
|
+ src="../../../../assets/loading.gif"
|
|
|
+ />上传中,请稍后
|
|
|
+ </div>
|
|
|
+ <el-progress
|
|
|
+ :text-inside="true"
|
|
|
+ :stroke-width="20"
|
|
|
+ :percentage="
|
|
|
+ raceOver.evaDesign.data.progress
|
|
|
+ ? raceOver.evaDesign.data.progress
|
|
|
+ : 0
|
|
|
+ "
|
|
|
+ style="width: 80%"
|
|
|
+ ></el-progress>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -584,11 +524,6 @@
|
|
|
v-if="item4.type == 1 || item4.type == 3"
|
|
|
class="chapter_upload_l_i5"
|
|
|
></div>
|
|
|
- <div
|
|
|
- v-if="item4.type == 4"
|
|
|
- class="chapter_upload_l_i8"
|
|
|
- style="margin-left: 1px"
|
|
|
- ></div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_ic">
|
|
|
<div class="chapter_upload_ic_l"></div>
|
|
@@ -602,7 +537,7 @@
|
|
|
<div class="chapter_upload_n">
|
|
|
<input
|
|
|
class="first"
|
|
|
- v-if="item4.type == 1"
|
|
|
+ v-if="item4.type == 1 || item4.type == 3"
|
|
|
:placeholder="item4.name"
|
|
|
/>
|
|
|
<input
|
|
@@ -610,19 +545,6 @@
|
|
|
v-if="item4.type == 2"
|
|
|
:placeholder="item4.name"
|
|
|
/>
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- :placeholder="item4.name"
|
|
|
- v-if="item4.type == 3"
|
|
|
- readonly="true"
|
|
|
- @click="selectAttText(4, index4)"
|
|
|
- />
|
|
|
- <input
|
|
|
- class="first"
|
|
|
- v-if="item4.type == 4"
|
|
|
- :placeholder="item4.name"
|
|
|
- @click="selectLine(4, index4)"
|
|
|
- />
|
|
|
<div class="chapter_upload_ud">
|
|
|
<div class="chapter_upload_up"></div>
|
|
|
<div class="chapter_upload_down"></div>
|
|
@@ -633,31 +555,34 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="add_info_box">
|
|
|
- <!-- <button class="info_btn" @click="addImg($event)">
|
|
|
- 添加教学视频
|
|
|
- <input
|
|
|
- type="file"
|
|
|
- accept="video/mp4, video/quicktime, video/x-msvideo"
|
|
|
- style="display: none"
|
|
|
- capture="camera"
|
|
|
- @change="beforeUpload($event, 2, index4, 4)"
|
|
|
- />
|
|
|
- </button> -->
|
|
|
<button class="info_btn" @click="addImg($event)">
|
|
|
上传附件
|
|
|
<input
|
|
|
type="file"
|
|
|
- accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo"
|
|
|
+ accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,video/mp4, video/quicktime, video/x-msvideo,image/*"
|
|
|
style="display: none"
|
|
|
@change="beforeUpload($event, null, 4)"
|
|
|
/>
|
|
|
</button>
|
|
|
- <!-- <button class="info_btn" @click="addAttText(4)">
|
|
|
- 添加图文
|
|
|
- </button>
|
|
|
- <button class="info_btn" @click="openLine(4)">
|
|
|
- 添加链接
|
|
|
- </button> -->
|
|
|
+ </div>
|
|
|
+ <div v-if="raceOver.other.data.proVisible" class="mask">
|
|
|
+ <div class="progressBox">
|
|
|
+ <div class="lbox">
|
|
|
+ <img
|
|
|
+ src="../../../../assets/loading.gif"
|
|
|
+ />上传中,请稍后
|
|
|
+ </div>
|
|
|
+ <el-progress
|
|
|
+ :text-inside="true"
|
|
|
+ :stroke-width="20"
|
|
|
+ :percentage="
|
|
|
+ raceOver.other.data.progress
|
|
|
+ ? raceOver.other.data.progress
|
|
|
+ : 0
|
|
|
+ "
|
|
|
+ style="width: 80%"
|
|
|
+ ></el-progress>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -792,9 +717,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
beforeUpload(event, type, jsonType) {
|
|
|
- const loading = this.openLoading();
|
|
|
var file = event.target.files[0];
|
|
|
- this.inputShow = false;
|
|
|
var credentials = {
|
|
|
accessKeyId: "AKIATLPEDU37QV5CHLMH",
|
|
|
secretAccessKey: "Q2SQw37HfolS7yeaR1Ndpy9Jl4E2YZKUuuy2muZR",
|
|
@@ -821,6 +744,20 @@ export default {
|
|
|
"PPSM",
|
|
|
];
|
|
|
var c = ["PDF", "DOT", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
|
|
|
+ var d = [
|
|
|
+ "BMP",
|
|
|
+ "PJP",
|
|
|
+ "APNG",
|
|
|
+ "PNG",
|
|
|
+ "JPG",
|
|
|
+ "GIF",
|
|
|
+ "SVG",
|
|
|
+ "JPEG",
|
|
|
+ "JPG",
|
|
|
+ "ICO",
|
|
|
+ "PGPEG",
|
|
|
+ "AVIF",
|
|
|
+ ];
|
|
|
if (
|
|
|
b.indexOf(
|
|
|
file.name
|
|
@@ -830,7 +767,6 @@ export default {
|
|
|
) {
|
|
|
if (file.size / 1024 / 1024 > 10) {
|
|
|
this.$message.error("上传文件大于10兆,请重新选择文件!");
|
|
|
- loading.close();
|
|
|
return;
|
|
|
}
|
|
|
} else if (
|
|
@@ -840,7 +776,6 @@ export default {
|
|
|
) {
|
|
|
if (file.size / 1024 / 1024 > 5) {
|
|
|
this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
|
|
|
- loading.close();
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -853,10 +788,35 @@ export default {
|
|
|
) != -1
|
|
|
) {
|
|
|
type1 = 1;
|
|
|
+ } else if (
|
|
|
+ d.indexOf(
|
|
|
+ file.name
|
|
|
+ .split(".")
|
|
|
+ [file.name.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ ) != -1
|
|
|
+ ) {
|
|
|
+ type1 = 3;
|
|
|
} else {
|
|
|
type1 = 2;
|
|
|
}
|
|
|
|
|
|
+ if (jsonType == 0) {
|
|
|
+ _this.raceOver.driQuestion.data.progress = 0;
|
|
|
+ _this.raceOver.driQuestion.data.proVisible = true;
|
|
|
+ } else if (jsonType == 1) {
|
|
|
+ _this.raceOver.tarDesign.data.progress = 0;
|
|
|
+ _this.raceOver.tarDesign.data.proVisible = true;
|
|
|
+ } else if (jsonType == 2) {
|
|
|
+ _this.raceOver.actiDesign.data.progress = 0;
|
|
|
+ _this.raceOver.actiDesign.data.proVisible = true;
|
|
|
+ } else if (jsonType == 3) {
|
|
|
+ _this.raceOver.evaDesign.data.progress = 0;
|
|
|
+ _this.raceOver.evaDesign.data.proVisible = true;
|
|
|
+ } else {
|
|
|
+ _this.raceOver.other.data.progress = 0;
|
|
|
+ _this.raceOver.other.data.proVisible = true;
|
|
|
+ }
|
|
|
+
|
|
|
if (file) {
|
|
|
var params = {
|
|
|
Key:
|
|
@@ -879,10 +839,55 @@ export default {
|
|
|
.on("httpUploadProgress", function (evt) {
|
|
|
//这里可以写进度条
|
|
|
// console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
|
|
|
+ if (jsonType == 0) {
|
|
|
+ _this.raceOver.driQuestion.data.progress = parseInt(
|
|
|
+ (evt.loaded * 80) / evt.total
|
|
|
+ );
|
|
|
+ } else if (jsonType == 1) {
|
|
|
+ _this.raceOver.tarDesign.data.progress = parseInt(
|
|
|
+ (evt.loaded * 80) / evt.total
|
|
|
+ );
|
|
|
+ } else if (jsonType == 2) {
|
|
|
+ _this.raceOver.actiDesign.data.progress = parseInt(
|
|
|
+ (evt.loaded * 80) / evt.total
|
|
|
+ );
|
|
|
+ } else if (jsonType == 3) {
|
|
|
+ _this.raceOver.evaDesign.data.progress = parseInt(
|
|
|
+ (evt.loaded * 80) / evt.total
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ _this.raceOver.other.data.progress = parseInt(
|
|
|
+ (evt.loaded * 80) / evt.total
|
|
|
+ );
|
|
|
+ }
|
|
|
})
|
|
|
.send(function (err, data) {
|
|
|
- loading.close();
|
|
|
- _this.inputShow = true;
|
|
|
+ // loading.close();
|
|
|
+ if (jsonType == 0) {
|
|
|
+ _this.raceOver.driQuestion.data.progress = 100;
|
|
|
+ } else if (jsonType == 1) {
|
|
|
+ _this.raceOver.tarDesign.data.progress = 100;
|
|
|
+ } else if (jsonType == 2) {
|
|
|
+ _this.raceOver.actiDesign.data.progress = 100;
|
|
|
+ } else if (jsonType == 3) {
|
|
|
+ _this.raceOver.evaDesign.data.progress = 100;
|
|
|
+ } else {
|
|
|
+ _this.raceOver.other.data.progress = 100;
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ if (jsonType == 0) {
|
|
|
+ _this.raceOver.driQuestion.data.proVisible = false;
|
|
|
+ } else if (jsonType == 1) {
|
|
|
+ _this.raceOver.tarDesign.data.proVisible = false;
|
|
|
+ } else if (jsonType == 2) {
|
|
|
+ _this.raceOver.actiDesign.data.proVisible = false;
|
|
|
+ } else if (jsonType == 3) {
|
|
|
+ _this.raceOver.evaDesign.data.proVisible = false;
|
|
|
+ } else {
|
|
|
+ _this.raceOver.other.data.proVisible = false;
|
|
|
+ }
|
|
|
+ _this.$forceUpdate();
|
|
|
+ }, 1000);
|
|
|
if (err) {
|
|
|
_this.$message.error("上传失败");
|
|
|
} else {
|
|
@@ -1152,7 +1157,6 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
@media screen and (max-width: 1280px) {
|
|
|
-
|
|
|
}
|
|
|
.dialog_diy >>> .el-dialog__header {
|
|
|
background: #3c3c3c !important;
|
|
@@ -1536,4 +1540,57 @@ export default {
|
|
|
transform: translateY(-50%);
|
|
|
z-index: 1;
|
|
|
}
|
|
|
+.mask {
|
|
|
+ background-color: rgb(0 0 0 / 30%);
|
|
|
+ /* position: fixed; */
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ z-index: 20000;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.progressBox {
|
|
|
+ width: 300px;
|
|
|
+ height: 150px;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 10px;
|
|
|
+ box-shadow: 0 0 6px 1px #bfbfbf;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
+
|
|
|
+.progressBox .lbox {
|
|
|
+ height: 100px;
|
|
|
+ font-size: 16px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
+.progressBox .lbox img {
|
|
|
+ width: 40px;
|
|
|
+ margin-right: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.progressBox >>> .el-progress-bar__outer {
|
|
|
+ background-color: #d1dfff !important;
|
|
|
+}
|
|
|
+
|
|
|
+.progressBox .lbox {
|
|
|
+ height: 100px;
|
|
|
+ font-size: 19px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
+.progressBox .lbox img {
|
|
|
+ width: 40px;
|
|
|
+ margin-right: 20px;
|
|
|
+}
|
|
|
</style>
|