From 333e431a2af7aef6a9d080c431d4cba35b53d3b1 Mon Sep 17 00:00:00 2001
From: HuskyOo <1145804501@qq.com>
Date: Thu, 2 Jun 2022 11:19:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=9E=E4=BA=8B=E6=8C=87=E5=8D=97=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E9=83=A8=E9=97=A8=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/workBook.js | 20 +++--
src/router/index.js | 36 +++++++++
src/views/serviceGuide/detail.vue | 54 +++++++++++++
src/views/serviceGuide/list.vue | 123 ++++++++++++++++++++++++++++++
4 files changed, 227 insertions(+), 6 deletions(-)
create mode 100644 src/views/serviceGuide/detail.vue
create mode 100644 src/views/serviceGuide/list.vue
diff --git a/src/api/workBook.js b/src/api/workBook.js
index 0966b91..08f30e3 100644
--- a/src/api/workBook.js
+++ b/src/api/workBook.js
@@ -2,8 +2,8 @@ import request from '@/utils/request'
/**
* 工作手册列表
- * @param {Object}} data
- * @returns
+ * @param {Object}} data
+ * @returns
*/
export function workBookList(data) {
return request({
@@ -15,13 +15,21 @@ export function workBookList(data) {
/**
* 工作手册详情
- * @param {String} id
- * @returns
+ * @param {String} id
+ * @returns
*/
export function getWorkBookInfo(id) {
return request({
url: '/api/convenience/workBook/detail',
method: 'get',
- params:id
+ params: id
})
-}
\ No newline at end of file
+}
+
+export function deptList(data) {
+ return request({
+ url: '/api/convenience/dept/list',
+ method: 'post',
+ data
+ })
+}
diff --git a/src/router/index.js b/src/router/index.js
index 71ef299..cf5651f 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -241,6 +241,42 @@ export const constantRoutes = [
}
}
]
+ },
+ {
+ path: '/serviceGuide',
+ component: Layout,
+ name: 'ServiceGuide',
+ redirect: '/serviceGuide/list',
+ meta: {
+ title: '办事指南',
+ icon: 'list'
+ },
+ hidden: false,
+ children: [
+ {
+ path: 'list',
+ component: () => import('@/views/serviceGuide/list'),
+ name: 'ServiceGuideList',
+ meta: {
+ title: '办事指南列表',
+ icon: 'workBook',
+ affix: true,
+ parentTitle: '办事指南'
+ }
+ },
+ {
+ path: 'detail',
+ component: () => import('@/views/serviceGuide/detail'),
+ name: 'serviceGuideDetail',
+ meta: {
+ title: '办事指南详情',
+ icon: 'workBook',
+ affix: true,
+ parentTitle: '办事指南详情'
+ },
+ hidden: true
+ }
+ ]
}
// {
// path: "/staff",
diff --git a/src/views/serviceGuide/detail.vue b/src/views/serviceGuide/detail.vue
new file mode 100644
index 0000000..500ee25
--- /dev/null
+++ b/src/views/serviceGuide/detail.vue
@@ -0,0 +1,54 @@
+
+
+
+
+ {{ info.title }}
+
+
+ {{ info.dept && info.dept.name }}
+
+
+ {{ info.introduction }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/serviceGuide/list.vue b/src/views/serviceGuide/list.vue
new file mode 100644
index 0000000..6a202c6
--- /dev/null
+++ b/src/views/serviceGuide/list.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+