|
@@ -12,8 +12,8 @@ Page({
|
|
title:"",
|
|
title:"",
|
|
edit:"",
|
|
edit:"",
|
|
id:0,
|
|
id:0,
|
|
- remark:""
|
|
|
|
-
|
|
|
|
|
|
+ remark:"",
|
|
|
|
+ cold:0, // 1:能冻结,2:能解冻
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -23,7 +23,7 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
id:options.id
|
|
id:options.id
|
|
})
|
|
})
|
|
- this. gettaskdetail(options.id)
|
|
|
|
|
|
+ this. gettaskdetail()
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -40,6 +40,14 @@ Page({
|
|
url:'Frozen'
|
|
url:'Frozen'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ show3: function () {
|
|
|
|
+ this.setData({
|
|
|
|
+ show: !this.data.show,
|
|
|
|
+ title:'解冻格口',
|
|
|
|
+ edit:'解冻',
|
|
|
|
+ url:'Thaw'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
show1: function () {
|
|
show1: function () {
|
|
this.setData({
|
|
this.setData({
|
|
show: !this.data.show,
|
|
show: !this.data.show,
|
|
@@ -48,10 +56,10 @@ Page({
|
|
url:'Overhaul'
|
|
url:'Overhaul'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- gettaskdetail(id) {
|
|
|
|
|
|
+ gettaskdetail() {
|
|
var that = this
|
|
var that = this
|
|
app.api.useApi(app.globalData.baseAppUrl + "api/admin/LatticeDetails", {
|
|
app.api.useApi(app.globalData.baseAppUrl + "api/admin/LatticeDetails", {
|
|
- id: id,
|
|
|
|
|
|
+ id: that.data.id,
|
|
}, "post").then(function (res) {
|
|
}, "post").then(function (res) {
|
|
console.log(res);
|
|
console.log(res);
|
|
if (res.code != 200) {
|
|
if (res.code != 200) {
|
|
@@ -64,6 +72,12 @@ Page({
|
|
|
|
|
|
} else {
|
|
} else {
|
|
wx.hideLoading();
|
|
wx.hideLoading();
|
|
|
|
+ // 1:能冻结,2:能解冻
|
|
|
|
+ if(res.message.data.status=='空闲'){
|
|
|
|
+ that.setData({cold: 1})
|
|
|
|
+ }else{
|
|
|
|
+ that.setData({cold: 2})
|
|
|
|
+ }
|
|
that.setData({
|
|
that.setData({
|
|
taskInfo: res.message.data
|
|
taskInfo: res.message.data
|
|
})
|
|
})
|
|
@@ -95,8 +109,10 @@ Page({
|
|
} else {
|
|
} else {
|
|
wx.hideLoading();
|
|
wx.hideLoading();
|
|
that.setData({
|
|
that.setData({
|
|
- taskInfo: res.message.data
|
|
|
|
|
|
+ show: !that.data.show,
|
|
|
|
+ // taskInfo: res.message.data
|
|
})
|
|
})
|
|
|
|
+ that.gettaskdetail()
|
|
}
|
|
}
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
|
|
|