2023-10-10 11:30:50 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
title="案件日志"
|
|
|
|
|
|
:visible="showcaseLog"
|
|
|
|
|
|
@close="cancel"
|
|
|
|
|
|
center
|
|
|
|
|
|
:distroy-on-close="true"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="loading" v-if="flagLoading">
|
|
|
|
|
|
<i class="el-icon-loading"></i>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div v-else>
|
2023-10-11 14:43:26 +08:00
|
|
|
|
<div class="noData" v-if="noData">暂无数据!</div>
|
|
|
|
|
|
<el-timeline v-else>
|
2023-10-10 11:30:50 +08:00
|
|
|
|
<el-timeline-item
|
|
|
|
|
|
v-for="(activity, index) in activities"
|
|
|
|
|
|
:key="index"
|
2023-10-11 14:43:26 +08:00
|
|
|
|
:timestamp="(index + 1).toString()"
|
2023-10-10 11:30:50 +08:00
|
|
|
|
placement="top"
|
|
|
|
|
|
>
|
2023-10-11 14:43:26 +08:00
|
|
|
|
<p>{{ activity.content }}</p>
|
2023-10-10 11:30:50 +08:00
|
|
|
|
</el-timeline-item>
|
|
|
|
|
|
</el-timeline>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
<el-button @click="cancel" class="endbutton1"
|
|
|
|
|
|
><span>取 消</span></el-button
|
|
|
|
|
|
>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
2023-10-11 14:43:26 +08:00
|
|
|
|
props: ["showcaseLog", "flagLoading", "caselogDataArr"],
|
2023-10-10 11:30:50 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
reverse: true,
|
2023-10-11 14:43:26 +08:00
|
|
|
|
activities: [],
|
|
|
|
|
|
noData: false,
|
2023-10-10 11:30:50 +08:00
|
|
|
|
};
|
|
|
|
|
|
},
|
2023-10-11 14:43:26 +08:00
|
|
|
|
watch: {
|
|
|
|
|
|
caselogDataArr: {
|
|
|
|
|
|
handler(val) {
|
|
|
|
|
|
if (val && val.length > 0) {
|
|
|
|
|
|
this.noData = false;
|
|
|
|
|
|
this.activities = val;
|
|
|
|
|
|
this.activities.forEach((item) => {
|
|
|
|
|
|
item.content = item.content;
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.noData = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
2023-10-10 11:30:50 +08:00
|
|
|
|
methods: {
|
|
|
|
|
|
cancel() {
|
|
|
|
|
|
this.$emit("cancelcaseLog");
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
::v-deep .el-dialog__body {
|
2023-10-11 14:43:26 +08:00
|
|
|
|
height: 500px !important;
|
2023-10-10 11:30:50 +08:00
|
|
|
|
overflow: auto !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
|
width: 800px;
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endbutton1 {
|
|
|
|
|
|
width: 154px;
|
|
|
|
|
|
height: 37px;
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border: 1px solid #d0d0d0;
|
|
|
|
|
|
border-radius: 19px;
|
|
|
|
|
|
span {
|
|
|
|
|
|
width: 31px;
|
|
|
|
|
|
height: 13px;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-family: Microsoft YaHei;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
color: #959595;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.loading {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
.el-icon-loading {
|
|
|
|
|
|
font-size: 50px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-10-11 14:43:26 +08:00
|
|
|
|
.noData {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 400px;
|
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #959595;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
2023-10-10 11:30:50 +08:00
|
|
|
|
</style>
|