fix: 1. 审批通知模版 - 按钮白色修复 2. 审批详情样式相等 3. 审批评论 - 0分钟换成刚刚 4. 没有加入部门也能发起 审批申请 5. 审批流程设置页 - 样式调整

This commit is contained in:
weifashi 2023-07-27 15:34:03 +08:00
parent 34820cc395
commit 0d57b8a163
5 changed files with 23 additions and 13 deletions

View File

@ -150,7 +150,7 @@ services:
approve:
container_name: "dootask-approve-${APP_ID}"
image: "hitosea2020/go-approve:0.1.2"
image: "hitosea2020/go-approve:0.1.3"
environment:
TZ: "Asia/Shanghai"
MYSQL_HOST: "${DB_HOST}"

View File

@ -102,7 +102,7 @@
<Avatar :src="$A.apiUrl('../images/avatar/default_approval.png')" size="38"/>
<div class="approve-process-left">
<p class="approve-process-name">{{$L('系统')}}</p>
<p style="font-size: 12px;">{{$L('自动抄送')}}
<p class="approve-process-desc">{{$L('自动抄送')}}
<span style="color: #486fed;">
{{ item.node_user_list?.map(h=>h.name).join(',') }}
{{$L('等'+item.node_user_list?.length+'人')}}
@ -113,13 +113,13 @@
</TimelineItem>
<!-- 结束 -->
<TimelineItem :key="key" :color="item.is_finished ? 'green' : '#ccc'" v-if="item.aprover_type == 'end'">
<TimelineItem class="finish" :key="key" :color="item.is_finished ? 'green' : '#ccc'" v-if="item.aprover_type == 'end'">
<p class="timeline-title">{{$L('结束')}}</p>
<div class="timeline-body">
<Avatar :src="$A.apiUrl('../images/avatar/default_approval.png')" size="38"/>
<div class="approve-process-left">
<p class="approve-process-name">{{$L('系统')}}</p>
<p style="font-size: 12px;"> {{ datas.is_finished ? $L('已结束') : $L('未结束') }}</p>
<p class="approve-process-desc"> {{ datas.is_finished ? $L('已结束') : $L('未结束') }}</p>
</div>
</div>
</TimelineItem>
@ -140,7 +140,7 @@
<p>{{item.nickname}}</p>
<p class="time">{{item.created_at}}</p>
</div>
<span>{{ getTimeAgo(item.created_at ,2) }}</span>
<span>{{ getTimeAgo(item.created_at) }}</span>
</div>
<div class="content">
{{ getContent(item.content) }}

View File

@ -506,10 +506,6 @@ export default {
skipAuthError: true
}).then(({data}) => {
this.addData.department_id = data[0]?.department[0] || 0;
if( !this.addData.department_id ){
$A.modalError("您当前未加入任何部门,不能发起!");
return false;
}
this.$store.dispatch("call", {
url: 'approve/procdef/all',
method: 'post',

View File

@ -228,6 +228,9 @@
.approve-process-left {
margin-left: 10px;
flex: 1;
.approve-process-desc{
font-size: 12px;
}
}
.approve-process-right {
@ -237,6 +240,13 @@
> li:last-child {
padding-bottom: 0;
}
.finish{
.ivu-timeline-item-content{
padding-bottom: 0;
}
}
}
@ -266,6 +276,10 @@
margin-top: 3px;
padding-left: 45px;
}
.ivu-list-items>li:last-child{
padding-bottom: 0;
}
}
.approve-details-text:nth-last-child(1) {
@ -316,7 +330,7 @@
.comment {
margin-top: 5px;
margin-left: 45px;
font-size: 12px;
span {
background-color: #eaeaea;
border-radius: 5px;

View File

@ -150,11 +150,11 @@
<div class="cause"><span>申请人:<span style="color:#84c56a">{{'@'}}{{$data->nickname}}</span> {{$data->department}}</span>
<b>评论内容</b>
<span>{{$data->comment_content}}</span>
</div><div class="btn-raw">
</div><div class="btn-raw no-dark-content">
@if ($is_finished == 1)
<Button type="button" class="ivu-btn" style="flex: 1;">已同意</Button>
<Button class="ivu-btn">已同意</Button>
@else
<Button type="button" class="ivu-btn" style="flex: 1;">查看详情</Button>
<Button class="ivu-btn">查看详情</Button>
@endif
</div></span>
@elseif ($type === 'approve_submitter')