|
|
@@ -5,11 +5,11 @@
|
|
|
<span>
|
|
|
<avue-crud v-if="excelBox" :data="data" :option="option" :table-loading="loading"
|
|
|
:cell-style="cellStyle" @selection-change="selectionChange">
|
|
|
- <template slot="menuLeft" slot-scope="{size}">
|
|
|
- <el-button type="primary" size="mini" icon="el-icon-download" @click="download()">
|
|
|
+ <template v-if="!(type==5||type==6)" slot="menuLeft" slot-scope="{size}">
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-download" @click="download()">
|
|
|
下载模板
|
|
|
</el-button>
|
|
|
- <el-upload :action="action" :headers="headers" :on-progress="onProgress" :show-file-list=false
|
|
|
+ <el-upload :action="action" :headers="headers" :on-progress="onProgress" :show-file-list=false
|
|
|
accept=".xls,.xlsx" multiple :on-success="onSuccess" :on-error="onError"
|
|
|
:on-change="onChange" style="float: right">
|
|
|
<el-button type="success" size="mini" icon="el-icon-upload">上传数据</el-button>
|
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
// beforeUpload(file) {
|
|
|
|
|
|
// },
|
|
|
- openDialog(type) {
|
|
|
+ openDialog(type, list) {
|
|
|
this.data = []
|
|
|
this.selectionList = []
|
|
|
this.excelBox = true
|
|
|
@@ -181,6 +181,14 @@ export default {
|
|
|
this.action = '/api/blade-los/boxPool/returnEmptyAnalysis'
|
|
|
this.url = '/blade-los/boxPool/returnEmpty'
|
|
|
}
|
|
|
+ if (type == 5) {
|
|
|
+ this.data=list
|
|
|
+ this.url = '/blade-los/boxPool/emptyContainerEntry'
|
|
|
+ }
|
|
|
+ if (type == 6) {
|
|
|
+ this.data=list
|
|
|
+ this.url = '/blade-los/boxPool/emptyContainerAppearance'
|
|
|
+ }
|
|
|
this.type = type
|
|
|
},
|
|
|
download() {
|