xiaochenxuxiugai
This commit is contained in:
parent
7d871fa997
commit
8a1027f1e8
|
@ -49,7 +49,7 @@
|
|||
|
||||
</view>
|
||||
<view class="weui-media-box__desc">
|
||||
<span style="background-color:green;color:white">{{item.checkname__username}} </span>
|
||||
<span style="background-color:green;color:white">{{item.checkname__name}} </span>
|
||||
<view class="weui-media-box__title" wx:if="{{item.jobstate == 1}}" style="font-size:12px;color:green">可执行</view>
|
||||
<view class="weui-media-box__title" wx:if="{{item.jobstate == 2}}" style="font-size:12px;color:red">已过期</view>
|
||||
</view>
|
||||
|
|
|
@ -35,6 +35,23 @@ Page({
|
|||
this.setData({
|
||||
equipment:res.data
|
||||
})
|
||||
wx.request({
|
||||
url: this.data.serverUrl + 'api/equipmentcheckform/'+id,
|
||||
header: {
|
||||
'content-type': 'application/json', // 默认值
|
||||
'Cookie': getApp().globalData.sessionId,
|
||||
},
|
||||
success: res => {
|
||||
if (res.statusCode === 200) {
|
||||
|
||||
this.setData({
|
||||
itemscheck:res.items
|
||||
})
|
||||
console.log(itemscheck)
|
||||
}
|
||||
wx.hideLoading();
|
||||
}
|
||||
});
|
||||
wx.request({
|
||||
url: this.data.serverUrl + 'api/risk?a=steps&type=equipment',
|
||||
header: {
|
||||
|
|
Loading…
Reference in New Issue