admin panel beter ui
This commit is contained in:
@@ -141,6 +141,9 @@ async function handleSubmit() {
|
||||
await api.post('branch', form);
|
||||
}
|
||||
message.info('اطلاعات با موفقیت به ثبت رسید.');
|
||||
if (!id) {
|
||||
Object.assign(form, { name: '', phone: '', address: '', user_id: undefined });
|
||||
}
|
||||
if (asModal) {
|
||||
emit('success');
|
||||
emit('update:open', false);
|
||||
|
||||
@@ -16,9 +16,11 @@
|
||||
growing a v-if per caller.
|
||||
-->
|
||||
<a-card :title="title">
|
||||
<ListPageHeader v-if="addRid" :rid="addRid" :add-label="addLabel" @add="openAdd()" />
|
||||
|
||||
<XTable ref="tbl" :model="model">
|
||||
<template v-if="addRid" #add>
|
||||
<ListPageHeader :rid="addRid" :add-label="addLabel" @add="openAdd()" />
|
||||
</template>
|
||||
|
||||
<template #actions="{ record }">
|
||||
<div class="flex gap-2">
|
||||
<a-tooltip v-if="addRid" title="ویرایش">
|
||||
|
||||
Reference in New Issue
Block a user