feat(credit): 更新表格选择模式并添加新的列模板

- 将多个信用模块表格的选择属性从 :selection 改为 v-model:selection
- 在信用判决债务人页面添加 appellee 列的模板显示
- 在信用执行信息页面添加 plaintiffAppellant 列的模板显示
- 优化表格组件的数据绑定方式
This commit is contained in:
2026-03-02 14:25:32 +08:00
parent ddb311b82f
commit b4f3dcbb18
6 changed files with 10 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
:selection="selection" v-model:selection="selection"
:scroll="{ x: 2400 }" :scroll="{ x: 2400 }"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"

View File

@@ -7,7 +7,7 @@
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
:selection="selection" v-model:selection="selection"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >

View File

@@ -7,7 +7,7 @@
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
:selection="selection" v-model:selection="selection"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >

View File

@@ -32,6 +32,9 @@
<template v-if="column.key === 'image'"> <template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" /> <a-image :src="record.image" :width="50" />
</template> </template>
<template v-if="column.key === 'appellee'">
{{ record.appellee || record.name }}
</template>
<template v-if="column.key === 'caseNumber'"> <template v-if="column.key === 'caseNumber'">
<template v-if="record.historyId"> <template v-if="record.historyId">
<span class="text-red-500 font-bold">{{ <span class="text-red-500 font-bold">{{

View File

@@ -8,7 +8,7 @@
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
:scroll="{ x: 9000 }" :scroll="{ x: 9000 }"
:selection="selection" v-model:selection="selection"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >

View File

@@ -32,6 +32,9 @@
<template v-if="column.key === 'image'"> <template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" /> <a-image :src="record.image" :width="50" />
</template> </template>
<template v-if="column.key === 'plaintiffAppellant'">
{{ record.plaintiffAppellant || record.dataType }}
</template>
<template v-if="column.key === 'status'"> <template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>