|
@@ -89,7 +89,9 @@
|
|
|
|
|
|
<!-- 操作 -->
|
|
|
<span slot="operationSlot" slot-scope="text, record">
|
|
|
- <a @click="accessoryUpload(record)" style="color:green;">附件上传</a>
|
|
|
+ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="enclosureUrl" @change="handleImportExcel" :data="{id:record.id}" >
|
|
|
+ <a style="color:green;">附件上传</a>
|
|
|
+ </a-upload>
|
|
|
<a-divider type="vertical" />
|
|
|
<a-dropdown>
|
|
|
<a class="ant-dropdown-link">更多<a-icon type="down"/></a>
|
|
@@ -256,7 +258,8 @@ export default {
|
|
|
// delete: '/sys/user/delete',
|
|
|
// deleteBatch: '/sys/user/deleteBatch',
|
|
|
exportXlsUrl: '/sys/user/exportXls', // 导出
|
|
|
- importExcelUrl: 'sys/user/importExcel' // 导入
|
|
|
+ importExcelUrl: 'sys/user/importExcel', // 导入
|
|
|
+ enclosureUrl:'splfi/syPackingListFabric/upload'//附件导入
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -559,6 +562,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ enclosureUrl: function() {
|
|
|
+ return `${window._CONFIG['domianURL']}/${this.url.enclosureUrl}`
|
|
|
+ },
|
|
|
// 选中项
|
|
|
rowSelection() {
|
|
|
return {
|