Commit fd8fdb8f authored by Tình Trương's avatar Tình Trương

update

parent ff3b09e8
...@@ -282,8 +282,6 @@ ...@@ -282,8 +282,6 @@
</q-tab-panels> </q-tab-panels>
</div> </div>
</div> </div>
<div class="row q-col-gutter-sm"></div>
</q-card-section> </q-card-section>
<q-card-actions align="right"> <q-card-actions align="right">
<div> <div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:model-value="isOpened" :model-value="isOpened"
@update:model-value="$emit('update:isOpened', $event)" @update:model-value="$emit('update:isOpened', $event)"
> >
<q-card style="min-width: 80rem" bordered> <q-card class="full-width" style="max-width: 80rem" bordered>
<q-form <q-form
greedy greedy
@submit.prevent=" @submit.prevent="
...@@ -25,7 +25,10 @@ ...@@ -25,7 +25,10 @@
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<q-card-section> <q-card-section
class="overflow-auto"
style="max-height: calc(100vh - 15rem)"
>
<div class="row q-col-gutter-sm"> <div class="row q-col-gutter-sm">
<div class="col-6"> <div class="col-6">
<q-input <q-input
...@@ -51,17 +54,17 @@ ...@@ -51,17 +54,17 @@
clearable clearable
></q-input> ></q-input>
</div> </div>
<div class="col-12"> <div class="col-12 q-pb-md">
<div> <div>
<q-editor <q-editor
:model-value="content" :model-value="content"
@update:model-value="$emit('update:content', $event)" @update:model-value="$emit('update:content', $event)"
ref="editorRef" ref="editorRef"
placeholder="Nội dung *" placeholder="Nội dung *"
style="min-height: 32rem"
toolbar-text-color="white" toolbar-text-color="white"
toolbar-toggle-color="yellow-8" toolbar-toggle-color="yellow-8"
toolbar-bg="primary" toolbar-bg="primary"
style="height: 20rem"
:toolbar="[ :toolbar="[
[ [
{ {
...@@ -153,21 +156,25 @@ ...@@ -153,21 +156,25 @@
</div> </div>
</div> </div>
</q-card-section> </q-card-section>
<q-separator />
<q-card-actions align="right"> <q-card-actions align="right">
<q-btn <div>
color="grey" <q-btn
no-caps color="grey"
style="width: 90px" no-caps
:label="$t('listConfigSystem.crudActions.cancel')" class="q-mr-sm"
@click="$emit('update:isOpened', false)" style="width: 90px"
/> :label="$t('listConfigSystem.crudActions.cancel')"
<q-btn @click="$emit('update:isOpened', false)"
type="submit" />
color="primary" <q-btn
no-caps type="submit"
style="width: 90px" color="primary"
:label="$t('listConfigSystem.crudActions.save')" no-caps
/> style="width: 90px"
:label="$t('listConfigSystem.crudActions.save')"
/>
</div>
</q-card-actions> </q-card-actions>
</q-form> </q-form>
</q-card> </q-card>
......
...@@ -958,12 +958,12 @@ export default { ...@@ -958,12 +958,12 @@ export default {
}, },
}, },
//Cấu hình chính sách //Cấu hình trang tĩnh
listConfigSystem: { listConfigSystem: {
add: 'Thêm', add: 'Thêm',
toolTipMessageUpdate: 'Cập nhập', toolTipMessageUpdate: 'Cập nhập',
toolTipMessageDelete: 'Xóa', toolTipMessageDelete: 'Xóa',
title: 'Cấu hình hệ thống', title: 'Cấu hình Trang tĩnh',
titleColumnsTable: { titleColumnsTable: {
stt: 'STT', stt: 'STT',
namePage: 'Tên cấu hình', namePage: 'Tên cấu hình',
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<td> <td>
<div class="ellipsis-3-lines"> <div class="ellipsis-3-lines">
<div v-html="!item.row.content ? '' : item.row.content"></div> <div v-html="!item.row.content ? '' : item.row.content"></div>
<q-tooltip :offset="[10, 10]" max-width="20%" <q-tooltip :offset="[10, 10]" max-width="30%"
><div v-html="!item.row.content ? '' : item.row.content"></div ><div v-html="!item.row.content ? '' : item.row.content"></div
></q-tooltip> ></q-tooltip>
</div> </div>
......
...@@ -19,7 +19,7 @@ export enum Pages { ...@@ -19,7 +19,7 @@ export enum Pages {
menu = 'menu', menu = 'menu',
listBooking = 'danh-sach-booking', listBooking = 'danh-sach-booking',
work = 'cong-viec', work = 'cong-viec',
configSystem = 'cau-hinh-he-thong', configSystem = 'cau-hinh-trang-tinh',
news = 'cau-hinh-tin-tuc', news = 'cau-hinh-tin-tuc',
hotProduct = 'cau-hinh-san-pham-noi-bat', hotProduct = 'cau-hinh-san-pham-noi-bat',
} }
...@@ -120,8 +120,8 @@ const routes: RouteRecordRaw[] = [ ...@@ -120,8 +120,8 @@ const routes: RouteRecordRaw[] = [
name: Pages.work, name: Pages.work,
}, },
{ {
path: 'cau-hinh-he-thong', path: 'cau-hinh-trang-tinh',
component: () => import('pages/cau-hinh-he-thong/index.vue'), component: () => import('pages/cau-hinh-trang-tinh/index.vue'),
name: Pages.configSystem, name: Pages.configSystem,
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment