112 lines
2.3 KiB
Vue
112 lines
2.3 KiB
Vue
<template>
|
||
<view class="step">
|
||
<view class="step_box">
|
||
<view class="step_left"></view>
|
||
<view class="step_right">
|
||
<view class="right_content" v-for="(item,index) in stepData" :key="index">
|
||
<view class="title">{{ item.NODE_DESC }}({{ item.USER_NAME?item.USER_NAME:item.DEPARTMENT_NAME }})</view>
|
||
<view class="times" v-if="item.time">{{ item.time }}</view>
|
||
<view class="result" v-if="item.desc">
|
||
<text style="color: #202020;">{{ item.desc }}</text>
|
||
</view>
|
||
<view class="status"
|
||
:style="{background: item.STEP_FLAG === '1'?colors:'#ccc',borderColor: item.STEP_FLAG === '1'?colors:'#ccc'}">
|
||
{{ item.STEP_FLAG === '1' ? "✓" : '' }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {};
|
||
},
|
||
props: {
|
||
colors: {
|
||
type: String
|
||
},
|
||
stepData: {
|
||
type: Array
|
||
}
|
||
},
|
||
};
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.step {
|
||
padding: 40upx 20upx;
|
||
margin-bottom: 20upx;
|
||
}
|
||
|
||
.step_box {
|
||
margin: 0 20upx;
|
||
display: flex;
|
||
|
||
.step_left {
|
||
width: 2upx;
|
||
display: block;
|
||
background-color: #DDDDDD;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.step_right {
|
||
margin-left: 20upx;
|
||
margin-top: -10upx;
|
||
|
||
.right_content {
|
||
position: relative;
|
||
margin-bottom: 30upx;
|
||
|
||
.title {
|
||
font-size: 28upx;
|
||
font-family: Source Han Sans CN;
|
||
font-weight: 500;
|
||
color: #333333;
|
||
}
|
||
|
||
.times {
|
||
font-size: 22upx;
|
||
font-family: Source Han Sans CN;
|
||
font-weight: 400;
|
||
color: #999999;
|
||
line-height: 36upx;
|
||
}
|
||
|
||
.status {
|
||
width: 24upx;
|
||
height: 24upx;
|
||
border-radius: 50%;
|
||
border: 2upx solid #ccc;
|
||
position: absolute;
|
||
top: 4upx;
|
||
background-color: #ccc;
|
||
left: -36upx;
|
||
color: white;
|
||
line-height: 12px;
|
||
font-size: 10px;
|
||
text-align: center;
|
||
}
|
||
|
||
.result {
|
||
padding: 10upx 15upx;
|
||
background-color: #F6F6F6;
|
||
font-size: 22upx;
|
||
margin-top: 10upx;
|
||
border: 1upx dashed #ddd;
|
||
}
|
||
|
||
&:last-of-type {
|
||
margin-bottom: 0;
|
||
|
||
.status {
|
||
top: 14upx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
</style>
|