|
|
@@ -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);
|