| | |
| | | icon="plus" |
| | | :hidden="disabled" |
| | | >新增</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import" >导入</a-button> |
| | | </a-upload> |
| | | <a-button |
| | | type="primary" |
| | | icon="download" |
| | |
| | | } |
| | | }, |
| | | |
| | | |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | handleAdd: function () { |
| | | this.$refs.modalForm.add({ inspectionProjectCategoryNumName: this.inspectionProjectCategoryNumName }); |