2024-10-31 16:39:08 +08:00

34 lines
1005 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="open-approve-details" :data-id="msg.data.id">
<b>{{ $L(`${msg.data.comment_nickname} 评论了 ${msg.data.nickname} 的「${msg.data.proc_def_name}」审批`) }}</b>
<div class="cause">
<p>{{$L('申请人')}}<span class="mark-color">@{{ msg.data.nickname }}</span> {{ msg.data.department }}</p>
<b>{{$L('评论内容')}}</b>
<p>{{ msg.data.comment_content }}</p>
<p v-if="isPicture">[{{$L('图片')}}]</p>
</div>
<div class="btn-raw no-dark-content">
<button class="ivu-btn ivu-btn-grey">{{$L('查看详情')}}</button>
</div>
</div>
</template>
<script>
export default {
props: {
msg: Object,
},
data() {
return {};
},
computed: {
isPicture() {
const {comment_pictures} = this.msg.data
return $A.isArray(comment_pictures) && comment_pictures.length > 0
},
},
methods: {},
}
</script>