mirror of
https://github.com/kuaifan/dootask.git
synced 2026-08-01 10:55:59 +00:00
36 lines
1.1 KiB
Vue
36 lines
1.1 KiB
Vue
<template>
|
||
<div class="open-approve-details" :data-id="msg.data.id">
|
||
<b>{{ $L('(*)评论了(*)的「(*)」审批', msg.data.comment_nickname, msg.data.nickname, $L(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="msg.data.thumb" v-html="imageHtml(msg.data.thumb)"></p>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
props: {
|
||
msg: Object,
|
||
},
|
||
data() {
|
||
return {};
|
||
},
|
||
methods: {
|
||
imageHtml(info) {
|
||
const data = $A.imageRatioHandle({
|
||
src: info.url,
|
||
width: info.width,
|
||
height: info.height,
|
||
crops: {ratio: 5, percentage: '320x0'},
|
||
scaleSize: 220,
|
||
})
|
||
return `<img src="${data.src}" width="${data.width}" height="${data.height}" />`
|
||
}
|
||
},
|
||
}
|
||
</script>
|
||
|