Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7d74ccd6
authored
Nov 08, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改设备绑定页面
parent
7fb1629e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
25 deletions
+28
-25
src/views/tempaltes/filmDetail.vue
+17
-14
src/views/tempaltes/filmDevice.vue
+11
-11
No files found.
src/views/tempaltes/filmDetail.vue
View file @
7d74ccd6
...
...
@@ -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
({
...
...
src/views/tempaltes/filmDevice.vue
View file @
7d74ccd6
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment