提交 27a874ea 编写于 作者: Mosher's avatar Mosher

更新action-timeline组件 --- fix4

上级 931b490a
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
.action-timeline-group { .action-timeline-group {
position: relative; position: relative;
padding-top: 30px; padding-top: 40px;
>.date { >.date {
position: absolute; position: absolute;
...@@ -67,6 +67,9 @@ ...@@ -67,6 +67,9 @@
font-size: 18px; font-size: 18px;
padding: 16px; padding: 16px;
>.usertaskname {
max-width: 100px;
}
>.arrow { >.arrow {
position: absolute; position: absolute;
top: 16px; top: 16px;
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<div class="action-timeline"> <div class="action-timeline">
<div class='action-timeline-group-wrapper'> <div class='action-timeline-group-wrapper'>
<template v-for="(usertask, usertaskIndex) in data.usertasks"> <template v-for="(usertask, usertaskIndex) in data.usertasks">
<div :key='usertaskIndex' class='action-timeline-group expand'> <div :key='usertaskIndex' class='action-timeline-group'>
<div class='date'> <div class='date'>
{{ usertask.userTaskName }} <div class='usertaskname'>{{ usertask.userTaskName }}</div>
<div class='arrow' @click="changeExpand(usertask)"> <div class='arrow' @click="changeExpand(usertask)">
<i :class="usertask.isShow ? 'el-icon-arrow-down' : 'el-icon-arrow-up' " /> <i :class="usertask.isShow ? 'el-icon-arrow-down' : 'el-icon-arrow-up' " />
</div> </div>
...@@ -110,7 +110,7 @@ export default class ActionTimeline extends Vue { ...@@ -110,7 +110,7 @@ export default class ActionTimeline extends Vue {
this.service.GetWFHistory(this.context).then((res:any) =>{ this.service.GetWFHistory(this.context).then((res:any) =>{
if(res && (res.status === 200)){ if(res && (res.status === 200)){
this.data = res.data; this.data = res.data;
this.initUIStateData(); this.initUIStateData();
} }
}) })
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册