Hua 1 miesiąc temu
rodzic
commit
83ae86a7b5
1 zmienionych plików z 10 dodań i 1 usunięć
  1. 10 1
      src/views/duChaWenTi/dcwt_zhdcwtcz.vue

+ 10 - 1
src/views/duChaWenTi/dcwt_zhdcwtcz.vue

@@ -1061,7 +1061,13 @@
                         @click="submitRectify">
                         提交整改
                       </a-button>
-                      <uploadFile style="float:right;" @changeFile="onImport" />
+                      <uploadFile ref="uploadFileImport" style="display:none;" @changeFile="onImport" />
+                      <a-button
+                        style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
+                        type="primary"
+                        @click="onImportClick">
+                        导入
+                      </a-button>
                       <a-button
                         style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
                         type="primary"
@@ -4754,6 +4760,9 @@ export default {
     initGw2() {
       this.gwComFiles2 = [];
     },
+    onImportClick() {
+      this.$refs.uploadFileImport.$el.querySelector('input[type=file]').click();
+    },
     onImport(e) {
       const params = new FormData();
       params.append('file', e.files);