jinlin
2024-07-17 3c15e684416e06a7351eeb2d756e5be778a893fd
web/src/views/modules/basicInfo/XhProductModel.vue
@@ -84,18 +84,8 @@
    },
    methods: {
      add() {
        console.log(this.dataForm.type,'this.dataForm.type')
        this.dataForm.type = this.productType
        if (this.dataForm.type !== '1') {
          if (this.dataForm.type !== '3') {
            this.dataForm.type = this.dataForm.type + 1
          } else if (this.dataForm.type === '3') {
            this.dataForm.type = this.dataForm.type + 2
          } else if (this.dataForm.type === '0') {
            this.$alert("当前节点不可新增子节点,请重新设置")
            return
          }
          console.log(this.dataForm.type,'this.dataForm.type')
          this.$refs.SelectTyModel.$refs.dialog.init(null, {type: this.dataForm.type, id: this.dataForm.pid})
        } else {
          this.$refs.AddOrUpdate.$refs.dialog.init(null, {id: null, type: 'zt', pid: this.dataForm.pid})