|
@@ -93,42 +93,7 @@
|
|
|
<div>
|
|
|
<template>
|
|
|
<div>
|
|
|
- <!-- <Timeline pending="Recording..." :reverse="reverse">
|
|
|
- <TimelineItem v-for="(item, index) in list" :key="index">
|
|
|
- <div>{{ item.nodeRole }}</div>
|
|
|
- <div slot="dot">
|
|
|
- <img :src="item.list" alt="">
|
|
|
- </div>
|
|
|
- </TimelineItem>
|
|
|
- <TimelineItem>Solve initial network problems 2015-09-01</TimelineItem>
|
|
|
- <TimelineItem>Technical testing 2015-09-01</TimelineItem>
|
|
|
- </Timeline> -->
|
|
|
- <div class="timeLines" style=" margin-bottom: 14px; ">
|
|
|
- <div style="margin-left: 10px; margin-bottom: 18px; font-size: 16px;font-weight:600">用车申请审批</div>
|
|
|
- <div class="ul_box">
|
|
|
- <ul class="timeline-wrapper">
|
|
|
- <li class="timeline-item" v-for="(t, index) in list" :key="index">
|
|
|
- <div class="timeline-box">
|
|
|
- <div class="out-circle">
|
|
|
- <div class="in-circle" :class="addinCircle(t.list)"></div>
|
|
|
- </div>
|
|
|
- <div class="long-line"></div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 25px; margin-bottom: 4px; font-size: 16px">{{ t.nodeRole }}</div>
|
|
|
- <div class="timeline-content" v-if="t.list">
|
|
|
- <div class="timeline-date" v-for="(item, index1) in t.list" :key="index1">
|
|
|
- <span style="display: inline-block; margin-bottom: 15px"> 审核人:{{ item.userName }}</span>
|
|
|
- <div class="timeline-title">审核时间:{{ item.approvalTime }}</div>
|
|
|
- <div class="timeline-desc">
|
|
|
- 审核状态:
|
|
|
- <span>{{ item.status }}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <timeLinne :list="list" :lineTitle="lineTitle"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -144,11 +109,11 @@
|
|
|
|
|
|
<script>
|
|
|
import { getApplyCarLog, addApplyCarLog, updateApplyCarLog, getWorkflow } from '@/api/clw/applyCarLog'
|
|
|
-
|
|
|
-import { Timeline } from 'ant-design-vue'
|
|
|
+import timeLinne from '../../../../components/timeLinne.vue'
|
|
|
+// import { Timeline } from 'ant-design-vue'
|
|
|
|
|
|
// Timeline.
|
|
|
-const TimelineItem = Timeline.Item
|
|
|
+// const TimelineItem = Timeline.Item
|
|
|
export default {
|
|
|
name: 'CreateForm',
|
|
|
props: {
|
|
@@ -157,7 +122,7 @@ export default {
|
|
|
required: true,
|
|
|
},
|
|
|
},
|
|
|
- components: { Timeline, TimelineItem },
|
|
|
+ components: { timeLinne },
|
|
|
dicts: ['apply_status'],
|
|
|
data() {
|
|
|
return {
|
|
@@ -205,6 +170,7 @@ export default {
|
|
|
rules: {},
|
|
|
reverse: false,
|
|
|
list: [],
|
|
|
+ lineTitle:''
|
|
|
}
|
|
|
},
|
|
|
filters: {},
|
|
@@ -306,8 +272,10 @@ export default {
|
|
|
this.form = obj
|
|
|
this.open = true
|
|
|
this.formTitle = '用车申请详情'
|
|
|
+ this.lineTitle='用车申请审批'
|
|
|
+ // obj.taskId
|
|
|
getWorkflow(obj.taskId).then((res) => {
|
|
|
- console.log('---------流程', res)
|
|
|
+ // console.log('---------流程', res)
|
|
|
this.list = res.data.nodes
|
|
|
})
|
|
|
})
|
|
@@ -343,21 +311,27 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- addinCircle(item) {
|
|
|
- if (item) {
|
|
|
- for (let index = 0; index < item.length; index++) {
|
|
|
- if (item[index].status === 1) {
|
|
|
- return 'in-circle in-circle1'
|
|
|
- }
|
|
|
- if (item[index].status === 2) {
|
|
|
- return 'in-circle in-circle2'
|
|
|
- }
|
|
|
- if (item[index].status === 3 ||item[index].status === 4) {
|
|
|
- return 'in-circle in-circle3'
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
+ // addinCircle(item) {
|
|
|
+ // if (item) {
|
|
|
+ // for (let index = 0; index < item.length; index++) {
|
|
|
+ // if (item[index].status == 0) {
|
|
|
+ // return 'in-circle in-circle1'
|
|
|
+ // }
|
|
|
+ // else if (item[index].status == 5) {
|
|
|
+ // return 'in-circle in-circle2'
|
|
|
+ // }
|
|
|
+ // else if (item[index].status == 1) {
|
|
|
+ // return 'in-circle in-circle4'
|
|
|
+ // }
|
|
|
+ // else if (item[index].status == 4) {
|
|
|
+ // return 'in-circle in-circle3'
|
|
|
+ // }
|
|
|
+ // else if (item[index].status == 2||item[index].status == 2) {
|
|
|
+ // return 'in-circle in-circle5'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -404,7 +378,7 @@ ul.timeline-wrapper {
|
|
|
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
.in-circle1 {
|
|
|
- background: #0ceb2e !important;
|
|
|
+ background: #585a58 !important;
|
|
|
}
|
|
|
.in-circle2 {
|
|
|
background: rgba(14, 116, 218, 1) !important;
|
|
@@ -412,11 +386,17 @@ ul.timeline-wrapper {
|
|
|
.in-circle3 {
|
|
|
background-color: rgb(218, 106, 14) !important;
|
|
|
}
|
|
|
+ .in-circle4{
|
|
|
+ background:rgb(18, 164, 52)!important;
|
|
|
+ }
|
|
|
+ .in-circle5{
|
|
|
+ background:rgb(201, 46, 46)!important;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.long-line {
|
|
|
width: 2px;
|
|
|
- height: 98px;
|
|
|
+ height: 248px;
|
|
|
background: rgba(14, 116, 218, 1);
|
|
|
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);
|
|
|
opacity: 0.1;
|
|
@@ -430,7 +410,7 @@ ul.timeline-wrapper {
|
|
|
.timeline-content {
|
|
|
box-sizing: border-box;
|
|
|
margin-left: 20px;
|
|
|
- height: 106px;
|
|
|
+ // height: 106px;
|
|
|
padding: 0 0 0 20px;
|
|
|
text-align: left;
|
|
|
// margin-bottom: 30px;
|
|
@@ -459,6 +439,7 @@ ul.timeline-wrapper {
|
|
|
.timeline-item:last-child{
|
|
|
.long-line {
|
|
|
height: 0;
|
|
|
+ min-height:0
|
|
|
}
|
|
|
}
|
|
|
|