| | |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | <a-button @click="handleCopy" type="primary" icon="copy" :disabled="selectedRowKeys.length!=1">复制</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> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | |
| | | list: "/eam/precisionParametersTemplate/list", |
| | | delete: "/eam/precisionParametersTemplate/delete", |
| | | deleteBatch: "/eam/precisionParametersTemplate/deleteBatch", |
| | | importExcelUrl: "/eam/precisionParametersTemplate/importExcel", |
| | | }, |
| | | dictOptions:{ |
| | | }, |
| | |
| | | record.num = ''; |
| | | this.handleEdit(record); |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |