kuaifan 97bd58312e refactor(approve): 移除主仓库内置审批功能,收敛到插件/微应用
删除 ApproveController、ApproveProcInstHistory/ApproveProcMsg 模型、approve
前端页面与导出组件,移除 approve 路由与 flow_url 配置;审批消息模板改为对接
插件侧能力。版本号 1.7.90 → 1.7.91。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:35:49 +00:00

36 lines
1.1 KiB
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="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>