| | |
| | | import Cookies from "js-cookie"; |
| | | import TyProductModel from "./TyProductModel-AddOrUpdate"; |
| | | import ProductImport from "./ProductImport"; |
| | | import qs from 'qs' |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | type: '', |
| | | pid: '', |
| | | srcId: '', |
| | | } |
| | | }, |
| | | productType:'' |
| | | } |
| | | }, |
| | | components: { |
| | |
| | | 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}) |
| | | console.log(row) |
| | | let params = qs.stringify({ |
| | | 'token': Cookies.get('token'), |
| | | shipId:row.id, |
| | | fileName:row.name |
| | | }) |
| | | let apiURL = `/basicInfo/XhProductModel/exportData` |
| | | window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}` |
| | | |
| | | |
| | | |
| | | }, |