feat: 字段展示及表格判断

bak
刘释隆 2 years ago
parent 66b27a4dfa
commit 52744856ee

@ -32,10 +32,10 @@ const svgName = computed(() => {
<SvgIcon v-show="selected" size="14" name="more-ver" /> <SvgIcon v-show="selected" size="14" name="more-ver" />
</div> </div>
<ul class="list-item-detail"> <ul class="list-item-detail">
<li>审批状态<span class="list-item-status">{{ listItem.statshis }}</span></li> <li>审批状态<span class="list-item-status">{{ listItem.statshisText }}</span></li>
<li>审批节点{{ listItem.tasknamehis }}</li> <li>审批节点{{ listItem.tasknamehis }}</li>
<li>提交时间{{ format(new Date(), 'yyyy-MM-dd HH:mm:ss') }}</li> <li>提交时间{{ format(new Date(), 'yyyy-MM-dd HH:mm:ss') }}</li>
<li>提报人{{ listItem.fromuserid }}</li> <li>提报人{{ listItem.fromUserName }}</li>
</ul> </ul>
<div class="list-item-divider" /> <div class="list-item-divider" />

@ -14,10 +14,10 @@ defineProps({
<template> <template>
<table class="description"> <table class="description">
<tr v-for="(item, index) in taskTableData" :key="index"> <tr v-for="(item, index) in taskTableData" :key="index">
<th>{{ item[0]["label"] }}</th> <th v-if="item&&item[0]">{{ item[0]["label"] }}</th>
<td>{{ item[0]["value"] }}</td> <td v-if="item&&item[0]">{{ item[0]["value"] }}</td>
<th v-if="item.length>1">{{ item[1]["label"] }}</th> <th v-if="item&&item.length>1">{{ item[1]["label"] }}</th>
<td v-if="item.length>1">{{ item[1]["value"] }}</td> <td v-if="item&&item.length>1">{{ item[1]["value"] }}</td>
</tr> </tr>
</table> </table>
</template> </template>

Loading…
Cancel
Save