增加流程展示的数量显示
This commit is contained in:
parent
53b00d83ad
commit
628e1dfc4d
@ -28,7 +28,7 @@
|
||||
</view>
|
||||
<!-- 审批人 -->
|
||||
<view class="info-section spr" v-if="sprSpList.length > 0">
|
||||
<view class="section-title">审批人</view>
|
||||
<view class="section-title">审批人({{ sprSpList.length || 0 }})</view>
|
||||
<view class="sp-list">
|
||||
<view v-for="spr in sprSpList" :key="spr.id" class="sp-item">
|
||||
<view class="sp-info">
|
||||
@ -54,9 +54,9 @@
|
||||
</view>
|
||||
<!-- 抄送人 -->
|
||||
<view class="info-section csr" v-if="csrSpList.length > 0">
|
||||
<view class="section-title">抄送人</view>
|
||||
<view class="section-title">抄送人({{ csrSpList.length || 0 }})</view>
|
||||
<view class="sp-list">
|
||||
<view v-for="csr in displayedcsrList" :key="csr.id" class="sp-item">
|
||||
<view v-for="csr in displayedCsrList" :key="csr.id" class="sp-item">
|
||||
<view class="sp-info">
|
||||
<text class="name">{{ csr.userName }}</text>
|
||||
<text class="dept">{{ csr.deptName }}</text>
|
||||
@ -76,7 +76,7 @@
|
||||
</view>
|
||||
<!-- 操作记录 -->
|
||||
<view class="info-section log" v-if="logList.length > 0">
|
||||
<view class="section-title">操作记录</view>
|
||||
<view class="section-title">操作记录({{ logList.length || 0 }})</view>
|
||||
<view class="sp-list">
|
||||
<view v-for="log in displayedLogList" :key="log.id" class="sp-item">
|
||||
<view class="log-header">
|
||||
@ -153,7 +153,7 @@ const csrExpanded = ref(false);
|
||||
const logExpanded = ref(false);
|
||||
|
||||
// 计算属性:显示的抄送人列表
|
||||
const displayedcsrList = computed(() => {
|
||||
const displayedCsrList = computed(() => {
|
||||
if (csrExpanded.value || csrSpList.value.length <= 2) {
|
||||
return csrSpList.value;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user