|
|
|
|
@ -12,11 +12,15 @@
|
|
|
|
|
:showUploadList = 'false'
|
|
|
|
|
@change="handleChange"
|
|
|
|
|
ref="table"
|
|
|
|
|
style="margin-right:15px"
|
|
|
|
|
>
|
|
|
|
|
<a-button type="primary" class="plc" >
|
|
|
|
|
<a-button type="primary" >
|
|
|
|
|
导入
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-upload>
|
|
|
|
|
<a-button type="" @click="categoryExportModel">
|
|
|
|
|
模板下载
|
|
|
|
|
</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
<a-table
|
|
|
|
|
:columns="columns"
|
|
|
|
|
@ -147,6 +151,16 @@ export default {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
categoryExportModel() {
|
|
|
|
|
this.$api.httpApi.categoryExportModel({
|
|
|
|
|
params: {}
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let blob = new Blob([res], {type: "application/vnd.ms-excel"})
|
|
|
|
|
this.$utils.downloadFile('品规模板.xls', blob)
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
showModel(type,data){
|
|
|
|
|
this.visible = true
|
|
|
|
|
console.log(type)
|
|
|
|
|
@ -190,7 +204,7 @@ export default {
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
.add{
|
|
|
|
|
margin-right: 20px;
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|