| | |
| | | }, |
| | | 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; |
| | | } |
| | |
| | | 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; |