2026-01-29 22:03:42 +08:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-table v-loading="loading" :data="dataList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="姓名/机构名称" align="center" prop="name" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="证件号" align="center" prop="certificateNo" :show-overflow-tooltip="true"/>
|
2026-02-05 13:33:27 +08:00
|
|
|
<el-table-column label="中介类型" align="center" prop="intermediaryType" width="100">
|
2026-01-29 22:03:42 +08:00
|
|
|
<template slot-scope="scope">
|
2026-02-05 13:33:27 +08:00
|
|
|
<span v-if="scope.row.intermediaryType === '1'">个人</span>
|
|
|
|
|
<span v-else-if="scope.row.intermediaryType === '2'">实体</span>
|
2026-01-29 22:03:42 +08:00
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="240">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
@click="$emit('detail', scope.row)"
|
|
|
|
|
>详情</el-button>
|
|
|
|
|
<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-01-29 22:03:42 +08:00
|
|
|
>修改</el-button>
|
|
|
|
|
<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
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
: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>
|