feat(credit): 添加链接地址字段支持

- 在多个信用模型中添加 url 字段定义,包括信用违约、立案、公司、竞争对手等
- 修复法院公告模型中的字段命名错误,将 defendant appellee 改为 appellee
- 在前端页面中实现链接地址的展示功能,为名称字段添加外链支持
- 优化页面布局结构,调整部分组件的缩进格式
- 修复时间格式化函数的换行问题,提升代码可读性
- 统一表格列宽度设置,优化页面显示效果
This commit is contained in:
2026-01-03 22:36:45 +08:00
parent 4f9a0e7f91
commit 90aaeef018
39 changed files with 762 additions and 625 deletions

View File

@@ -12,6 +12,8 @@ export interface CreditBreachOfTrust {
plaintiffAppellant?: string; plaintiffAppellant?: string;
// 被告/被上诉人 // 被告/被上诉人
appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -12,6 +12,8 @@ export interface CreditCaseFiling {
plaintiffAppellant?: string; plaintiffAppellant?: string;
// 被告/被上诉人 // 被告/被上诉人
appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -12,6 +12,8 @@ export interface CreditCompany {
matchName?: string; matchName?: string;
// 统一社会信用代码 // 统一社会信用代码
code?: string; code?: string;
// 链接地址
url?: string;
// 类型 // 类型
type?: number; type?: number;
// 上级id, 0是顶级 // 上级id, 0是顶级

View File

@@ -20,6 +20,8 @@ export interface CreditCompetitor {
industry?: string; industry?: string;
// 所属省份 // 所属省份
province?: string; province?: string;
// 链接地址
url?: string;
// 备注 // 备注
comments?: string; comments?: string;
// 是否推荐 // 是否推荐

View File

@@ -10,9 +10,10 @@ export interface CreditCourtAnnouncement {
dataType?: string; dataType?: string;
// 原告/上诉人 // 原告/上诉人
plaintiffAppellant?: string; plaintiffAppellant?: string;
@TableField("defendant Appellee")
// 被告/被上诉人 // 被告/被上诉人
defendant appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -12,6 +12,8 @@ export interface CreditCourtSession {
plaintiffAppellant?: string; plaintiffAppellant?: string;
// 被告/被上诉人 // 被告/被上诉人
appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -16,6 +16,8 @@ export interface CreditCustomer {
publicDate?: string; publicDate?: string;
// 数据来源 // 数据来源
dataSource?: string; dataSource?: string;
// 链接地址
url?: string;
// 备注 // 备注
comments?: string; comments?: string;
// 是否推荐 // 是否推荐

View File

@@ -26,6 +26,8 @@ export interface CreditDeliveryNotice {
courtName?: string; courtName?: string;
// 数据状态 // 数据状态
dataStatus?: string; dataStatus?: string;
// 链接地址
url?: string;
// 备注 // 备注
comments?: string; comments?: string;
// 是否推荐 // 是否推荐

View File

@@ -34,6 +34,8 @@ export interface CreditExternal {
investmentCount?: number; investmentCount?: number;
// 关联产品/机构 // 关联产品/机构
relatedProductsInstitutions?: string; relatedProductsInstitutions?: string;
// 链接地址
url?: string;
// 备注 // 备注
comments?: string; comments?: string;
// 是否推荐 // 是否推荐

View File

@@ -12,6 +12,8 @@ export interface CreditFinalVersion {
plaintiffAppellant?: string; plaintiffAppellant?: string;
// 被告/被上诉人 // 被告/被上诉人
appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -12,6 +12,8 @@ export interface CreditGqdj {
plaintiffAppellant?: string; plaintiffAppellant?: string;
// 被告/被上诉人 // 被告/被上诉人
appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -12,6 +12,8 @@ export interface CreditJudgmentDebtor {
name?: string; name?: string;
// 证件号/组织机构代码 // 证件号/组织机构代码
code?: string; code?: string;
// 链接地址
url?: string;
// 立案日期 // 立案日期
occurrenceTime?: string; occurrenceTime?: string;
// 执行标的(元) // 执行标的(元)

View File

@@ -12,6 +12,8 @@ export interface CreditJudicialDocument {
plaintiffAppellant?: string; plaintiffAppellant?: string;
// 被告/被上诉人 // 被告/被上诉人
appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -10,6 +10,8 @@ export interface CreditJudiciary {
name?: string; name?: string;
// 案号 // 案号
code?: string; code?: string;
// 链接地址
url?: string;
// 类型, 0普通用户, 1招投标 // 类型, 0普通用户, 1招投标
type?: number; type?: number;
// 案由 // 案由

View File

@@ -12,6 +12,8 @@ export interface CreditMediation {
plaintiffAppellant?: string; plaintiffAppellant?: string;
// 被告/被上诉人 // 被告/被上诉人
appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -10,6 +10,8 @@ export interface CreditProject {
name?: string; name?: string;
// 唯一标识 // 唯一标识
code?: string; code?: string;
// 链接地址
url?: string;
// 类型, 0普通用户, 1招投标 // 类型, 0普通用户, 1招投标
type?: number; type?: number;
// 企业角色 // 企业角色

View File

@@ -18,6 +18,8 @@ export interface CreditRiskRelation {
associatedRelation?: string; associatedRelation?: string;
// 风险关系 // 风险关系
riskRelation?: string; riskRelation?: string;
// 链接地址
url?: string;
// 备注 // 备注
comments?: string; comments?: string;
// 是否推荐 // 是否推荐

View File

@@ -16,6 +16,8 @@ export interface CreditSupplier {
publicDate?: string; publicDate?: string;
// 数据来源 // 数据来源
dataSource?: string; dataSource?: string;
// 链接地址
url?: string;
// 备注 // 备注
comments?: string; comments?: string;
// 是否推荐 // 是否推荐

View File

@@ -10,6 +10,8 @@ export interface CreditUser {
name?: string; name?: string;
// 唯一标识 // 唯一标识
code?: string; code?: string;
// 链接地址
url?: string;
// 类型, 0普通用户, 1招投标 // 类型, 0普通用户, 1招投标
type?: number; type?: number;
// 企业角色 // 企业角色

View File

@@ -12,6 +12,8 @@ export interface CreditXgxf {
plaintiffAppellant?: string; plaintiffAppellant?: string;
// 被告/被上诉人 // 被告/被上诉人
appellee?: string; appellee?: string;
// 链接地址
url?: string;
// 其他当事人/第三人 // 其他当事人/第三人
otherPartiesThirdParty?: string; otherPartiesThirdParty?: string;
// 发生时间 // 发生时间

View File

@@ -25,6 +25,14 @@
<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 === 'name'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
</template>
<template v-else>
{{ record.name }}
</template>
</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>

View File

@@ -1,54 +1,66 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'name'">
<template v-if="column.key === 'image'"> <template v-if="record.url">
<a-image :src="record.image" :width="50" /> <a :href="record.url" target="_blank">{{ record.name }}</a>
</template> </template>
<template v-if="column.key === 'status'"> <template v-else>
<a-tag v-if="record.status === 0" color="green">显示</a-tag> {{ record.name }}
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template> </template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'status'">
</a-card> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditCaseFilingEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditCaseFilingEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditCaseFilingImport v-model:visible="showImport" @done="reload" /> :data="current"
@done="reload"
/>
<!-- 导入弹窗 -->
<CreditCaseFilingImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>
@@ -182,8 +194,7 @@
width: 180, width: 180,
align: 'center', align: 'center',
ellipsis: true, ellipsis: true,
customRender: ({ text }) => customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -26,6 +26,14 @@
<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 === 'name'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
</template>
<template v-else>
{{ record.name }}
</template>
</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>

View File

@@ -1,54 +1,58 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditCompetitorEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditCompetitorEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditCompetitorImport v-model:visible="showImport" @done="reload" /> :data="current"
@done="reload"
/>
<!-- 导入弹窗 -->
<CreditCompetitorImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>
@@ -171,8 +175,7 @@
width: 180, width: 180,
align: 'center', align: 'center',
ellipsis: true, ellipsis: true,
customRender: ({ text }) => customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -1,57 +1,61 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditCourtAnnouncementEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditCourtAnnouncementEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditCourtAnnouncementImport :data="current"
v-model:visible="showImport" @done="reload"
@done="reload" />
/> <!-- 导入弹窗 -->
<CreditCourtAnnouncementImport
v-model:visible="showImport"
@done="reload"
/>
</a-page-header> </a-page-header>
</template> </template>
@@ -185,8 +189,7 @@
width: 180, width: 180,
align: 'center', align: 'center',
ellipsis: true, ellipsis: true,
customRender: ({ text }) => customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}, },
{ {
title: '操作', title: '操作',

View File

@@ -26,6 +26,14 @@
<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 === 'name'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
</template>
<template v-else>
{{ record.name }}
</template>
</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>

View File

@@ -1,57 +1,58 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditDeliveryNoticeEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditDeliveryNoticeEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditDeliveryNoticeImport :data="current"
v-model:visible="showImport" @done="reload"
@done="reload" />
/> <!-- 导入弹窗 -->
<CreditDeliveryNoticeImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>

View File

@@ -25,6 +25,14 @@
<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 === 'name'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
</template>
<template v-else>
{{ record.name }}
</template>
</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>

View File

@@ -1,57 +1,58 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditFinalVersionEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditFinalVersionEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditFinalVersionImport :data="current"
v-model:visible="showImport" @done="reload"
@done="reload" />
/> <!-- 导入弹窗 -->
<CreditFinalVersionImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>
@@ -128,7 +129,7 @@
title: 'ID', title: 'ID',
dataIndex: 'id', dataIndex: 'id',
key: 'id', key: 'id',
width: 90, width: 90
}, },
{ {
title: '数据类型', title: '数据类型',

View File

@@ -1,54 +1,54 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditGqdjEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditGqdjEdit v-model:visible="showEdit" :data="current" @done="reload" />
<!-- 导入弹窗 --> <!-- 导入弹窗 -->
<CreditGqdjImport v-model:visible="showImport" @done="reload" /> <CreditGqdjImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>

View File

@@ -1,57 +1,66 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'name'">
<template v-if="column.key === 'image'"> <template v-if="record.url">
<a-image :src="record.image" :width="50" /> <a :href="record.url" target="_blank">{{ record.name }}</a>
</template> </template>
<template v-if="column.key === 'status'"> <template v-else>
<a-tag v-if="record.status === 0" color="green">显示</a-tag> {{ record.name }}
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template> </template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'status'">
</a-card> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditJudgmentDebtorEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditJudgmentDebtorEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditJudgmentDebtorImport :data="current"
v-model:visible="showImport" @done="reload"
@done="reload" />
/> <!-- 导入弹窗 -->
<CreditJudgmentDebtorImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>
@@ -166,12 +175,12 @@
key: 'courtName', key: 'courtName',
ellipsis: true ellipsis: true
}, },
{ // {
title: '数据状态', // title: '数据状态',
dataIndex: 'dataStatus', // dataIndex: 'dataStatus',
key: 'dataStatus', // key: 'dataStatus',
ellipsis: true // ellipsis: true
}, // },
{ {
title: '创建时间', title: '创建时间',
dataIndex: 'createTime', dataIndex: 'createTime',

View File

@@ -1,57 +1,58 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditJudicialDocumentEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditJudicialDocumentEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditJudicialDocumentImport :data="current"
v-model:visible="showImport" @done="reload"
@done="reload" />
/> <!-- 导入弹窗 -->
<CreditJudicialDocumentImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>

View File

@@ -26,6 +26,14 @@
<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 === 'name'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
</template>
<template v-else>
{{ record.name }}
</template>
</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>

View File

@@ -1,54 +1,58 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditMediationEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditMediationEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditMediationImport v-model:visible="showImport" @done="reload" /> :data="current"
@done="reload"
/>
<!-- 导入弹窗 -->
<CreditMediationImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>

View File

@@ -1,54 +1,66 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'name'">
<template v-if="column.key === 'image'"> <template v-if="record.url">
<a-image :src="record.image" :width="50" /> <a :href="record.url" target="_blank">{{ record.name }}</a>
</template> </template>
<template v-if="column.key === 'status'"> <template v-else>
<a-tag v-if="record.status === 0" color="green">显示</a-tag> {{ record.name }}
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template> </template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'status'">
</a-card> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditProjectEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditProjectEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditProjectImport v-model:visible="showImport" @done="reload" /> :data="current"
@done="reload"
/>
<!-- 导入弹窗 -->
<CreditProjectImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>

View File

@@ -1,57 +1,58 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditRiskRelationEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditRiskRelationEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditRiskRelationImport :data="current"
v-model:visible="showImport" @done="reload"
@done="reload" />
/> <!-- 导入弹窗 -->
<CreditRiskRelationImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>

View File

@@ -1,54 +1,58 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditSupplierEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditSupplierEdit
<!-- 导入弹窗 --> v-model:visible="showEdit"
<CreditSupplierImport v-model:visible="showImport" @done="reload" /> :data="current"
@done="reload"
/>
<!-- 导入弹窗 -->
<CreditSupplierImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>

View File

@@ -26,6 +26,14 @@
<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 === 'name'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
</template>
<template v-else>
{{ record.name }}
</template>
</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>

View File

@@ -1,54 +1,54 @@
<template> <template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)"> <a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }"> <a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
row-key="id" row-key="id"
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
<template #toolbar> <template #toolbar>
<search <search
@search="reload" @search="reload"
:selection="selection" :selection="selection"
@add="openEdit" @add="openEdit"
@remove="removeBatch" @remove="removeBatch"
@batchMove="openMove" @batchMove="openMove"
@importData="openImport" @importData="openImport"
@exportData="exportData" @exportData="exportData"
/> />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template> </template>
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'status'">
<template v-if="column.key === 'image'"> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-image :src="record.image" :width="50" /> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template> </template>
</ele-pro-table> <template v-if="column.key === 'action'">
</a-card> <a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
<CreditXgxfEdit v-model:visible="showEdit" :data="current" @done="reload" /> <CreditXgxfEdit v-model:visible="showEdit" :data="current" @done="reload" />
<!-- 导入弹窗 --> <!-- 导入弹窗 -->
<CreditXgxfImport v-model:visible="showImport" @done="reload" /> <CreditXgxfImport v-model:visible="showImport" @done="reload" />
</a-page-header> </a-page-header>
</template> </template>