From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化
---
h5/pages/staff/task/index.vue | 64 +++++++++++++++++++++++---------
1 files changed, 46 insertions(+), 18 deletions(-)
diff --git a/h5/pages/staff/task/index.vue b/h5/pages/staff/task/index.vue
index 942d23b..8ee559c 100644
--- a/h5/pages/staff/task/index.vue
+++ b/h5/pages/staff/task/index.vue
@@ -70,12 +70,29 @@
>
<view class="box_list_item_head">
<view class="df_ac">
- <text v-if="item.readed == 0" class="readed"></text>
+ <text v-if="item.readed == 0 && search.queryType === 3" class="readed"></text>
<text class="tt">{{ item.title }}</text>
</view>
- <view class="info loading">{{ item.info }}</view>
+ <view class="info" :class="{ loading: search.queryType === 0 }">{{ item.info }}</view>
</view>
<view class="box_list_item_nr">
+ <view v-if="item.param1.arriveDate" class="box_list_item_nr_item">
+ <text></text>
+ <text>{{ item.param1.arriveDate }}</text>
+ </view>
+ <view v-if="item.param1.inType" class="box_list_item_nr_item">
+ <text></text>
+ <text>{{ item.param1.inType }}</text>
+ </view>
+ <view v-if="item.param1.totalNum" class="box_list_item_nr_item">
+ <text></text>
+ <text>{{ item.param1.totalNum }}</text>
+ </view>
+ <view v-if="item.param1.carNum" class="box_list_item_nr_item">
+ <text></text>
+ <text>{{ item.param1.carNum }}</text>
+ </view>
+
<view v-if="item.param1.name" class="box_list_item_nr_item">
<text></text>
<text>{{ item.param1.name }}</text>
@@ -115,7 +132,7 @@
<view class="box_list_item_nr_x"></view>
<view class="box_list_item_nr_text">
<text class="time">{{ item.createDate }}鎻愪氦</text>
- <text v-if="item.param2 == '0'" class="btn">鍘诲鐞�</text>
+ <text v-if="search.queryType === 0" class="btn">鍘诲鐞�</text>
</view>
</view>
</view>
@@ -245,6 +262,12 @@
// this.dataList = []
this.getList()
},
+ onBackPress(options) {
+ setTimeout(()=>{
+ this.$eventBus.$emit('taskBack')
+ })
+ return false
+ },
onShow() {
this.pagination.page = 0
this.dataList = []
@@ -298,7 +321,6 @@
i.param1 = JSON.parse(i.param1)
}
})
- console.log('dataList', this.dataList)
})
},
getHeadList() {
@@ -316,8 +338,8 @@
})
},
handleAppr(item) {
- const { objType, objId } = item
- if (this.search.queryType === 3) {
+ const { objType, objId, info, readed } = item
+ if (readed === 0) {
signReadTask({
noticesId: item.id,
signType: 0
@@ -327,19 +349,23 @@
}
if (objType === 2) {
uni.navigateTo({
- url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&appr=1`
+ url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&appr=1&info=${info}`
})
} else if (objType === 1) {
uni.navigateTo({
- url: `/pages/staff/task/visitorReport?id=${objId}&objType=${objType}`
+ url: `/pages/staff/task/visitorReport?id=${objId}&objType=${objType}&info=${info}`
})
} else if (objType === 3) {
uni.navigateTo({
- url: `/pages/staff/task/vDangetAppr?id=${objId}&objType=${objType}`
+ url: `/pages/staff/task/vDangetAppr?id=${objId}&objType=${objType}&info=${info}`
})
- } else {
+ } else if (objType === 6 || objType === 5) {
uni.navigateTo({
- url: `/pages/staff/task/visitorApprove?id=${objId}&objType=${objType}`
+ url: `/pages/staff/task/driver?id=${objId}&objType=${objType}&info=${info}`
+ })
+ }else {
+ uni.navigateTo({
+ url: `/pages/staff/task/visitorApprove?id=${objId}&objType=${objType}&info=${info}`
})
}
},
@@ -494,13 +520,19 @@
align-items: center;
justify-content: space-between;
.readed {
- width: 12rpx;
- height: 12rpx;
+ width: 16rpx;
+ height: 16rpx;
border-radius: 50%;
background-color: #e0312a;
+ margin-right: 16rpx;
}
+ .info {
+ font-size: 26rpx;
+ font-weight: 400;
+ color: #999999;
+ }
.loading {
- color: #4c99a8;
+ color: $uni-color-primary;
}
.success {
color: #03c68f;
@@ -512,10 +544,6 @@
font-size: 32rpx;
font-weight: 600;
color: #222222;
- }
- .info {
- font-size: 26rpx;
- font-weight: 400;
}
}
.box_list_item_nr {
--
Gitblit v1.9.3