|
|
@@ -318,8 +318,8 @@ const dataHistory = ref<BehaviorVersionItem[]>([])
|
|
|
const activeVersion = ref('1')
|
|
|
function getHistory(array:string[]) {
|
|
|
if (array.length == 0)return
|
|
|
- dataHistory.value.length = 0
|
|
|
dataHistory.value = []
|
|
|
+ activeVersion.value = '1'
|
|
|
|
|
|
// 生成测试数据
|
|
|
const now = Date.now()
|
|
|
@@ -469,6 +469,7 @@ onMounted(()=>{
|
|
|
<el-timeline-item
|
|
|
v-for="(activity, index) in dataHistory"
|
|
|
:key="index"
|
|
|
+ :color="activeVersion == activity.id?'#409EFFFF':''"
|
|
|
@click="activeVersion = activity.id"
|
|
|
>
|
|
|
<div :class="{'timeline-item-row':true,'is-active':activeVersion == activity.id}" >
|