From bf914878dca771a51c98e09bb799f9a36d263250 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 10 Jun 2021 18:05:57 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/jfptweb-publicSecurity

---
 src/views/article/article.vue |  298 ++++++++++++++
 src/router/views/index.js     |  859 ++++++++++++++++++++--------------------
 src/api/article/article.js    |   49 ++
 3 files changed, 783 insertions(+), 423 deletions(-)

diff --git a/src/api/article/article.js b/src/api/article/article.js
new file mode 100644
index 0000000..3031ac1
--- /dev/null
+++ b/src/api/article/article.js
@@ -0,0 +1,49 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+    return request({
+        url: '/api/blade-jfpts/article/article/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/blade-jfpts/article/article/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/blade-jfpts/article/article/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/blade-jfpts/article/article/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getNotice = (id) => {
+    return request({
+        url: '/api/blade-jfpts/article/article/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
\ No newline at end of file
diff --git a/src/router/views/index.js b/src/router/views/index.js
index 00fca56..87134ce 100644
--- a/src/router/views/index.js
+++ b/src/router/views/index.js
@@ -1,437 +1,450 @@
 import Layout from '@/page/index/'
 
 export default [{
-    path: '/wel',
-    component: Layout,
-    redirect: '/wel/index',
-    children: [{
-        path: 'index',
-        name: '首页',
-        meta: {
-            i18n: 'dashboard'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/alarmManagement/alarmAnalysis')
-    }]
-},
+        path: '/wel',
+        component: Layout,
+        redirect: '/wel/index',
+        children: [{
+            path: 'index',
+            name: '首页',
+            meta: {
+                i18n: 'dashboard'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/alarmManagement/alarmAnalysis')
+        }]
+    },
 
-// {
-//     path: '/wel',
-//     component: Layout,
-//     redirect: '/wel/index',
-//     children: [{
-//         path: 'index',
-//         name: '首页',
-//         meta: {
-//             i18n: 'dashboard'
-//         },
-//         component: () =>
-//             import ( /* webpackChunkName: "views" */ '@/views/home/home')
-//     }, {
-//         path: 'dashboard',
-//         name: '控制台',
-//         meta: {
-//             i18n: 'dashboard',
-//             menu: false,
-//         },
-//         component: () =>
-//             import ( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
-//     }]
-// },
-{
-    path: '/distribution',
-    component: Layout,
-    redirect: '/distribution/index',
-    children: [{
-        path: 'index',
-        name: '警情分发处置',
-        meta: {
-            i18n: 'distribution'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/distribution/index')
-    }]
-},
-{
-    path: '/test',
-    component: Layout,
-    redirect: '/test/index',
-    children: [{
-        path: 'index',
-        name: '测试页',
-        meta: {
-            i18n: 'test'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/util/test')
-    }]
-}, {
-    path: '/dict-horizontal',
-    component: Layout,
-    redirect: '/dict-horizontal/index',
-    children: [{
-        path: 'index',
-        name: '字典管理',
-        meta: {
-            i18n: 'dict'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
-    }]
-}, {
-    path: '/dict-vertical',
-    component: Layout,
-    redirect: '/dict-vertical/index',
-    children: [{
-        path: 'index',
-        name: '字典管理',
-        meta: {
-            i18n: 'dict'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
-    }]
-}, {
-    path: '/info',
-    component: Layout,
-    redirect: '/info/index',
-    children: [{
-        path: 'index',
-        name: '个人信息',
-        meta: {
-            i18n: 'info'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
-    }]
-},
-{
-    path: '/real',
-    component: Layout,
-    redirect: '/real/video',
-    children: [{
-        path: 'video',
-        name: '视频',
-        meta: {
-            i18n: 'real'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/Video/video')
+    // {
+    //     path: '/wel',
+    //     component: Layout,
+    //     redirect: '/wel/index',
+    //     children: [{
+    //         path: 'index',
+    //         name: '首页',
+    //         meta: {
+    //             i18n: 'dashboard'
+    //         },
+    //         component: () =>
+    //             import ( /* webpackChunkName: "views" */ '@/views/home/home')
+    //     }, {
+    //         path: 'dashboard',
+    //         name: '控制台',
+    //         meta: {
+    //             i18n: 'dashboard',
+    //             menu: false,
+    //         },
+    //         component: () =>
+    //             import ( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
+    //     }]
+    // },
+    {
+        path: '/distribution',
+        component: Layout,
+        redirect: '/distribution/index',
+        children: [{
+            path: 'index',
+            name: '警情分发处置',
+            meta: {
+                i18n: 'distribution'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/distribution/index')
+        }]
+    },
+    {
+        path: '/test',
+        component: Layout,
+        redirect: '/test/index',
+        children: [{
+            path: 'index',
+            name: '测试页',
+            meta: {
+                i18n: 'test'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/util/test')
+        }]
     }, {
-        path: 'history/:historyId',
-        name: '设备历史',
-        meta: {
-            i18n: 'real'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/realTimePolice/realHistory')
-    }]
-},
-{
-    path: '/welcomeData',
-    component: Layout,
-    redirect: '/welcomeData/data',
-    children: [{
-        path: 'data',
-        name: '数据模式',
-        meta: {
-            i18n: 'data'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/supervisoryConsole/data')
+        path: '/dict-horizontal',
+        component: Layout,
+        redirect: '/dict-horizontal/index',
+        children: [{
+            path: 'index',
+            name: '字典管理',
+            meta: {
+                i18n: 'dict'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
+        }]
     }, {
-        path: 'map',
-        name: '地图模式',
-        meta: {
-            i18n: 'map'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/supervisoryConsole/map')
+        path: '/dict-vertical',
+        component: Layout,
+        redirect: '/dict-vertical/index',
+        children: [{
+            path: 'index',
+            name: '字典管理',
+            meta: {
+                i18n: 'dict'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
+        }]
     }, {
-        path: 'card',
-        name: '卡片模式',
-        meta: {
-            i18n: 'card'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/supervisoryConsole/card')
-    }]
-},
+        path: '/info',
+        component: Layout,
+        redirect: '/info/index',
+        children: [{
+            path: 'index',
+            name: '个人信息',
+            meta: {
+                i18n: 'info'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/system/userinfo')
+        }]
+    },
+    {
+        path: '/real',
+        component: Layout,
+        redirect: '/real/video',
+        children: [{
+            path: 'video',
+            name: '视频',
+            meta: {
+                i18n: 'real'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/Video/video')
+        }, {
+            path: 'history/:historyId',
+            name: '设备历史',
+            meta: {
+                i18n: 'real'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/realTimePolice/realHistory')
+        }]
+    },
+    {
+        path: '/welcomeData',
+        component: Layout,
+        redirect: '/welcomeData/data',
+        children: [{
+            path: 'data',
+            name: '数据模式',
+            meta: {
+                i18n: 'data'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/supervisoryConsole/data')
+        }, {
+            path: 'map',
+            name: '地图模式',
+            meta: {
+                i18n: 'map'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/supervisoryConsole/map')
+        }, {
+            path: 'card',
+            name: '卡片模式',
+            meta: {
+                i18n: 'card'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/supervisoryConsole/card')
+        }]
+    },
 
-{
-    path: '/work/process/leave',
-    component: Layout,
-    redirect: '/work/process/leave/form',
-    children: [{
-        path: 'form/:processDefinitionId',
-        name: '请假流程',
-        meta: {
-            i18n: 'work'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
+    {
+        path: '/work/process/leave',
+        component: Layout,
+        redirect: '/work/process/leave/form',
+        children: [{
+            path: 'form/:processDefinitionId',
+            name: '请假流程',
+            meta: {
+                i18n: 'work'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
+        }, {
+            path: 'handle/:taskId/:processInstanceId/:businessId',
+            name: '处理请假流程',
+            meta: {
+                i18n: 'work'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
+        }, {
+            path: 'detail/:processInstanceId/:businessId',
+            name: '请假流程详情',
+            meta: {
+                i18n: 'work'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
+        }]
+    },
+    {
+        path: '/realTimePolice',
+        component: Layout,
+        redirect: '/realTimePolice/index',
+        children: [{
+            path: 'index',
+            name: '警情派发',
+            meta: {
+                i18n: 'real'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/realTimePolice/real')
+        }]
+    },
+    {
+        path: '/home',
+        component: Layout,
+        redirect: '/home/index',
+        children: [{
+            path: 'index',
+            name: '研判洞察',
+            meta: {
+                i18n: 'home'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/home/home')
+        }]
+    },
+    {
+        path: '/attendance',
+        component: Layout,
+        redirect: '/attendance/attendance',
+        children: [{
+            path: 'index',
+            name: '考勤管理',
+            meta: {
+                i18n: 'attendance'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/attendance/attendance')
+        }]
+    },
+    {
+        path: '/clientManagement',
+        component: Layout,
+        redirect: '/clientManagement/clientManagement',
+        children: [{
+
+            path: 'index',
+            name: '设备管理',
+            meta: {
+                i18n: 'clientManagement'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/clientManagement/clientManagement')
+        }]
+    },
+    {
+        path: '/suser',
+        component: Layout,
+        redirect: '/suser',
+        children: [{
+            path: 'index',
+            name: '业主管理',
+            meta: {
+                i18n: 'suser'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/system/cs')
+        }]
     }, {
-        path: 'handle/:taskId/:processInstanceId/:businessId',
-        name: '处理请假流程',
-        meta: {
-            i18n: 'work'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
+        path: '/policeTracking',
+        component: Layout,
+        redirect: '/policeTracking/track',
+        children: [{
+            path: 'track',
+            name: '警情追踪',
+            meta: {
+                i18n: 'track'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/policeTracking/policeTracking')
+        }]
     }, {
-        path: 'detail/:processInstanceId/:businessId',
-        name: '请假流程详情',
-        meta: {
-            i18n: 'work'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
-    }]
-},
-{
-    path: '/realTimePolice',
-    component: Layout,
-    redirect: '/realTimePolice/index',
-    children: [{
-        path: 'index',
-        name: '警情派发',
-        meta: {
-            i18n: 'real'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/realTimePolice/real')
-    }]
-},
-{
-    path: '/home',
-    component: Layout,
-    redirect: '/home/index',
-    children: [{
-        path: 'index',
-        name: '研判洞察',
-        meta: {
-            i18n: 'home'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/home/home')
-    }]
-},
-{
-    path: '/attendance',
-    component: Layout,
-    redirect: '/attendance/attendance',
-    children: [{
-        path: 'index',
-        name: '考勤管理',
-        meta: {
-            i18n: 'attendance'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/attendance/attendance')
-    }]
-},
-{
-    path: '/clientManagement',
-    component: Layout,
-    redirect: '/clientManagement/clientManagement',
-    children: [{
-
-        path: 'index',
-        name: '设备管理',
-        meta: {
-            i18n: 'clientManagement'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/clientManagement/clientManagement')
-    }]
-},
-{
-    path: '/suser',
-    component: Layout,
-    redirect: '/suser',
-    children: [{
-        path: 'index',
-        name: '业主管理',
-        meta: {
-            i18n: 'suser'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/system/cs')
-    }]
-}, {
-    path: '/policeTracking',
-    component: Layout,
-    redirect: '/policeTracking/track',
-    children: [{
-        path: 'track',
-        name: '警情追踪',
-        meta: {
-            i18n: 'track'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/policeTracking/policeTracking')
-    }]
-}, {
-    path: '/healthcode',
-    component: Layout,
-    redirect: '/healthcode/healthcodePage',
-    children: [{
-        path: 'healthcodePage',
-        name: '健康码',
-        meta: {
-            i18n: 'healthcode'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/healthcode/healthcode')
-    }]
-}, {
-    path: '/animalHeat',
-    component: Layout,
-    redirect: '/animalHeat/animalHeatPage',
-    children: [{
-        path: 'animalHeatPage',
-        name: '体温检测',
-        meta: {
-            i18n: 'animalHeat'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/animalHeat/animalHeat')
-    }]
-}, {
-    path: '/alarm',
-    component: Layout,
-    redirect: '/alarm/alarmPage',
-    children: [{
-        path: 'alarmPage',
-        name: '实时警情',
-        meta: {
-            i18n: 'alarm'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/alarm/alarm')
-    }]
-}, {
-    path: '/parcel',
-    component: Layout,
-    redirect: '/parcel/index',
-    children: [{
-        path: 'index',
-        name: '安检包裹',
-        meta: {
-            i18n: 'parcel'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/parcel/parcel')
-    }]
-}, {
-    path: '/parcelKind',
-    component: Layout,
-    redirect: '/parcelKind/index',
-    children: [{
-        path: 'index',
-        name: '违禁品',
-        meta: {
-            i18n: 'parcelKind'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/parcel/parcelKind')
-    }]
-}, {
-    path: '/dataL',
-    component: Layout,
-    redirect: '/dataL/dataL',
-    children: [{
-        path: 'dataL',
-        name: '详情页',
-        meta: {
-            i18n: 'dataL'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/dataL/dataL')
-    }]
-},{//路由占位
-    path: '/dataL',
-    redirect: '/dataL/hFive',
-    component: Layout,
-    children: [{
-        path: 'hFive',
-        name: '提交激活路口',
-        meta: {
-            i18n: 'dataL'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/dataL/hFive')
-    }]
-},
-{
-    path: '/patrolManagement',
-    redirect: '/policeInformationDistribution/patrolManagement',
-    component: Layout,
-    children: [{
-        path: 'patrolManagement',
-        name: '巡逻管理',
-        meta: {
-            i18n: 'policeInformationDistribution'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/policeInformationDistribution/patrolManagement')
-    }]
-},{
-    path: '/policeInformationDistribution',
-    redirect: '/policeInformationDistribution/policeManagementTeam',
-    component: Layout,
-    children: [{
-        path: 'policeManagementTeam',
-        name: '处警队伍管理',
-        meta: {
-            i18n: 'policeInformationDistribution'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/policeInformationDistribution/policeManagementTeam')
-    }]
-},{
-    path: '/report',
-    redirect: '/report/reportConfiguration',
-    component: Layout,
-    children: [{
-        path: 'reportConfiguration',
-        name: '报表配置',
-        meta: {
-            i18n: 'report'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/report/reportConfiguration')
-    }]
-},{
-    path: '/report',
-    redirect: '/report/announcementReport',
-    component: Layout,
-    children: [{
-        path: 'announcementReport',
-        name: '公告报表',
-        meta: {
-            i18n: 'report'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/views/report/announcementReport')
-    }]
-},
-{
-    path: '/real-popup',
-    redirect: '/real-popup/kongbai',
-    component: Layout,
-    children: [{
-        path: 'kongbai',
-        name: '首页',
-        meta: {
-            i18n: 'report'
-        },
-        component: () =>
-            import( /* webpackChunkName: "views" */ '@/components/real-popup/kongbai')
-    }]
-},
+        path: '/healthcode',
+        component: Layout,
+        redirect: '/healthcode/healthcodePage',
+        children: [{
+            path: 'healthcodePage',
+            name: '健康码',
+            meta: {
+                i18n: 'healthcode'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/healthcode/healthcode')
+        }]
+    }, {
+        path: '/animalHeat',
+        component: Layout,
+        redirect: '/animalHeat/animalHeatPage',
+        children: [{
+            path: 'animalHeatPage',
+            name: '体温检测',
+            meta: {
+                i18n: 'animalHeat'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/animalHeat/animalHeat')
+        }]
+    }, {
+        path: '/article',
+        component: Layout,
+        redirect: '/article/article',
+        children: [{
+            path: 'article',
+            name: '资讯管理',
+            meta: {
+                i18n: 'article'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/article/article')
+        }]
+    }, {
+        path: '/alarm',
+        component: Layout,
+        redirect: '/alarm/alarmPage',
+        children: [{
+            path: 'alarmPage',
+            name: '实时警情',
+            meta: {
+                i18n: 'alarm'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/alarm/alarm')
+        }]
+    }, {
+        path: '/parcel',
+        component: Layout,
+        redirect: '/parcel/index',
+        children: [{
+            path: 'index',
+            name: '安检包裹',
+            meta: {
+                i18n: 'parcel'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/parcel/parcel')
+        }]
+    }, {
+        path: '/parcelKind',
+        component: Layout,
+        redirect: '/parcelKind/index',
+        children: [{
+            path: 'index',
+            name: '违禁品',
+            meta: {
+                i18n: 'parcelKind'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/parcel/parcelKind')
+        }]
+    }, {
+        path: '/dataL',
+        component: Layout,
+        redirect: '/dataL/dataL',
+        children: [{
+            path: 'dataL',
+            name: '详情页',
+            meta: {
+                i18n: 'dataL'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/dataL/dataL')
+        }]
+    }, { //路由占位
+        path: '/dataL',
+        redirect: '/dataL/hFive',
+        component: Layout,
+        children: [{
+            path: 'hFive',
+            name: '提交激活路口',
+            meta: {
+                i18n: 'dataL'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/dataL/hFive')
+        }]
+    },
+    {
+        path: '/patrolManagement',
+        redirect: '/policeInformationDistribution/patrolManagement',
+        component: Layout,
+        children: [{
+            path: 'patrolManagement',
+            name: '巡逻管理',
+            meta: {
+                i18n: 'policeInformationDistribution'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/policeInformationDistribution/patrolManagement')
+        }]
+    }, {
+        path: '/policeInformationDistribution',
+        redirect: '/policeInformationDistribution/policeManagementTeam',
+        component: Layout,
+        children: [{
+            path: 'policeManagementTeam',
+            name: '处警队伍管理',
+            meta: {
+                i18n: 'policeInformationDistribution'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/policeInformationDistribution/policeManagementTeam')
+        }]
+    }, {
+        path: '/report',
+        redirect: '/report/reportConfiguration',
+        component: Layout,
+        children: [{
+            path: 'reportConfiguration',
+            name: '报表配置',
+            meta: {
+                i18n: 'report'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/report/reportConfiguration')
+        }]
+    }, {
+        path: '/report',
+        redirect: '/report/announcementReport',
+        component: Layout,
+        children: [{
+            path: 'announcementReport',
+            name: '公告报表',
+            meta: {
+                i18n: 'report'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/report/announcementReport')
+        }]
+    },
+    {
+        path: '/real-popup',
+        redirect: '/real-popup/kongbai',
+        component: Layout,
+        children: [{
+            path: 'kongbai',
+            name: '首页',
+            meta: {
+                i18n: 'report'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/components/real-popup/kongbai')
+        }]
+    },
 
 
 
 
-]
+]
\ No newline at end of file
diff --git a/src/views/article/article.vue b/src/views/article/article.vue
new file mode 100644
index 0000000..b4f02c7
--- /dev/null
+++ b/src/views/article/article.vue
@@ -0,0 +1,298 @@
+<template>
+  <basic-container>
+    <avue-crud :option="option"
+               :table-loading="loading"
+               :data="data"
+               :page.sync="page"
+               ref="crud"
+               @row-del="rowDel"
+               v-model="form"
+               :permission="permissionList"
+               @row-update="rowUpdate"
+               @row-save="rowSave"
+               :before-open="beforeOpen"
+               @search-change="searchChange"
+               @search-reset="searchReset"
+               @selection-change="selectionChange"
+               @current-change="currentChange"
+               @size-change="sizeChange"
+               @refresh-change="refreshChange"
+               @on-load="onLoad">
+      <template slot="menuLeft">
+        <el-button type="danger"
+                   size="small"
+                   icon="el-icon-delete"
+                   plain
+                   v-if="permission.article_delete"
+                   @click="handleDelete">删 除
+        </el-button>
+      </template>
+    </avue-crud>
+  </basic-container>
+</template>
+
+<script>
+  import {getList, remove, update, add, getNotice} from "@/api/article/article";
+  import {mapGetters} from "vuex";
+
+  export default {
+    data() {
+      return {
+        form: {},
+        query: {},
+        loading: true,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0
+        },
+        datetime:"",
+        selectionList: [],
+        option: {
+          height: 'auto',
+          calcHeight: 54,
+          dialogWidth: 950,
+          tip: false,
+          searchShow: true,
+          searchMenuSpan: 6,
+          border: false,
+          stripe:true,
+          index: true,
+          viewBtn: true,
+          selection: true,
+          excelBtn: true,
+          dialogClickModal: false,
+          column: [
+            {
+              label: "资讯标题",
+              prop: "title",
+              span: 24,
+              row: true,
+              search: true,
+              rules: [{
+                required: true,
+                message: "请输入资讯标题",
+                trigger: "blur"
+              }]
+            },
+            {
+            label: "资讯封面",
+            prop: "url",
+            type: 'upload',
+            listType: 'picture-img',
+            action: '/api/blade-resource/oss/endpoint/put-file',
+            propsHttp: {
+              res: 'data',
+              url: 'link',
+            },
+            // hide: true,
+            span: 24,
+          },
+            {
+              label: "资讯来源",
+              prop: "sourceName",
+              search: true,
+              rules: [{
+                required: true,
+                message: "请输入资讯类型",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "发布时间",
+              prop: "datetime",
+              type: "datetime",
+              format: "yyyy-MM-dd hh:mm:ss",
+              valueFormat: "yyyy-MM-dd hh:mm:ss",
+              searchRange:true,
+              hide: true,
+              addDisplay: false,
+              editDisplay: false,
+              viewDisplay: false,
+              search: true,
+              rules: [{
+                required: true,
+                message: "请选择发布时间",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "发布时间",
+              prop: "createTime",
+              addDisplay: false,
+              editDisplay: false,
+              viewDisplay: false,
+              type: "date",
+              format: "yyyy-MM-dd hh:mm:ss",
+              valueFormat: "yyyy-MM-dd hh:mm:ss"
+            },
+            {
+              label: "资讯内容",
+              prop: "content",
+              component: 'AvueUeditor',
+              options: {
+                action: '/api/blade-resource/oss/endpoint/put-file',
+                // customConfig: {
+                //   lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3']
+                // },//wangEditor编辑的配置
+                props: {
+                  res: "data",
+                  url: "link",
+                }
+              },
+              hide: true,
+              minRows: 6,
+              span: 24,
+            }
+          ]
+        },
+        data: []
+      };
+    },
+    computed: {
+      ...mapGetters(["permission"]),
+      permissionList() {
+        return {
+          addBtn: this.vaildData(this.permission.article_add, true),
+          viewBtn: this.vaildData(this.permission.article_view, true),
+          delBtn: this.vaildData(this.permission.article_delete, true),
+          editBtn: this.vaildData(this.permission.article_edit, true)
+        };
+      },
+      ids() {
+        let ids = [];
+        this.selectionList.forEach(ele => {
+          ids.push(ele.id);
+        });
+        return ids.join(",");
+      }
+    },
+    methods: {
+      rowSave(row, done, loading) {
+        add(row).then(() => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        }, error => {
+          window.console.log(error);
+          loading();
+        });
+      },
+      rowUpdate(row, index, done, loading) {
+        update(row).then(() => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        }, error => {
+          window.console.log(error);
+          loading();
+        });
+      },
+      rowDel(row) {
+        this.$confirm("确定将选择数据删除?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        })
+          .then(() => {
+            return remove(row.id);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+          });
+      },
+      searchReset() {
+        this.query = {};
+        this.onLoad(this.page);
+      },
+      searchChange(params, done) {
+        this.query = params;
+        this.page.currentPage = 1;
+        this.onLoad(this.page, params);
+        done();
+      },
+      selectionChange(list) {
+        this.selectionList = list;
+      },
+      selectionClear() {
+        this.selectionList = [];
+        this.$refs.crud.toggleSelection();
+      },
+      handleDelete() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据删除?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        })
+          .then(() => {
+            return remove(this.ids);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      },
+      beforeOpen(done, type) {
+        if (["edit", "view"].includes(type)) {
+          getNotice(this.form.id).then(res => {
+            this.form = res.data.data;
+          });
+        }
+        done();
+      },
+      currentChange(currentPage) {
+        this.page.currentPage = currentPage;
+      },
+      sizeChange(pageSize) {
+        this.page.pageSize = pageSize;
+      },
+      refreshChange() {
+        this.onLoad(this.page, this.query);
+      },
+      onLoad(page, params = {}) {
+        const {datetime} = this.query;
+        let values = {
+          ...params,
+        };
+        if (datetime) {
+          values = {
+            ...params,
+            startTime: datetime[0],
+            endTime: datetime[1],
+            ...this.query
+          };
+          values.datetime = null;
+        }
+        this.loading = true;
+        getList(page.currentPage, page.pageSize, values).then(res => {
+          const data = res.data.data;
+          this.page.total = data.total;
+          this.data = data.records;
+          this.loading = false;
+          this.selectionClear();
+        });
+      }
+    }
+  };
+</script>
+
+<style>
+</style>

--
Gitblit v1.9.3