fix: bug#11274、11273、11272
This commit is contained in:
parent
7223ec88b9
commit
497ac1f4ca
|
@ -40,6 +40,7 @@
|
||||||
<j-input
|
<j-input
|
||||||
v-model:value="form.data.name"
|
v-model:value="form.data.name"
|
||||||
:disabled="props.mode === '查看'"
|
:disabled="props.mode === '查看'"
|
||||||
|
placeholder="请输入名称"
|
||||||
/>
|
/>
|
||||||
</j-form-item>
|
</j-form-item>
|
||||||
<j-form-item
|
<j-form-item
|
||||||
|
@ -92,7 +93,6 @@ const props = defineProps<{
|
||||||
|
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const confirm = () => {
|
const confirm = () => {
|
||||||
loading.value = true;
|
|
||||||
formRef.value &&
|
formRef.value &&
|
||||||
formRef.value.validate().then(() => {
|
formRef.value.validate().then(() => {
|
||||||
const buttons = toRaw(props.menuInfo?.buttons) || [];
|
const buttons = toRaw(props.menuInfo?.buttons) || [];
|
||||||
|
@ -108,6 +108,7 @@ const confirm = () => {
|
||||||
...props.menuInfo,
|
...props.menuInfo,
|
||||||
buttons,
|
buttons,
|
||||||
};
|
};
|
||||||
|
loading.value = true;
|
||||||
saveMenuInfo_api(params)
|
saveMenuInfo_api(params)
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
message.success('操作成功');
|
message.success('操作成功');
|
||||||
|
|
|
@ -40,13 +40,13 @@
|
||||||
<template #action="slotProps">
|
<template #action="slotProps">
|
||||||
<j-space :size="16">
|
<j-space :size="16">
|
||||||
<j-tooltip>
|
<j-tooltip>
|
||||||
<template #title>查看</template>
|
<template #title>编辑</template>
|
||||||
<j-button
|
<j-button
|
||||||
style="padding: 0"
|
style="padding: 0"
|
||||||
type="link"
|
type="link"
|
||||||
@click="table.toDetails(slotProps)"
|
@click="table.toDetails(slotProps)"
|
||||||
>
|
>
|
||||||
<AIcon type="SearchOutlined" />
|
<AIcon type="EditOutlined" />
|
||||||
</j-button>
|
</j-button>
|
||||||
</j-tooltip>
|
</j-tooltip>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue