| | |
| | | :prelang="prelang" :options="options" :bottomOffset="125" :ajaxFun="ajaxFun" ref="partTable"> |
| | | <template #toolbar></template> |
| | | </ttable> |
| | | <el-upload :headers="{'Authorization': 'Bearer ' + yourToken}" class="upload-demo" action="/mes/part/uploadExcel" :on-preview="handlePreview" |
| | | <!-- <el-upload :headers="{'Authorization': 'Bearer ' + yourToken}" class="upload-demo" action="/mes/part/uploadExcel" :on-preview="handlePreview" |
| | | :on-remove="handleRemove" :file-list="fileList" :on-success="fileUpload" :limit="1"> |
| | | <el-button size="small" type="primary">点击Excel导入</el-button> |
| | | </el-upload> |
| | | </el-upload> --> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getData"></table-form> |
| | | <PrintLabelForm :currshowlist.sync="showPrintLabelForm" :printLabelInfo="printLabelInfo" /> |
| | |
| | | uploadInfo: { |
| | | // 是否展示上传EXCEL以及对应的url |
| | | isShow: true, |
| | | url: '/mes/part/upload' |
| | | url: '/mes/part/uploadExcel' |
| | | }, |
| | | prelang: 'operation', |
| | | options: { |
| | |
| | | seqNo: true, |
| | | isShowHide: true, // 是否显示显影按钮 |
| | | isSearch: false, // 高级查询按钮 |
| | | isRefresh: true, |
| | | defaultOrderBy: { column: 'id', direction: 'desc' } |
| | | }, |
| | | table: { |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | .el-upload-dragger { |
| | | width: 300px !important; |
| | | } |
| | | </style> |