|
@@ -17,10 +17,20 @@
|
|
|
{{item.stationNo}}<span class="y">|</span>{{item.name}}
|
|
|
</view>
|
|
|
|
|
|
- <view class="v2" :class="{
|
|
|
- v3:item.inspectionCycle
|
|
|
+ <view class="v2">
|
|
|
+ <view class="v21" :class="{
|
|
|
+ v3:item.inspectionCycle
|
|
|
}">
|
|
|
- {{item.inspectionCycle?'巡检周期:'+item.inspectionCycle+'天':'未设置'}}
|
|
|
+ 巡检周期:{{item.inspectionCycle?''+item.inspectionCycle+'天':'未设置'}}
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="v22" :class="{
|
|
|
+ v3:item.inspectionExamine
|
|
|
+ }">
|
|
|
+ 异常解决时限:{{item.inspectionExamine?''+item.inspectionErrorLimitDuration+'小时':'未设置'}}
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -28,14 +38,14 @@
|
|
|
</view>
|
|
|
<u-divider :isnone="list.length==0" nonetext="没有找到相关内容" border-color="#CFD2D5">已经到底了</u-divider>
|
|
|
|
|
|
- <view class="floating-button">
|
|
|
-
|
|
|
-
|
|
|
- <view class="button " @click="gotoTask">
|
|
|
-
|
|
|
- 关联场站
|
|
|
- </view>
|
|
|
-
|
|
|
+ <view class="floating-button">
|
|
|
+
|
|
|
+
|
|
|
+ <view class="button " @click="gotoTask">
|
|
|
+
|
|
|
+ 关联场站
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -67,31 +77,31 @@
|
|
|
this.getList()
|
|
|
},
|
|
|
onShow() {
|
|
|
-
|
|
|
- },
|
|
|
- onReachBottom() {
|
|
|
- if (this.list.length < this.listForm.recordsTotal) {
|
|
|
- this.myLoadmore();
|
|
|
- }
|
|
|
+
|
|
|
+ },
|
|
|
+ onReachBottom() {
|
|
|
+ if (this.list.length < this.listForm.recordsTotal) {
|
|
|
+ this.myLoadmore();
|
|
|
+ }
|
|
|
},
|
|
|
- methods: {
|
|
|
- gotoTask(){
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/team/stationAdd?id='+this.id,
|
|
|
- events: {
|
|
|
- // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
|
|
|
- acceptDataFromOpenerPage: (data)=>{
|
|
|
- console.log(data)
|
|
|
- this.getList(1)
|
|
|
- },
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- })
|
|
|
- },
|
|
|
- myLoadmore() {
|
|
|
- this.listForm.pageIndex += 1;
|
|
|
- this.getList()
|
|
|
+ methods: {
|
|
|
+ gotoTask() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/team/stationAdd?id=' + this.id,
|
|
|
+ events: {
|
|
|
+ // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
|
|
|
+ acceptDataFromOpenerPage: (data) => {
|
|
|
+ console.log(data)
|
|
|
+ this.getList(1)
|
|
|
+ },
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ myLoadmore() {
|
|
|
+ this.listForm.pageIndex += 1;
|
|
|
+ this.getList()
|
|
|
},
|
|
|
showqueryName(item) {
|
|
|
if (this.queryName) {
|
|
@@ -116,23 +126,23 @@
|
|
|
title: "加载中",
|
|
|
mask: true,
|
|
|
})
|
|
|
- this.listForm.id = this.id
|
|
|
- this.listForm.queryContent=this.queryName
|
|
|
+ this.listForm.id = this.id
|
|
|
+ this.listForm.queryContent = this.queryName
|
|
|
API.teamUserStation(this.listForm).then((res) => {
|
|
|
|
|
|
var list = this.list
|
|
|
|
|
|
-
|
|
|
- if (this.listForm.pageIndex == 1) {
|
|
|
- list = res.data.data;
|
|
|
- } else {
|
|
|
- list = [
|
|
|
- ...list,
|
|
|
- ...res.data.data
|
|
|
- ];
|
|
|
- }
|
|
|
- this.list =list
|
|
|
- this.listForm.recordsTotal=res.data.recordsTotal
|
|
|
+
|
|
|
+ if (this.listForm.pageIndex == 1) {
|
|
|
+ list = res.data.data;
|
|
|
+ } else {
|
|
|
+ list = [
|
|
|
+ ...list,
|
|
|
+ ...res.data.data
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ this.list = list
|
|
|
+ this.listForm.recordsTotal = res.data.recordsTotal
|
|
|
uni.hideLoading();
|
|
|
|
|
|
}).catch(error => {
|
|
@@ -153,8 +163,8 @@
|
|
|
<style lang="scss" scoped>
|
|
|
.list {
|
|
|
padding-top: 20rpx;
|
|
|
- padding-bottom: 120rpx;
|
|
|
-
|
|
|
+ padding-bottom: 120rpx;
|
|
|
+
|
|
|
.item:not(:last-child) {
|
|
|
border-bottom: 2rpx solid rgba(232, 232, 232, 1);
|
|
|
}
|
|
@@ -162,10 +172,7 @@
|
|
|
.item {
|
|
|
padding: 24rpx 32rpx;
|
|
|
background: #fff;
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- justify-content: space-between;
|
|
|
-align-items: center;
|
|
|
+
|
|
|
.vquery {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -208,12 +215,17 @@ align-items: center;
|
|
|
|
|
|
.v2 {
|
|
|
color: red;
|
|
|
- font-size: 24rpx;
|
|
|
- white-space: pre;
|
|
|
- }
|
|
|
- .v3 {
|
|
|
- color: rgba(119, 119, 119, 1);
|
|
|
- font-size: 24rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
+ white-space: pre;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .v3 {
|
|
|
+ color: rgba(119, 119, 119, 1);
|
|
|
+ font-size: 24rpx;
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -239,35 +251,35 @@ align-items: center;
|
|
|
border-radius: 16rpx;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- .floating-button {
|
|
|
- z-index: 999;
|
|
|
- position: fixed;
|
|
|
- bottom: 0;
|
|
|
-
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- height: 120rpx;
|
|
|
-
|
|
|
- justify-content: space-around;
|
|
|
- background-color: rgba(255, 255, 255, 1);
|
|
|
-
|
|
|
- .button {
|
|
|
- margin-top: 24rpx;
|
|
|
- border-radius: 50px;
|
|
|
- height: 80rpx;
|
|
|
- width: 80%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- padding: 12rpx;
|
|
|
-
|
|
|
- background-color: rgba(22, 119, 255, 1);
|
|
|
- color: rgba(255, 255, 255, 1);
|
|
|
- font-size: 32rpx;
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ .floating-button {
|
|
|
+ z-index: 999;
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ height: 120rpx;
|
|
|
+
|
|
|
+ justify-content: space-around;
|
|
|
+ background-color: rgba(255, 255, 255, 1);
|
|
|
+
|
|
|
+ .button {
|
|
|
+ margin-top: 24rpx;
|
|
|
+ border-radius: 50px;
|
|
|
+ height: 80rpx;
|
|
|
+ width: 80%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ padding: 12rpx;
|
|
|
+
|
|
|
+ background-color: rgba(22, 119, 255, 1);
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
+ font-size: 32rpx;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
</style>
|