Bladeren bron

限制附件格式

miaofuhao 3 jaren geleden
bovenliggende
commit
a1fea532d4

+ 4 - 3
WebUI/CallCenterWeb.UI/CommonHtml/banli.html

@@ -80,7 +80,8 @@
80 80
                     <!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
81 81
                     <input type="hidden" id="file" />
82 82
                     <span style="color:#FF0000; border: none;">
83
-                        (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
83
+                    	(文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
84
+                        
84 85
                     </span>
85 86
                 </td>
86 87
             </tr>
@@ -278,8 +279,8 @@
278 279
                 }
279 280
                 formData.append("token", $.cookie("token"));
280 281
                 var typeName = Files[0].name.split('.')[1];
281
-                if (typeName == "png" || typeName == 'jpg' || typeName == 'mp4' || typeName == 'mp3' || typeName ==
282
-                    'pdf' || typeName == 'doc' || typeName == 'docx' || typeName == 'xls' || typeName == 'xlsx') {
282
+                
283
+                if (typeName=="png"||typeName=='jpg'||typeName=='mp4'||typeName=='mp3'||typeName=='pdf'||typeName=='doc'||typeName=='docx'||typeName=='xls'||typeName=='xlsx' ) {
283 284
                     $.ajax({
284 285
                         url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
285 286
                         type: "POST",

+ 2 - 2
WebUI/CallCenterWeb.UI/CommonHtml/updatingFiles.html

@@ -106,7 +106,7 @@
106 106
                     <!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
107 107
                     <input type="hidden" id="file" />
108 108
                 	<span style="color:#FF0000; border: none;">
109
-                    	(文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
109
+                    	(文件格式为png,jpg,pdf)
110 110
                     </span>
111 111
                 </td>
112 112
             </tr>
@@ -157,7 +157,7 @@
157 157
                 }
158 158
                 formData.append("token", $.cookie("token"));
159 159
                 var typeName=Files[0].name.split('.')[1];
160
-                if (typeName=="png"||typeName=='jpg'||typeName=='mp4'||typeName=='mp3'||typeName=='pdf'||typeName=='doc'||typeName=='docx'||typeName=='xls'||typeName=='xlsx') {
160
+                if (typeName == "png" || typeName == 'jpg' || typeName =='pdf') {
161 161
 	                $.ajax({
162 162
 	                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
163 163
 	                    type: "POST",