diff --git a/ui/src/views/content/layoutItem/columns.ts b/ui/src/views/content/layoutItem/columns.ts deleted file mode 100644 index f68cbb0..0000000 --- a/ui/src/views/content/layoutItem/columns.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { h } from 'vue'; -import { NTag } from 'naive-ui'; - -export const columns = [ - { - type: 'selection', - width: 50, - fixed: 'left', - }, - { - title: 'ID', - key: 'id', - fixed: 'left', - width: 50, - }, - { - title: '位置描述', - key: 'description', - width: 250, - render(record) { - return record.layoutDescription + '>>' + record.layoutLocation; - }, - }, - { - title: '推荐类型', - key: 'typeText', - width: 100, - render(record) { - return h( - NTag, - { - style: { - marginRight: '6px', - }, - bordered: false, - type: 'info', - }, - { - default: () => record.typeText, - }, - ); - }, - }, - { - title: '推荐ID', - key: 'typeId', - width: 100, - }, - { - title: '推荐标题', - key: 'typeTitle', - width: 200, - }, - { - title: '排序', - key: 'sort', - width: 100, - }, - { - title: '创建人', - key: 'createUser', - width: 100, - }, - { - title: '创建时间', - key: 'createTime', - width: 180, - }, -]; diff --git a/ui/src/views/content/layoutItem/edit.vue b/ui/src/views/content/layoutItem/edit.vue deleted file mode 100644 index ac9065c..0000000 --- a/ui/src/views/content/layoutItem/edit.vue +++ /dev/null @@ -1,248 +0,0 @@ - - diff --git a/ui/src/views/content/layoutItem/index.vue b/ui/src/views/content/layoutItem/index.vue deleted file mode 100644 index 228536f..0000000 --- a/ui/src/views/content/layoutItem/index.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - - diff --git a/ui/src/views/content/layoutItem/layout/article/columns.ts b/ui/src/views/content/layoutItem/layout/article/columns.ts deleted file mode 100644 index fa8934d..0000000 --- a/ui/src/views/content/layoutItem/layout/article/columns.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { h } from 'vue'; - -export const columns = [ - { - type: 'selection', - width: 50, - fixed: 'left', - multiple: false, - }, - { - title: 'ID', - key: 'id', - width: 50, - fixed: 'left', - }, - { - title: '文章标题', - key: 'title', - width: 300, - ren(record) { - return h( - 'a', - { - href: 'http://www.djangoadmin.cn', - target: '_blank', - }, - record.title, - ); - }, - }, - { - title: '文章分类', - key: 'categoryName', - width: 100, - }, - { - title: '文章状态', - key: 'status', - render(record) { - return h('span', record.status === 1 ? '下架' : '正常'); - }, - width: 100, - }, - { - title: '创建人', - key: 'createUser', - width: 100, - }, - { - title: '创建时间', - key: 'createTime', - width: 180, - }, -]; diff --git a/ui/src/views/content/layoutItem/layout/article/querySchemas.ts b/ui/src/views/content/layoutItem/layout/article/querySchemas.ts deleted file mode 100644 index 8bfb15f..0000000 --- a/ui/src/views/content/layoutItem/layout/article/querySchemas.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { FormSchema } from '@/components/Form/index'; -export const schemas: FormSchema[] = [ - { - field: 'title', - component: 'NInput', - label: '文章标题', - componentProps: { - placeholder: '请输入文章标题', - }, - }, - { - field: 'status', - component: 'NSelect', - label: '文章状态', - componentProps: { - placeholder: '请选择文章状态', - clearable: true, - options: [ - { - label: '下架', - value: '1', - }, - { - label: '正常', - value: '0', - }, - ], - }, - }, -]; diff --git a/ui/src/views/content/layoutItem/layout/index.vue b/ui/src/views/content/layoutItem/layout/index.vue deleted file mode 100644 index 100e374..0000000 --- a/ui/src/views/content/layoutItem/layout/index.vue +++ /dev/null @@ -1,205 +0,0 @@ - - diff --git a/ui/src/views/content/layoutItem/layout/notice/columns.ts b/ui/src/views/content/layoutItem/layout/notice/columns.ts deleted file mode 100644 index 27a5286..0000000 --- a/ui/src/views/content/layoutItem/layout/notice/columns.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { h } from 'vue'; -import { NTag } from 'naive-ui'; - -export const columns2 = [ - { - type: 'selection', - width: 50, - fixed: 'left', - multiple: false, - }, - { - title: 'ID', - key: 'id', - width: 50, - fixed: 'left', - }, - { - title: '通知标题', - key: 'title', - width: 300, - }, - { - title: '通知类型', - key: 'type', - width: 100, - render(record) { - return h( - NTag, - { - type: record.type == 1 ? 'info' : 'success', - }, - { - default: () => (record.type == 1 ? '通知' : '公告'), - }, - ); - }, - }, - { - title: '通知状态', - key: 'status', - render(record) { - return h( - NTag, - { - type: record.status == 1 ? 'success' : 'error', - }, - { - default: () => (record.status == 1 ? '正常' : '禁用'), - }, - ); - }, - width: 100, - }, - { - title: '点击率', - key: 'clickNum', - width: 100, - }, - { - title: '创建人', - key: 'createUser', - width: 100, - }, - { - title: '创建时间', - key: 'createTime', - width: 180, - }, -]; diff --git a/ui/src/views/content/layoutItem/layout/notice/querySchemas.ts b/ui/src/views/content/layoutItem/layout/notice/querySchemas.ts deleted file mode 100644 index 14404da..0000000 --- a/ui/src/views/content/layoutItem/layout/notice/querySchemas.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { FormSchema } from '@/components/Form/index'; -export const schemas2: FormSchema[] = [ - { - field: 'title', - component: 'NInput', - label: '通知标题', - componentProps: { - placeholder: '请输入通知标题', - }, - }, - { - field: 'type', - component: 'NSelect', - label: '通知类型', - componentProps: { - placeholder: '请选择通知类型', - clearable: true, - options: [ - { - label: '通知', - value: '1', - }, - { - label: '公告', - value: '2', - }, - ], - }, - }, - { - field: 'status', - component: 'NSelect', - label: '通知状态', - componentProps: { - placeholder: '请选择通知状态', - clearable: true, - options: [ - { - label: '正常', - value: '1', - }, - { - label: '关闭', - value: '2', - }, - ], - }, - }, -]; diff --git a/ui/src/views/content/layoutItem/querySchemas.ts b/ui/src/views/content/layoutItem/querySchemas.ts deleted file mode 100644 index 5957ded..0000000 --- a/ui/src/views/content/layoutItem/querySchemas.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { FormSchema } from '@/components/Form/index'; -import { getLayoutAllList } from '@/api/content/layout'; -export const loadSelectData = async (res) => { - //这里可以进行数据转换处理 - return (await getLayoutAllList({ ...res })).map((item, index) => { - return { - ...item, - label: item.description, - value: item.id, - index, - }; - }); -}; -export const schemas: FormSchema[] = [ - { - field: 'layoutId', - component: 'BasicSelect', - label: '页面布局', - componentProps: { - placeholder: '请选择页面布局', - clearable: true, - block: true, - request: loadSelectData, - }, - }, - { - field: 'type', - component: 'NSelect', - label: '页面类型', - componentProps: { - placeholder: '请选择页面类型', - clearable: true, - options: [ - { - label: 'CMS文章', - value: '1', - }, - { - label: '通知公告', - value: '2', - }, - ], - }, - }, -];