|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
+ <view v-if="isHome" style="height: 20px;" />
|
|
|
<navigator v-for="item in isHome ? list : list1" :key="item.sa_workorderid" class="item"
|
|
|
:url="'/packageA/workOrder/detail?id=' + item.sa_workorderid">
|
|
|
<view class="billno">
|
|
@@ -35,7 +36,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: {},
|
|
|
- name: "workOrder",
|
|
|
+ name: "workorderList",
|
|
|
data() {
|
|
|
return {
|
|
|
"content": {
|
|
@@ -73,16 +74,16 @@ export default {
|
|
|
let list = res.data.map(v => {
|
|
|
switch (v.sourcetable) {
|
|
|
case "w_eventid":
|
|
|
- v.source = "巡检:" + (v.planno || ' --')
|
|
|
+ v.source = "巡检," + (v.planno || ' --')
|
|
|
break;
|
|
|
case "w_event_log":
|
|
|
- v.source = "告警:" + (v.eventname || ' --')
|
|
|
+ v.source = "告警," + (v.eventname || ' --')
|
|
|
break;
|
|
|
default:
|
|
|
v.source = "现场"
|
|
|
break;
|
|
|
}
|
|
|
- v.users = v.teamRows.map(u => u.name)
|
|
|
+ v.users = v.teamRows.map(u => u.name).join(",")
|
|
|
return v
|
|
|
})
|
|
|
this.list = res.pageNumber == 1 ? list : this.list.concat(list)
|
|
@@ -100,7 +101,7 @@ export default {
|
|
|
background: #fff;
|
|
|
padding: 10px;
|
|
|
border-radius: 4px;
|
|
|
- margin: 10px auto 0;
|
|
|
+ margin: 0 auto 10px;
|
|
|
overflow: hidden;
|
|
|
box-sizing: border-box;
|
|
|
|