| | |
| | | <zt-table-button v-if="productType==='1'" size="small" type="primary" |
| | | @click="importData(row)">导入 |
| | | </zt-table-button> |
| | | <zt-table-button v-if="productType==='1'" size="small" type="primary" |
| | | @click="exportData(row)">导出 |
| | | </zt-table-button> |
| | | </template> |
| | | </zt-table-column-handle> |
| | | </el-table> |
| | |
| | | importData(row) { |
| | | this.$refs.ProductImport.$refs.dialog.init(row) |
| | | }, |
| | | async exportData(row) { |
| | | let params = { |
| | | shipId:row.id |
| | | } |
| | | let res = await this.$http.get(`/basicInfo/XhProductModel/exportData`,{params:params}) |
| | | |
| | | |
| | | }, |
| | | exportProduct() { |
| | | window.location.href = './产品结构树导入模板.xlsx' |
| | | }, |