83
其实忘了是什么时候,但是确实是有一段时间在看antv的表格,今天就只写细节逻辑,换一天写勾选的逻辑。
<template>
<div style="max-height:600px;overflow-y:auto">
<a-table
class="ant-table-striped"
:rowClassName="
(record, index) => (record.isChild ? 'table-striped' : null)
"
:columns="columns"
:data-source="list"
rowKey="id"
v-custom-loading="LoadingData"
:pagination="false"
:row-selection="rowSelection"
@expand="getDetail"
:expandedRowKeys="expandedRowKeys"
:expandIconColumnIndex="-1"
>
<template #createTime="{ record }">
{
{
timeFormatter(record.last_time) }}
</template>
<template #type="{ record }"> {
{
record.type_name }}模型 </template>
<template #last_transform_status="{ record }">
{
{
Status[record.last_transform_status] }}
</template>
<template #operation1="{ record }">
<a-button
class="link-btn-in-table"
type="link"
@click="getDetail(record)"
v-if="!record.isChild"
>选择模型版本<up-outlined
v-if=