|
@@ -3836,47 +3836,47 @@ export default {
|
|
|
}
|
|
|
}); //选择桶
|
|
|
var _this = this;
|
|
|
- // if (type == 3) {
|
|
|
- // var b = [
|
|
|
- // "DOC",
|
|
|
- // "DOCX",
|
|
|
- // "DOCM",
|
|
|
- // "DOTM",
|
|
|
- // "DOTX",
|
|
|
- // "PPTX",
|
|
|
- // "PPSX",
|
|
|
- // "PPT",
|
|
|
- // "PPS",
|
|
|
- // "PPTM",
|
|
|
- // "POTM",
|
|
|
- // "PPAM",
|
|
|
- // "POTX",
|
|
|
- // "PPSM",
|
|
|
- // ];
|
|
|
- // if (
|
|
|
- // b.indexOf(
|
|
|
- // file.name
|
|
|
- // .split(".")[file.name.split(".").length - 1].toLocaleUpperCase()
|
|
|
- // ) != -1
|
|
|
- // ) {
|
|
|
- // if (file.size / 1024 / 1024 > 50) {
|
|
|
- // this.$message.error("上传文件大于50兆,请重新选择文件!");
|
|
|
- // this.inputShow = true;
|
|
|
- // // loading.close();
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // } else if (
|
|
|
- // file.name
|
|
|
- // .split(".")[file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
|
|
|
- // ) {
|
|
|
- // if (file.size / 1024 / 1024 > 50) {
|
|
|
- // this.$message.error("添加成上传文件大于50兆,请重新选择文件!");
|
|
|
- // this.inputShow = true;
|
|
|
- // // loading.close();
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
+ if (type == 3) {
|
|
|
+ var b = [
|
|
|
+ "DOC",
|
|
|
+ "DOCX",
|
|
|
+ "DOCM",
|
|
|
+ "DOTM",
|
|
|
+ "DOTX",
|
|
|
+ "PPTX",
|
|
|
+ "PPSX",
|
|
|
+ "PPT",
|
|
|
+ "PPS",
|
|
|
+ "PPTM",
|
|
|
+ "POTM",
|
|
|
+ "PPAM",
|
|
|
+ "POTX",
|
|
|
+ "PPSM",
|
|
|
+ ];
|
|
|
+ if (
|
|
|
+ b.indexOf(
|
|
|
+ file.name
|
|
|
+ .split(".")[file.name.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ ) != -1
|
|
|
+ ) {
|
|
|
+ if (file.size / 1024 / 1024 > 80) {
|
|
|
+ this.$message.error("上传文件大于80兆,请重新选择文件!");
|
|
|
+ this.inputShow = true;
|
|
|
+ // loading.close();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else if (
|
|
|
+ file.name
|
|
|
+ .split(".")[file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
|
|
|
+ ) {
|
|
|
+ if (file.size / 1024 / 1024 > 80) {
|
|
|
+ this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
|
|
|
+ this.inputShow = true;
|
|
|
+ // loading.close();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.inputShow = false;
|
|
|
_this.unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
|
itemTaskIndex
|
|
@@ -3981,47 +3981,47 @@ export default {
|
|
|
}
|
|
|
}); //选择桶
|
|
|
var _this = this;
|
|
|
- // if (type == 3) {
|
|
|
- // var b = [
|
|
|
- // "DOC",
|
|
|
- // "DOCX",
|
|
|
- // "DOCM",
|
|
|
- // "DOTM",
|
|
|
- // "DOTX",
|
|
|
- // "PPTX",
|
|
|
- // "PPSX",
|
|
|
- // "PPT",
|
|
|
- // "PPS",
|
|
|
- // "PPTM",
|
|
|
- // "POTM",
|
|
|
- // "PPAM",
|
|
|
- // "POTX",
|
|
|
- // "PPSM",
|
|
|
- // ];
|
|
|
- // if (
|
|
|
- // b.indexOf(
|
|
|
- // file.name
|
|
|
- // .split(".")[file.name.split(".").length - 1].toLocaleUpperCase()
|
|
|
- // ) != -1
|
|
|
- // ) {
|
|
|
- // if (file.size / 1024 / 1024 > 50) {
|
|
|
- // this.$message.error("上传文件大于50兆,请重新选择文件!");
|
|
|
- // this.inputShow = true;
|
|
|
- // // loading.close();
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // } else if (
|
|
|
- // file.name
|
|
|
- // .split(".")[file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
|
|
|
- // ) {
|
|
|
- // if (file.size / 1024 / 1024 > 50) {
|
|
|
- // this.$message.error("添加成上传文件大于50兆,请重新选择文件!");
|
|
|
- // this.inputShow = true;
|
|
|
- // // loading.close();
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
+ if (type == 3) {
|
|
|
+ var b = [
|
|
|
+ "DOC",
|
|
|
+ "DOCX",
|
|
|
+ "DOCM",
|
|
|
+ "DOTM",
|
|
|
+ "DOTX",
|
|
|
+ "PPTX",
|
|
|
+ "PPSX",
|
|
|
+ "PPT",
|
|
|
+ "PPS",
|
|
|
+ "PPTM",
|
|
|
+ "POTM",
|
|
|
+ "PPAM",
|
|
|
+ "POTX",
|
|
|
+ "PPSM",
|
|
|
+ ];
|
|
|
+ if (
|
|
|
+ b.indexOf(
|
|
|
+ file.name
|
|
|
+ .split(".")[file.name.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ ) != -1
|
|
|
+ ) {
|
|
|
+ if (file.size / 1024 / 1024 > 80) {
|
|
|
+ this.$message.error("上传文件大于80兆,请重新选择文件!");
|
|
|
+ this.inputShow = true;
|
|
|
+ // loading.close();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else if (
|
|
|
+ file.name
|
|
|
+ .split(".")[file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
|
|
|
+ ) {
|
|
|
+ if (file.size / 1024 / 1024 > 80) {
|
|
|
+ this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
|
|
|
+ this.inputShow = true;
|
|
|
+ // loading.close();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
_this.inputShow = false;
|
|
|
_this.progress = 0;
|
|
|
_this.proVisible = true;
|