浏览代码

附件后缀大写判断

ellisran 10 月之前
父节点
当前提交
ee31b77d13

+ 2 - 8
app/public/js/change.js

@@ -13,7 +13,7 @@ function getNewCode() {
         if (code !== '') {
             $('#bj-code').val(code);
             if (openChangePlan && changePlanList && _.findIndex(changePlanList, { code: code }) !== -1) {
-                $('#plan-code').val(code).trigger('change');;
+                $('#plan-code').val(code).trigger('change');
             }
         }
     });
@@ -137,13 +137,7 @@ class codeRuleSet {
         });
     }
 }
-/**
- * 期计量 - 期列表页面 js
- *
- * @author Mai
- * @date 2018/12/7
- * @version
- */
+
 const getGroupAuditHtml = function (group) {
     return group.map(u => { return `<small class="d-inline-block text-dark mx-1" title="${u.role}" data-auditorId="${u.aid}">${u.name}</small>`; }).join('');
 };

+ 1 - 1
app/public/js/change_apply_information.js

@@ -839,7 +839,7 @@ function validateFiles(files) {
             toastr.error('文件大小限制为30MB');
             return false
         }
-        if (whiteList.indexOf('.' + file.ext) === -1) {
+        if (whiteList.indexOf('.' + file.ext.toLowerCase()) === -1) {
             toastr.error('请上传正确的格式文件');
             return false
         }

+ 1 - 1
app/public/js/change_plan_information.js

@@ -988,7 +988,7 @@ function validateFiles(files) {
             toastr.error('文件大小限制为30MB');
             return false
         }
-        if (whiteList.indexOf('.' + file.ext) === -1) {
+        if (whiteList.indexOf('.' + file.ext.toLowerCase()) === -1) {
             toastr.error('请上传正确的格式文件');
             return false
         }

+ 1 - 1
app/public/js/change_project_information.js

@@ -202,7 +202,7 @@ function validateFiles(files) {
             toastr.error('文件大小限制为30MB');
             return false
         }
-        if (whiteList.indexOf('.' + file.ext) === -1) {
+        if (whiteList.indexOf('.' + file.ext.toLowerCase()) === -1) {
             toastr.error('请上传正确的格式文件');
             return false
         }