Commit 55e1a0db by liuwange1

xiugai

parent f9bacc11
...@@ -60,10 +60,16 @@ export default { ...@@ -60,10 +60,16 @@ export default {
this.listR = this.listL[0].child || []; this.listR = this.listL[0].child || [];
}, },
buildClickHandle(index) { buildClickHandle(index) {
this.activeIndex = index;
this.$axios.post("/osc/sendInt", { this.$axios.post("/osc/sendInt", {
arg: this.listL[index].id, arg: this.listL[index].id,
name: "/LY", name: "/LY",
}).then(() => {
this.$axios.post("/osc/sendInt", {
arg: this.osc,
name: "/YJ",
}).then(() => {
this.activeIndex = index;
})
}); });
if (index == 0) { if (index == 0) {
this.$emit("change", { this.$emit("change", {
...@@ -81,17 +87,21 @@ export default { ...@@ -81,17 +87,21 @@ export default {
ldID: this.listL[this.activeIndex].id, ldID: this.listL[this.activeIndex].id,
lcID: this.listR[index].id, lcID: this.listR[index].id,
}); });
this.$axios this.$axios.post("/osc/sendInt", {
.post("/osc/sendInt", { arg: this.listR[index].id,
arg: this.osc, name: "/LC",
name: "/YJ", });
}) // this.$axios
.then(() => { // .post("/osc/sendInt", {
this.$axios.post("/osc/sendInt", { // arg: this.osc,
arg: this.listR[index].id, // name: "/YJ",
name: "/LC", // })
}); // .then(() => {
}); // this.$axios.post("/osc/sendInt", {
// arg: this.listR[index].id,
// name: "/LC",
// });
// });
this.$emit("listenBuildChange", { this.$emit("listenBuildChange", {
pid: this.listL[this.activeIndex].id, pid: this.listL[this.activeIndex].id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment