feat(ui):细节调整

This commit is contained in:
huangqj
2024-03-08 10:24:38 +08:00
parent ac30d906f0
commit a590d0497f
11 changed files with 94 additions and 32 deletions

View File

@@ -59,7 +59,9 @@ const getData = () => {
getData();
// 新增编辑
const popup = useCustomFormPopup(ChatModelForm, save);
const popup = useCustomFormPopup(ChatModelForm, save, {
popupProps: (arg) => ({ title: arg[0].record ? "编辑ApiKey" : "新增ApiKey" }),
});
// 删除
const handleDelete = ({ id }, reload) => {
@@ -90,7 +92,7 @@ const handleStatusChange = ({ filed, value, record, reload }) => {
<template #action="{ record, reload }">
<a-link @click="popup({ record, reload })">编辑</a-link>
<a-popconfirm content="确定删除?" @ok="handleDelete(record, reload)">
<a-link>删除</a-link>
<a-link status="danger">删除</a-link>
</a-popconfirm>
</template>
<template #header="{ reload }">