fix: bug#11274、11273、11272

This commit is contained in:
JiangQiming 2023-03-31 14:02:03 +08:00
parent 7223ec88b9
commit 497ac1f4ca
2 changed files with 4 additions and 3 deletions

View File

@ -40,6 +40,7 @@
<j-input
v-model:value="form.data.name"
:disabled="props.mode === '查看'"
placeholder="请输入名称"
/>
</j-form-item>
<j-form-item
@ -92,7 +93,6 @@ const props = defineProps<{
const loading = ref(false);
const confirm = () => {
loading.value = true;
formRef.value &&
formRef.value.validate().then(() => {
const buttons = toRaw(props.menuInfo?.buttons) || [];
@ -108,6 +108,7 @@ const confirm = () => {
...props.menuInfo,
buttons,
};
loading.value = true;
saveMenuInfo_api(params)
.then((resp) => {
message.success('操作成功');

View File

@ -40,13 +40,13 @@
<template #action="slotProps">
<j-space :size="16">
<j-tooltip>
<template #title>查看</template>
<template #title>编辑</template>
<j-button
style="padding: 0"
type="link"
@click="table.toDetails(slotProps)"
>
<AIcon type="SearchOutlined" />
<AIcon type="EditOutlined" />
</j-button>
</j-tooltip>