|
|
|
@ -77,27 +77,11 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
|
default: (data: any) => {
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'edit')}>
|
|
|
|
|
{t('tableDemo.edit')}
|
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'detail')}>
|
|
|
|
|
{'生成'}
|
|
|
|
|
</ElLink>
|
|
|
|
|
<ElPopconfirm
|
|
|
|
|
title={t('common.delTableMsg')}
|
|
|
|
|
width={200}
|
|
|
|
|
v-slots={{
|
|
|
|
|
reference: () => {
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<ElLink type="primary" underline={false}>
|
|
|
|
|
{t('tableDemo.del')}
|
|
|
|
|
</ElLink>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
onConfirm={() => delData(data.row)}
|
|
|
|
|
></ElPopconfirm>
|
|
|
|
|
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'detail')}>
|
|
|
|
|
{t('tableDemo.detail')}
|
|
|
|
|
{'预览'}
|
|
|
|
|
</ElLink>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
@ -248,10 +232,6 @@ const onSelectionChange = (selection: TableData[]) => {
|
|
|
|
|
@refresh="refresh"
|
|
|
|
|
>
|
|
|
|
|
<template #buttons>
|
|
|
|
|
<ElButton type="primary" @click="AddAction">{{ t('tableDemo.add') }}</ElButton>
|
|
|
|
|
<ElButton :loading="delLoading" type="primary" :disabled="disabled" @click="delDataBatch()">
|
|
|
|
|
{{ t('tableDemo.del') }}
|
|
|
|
|
</ElButton>
|
|
|
|
|
</template>
|
|
|
|
|
</Table>
|
|
|
|
|
</ContentWrap>
|
|
|
|
|