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

36 lines
1.5 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.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 v-if="msg.data.type">{{$L("假期类型")}}{{ msg.data.type }}</p>
<p>{{$L("开始时间")}}{{ msg.data.start_time }} ({{ msg.data.start_day_of_week }})</p>
<p>{{$L("结束时间")}}{{ msg.data.end_time }} ({{ msg.data.end_day_of_week }})</p>
<p>{{$L("事由")}}{{ msg.data.description }}</p>
</div>
<div class="btn-raw no-dark-content">
<button v-if="msg.action === 'pass'" class="ivu-btn ivu-btn-grey">{{$L("已同意")}}</button>
<button v-else-if="msg.action === 'refuse'" class="ivu-btn ivu-btn-grey">{{$L("已拒绝")}}</button>
<button v-else-if="msg.action === 'withdraw'" class="ivu-btn ivu-btn-grey">{{$L("已撤销")}}</button>
<template v-else>
<button class="ivu-btn ivu-btn-primary">{{$L("同意")}}</button>
<button class="ivu-btn ivu-btn-error">{{$L("拒绝")}}</button>
</template>
</div>
</div>
</template>
<script>
export default {
props: {
msg: Object,
},
data() {
return {};
},
computed: {},
methods: {},
}
</script>