mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-22 04:19:36 +08:00
1
This commit is contained in:
parent
7aef0a4170
commit
b6451819d4
@ -68,8 +68,7 @@ Page({
|
|||||||
_this.setData({
|
_this.setData({
|
||||||
userData: wx.getStorageSync('user'),
|
userData: wx.getStorageSync('user'),
|
||||||
})
|
})
|
||||||
// 获取数据
|
// 数据
|
||||||
let userId = _this.data.userData.id
|
|
||||||
// 角色id
|
// 角色id
|
||||||
let dataType = _this.data.userData.dataType
|
let dataType = _this.data.userData.dataType
|
||||||
// 是否展示
|
// 是否展示
|
||||||
@ -78,12 +77,7 @@ Page({
|
|||||||
tabTitle: '重新派单', // tab 标题
|
tabTitle: '重新派单', // tab 标题
|
||||||
resendOrderVisible: true, // 重新派单显示
|
resendOrderVisible: true, // 重新派单显示
|
||||||
})
|
})
|
||||||
_this.getDataList('重新派单')
|
|
||||||
}
|
}
|
||||||
// 数据
|
|
||||||
_this.getDataList('待派单')
|
|
||||||
_this.getDataList('已派单')
|
|
||||||
_this.getDataList('已关闭')
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取数据
|
// 获取数据
|
||||||
@ -154,8 +148,7 @@ Page({
|
|||||||
console.log('repairListRq', res);
|
console.log('repairListRq', res);
|
||||||
let dataList = res.rows
|
let dataList = res.rows
|
||||||
let isDataAll = false
|
let isDataAll = false
|
||||||
if (!(dataList && dataList.length > 0)) {
|
if (pageNum * pageSize >= res.total) {
|
||||||
dataList = []
|
|
||||||
isDataAll = true
|
isDataAll = true
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
@ -198,15 +191,9 @@ Page({
|
|||||||
formartData(dataList) {
|
formartData(dataList) {
|
||||||
// 格式化数据
|
// 格式化数据
|
||||||
return dataList.map(item => {
|
return dataList.map(item => {
|
||||||
let repairImages = item.repairImages
|
let ext1 = item.ext1
|
||||||
if (repairImages) {
|
if (ext1) {
|
||||||
let fileList = JSON.parse(repairImages)
|
item.visibleImg = ext1
|
||||||
let file = fileList.find(item => checkIsImg(item.url))
|
|
||||||
if (file) {
|
|
||||||
item.visibleImg = file.url
|
|
||||||
} else {
|
|
||||||
item.visibleImg = '/profile/static/repair/index/noneImg.png'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
item.visibleImg = '/profile/static/repair/index/noneImg.png'
|
item.visibleImg = '/profile/static/repair/index/noneImg.png'
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<view class="topTitle">编号: {{item.sn}}</view>
|
<view class="topTitle">编号: {{item.sn}}</view>
|
||||||
<view class="selfLine"></view>
|
<view class="selfLine"></view>
|
||||||
<view class="centerView">
|
<view class="centerView">
|
||||||
<view class="showImg" style="background: no-repeat center/cover url({{IMG_NAME + item.visibleImg}});"></view>
|
<view class="showImg" style="background: no-repeat center/contain url({{IMG_NAME + item.visibleImg}});"></view>
|
||||||
<view class="rightView">
|
<view class="rightView">
|
||||||
<view class="labelName ellipsisFont">{{item.repairName}}</view>
|
<view class="labelName ellipsisFont">{{item.repairName}}</view>
|
||||||
<view class="labelContent1 ellipsisFont">类型: {{item.typeName + '/' + item.deviceName}}</view>
|
<view class="labelContent1 ellipsisFont">类型: {{item.typeName + '/' + item.deviceName}}</view>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<view class="topTitle">编号: {{item.sn}}</view>
|
<view class="topTitle">编号: {{item.sn}}</view>
|
||||||
<view class="selfLine"></view>
|
<view class="selfLine"></view>
|
||||||
<view class="centerView">
|
<view class="centerView">
|
||||||
<view class="showImg" style="background: no-repeat center/cover url({{IMG_NAME + item.visibleImg}});"></view>
|
<view class="showImg" style="background: no-repeat center/contain url({{IMG_NAME + item.visibleImg}});"></view>
|
||||||
<view class="rightView">
|
<view class="rightView">
|
||||||
<view class="labelName ellipsisFont">{{item.repairName}}</view>
|
<view class="labelName ellipsisFont">{{item.repairName}}</view>
|
||||||
<view class="labelContent1 ellipsisFont">类型: {{item.typeName + '/' + item.deviceName}}</view>
|
<view class="labelContent1 ellipsisFont">类型: {{item.typeName + '/' + item.deviceName}}</view>
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<view class="topTitle">编号: {{item.sn}}</view>
|
<view class="topTitle">编号: {{item.sn}}</view>
|
||||||
<view class="selfLine"></view>
|
<view class="selfLine"></view>
|
||||||
<view class="centerView">
|
<view class="centerView">
|
||||||
<view class="showImg" style="background: no-repeat center/cover url({{IMG_NAME + item.visibleImg}});"></view>
|
<view class="showImg" style="background: no-repeat center/contain url({{IMG_NAME + item.visibleImg}});"></view>
|
||||||
<view class="rightView">
|
<view class="rightView">
|
||||||
<view class="labelName ellipsisFont">{{item.repairName}}</view>
|
<view class="labelName ellipsisFont">{{item.repairName}}</view>
|
||||||
<view class="labelContent1 ellipsisFont">类型: {{item.typeName + '/' + item.deviceName}}</view>
|
<view class="labelContent1 ellipsisFont">类型: {{item.typeName + '/' + item.deviceName}}</view>
|
||||||
@ -94,7 +94,7 @@
|
|||||||
<view class="topTitle">编号: {{item.sn}}</view>
|
<view class="topTitle">编号: {{item.sn}}</view>
|
||||||
<view class="selfLine"></view>
|
<view class="selfLine"></view>
|
||||||
<view class="centerView">
|
<view class="centerView">
|
||||||
<view class="showImg" style="background: no-repeat center/cover url({{IMG_NAME + item.visibleImg}});"></view>
|
<view class="showImg" style="background: no-repeat center/contain url({{IMG_NAME + item.visibleImg}});"></view>
|
||||||
<view class="rightView">
|
<view class="rightView">
|
||||||
<view class="labelName ellipsisFont">{{item.repairName}}</view>
|
<view class="labelName ellipsisFont">{{item.repairName}}</view>
|
||||||
<view class="labelContent1 ellipsisFont">类型: {{item.typeName + '/' + item.deviceName}}</view>
|
<view class="labelContent1 ellipsisFont">类型: {{item.typeName + '/' + item.deviceName}}</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user