| | |
| | | data() { |
| | | return { |
| | | url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`, |
| | | productType: '', |
| | | dataForm: { |
| | | name: '', |
| | | productType: '', |
| | | type:'', |
| | | pid: '', |
| | | srcId:'', |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | if (this.dataForm.type !== '4') { |
| | | this.dataForm.type=this.productType |
| | | if (this.dataForm.type !== '3') { |
| | | console.log(1111) |
| | | console.log(this.dataForm.type,'add() {') |
| | | this.dataForm.type = this.dataForm.type - 1 |
| | | } else if (this.dataForm.type === '4') { |
| | | } else if (this.dataForm.type === '3') { |
| | | console.log(2222) |
| | | console.log(this.dataForm.type,'add() {') |
| | | this.dataForm.type = this.dataForm.type - 2 |
| | |
| | | console.log(data) |
| | | this.dataForm.pid = data.id |
| | | this.dataForm.type = data.productType |
| | | this.productType = data.productType |
| | | this.$refs.tableObj.query() |
| | | } |
| | | } |