2026-01-29 22:03:42 +08:00
|
|
|
<template>
|
2026-04-29 17:19:45 +08:00
|
|
|
<div class="formal-table-shell">
|
2026-01-29 22:03:42 +08:00
|
|
|
<el-table v-loading="loading" :data="dataList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
2026-04-20 11:24:18 +08:00
|
|
|
<el-table-column label="名称" align="center" prop="name" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="证件号" align="center" prop="certificateNo" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="关联中介姓名" align="center" prop="relatedIntermediaryName" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="关联关系" align="center" prop="relationText" :show-overflow-tooltip="true" />
|
2026-01-29 22:03:42 +08:00
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2026-04-20 11:24:18 +08:00
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="260">
|
2026-01-29 22:03:42 +08:00
|
|
|
<template slot-scope="scope">
|
2026-04-20 11:24:18 +08:00
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="$emit('detail', scope.row)">
|
|
|
|
|
{{ scope.row.recordType === 'INTERMEDIARY' ? '详情' : '查看' }}
|
|
|
|
|
</el-button>
|
2026-01-29 22:03:42 +08:00
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="$emit('update', scope.row)"
|
2026-01-30 14:15:21 +08:00
|
|
|
v-hasPermi="['ccdi:intermediary:edit']"
|
2026-04-20 11:24:18 +08:00
|
|
|
>
|
|
|
|
|
{{ scope.row.recordType === 'INTERMEDIARY' ? '修改' : '编辑' }}
|
|
|
|
|
</el-button>
|
2026-01-29 22:03:42 +08:00
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="$emit('delete', scope.row)"
|
2026-01-30 14:15:21 +08:00
|
|
|
v-hasPermi="['ccdi:intermediary:remove']"
|
2026-01-29 22:03:42 +08:00
|
|
|
>删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
2026-04-20 11:24:18 +08:00
|
|
|
v-show="total > 0"
|
2026-01-29 22:03:42 +08:00
|
|
|
:total="total"
|
|
|
|
|
:page.sync="pageParams.pageNum"
|
|
|
|
|
:limit.sync="pageParams.pageSize"
|
|
|
|
|
@pagination="$emit('pagination')"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: "DataTable",
|
|
|
|
|
props: {
|
|
|
|
|
loading: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false
|
|
|
|
|
},
|
|
|
|
|
dataList: {
|
|
|
|
|
type: Array,
|
|
|
|
|
default: () => []
|
|
|
|
|
},
|
|
|
|
|
total: {
|
|
|
|
|
type: Number,
|
|
|
|
|
default: 0
|
|
|
|
|
},
|
|
|
|
|
pageParams: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.$emit("selection-change", selection);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
2026-04-29 17:19:45 +08:00
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.formal-table-shell {
|
|
|
|
|
padding: 4px 0 16px;
|
|
|
|
|
border: 1px solid #dde3ec;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.formal-table-shell ::v-deep .el-table th {
|
|
|
|
|
background: #f6f8fb;
|
|
|
|
|
color: #607086;
|
|
|
|
|
padding: 9px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.formal-table-shell ::v-deep .el-table td,
|
|
|
|
|
.formal-table-shell ::v-deep .el-table th.is-leaf {
|
|
|
|
|
border-bottom-color: #edf1f5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.formal-table-shell ::v-deep .el-table td {
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.formal-table-shell ::v-deep .el-table th > .cell,
|
|
|
|
|
.formal-table-shell ::v-deep .el-table td > .cell {
|
|
|
|
|
text-align: left;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.formal-table-shell ::v-deep .fixed-width .cell,
|
|
|
|
|
.formal-table-shell ::v-deep .el-table-column--selection .cell {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.formal-table-shell ::v-deep .pagination-container {
|
|
|
|
|
padding: 16px 20px 0;
|
|
|
|
|
}
|
|
|
|
|
</style>
|