Skip to content

Commit

Permalink
fix: 修复蓝盾审批单据自定表格展示跳转链接的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
luofann committed Sep 14, 2023
1 parent dbd49ed commit a794318
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/weixin/src/components/renderView/tag/table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<tr v-for="(item, index) in data" :key="index">
<td v-for="(column, i) in columns" :key="i">
<div class="table-cell">
<TableText :form="item[column.key]" />
<TableText :form="item[column.key]" :type="column.type" />
</div>
</td>
</tr>
Expand Down
15 changes: 11 additions & 4 deletions frontend/weixin/src/components/renderView/tag/tableText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
{ 'has-children': form.children && form.children.length }
]"
@click="onInnerLinkClick">
<label>{{ form.label }}</label>
<span v-if="!Array.isArray(form.value)">{{ form.value }}</span>
<template v-else>
<TableText v-for="(item, i) in form.value" :key="i" :form="item" />
<label>{{ form.label || '--' }}</label>
<template v-if="type !== 'url'">
<span v-if="!Array.isArray(form.value)">{{ form.value }}</span>
<template v-else>
<TableText v-for="(item, i) in form.value" :key="i" :form="item" />
</template>
</template>
</p>
</template>
Expand All @@ -45,6 +47,10 @@ export default {
form: {
type: Object,
default: () => ({})
},
type: {
type: String,
default: ''
}
},
setup(props) {
Expand Down Expand Up @@ -73,6 +79,7 @@ export default {
</script>
<style lang="postcss">
.table-text {
word-break: break-all;
> label {
color: #63656e;
}
Expand Down

0 comments on commit a794318

Please sign in to comment.