jinlin
2024-03-19 b04b1f186c4250e6894823f990189950508d877d
web/src/views/modules/basicInfo/XhProductModel.vue
@@ -56,9 +56,9 @@
    data() {
      return {
        url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`,
        productType: '',
        dataForm: {
          name: '',
          productType: '',
          type:'',
          pid: '',
          srcId:'',
@@ -72,11 +72,12 @@
    },
    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
@@ -100,6 +101,7 @@
        console.log(data)
        this.dataForm.pid = data.id
        this.dataForm.type = data.productType
        this.productType = data.productType
        this.$refs.tableObj.query()
      }
    }