实验室运维app端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
2.5 KiB

1 year ago
<template>
12 months ago
<view v-if="list.length > 0">
<view class="work-title">实验室巡检</view>
<view class="notice_bg">
<view class="line"></view>
<swiper autoplay="true" display-multiple-items=" 1" vertical="true" circular interval="7000" class="bar-swiper">
<swiper-item v-for="(item, index) in list" :key="index" class="swiper-item">
<view class="title">{{ item.inspectionName }}</view>
<view class="time">巡检计划时间:{{ item.inspectionTime }}</view>
<view class="name">巡检人:{{ item.inspectionPerson }}</view>
<view class="status">
<i class="status-name">{{ item.isStart == 1 ? '已开始' : '未开始' }}</i><i>预约时间{{ item.appointTime }}</i>
</view>
<view class="type">{{ item.taskType == 1 ? '周期任务' : '单次任务' }}</view>
</swiper-item>
</swiper>
</view>
1 year ago
</view>
1 year ago
</template>
<script>
export default {
data() {
return {
list: [
12 months ago
1 year ago
],
};
},
12 months ago
mounted() {
this.workList()
},
1 year ago
methods: {
// 点击通告栏
click(id) {
// console.log(id, "======>id");
1 year ago
},
12 months ago
workList() {
this.$u.api.workList().then(res => {
if (res.code == 200) {
this.list = res.data
}
12 months ago
})
}
1 year ago
},
};
</script>
<style scoped lang="scss">
1 year ago
.work-title {
color: rgba(16, 16, 16, 1);
font-size: 32rpx;
padding: 0 0 32rpx 36rpx;
}
12 months ago
1 year ago
.notice_bg {
margin: 0 40rpx 32rpx;
background-color: #ffffff;
border-radius: 20rpx;
padding: 16rpx 20rpx;
display: flex;
align-items: center;
position: relative;
12 months ago
1 year ago
.icon {
width: 74rpx;
height: 72rpx;
}
.bar-swiper {
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: rgba(34, 34, 34, 0.5);
12 months ago
height: 200rpx;
1 year ago
display: flex;
align-items: center;
flex: 1;
margin-left: 12rpx;
}
12 months ago
1 year ago
.swiper-item {
overflow: hidden;
}
// 内容样式
.title {
font-size: 32rpx;
color: rgba(16, 16, 16, 1);
text-align: left;
margin-top: 22rpx;
line-height: 38rpx;
}
12 months ago
1 year ago
.time {
margin-top: 20rpx;
margin-bottom: 28rpx;
}
12 months ago
1 year ago
.time,
.name {
font-size: 26rpx;
color: rgba(108, 108, 108, 1);
line-height: 38rpx;
}
12 months ago
1 year ago
.status {
font-size: 26rpx;
line-height: 38rpx;
margin-top: 20rpx;
12 months ago
1 year ago
.status-name {
color: rgba(58, 98, 215, 1);
padding-right: 10rpx;
}
}
12 months ago
.type {
1 year ago
position: absolute;
top: 20rpx;
right: 20rpx;
color: rgba(58, 98, 215, 1);
font-size: 26rpx;
}
}
</style>