Commit 7d74ccd6 by hank

更改设备绑定页面

parent 7fb1629e
......@@ -199,22 +199,25 @@ export default {
},
goDevices() {
let _this = this;
window.wx.miniProgram.getEnv(function(res) {
if (res.miniProgram) {
window.wx.miniProgram.navigateTo({
url: `pages/home/film/schedule_add/components/device/index?calendarId=${_this.templateData.calendarId}`
});
} else {
_this.$router.push({
path: "/tempaltes/filmdevice",
query: {
filmId: this.$route.query.filmId,
calendarId: this.templateData.calendarId
}
});
}
url: `/pages/home/film/schedule_add/components/device/index?cId=${_this.templateData.calendarId}&fId=${_this.templateData.filmId}`
});
// window.wx.miniProgram.getEnv(function(res) {
// console.log(res.miniprogram, "miniProgram");
// if (res.miniProgram) {
// window.wx.miniProgram.navigateTo({
// url: `pages/home/film/schedule_add/components/device/index?calendarId=${_this.templateData.calendarId}`
// });
// } else {
// _this.$router.push({
// path: "/tempaltes/filmdevice",
// query: {
// filmId: _this.$route.query.filmId,
// calendarId: _this.templateData.calendarId
// }
// });
// }
// });
},
goEdit() {
this.$router.push({
......
......@@ -235,17 +235,17 @@ export default {
this.$router.back();
});
}
bindDeviceToFilm(this.deviceChecked, this.$route.query.filmId).then(
() => {
this.$toast.success("绑定成功");
this.show = false;
this.page = 0;
this.list = [];
this.finished = false;
this.deviceChecked = [];
this.isCheck = [];
}
);
// bindDeviceToFilm(this.deviceChecked, this.$route.query.filmId).then(
// () => {
// this.$toast.success("绑定成功");
// this.show = false;
// this.page = 0;
// this.list = [];
// this.finished = false;
// this.deviceChecked = [];
// this.isCheck = [];
// }
// );
} else {
this.$toast.success("请选择设备");
this.show = false;
......
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