update

parent 6f70d087
...@@ -318,12 +318,12 @@ export type Post = { ...@@ -318,12 +318,12 @@ export type Post = {
id: number; id: number;
name: string; name: string;
image: string; image: string;
category: string;
createBy: string;
createTime: string;
updateBy: string;
updateTime: string;
status: number; status: number;
category: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
}; };
export type LanguageType = { export type LanguageType = {
...@@ -361,3 +361,15 @@ export type PostDetailType = { ...@@ -361,3 +361,15 @@ export type PostDetailType = {
updateBy?: string; updateBy?: string;
updateTime?: string; updateTime?: string;
}; };
export type PostCategoryDetailType = {
id: number;
image: string;
status: number;
langs: LangType[];
posts: Post[];
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
};
import { defineComponent } from 'vue'
export default defineComponent({
// name: 'PageName'
})
\ No newline at end of file
<template>
<div>CategoryPost</div>
</template>
<script lang="ts" src="./CategoryPost.ts"></script>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<template v-slot:body-cell-avatar="avatar"> <template v-slot:body-cell-avatar="avatar">
<q-td style="padding: 0; height: 100%" class="flex flex-center"> <q-td style="padding: 0; height: 100%" class="flex flex-center">
<q-img <q-img
style="width: 7rem" style="width: 7rem; height: 5rem"
fit="contain" fit="contain"
:ratio="16 / 9" :ratio="16 / 9"
:src="`http://cms.vab.xteldev.com/file/upload/${avatar.row.avatar}`" :src="`http://cms.vab.xteldev.com/file/upload/${avatar.row.avatar}`"
......
...@@ -13,6 +13,7 @@ export enum Pages { ...@@ -13,6 +13,7 @@ export enum Pages {
customerRank = 'xep-hang-khach-hang', customerRank = 'xep-hang-khach-hang',
field = 'linh-vuc-hoat-dong', field = 'linh-vuc-hoat-dong',
post = 'bai-viet', post = 'bai-viet',
postCategory = 'danh-muc-bai-viet',
} }
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
...@@ -80,6 +81,11 @@ const routes: RouteRecordRaw[] = [ ...@@ -80,6 +81,11 @@ const routes: RouteRecordRaw[] = [
component: () => import('pages/bai-viet/index.vue'), component: () => import('pages/bai-viet/index.vue'),
name: Pages.post, name: Pages.post,
}, },
{
path: 'danh-muc-bai-viet',
component: () => import('pages/danh-muc-bai-viet/index.vue'),
name: Pages.postCategory,
},
], ],
}, },
......
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