diff --git a/src/api/operation/dynamic/index.js b/src/api/operation/dynamic/index.js
new file mode 100644
index 0000000..5e72389
--- /dev/null
+++ b/src/api/operation/dynamic/index.js
@@ -0,0 +1,10 @@
+import httpService from "@/request"
+
+// 任务列表
+export function dynamicList(params) {
+ return httpService({
+ url: `/user/dynamic/list`,
+ method: 'get',
+ params: params,
+ })
+}
diff --git a/src/components/searchForm/index.vue b/src/components/searchForm/index.vue
new file mode 100644
index 0000000..861fc71
--- /dev/null
+++ b/src/components/searchForm/index.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index dd8840a..da42045 100644
--- a/src/main.js
+++ b/src/main.js
@@ -23,11 +23,13 @@ Vue.config.productionTip = false
import commonTable from './components/table'
import commonUpload from './components/upload/index.vue'
import allCity from './components/allCity/index.vue'
+import searchForm from './components/searchForm/index.vue'
// 注册组件
Vue.component('commonTable', commonTable)
Vue.component('commonUpload', commonUpload)
Vue.component('allCity', allCity)
+Vue.component('searchForm', searchForm)
new Vue({
render: h => h(App),
diff --git a/src/router/index.js b/src/router/index.js
index abc316f..e114a7e 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -61,7 +61,7 @@ const router = [
name: "operation",
title: "运营管理",
component: Layout,
- redirect: '/',
+ redirect: '/taskManage',
meta: {title: '运营管理'},
children: [
...operation,
diff --git a/src/router/operation.js b/src/router/operation.js
index d05f2c6..67f8eec 100644
--- a/src/router/operation.js
+++ b/src/router/operation.js
@@ -11,7 +11,7 @@ export default [
path: '/TaskManage',
name: "TaskManage",
title: "任务管理",
- icon: 'home',
+ icon: 'form',
hide: false,
component: resolve => require(['@/views/Operation/TaskManage'], resolve),
redirect: '/TaskManage/TaskList',
@@ -35,4 +35,32 @@ export default [
},
]
},
+ {
+ path: '/BBS',
+ name: "BBS",
+ title: "社区管理",
+ icon: 'home',
+ hide: false,
+ component: resolve => require(['@/views/Operation/BBS'], resolve),
+ redirect: '/BBS/Dynamic',
+ meta: {title: '社区管理'},
+ children: [
+ {
+ path: '/BBS/Dynamic',
+ name: "Dynamic",
+ title: "社区动态",
+ hide: false,
+ component: resolve => require(['@/views/Operation/BBS/_dynamic'], resolve),
+ meta: {title: '社区动态'},
+ },
+ {
+ path: '/BBS/Topic',
+ name: "Topic",
+ title: "社区话题",
+ hide: false,
+ component: resolve => require(['@/views/Operation/BBS/_topic'], resolve),
+ meta: {title: '社区话题'},
+ },
+ ]
+ },
]
\ No newline at end of file
diff --git a/src/views/Operation/BBS/_dynamic/depend/config.js b/src/views/Operation/BBS/_dynamic/depend/config.js
new file mode 100644
index 0000000..6b4807b
--- /dev/null
+++ b/src/views/Operation/BBS/_dynamic/depend/config.js
@@ -0,0 +1,88 @@
+export const pagination = {
+ current: 1,
+ total: 0,
+ pageSize: 10,
+ showTotal: (total) => `共 ${total} 条`,
+ showSizeChanger: true,
+ showQuickJumper: true,
+}
+export const columns = [
+ {
+ title: "内容",
+ width: "12%",
+ dataIndex: "content",
+ },
+ {
+ title: "是否可以评论",
+ width: "8%",
+ dataIndex: "isComment",
+ customRender: function (isComment) {
+ switch (isComment) {
+ case 1:
+ return '是'
+ case 0:
+ return '否'
+ }
+ }
+ },
+ {
+ title: "是否公开",
+ width: "4%",
+ dataIndex: "isPublic",
+ customRender: function (isPublic) {
+ switch (isPublic) {
+ case 1:
+ return '是'
+ case 0:
+ return '否'
+ }
+ }
+ },
+ {
+ title: "发布人名称",
+ width: "12%",
+ dataIndex: "createName",
+ },
+ {
+ title: "发布时间",
+ width: "12%",
+ dataIndex: "createDate",
+ },
+ {
+ title: "点赞数量",
+ width: "12%",
+ dataIndex: "likes",
+ },
+ {
+ title: "浏览量",
+ width: "12%",
+ dataIndex: "views",
+ },
+ {
+ title: "是否删除",
+ width: "4%",
+ dataIndex: "isDelete",
+ customRender: function (isDelete) {
+ switch (isDelete) {
+ case 1:
+ return '否'
+ case 0:
+ return '是'
+ }
+ }
+ },
+ {
+ title: "操作",
+ dataIndex: "action",
+ key: "action",
+ width: "200",
+ fixed: "right",
+ scopedSlots: { customRender: "action" },
+ },
+]
+export const options = {
+ isTrue: [
+ { id:1,name:'是'},
+ { id:0,name:'否'},
+ ]
+}
\ No newline at end of file
diff --git a/src/views/Operation/BBS/_dynamic/index.vue b/src/views/Operation/BBS/_dynamic/index.vue
new file mode 100644
index 0000000..02f530c
--- /dev/null
+++ b/src/views/Operation/BBS/_dynamic/index.vue
@@ -0,0 +1,185 @@
+
+
+
社区动态
+
+
+
+
+
+
+
+ 详情
+ 删除
+ 恢复
+
+
+
+
+
+
+ 批量
+
+ {{ item.label }}
+
+
+
+
+ {{ `已选择 ${selectedRowKeys.length} 条` }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/Operation/BBS/_topic/index.vue b/src/views/Operation/BBS/_topic/index.vue
new file mode 100644
index 0000000..e69de29
diff --git a/src/views/Operation/BBS/index.vue b/src/views/Operation/BBS/index.vue
new file mode 100644
index 0000000..b0561c2
--- /dev/null
+++ b/src/views/Operation/BBS/index.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
\ No newline at end of file