Quellcode durchsuchen

处理按钮上传

seimin vor 11 Monaten
Ursprung
Commit
d5e3580bd5

+ 2 - 1
assets/js/controllers/incident/incidentCtrl.js

@@ -1140,8 +1140,9 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1140 1140
                         && fileItem.file.type !== 'application/pdf'
1141 1141
                         && fileItem.file.type !== 'application/vnd.ms-excel'
1142 1142
                         && fileItem.file.type !== 'application/msword'
1143
+                        && fileItem.file.type !== 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
1143 1144
                     ) {
1144
-                        alert("只能上传word,excel,pdf,txt");
1145
+                        alert("只能上传word,excel,pdf,txt,.ppt");
1145 1146
                         fileItem.uploader.queue.pop();
1146 1147
                         console.log($scope);
1147 1148
                     }

+ 1 - 1
assets/views/incident/tpl/doing.tpl.html

@@ -65,7 +65,7 @@
65 65
     <div class="form-group incidentsearch" style="margin:0 auto;width: 300px;">
66 66
         <div class="panel panel-white">
67 67
             <div class="panel-heading">
68
-                <div style="width: 120px;" class="btn btn-blue btn-o btn-file col-md-2"><i class="fa fa-plus"></i><span translate="form.button.SELECTFILE"></span><input name="uploadedFile" accept=".pdf,.xlsx,.xls,.doc,.docx,.txt" type="file" nv-file-select="" uploader="uploader" />
68
+                <div style="width: 120px;" class="btn btn-blue btn-o btn-file col-md-2"><i class="fa fa-plus"></i><span translate="form.button.SELECTFILE"></span><input name="uploadedFile" accept=".pdf,.xlsx,.xls,.doc,.docx,.txt,.ppt,.pptx" type="file" nv-file-select="" uploader="uploader" />
69 69
                 </div>
70 70
             </div>
71 71
             <div class="panel-body">