前端界面优化

main
zhangxiaodi1 9 months ago
parent 9d47bacdf9
commit 63a0252451

@ -28,7 +28,7 @@ export const delRepTemplateApi = (tId?: string): Promise<IResponse> => {
/** 保存 */
export const saveRepTemplateApi = (data: Partial<TableData>): Promise<IResponse> => {
return request.postJson({ url: '/RepTemplate/spi/reporting/RepTemplate/RepTemplateSave', data });
return request.postJson({ url: '/RepTemplate/sui/reporting/RepTemplate/RepTemplateSave', data });
};
/** 查询单条数据 */

@ -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>

@ -116,9 +116,6 @@ const tableColumns = reactive<TableColumn[]>([
}}
onConfirm={() => delData(data.row)}
></ElPopconfirm>
<ElLink type="primary" underline={false} onClick={() => action(data.row, 'detail')}>
{t('tableDemo.detail')}
</ElLink>
</>
)
}
@ -269,9 +266,6 @@ const onSelectionChange = (selection: TableData[]) => {
>
<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>

Loading…
Cancel
Save