gaoshp
2024-11-04 eef1ef0be935d4a3d8fc691b2666f41796b2d4a5
src/views/console/basic-data/addProduct.vue
@@ -122,7 +122,7 @@
      },
      methods: {
         showParentData() {
            this.$HTTP.get("/api/blade-cps/product/tree?status=1").then(res=> {
            this.$HTTP.get("/api/smis/product/tree?status=1").then(res=> {
               if(res.code == 200) {
                  this.parentData = res.data;
               }
@@ -153,7 +153,7 @@
            var obj = Object.assign({},this.addDictForm);
            this.$refs.dialogForm.validate(async (valid) => {
               if (valid) {
                  this.$HTTP.post("/api/blade-cps/product/insert",obj).then(res=> {
                  this.$HTTP.post("/api/smis/product/insert",obj).then(res=> {
                     if(res.code == 200) {
                        this.$emit('success', this.addDictForm, this.mode);
                        this.visible = false;