From 06e2c9dbf50c3b922ca2bd7819251b7fa42983dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Tue, 26 Apr 2022 14:01:38 +0800 Subject: [PATCH] up --- src/api/dashboard.js | 17 ++ src/api/system/dictionary.js | 61 ++++++ src/views/system/dictionary.vue | 328 ++++++++++++++++++++++++++++++++ vue.config.js | 2 +- 4 files changed, 407 insertions(+), 1 deletion(-) create mode 100644 src/api/dashboard.js create mode 100644 src/api/system/dictionary.js create mode 100644 src/views/system/dictionary.vue diff --git a/src/api/dashboard.js b/src/api/dashboard.js new file mode 100644 index 0000000..ba8ceea --- /dev/null +++ b/src/api/dashboard.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +export function getCounts() { + return request({ + url: '/api/admin/get-counts', + method: 'get' + }) +} + + +export function getChartsData(params) { + return request({ + url: '/api/admin/get-charts-data', + method: 'get', + params: params + }) +} diff --git a/src/api/system/dictionary.js b/src/api/system/dictionary.js new file mode 100644 index 0000000..5b434e2 --- /dev/null +++ b/src/api/system/dictionary.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +export function save(data) { + return request({ + url: '/api/admin/parameter/save', + method: 'post', + data + }) +} + +export function store(data) { + return request({ + url: '/api/admin/parameter/store', + method: 'post', + data + }) +} +export function getparameter(param) { + return request({ + url: '/api/admin/parameter/show', + method: 'get', + params: param + }) +} + +export function getparameteritem(number) { + + return request({ + url: '/api/admin/parameter/show', + method: 'get', + params: { + number: number + } + }) +} + +export function listparameter(param) { + return request({ + url: '/api/admin/parameter/index', + method: 'get', + params: param + }) +} +export function del(id) { + return request({ + url: '/api/admin/parameter/delete', + method: 'get', + params: { + id + } + }) +} +export function delDetail(id) { + return request({ + url: '/api/admin/parameter/detail-delete', + method: 'get', + params: { + id + } + }) +} diff --git a/src/views/system/dictionary.vue b/src/views/system/dictionary.vue new file mode 100644 index 0000000..f300138 --- /dev/null +++ b/src/views/system/dictionary.vue @@ -0,0 +1,328 @@ + + diff --git a/vue.config.js b/vue.config.js index 0847f39..da718f1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -13,7 +13,7 @@ const name = defaultSettings.title || '朗业初始化项目' // page title // For example, Mac: sudo npm run // You can change the port by the following methods: // port = 9528 npm run dev OR npm run dev --port = 9528 -const port = process.env.port || process.env.npm_config_port || 8082 // dev port +const port = process.env.port || process.env.npm_config_port || 8001 // dev port // All configuration item explanations can be find in https://cli.vuejs.org/config/ module.exports = {