diff --git a/src/api/config.js b/src/api/config.js new file mode 100644 index 0000000..9d8eaf3 --- /dev/null +++ b/src/api/config.js @@ -0,0 +1,35 @@ +import request from '@/utils/request' + +export function index(params) { + return request({ + method: 'get', + url: '/api/oa/config/index', + params + }) +} + +export function show(params) { + return request({ + method: 'get', + url: '/api/oa/config/show', + params + }) +} + +export function save(data, isLoading = true) { + return request({ + method: 'post', + url: '/api/oa/config/save', + data, + isLoading + }) +} + +export function destroy(params, isLoading = true) { + return request({ + method: 'get', + url: '/api/oa/config/destroy', + params, + isLoading + }) +} diff --git a/src/icons/svg/caidan.svg b/src/icons/svg/caidan.svg index ad10470..69bbaf4 100644 --- a/src/icons/svg/caidan.svg +++ b/src/icons/svg/caidan.svg @@ -1 +1 @@ - + diff --git a/src/icons/svg/notice.svg b/src/icons/svg/notice.svg index b7b2780..010a8a3 100644 --- a/src/icons/svg/notice.svg +++ b/src/icons/svg/notice.svg @@ -1 +1 @@ - + diff --git a/src/icons/svg/wengao.svg b/src/icons/svg/wengao.svg new file mode 100644 index 0000000..bb33dc6 --- /dev/null +++ b/src/icons/svg/wengao.svg @@ -0,0 +1 @@ + diff --git a/src/utils/auth.js b/src/utils/auth.js index 668f1bc..36fc58f 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -1,6 +1,6 @@ import Cookies from 'js-cookie' -const TokenKey = 'schj_admin_token' +const TokenKey = 'czhj_admin_token' export function getToken() { return Cookies.get(TokenKey) diff --git a/src/views/BeOnDuty/index.vue b/src/views/BeOnDuty/index.vue index bc7dfbb..0fbfd4d 100644 --- a/src/views/BeOnDuty/index.vue +++ b/src/views/BeOnDuty/index.vue @@ -26,7 +26,7 @@ - + - + + + + + diff --git a/src/views/config/index.vue b/src/views/config/index.vue new file mode 100644 index 0000000..af32cc4 --- /dev/null +++ b/src/views/config/index.vue @@ -0,0 +1,194 @@ + + + + + diff --git a/src/views/system/DashboardComponents/department.vue b/src/views/system/DashboardComponents/department.vue index 2e44dd3..f10409d 100644 --- a/src/views/system/DashboardComponents/department.vue +++ b/src/views/system/DashboardComponents/department.vue @@ -1,7 +1,7 @@