|
@@ -42,7 +42,6 @@ Page({
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
//点击变色 显示按钮
|
|
//点击变色 显示按钮
|
|
seled: function (e) {
|
|
seled: function (e) {
|
|
this.setData({
|
|
this.setData({
|
|
@@ -50,6 +49,7 @@ Page({
|
|
status: e.currentTarget.dataset.status
|
|
status: e.currentTarget.dataset.status
|
|
});
|
|
});
|
|
var id = e.currentTarget.dataset.id;
|
|
var id = e.currentTarget.dataset.id;
|
|
|
|
+ console.log(id);
|
|
spoutDeviceId = id
|
|
spoutDeviceId = id
|
|
var num = e.currentTarget.dataset.num;
|
|
var num = e.currentTarget.dataset.num;
|
|
this.gettaskdeatil(id, num);
|
|
this.gettaskdeatil(id, num);
|
|
@@ -127,7 +127,7 @@ Page({
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
app.api.useApi(app.globalData.baseAppUrl + "api/admin/SelectLattice", {
|
|
app.api.useApi(app.globalData.baseAppUrl + "api/admin/SelectLattice", {
|
|
- device_id: "1",
|
|
|
|
|
|
+ device_id: that.data.deviceId,
|
|
spout_device_id: id,
|
|
spout_device_id: id,
|
|
}, "get").then(function (res) {
|
|
}, "get").then(function (res) {
|
|
console.log(res);
|
|
console.log(res);
|