diff --git a/src/api/generator/genConfig.js b/src/api/generator/genConfig.js index e15b200f1..020eed69e 100644 --- a/src/api/generator/genConfig.js +++ b/src/api/generator/genConfig.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function get(tableName) { return request({ - url: 'api/genConfig/' + tableName, + url: 'system/api/genConfig/' + tableName, method: 'get' }) } export function update(data) { return request({ - url: 'api/genConfig', + url: 'system/api/genConfig', data, method: 'put' }) diff --git a/src/api/generator/generator.js b/src/api/generator/generator.js index 0c4971870..f1eaab605 100644 --- a/src/api/generator/generator.js +++ b/src/api/generator/generator.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function getAllTable() { return request({ - url: 'api/generator/tables/all', + url: 'system/api/generator/tables/all', method: 'get' }) } export function generator(tableName, type) { return request({ - url: 'api/generator/' + tableName + '/' + type, + url: 'system/api/generator/' + tableName + '/' + type, method: 'post', responseType: type === 2 ? 'blob' : '' }) @@ -17,7 +17,7 @@ export function generator(tableName, type) { export function save(data) { return request({ - url: 'api/generator', + url: 'system/api/generator', data, method: 'put' }) @@ -25,7 +25,7 @@ export function save(data) { export function sync(tables) { return request({ - url: 'api/generator/sync', + url: 'system/api/generator/sync', method: 'post', data: tables }) diff --git a/src/api/login.js b/src/api/login.js index fe257d2a0..c780c3077 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function login(username, password, code, uuid) { return request({ - url: 'auth/login', + url: 'system/auth/login', method: 'post', data: { username, @@ -15,21 +15,21 @@ export function login(username, password, code, uuid) { export function getInfo() { return request({ - url: 'auth/info', + url: 'system/auth/info', method: 'get' }) } export function getCodeImg() { return request({ - url: 'auth/code', + url: 'system/auth/code', method: 'get' }) } export function logout() { return request({ - url: 'auth/logout', + url: 'system/auth/logout', method: 'delete' }) } diff --git a/src/api/mnt/app.js b/src/api/mnt/app.js index 2a270544c..744c83b39 100644 --- a/src/api/mnt/app.js +++ b/src/api/mnt/app.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function add(data) { return request({ - url: 'api/app', + url: 'mng/api/app', method: 'post', data }) @@ -10,7 +10,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/app', + url: 'mng/api/app', method: 'delete', data: ids }) @@ -18,7 +18,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/app', + url: 'mng/api/app', method: 'put', data }) diff --git a/src/api/mnt/connect.js b/src/api/mnt/connect.js index 1bbe90be7..ab35b7c66 100644 --- a/src/api/mnt/connect.js +++ b/src/api/mnt/connect.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function testDbConnect(data) { return request({ - url: 'api/database/testConnect', + url: 'mng/api/database/testConnect', method: 'post', data }) @@ -10,7 +10,7 @@ export function testDbConnect(data) { export function testServerConnect(data) { return request({ - url: 'api/serverDeploy/testConnect', + url: 'mng/api/serverDeploy/testConnect', method: 'post', data }) diff --git a/src/api/mnt/database.js b/src/api/mnt/database.js index 91797fb99..e7a17310c 100644 --- a/src/api/mnt/database.js +++ b/src/api/mnt/database.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function add(data) { return request({ - url: 'api/database', + url: 'mng/api/database', method: 'post', data }) @@ -10,7 +10,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/database', + url: 'mng/api/database', method: 'delete', data: ids }) @@ -18,7 +18,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/database', + url: 'mng/api/database', method: 'put', data }) @@ -26,7 +26,7 @@ export function edit(data) { export function testDbConnection(data) { return request({ - url: 'api/database/testConnect', + url: 'mng/api/database/testConnect', method: 'post', data }) diff --git a/src/api/mnt/deploy.js b/src/api/mnt/deploy.js index c1475ea2a..02d0eeeb9 100644 --- a/src/api/mnt/deploy.js +++ b/src/api/mnt/deploy.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function add(data) { return request({ - url: 'api/deploy', + url: 'mng/api/deploy', method: 'post', data }) @@ -10,7 +10,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/deploy', + url: 'mng/api/deploy', method: 'delete', data: ids }) @@ -18,7 +18,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/deploy', + url: 'mng/api/deploy', method: 'put', data }) @@ -26,14 +26,14 @@ export function edit(data) { export function getApps() { return request({ - url: 'api/app', + url: 'mng/api/app', method: 'get' }) } export function getServers() { return request({ - url: 'api/serverDeploy', + url: 'mng/api/serverDeploy', method: 'get' }) } @@ -44,7 +44,7 @@ export function getServers() { */ export function startServer(data) { return request({ - url: 'api/deploy/startServer', + url: 'mng/api/deploy/startServer', method: 'post', data }) @@ -56,7 +56,7 @@ export function startServer(data) { */ export function stopServer(data) { return request({ - url: 'api/deploy/stopServer', + url: 'mng/api/deploy/stopServer', method: 'post', data }) @@ -68,7 +68,7 @@ export function stopServer(data) { */ export function serverStatus(data) { return request({ - url: 'api/deploy/serverStatus', + url: 'mng/api/deploy/serverStatus', method: 'post', data }) diff --git a/src/api/mnt/deployHistory.js b/src/api/mnt/deployHistory.js index 30335e4ed..4bd94b5ae 100644 --- a/src/api/mnt/deployHistory.js +++ b/src/api/mnt/deployHistory.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function del(ids) { return request({ - url: 'api/deployHistory', + url: 'mng/api/deployHistory', method: 'delete', data: ids }) @@ -14,7 +14,7 @@ export function del(ids) { */ export function reducte(data) { return request({ - url: 'api/deploy/serverReduction', + url: 'mng/api/deploy/serverReduction', method: 'post', data }) diff --git a/src/api/mnt/serverDeploy.js b/src/api/mnt/serverDeploy.js index e7961140e..7ab02bc58 100644 --- a/src/api/mnt/serverDeploy.js +++ b/src/api/mnt/serverDeploy.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function add(data) { return request({ - url: 'api/serverDeploy', + url: 'mng/api/serverDeploy', method: 'post', data }) @@ -10,7 +10,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/serverDeploy', + url: 'mng/api/serverDeploy', method: 'delete', data: ids }) @@ -18,7 +18,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/serverDeploy', + url: 'mng/api/serverDeploy', method: 'put', data }) diff --git a/src/api/monitor/log.js b/src/api/monitor/log.js index 13f0d39e6..e152a89e6 100644 --- a/src/api/monitor/log.js +++ b/src/api/monitor/log.js @@ -2,21 +2,21 @@ import request from '@/utils/request' export function getErrDetail(id) { return request({ - url: 'api/logs/error/' + id, + url: 'system/api/logs/error/' + id, method: 'get' }) } export function delAllError() { return request({ - url: 'api/logs/del/error', + url: 'system/api/logs/del/error', method: 'delete' }) } export function delAllInfo() { return request({ - url: 'api/logs/del/info', + url: 'system/api/logs/del/info', method: 'delete' }) } diff --git a/src/api/monitor/online.js b/src/api/monitor/online.js index 057275b1b..6e0de9fb8 100644 --- a/src/api/monitor/online.js +++ b/src/api/monitor/online.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function del(keys) { return request({ - url: 'auth/online', + url: 'system/auth/online', method: 'delete', data: keys }) diff --git a/src/api/system/code.js b/src/api/system/code.js index 0d2e4c276..6cd0691c9 100644 --- a/src/api/system/code.js +++ b/src/api/system/code.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function resetEmail(data) { return request({ - url: 'api/code/resetEmail?email=' + data, + url: 'system/api/code/resetEmail?email=' + data, method: 'post' }) } export function updatePass(pass) { return request({ - url: 'api/users/updatePass/' + pass, + url: 'system/api/users/updatePass/' + pass, method: 'get' }) } diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 8f920d0ea..fc374f062 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getDepts(params) { return request({ - url: 'api/dept', + url: 'system/api/dept', method: 'get', params }) @@ -12,7 +12,7 @@ export function getDeptSuperior(ids, exclude) { exclude = exclude !== undefined ? exclude : false const data = ids.length || ids.length === 0 ? ids : Array.of(ids) return request({ - url: 'api/dept/superior?exclude=' + exclude, + url: 'system/api/dept/superior?exclude=' + exclude, method: 'post', data }) @@ -20,7 +20,7 @@ export function getDeptSuperior(ids, exclude) { export function add(data) { return request({ - url: 'api/dept', + url: 'system/api/dept', method: 'post', data }) @@ -28,7 +28,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/dept', + url: 'system/api/dept', method: 'delete', data: ids }) @@ -36,7 +36,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/dept', + url: 'system/api/dept', method: 'put', data }) diff --git a/src/api/system/dict.js b/src/api/system/dict.js index 99170f7d6..d7617b8a0 100644 --- a/src/api/system/dict.js +++ b/src/api/system/dict.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function getDicts() { return request({ - url: 'api/dict/all', + url: 'system/api/dict/all', method: 'get' }) } export function add(data) { return request({ - url: 'api/dict', + url: 'system/api/dict', method: 'post', data }) @@ -17,7 +17,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/dict/', + url: 'system/api/dict/', method: 'delete', data: ids }) @@ -25,7 +25,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/dict', + url: 'system/api/dict', method: 'put', data }) diff --git a/src/api/system/dictDetail.js b/src/api/system/dictDetail.js index e8dc51204..1c1ed0039 100644 --- a/src/api/system/dictDetail.js +++ b/src/api/system/dictDetail.js @@ -7,7 +7,7 @@ export function get(dictName) { size: 9999 } return request({ - url: 'api/dictDetail', + url: 'system/api/dictDetail', method: 'get', params }) @@ -20,7 +20,7 @@ export function getDictMap(dictName) { size: 9999 } return request({ - url: 'api/dictDetail/map', + url: 'system/api/dictDetail/map', method: 'get', params }) @@ -28,7 +28,7 @@ export function getDictMap(dictName) { export function add(data) { return request({ - url: 'api/dictDetail', + url: 'system/api/dictDetail', method: 'post', data }) @@ -36,14 +36,14 @@ export function add(data) { export function del(id) { return request({ - url: 'api/dictDetail/' + id, + url: 'system/api/dictDetail/' + id, method: 'delete' }) } export function edit(data) { return request({ - url: 'api/dictDetail', + url: 'system/api/dictDetail', method: 'put', data }) diff --git a/src/api/system/job.js b/src/api/system/job.js index a00630ee2..78ffd7b88 100644 --- a/src/api/system/job.js +++ b/src/api/system/job.js @@ -7,7 +7,7 @@ export function getAllJob() { enabled: true } return request({ - url: 'api/job', + url: 'system/api/job', method: 'get', params }) @@ -15,7 +15,7 @@ export function getAllJob() { export function add(data) { return request({ - url: 'api/job', + url: 'system/api/job', method: 'post', data }) @@ -23,7 +23,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/job', + url: 'system/api/job', method: 'delete', data: ids }) @@ -31,7 +31,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/job', + url: 'system/api/job', method: 'put', data }) diff --git a/src/api/system/menu.js b/src/api/system/menu.js index 282dd8d9e..3d35bf49d 100644 --- a/src/api/system/menu.js +++ b/src/api/system/menu.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function getMenusTree(pid) { return request({ - url: 'api/menus/lazy?pid=' + pid, + url: 'system/api/menus/lazy?pid=' + pid, method: 'get' }) } export function getMenus(params) { return request({ - url: 'api/menus', + url: 'system/api/menus', method: 'get', params }) @@ -18,7 +18,7 @@ export function getMenus(params) { export function getMenuSuperior(ids) { const data = Array.isArray(ids) || ids.length === 0 ? ids : Array.of(ids) return request({ - url: 'api/menus/superior', + url: 'system/api/menus/superior', method: 'post', data }) @@ -26,21 +26,21 @@ export function getMenuSuperior(ids) { export function getChild(id) { return request({ - url: 'api/menus/child?id=' + id, + url: 'system/api/menus/child?id=' + id, method: 'get' }) } export function buildMenus() { return request({ - url: 'api/menus/build', + url: 'system/api/menus/build', method: 'get' }) } export function add(data) { return request({ - url: 'api/menus', + url: 'system/api/menus', method: 'post', data }) @@ -48,7 +48,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/menus', + url: 'system/api/menus', method: 'delete', data: ids }) @@ -56,7 +56,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/menus', + url: 'system/api/menus', method: 'put', data }) diff --git a/src/api/system/role.js b/src/api/system/role.js index 1f7bc1ebf..61df39c02 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -3,14 +3,14 @@ import request from '@/utils/request' // 获取所有的Role export function getAll() { return request({ - url: 'api/roles/all', + url: 'system/api/roles/all', method: 'get' }) } export function add(data) { return request({ - url: 'api/roles', + url: 'system/api/roles', method: 'post', data }) @@ -18,21 +18,21 @@ export function add(data) { export function get(id) { return request({ - url: 'api/roles/' + id, + url: 'system/api/roles/' + id, method: 'get' }) } export function getLevel() { return request({ - url: 'api/roles/level', + url: 'system/api/roles/level', method: 'get' }) } export function del(ids) { return request({ - url: 'api/roles', + url: 'system/api/roles', method: 'delete', data: ids }) @@ -40,7 +40,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/roles', + url: 'system/api/roles', method: 'put', data }) @@ -48,7 +48,7 @@ export function edit(data) { export function editMenu(data) { return request({ - url: 'api/roles/menu', + url: 'system/api/roles/menu', method: 'put', data }) diff --git a/src/api/system/timing.js b/src/api/system/timing.js index 613e15f49..0e004ba0b 100644 --- a/src/api/system/timing.js +++ b/src/api/system/timing.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function add(data) { return request({ - url: 'api/jobs', + url: 'quartz/api/jobs', method: 'post', data }) @@ -10,7 +10,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/jobs', + url: 'quartz/api/jobs', method: 'delete', data: ids }) @@ -18,7 +18,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/jobs', + url: 'quartz/api/jobs', method: 'put', data }) @@ -26,14 +26,14 @@ export function edit(data) { export function updateIsPause(id) { return request({ - url: 'api/jobs/' + id, + url: 'quartz/api/jobs/' + id, method: 'put' }) } export function execution(id) { return request({ - url: 'api/jobs/exec/' + id, + url: 'quartz/api/jobs/exec/' + id, method: 'put' }) } diff --git a/src/api/system/user.js b/src/api/system/user.js index c14df115a..8a0592052 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -3,7 +3,7 @@ import { encrypt } from '@/utils/rsaEncrypt' export function add(data) { return request({ - url: 'api/users', + url: 'system/api/users', method: 'post', data }) @@ -11,7 +11,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/users', + url: 'system/api/users', method: 'delete', data: ids }) @@ -19,7 +19,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/users', + url: 'system/api/users', method: 'put', data }) @@ -27,7 +27,7 @@ export function edit(data) { export function editUser(data) { return request({ - url: 'api/users/center', + url: 'system/api/users/center', method: 'put', data }) @@ -39,7 +39,7 @@ export function updatePass(user) { newPass: encrypt(user.newPass) } return request({ - url: 'api/users/updatePass/', + url: 'system/api/users/updatePass/', method: 'post', data }) @@ -47,7 +47,7 @@ export function updatePass(user) { export function resetPwd(ids) { return request({ - url: 'api/users/resetPwd', + url: 'system/api/users/resetPwd', method: 'put', data: ids }) @@ -59,7 +59,7 @@ export function updateEmail(form) { email: form.email } return request({ - url: 'api/users/updateEmail/' + form.code, + url: 'system/api/users/updateEmail/' + form.code, method: 'post', data }) diff --git a/src/api/tools/alipay.js b/src/api/tools/alipay.js index 54090f5f5..17d9f6cb2 100644 --- a/src/api/tools/alipay.js +++ b/src/api/tools/alipay.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function get() { return request({ - url: 'api/aliPay', + url: 'system/api/aliPay', method: 'get' }) } export function update(data) { return request({ - url: 'api/aliPay', + url: 'system/api/aliPay', data, method: 'put' }) @@ -18,7 +18,7 @@ export function update(data) { // 支付 export function toAliPay(url, data) { return request({ - url: 'api/' + url, + url: 'system/api/' + url, data, method: 'post' }) diff --git a/src/api/tools/email.js b/src/api/tools/email.js index af030cb04..d69546d47 100644 --- a/src/api/tools/email.js +++ b/src/api/tools/email.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function get() { return request({ - url: 'api/email', + url: 'system/api/email', method: 'get' }) } export function update(data) { return request({ - url: 'api/email', + url: 'system/api/email', data, method: 'put' }) @@ -17,7 +17,7 @@ export function update(data) { export function send(data) { return request({ - url: 'api/email', + url: 'system/api/email', data, method: 'post' }) diff --git a/src/api/tools/localStorage.js b/src/api/tools/localStorage.js index 63ebe2b25..4f397aa7b 100644 --- a/src/api/tools/localStorage.js +++ b/src/api/tools/localStorage.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function add(data) { return request({ - url: 'api/localStorage', + url: 'system/api/localStorage', method: 'post', data }) @@ -10,7 +10,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/localStorage/', + url: 'system/api/localStorage/', method: 'delete', data: ids }) @@ -18,7 +18,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/localStorage', + url: 'system/api/localStorage', method: 'put', data }) diff --git a/src/api/tools/qiniu.js b/src/api/tools/qiniu.js index 6d5677101..4f3f599c9 100644 --- a/src/api/tools/qiniu.js +++ b/src/api/tools/qiniu.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function get() { return request({ - url: 'api/qiNiuContent/config', + url: 'system/api/qiNiuContent/config', method: 'get' }) } export function update(data) { return request({ - url: 'api/qiNiuContent/config', + url: 'system/api/qiNiuContent/config', data, method: 'put' }) @@ -17,21 +17,21 @@ export function update(data) { export function download(id) { return request({ - url: 'api/qiNiuContent/download/' + id, + url: 'system/api/qiNiuContent/download/' + id, method: 'get' }) } export function sync() { return request({ - url: 'api/qiNiuContent/synchronize', + url: 'system/api/qiNiuContent/synchronize', method: 'post' }) } export function del(ids) { return request({ - url: 'api/qiNiuContent', + url: 'system/api/qiNiuContent', method: 'delete', data: ids }) diff --git a/src/views/generator/config.vue b/src/views/generator/config.vue index 2690dd51f..34a98788d 100644 --- a/src/views/generator/config.vue +++ b/src/views/generator/config.vue @@ -248,7 +248,7 @@ export default { }, methods: { beforeInit() { - this.url = 'api/generator/columns' + this.url = 'system/api/generator/columns' const tableName = this.tableName this.params = { tableName } return true diff --git a/src/views/generator/index.vue b/src/views/generator/index.vue index 6a07dc463..f430ebf45 100644 --- a/src/views/generator/index.vue +++ b/src/views/generator/index.vue @@ -63,7 +63,7 @@ export default { name: 'GeneratorIndex', components: { pagination, crudOperation, rrOperation }, cruds() { - return CRUD({ url: 'api/generator/tables' }) + return CRUD({ url: 'system/api/generator/tables' }) }, mixins: [presenter(), header()], data() { diff --git a/src/views/mnt/app/index.vue b/src/views/mnt/app/index.vue index ddb8fb8eb..8108acb8e 100644 --- a/src/views/mnt/app/index.vue +++ b/src/views/mnt/app/index.vue @@ -88,7 +88,7 @@ export default { name: 'App', components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker }, cruds() { - return CRUD({ title: '应用', url: 'api/app', crudMethod: { ...crudApp }}) + return CRUD({ title: '应用', url: 'mng/api/app', crudMethod: { ...crudApp }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], data() { diff --git a/src/views/mnt/database/index.vue b/src/views/mnt/database/index.vue index 03d44a6f6..73e2a94cb 100644 --- a/src/views/mnt/database/index.vue +++ b/src/views/mnt/database/index.vue @@ -82,7 +82,7 @@ export default { name: 'DataBase', components: { eForm, pagination, crudOperation, rrOperation, udOperation, DateRangePicker }, cruds() { - return CRUD({ title: '数据库', url: 'api/database', crudMethod: { ...crudDatabase }}) + return CRUD({ title: '数据库', url: 'mng/api/database', crudMethod: { ...crudDatabase }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], data() { diff --git a/src/views/mnt/deploy/index.vue b/src/views/mnt/deploy/index.vue index e2ab8a7e0..cb11101ff 100644 --- a/src/views/mnt/deploy/index.vue +++ b/src/views/mnt/deploy/index.vue @@ -121,7 +121,7 @@ export default { name: 'Deploy', components: { dForm, fForm, pagination, crudOperation, rrOperation, udOperation, DateRangePicker }, cruds() { - return CRUD({ title: '部署', url: 'api/deploy', crudMethod: { ...crudDeploy }}) + return CRUD({ title: '部署', url: 'mng/api/deploy', crudMethod: { ...crudDeploy }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], data() { diff --git a/src/views/mnt/deploy/sysRestore.vue b/src/views/mnt/deploy/sysRestore.vue index e44aed675..22876fad4 100644 --- a/src/views/mnt/deploy/sysRestore.vue +++ b/src/views/mnt/deploy/sysRestore.vue @@ -65,7 +65,7 @@ export default { }, methods: { beforeInit() { - this.url = 'api/deployHistory' + this.url = 'mng/api/deployHistory' this.deployId = this.$parent.deployId if (this.deployId === '') { return false diff --git a/src/views/mnt/deployHistory/index.vue b/src/views/mnt/deployHistory/index.vue index c4f97285e..b008041f2 100644 --- a/src/views/mnt/deployHistory/index.vue +++ b/src/views/mnt/deployHistory/index.vue @@ -52,7 +52,7 @@ export default { name: 'DeployHistory', components: { pagination, crudOperation, rrOperation, DateRangePicker }, cruds() { - return CRUD({ title: '部署历史', url: 'api/deployHistory', crudMethod: { del }}) + return CRUD({ title: '部署历史', url: 'mng/api/deployHistory', crudMethod: { del }}) }, mixins: [presenter(), header()], data() { diff --git a/src/views/mnt/server/index.vue b/src/views/mnt/server/index.vue index 7cb6a958c..4c5938cf8 100644 --- a/src/views/mnt/server/index.vue +++ b/src/views/mnt/server/index.vue @@ -74,7 +74,7 @@ export default { name: 'Server', components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker }, cruds() { - return CRUD({ title: '服务器', url: 'api/serverDeploy', crudMethod: { ...crudServer }}) + return CRUD({ title: '服务器', url: 'mng/api/serverDeploy', crudMethod: { ...crudServer }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], data() { diff --git a/src/views/monitor/log/errorLog.vue b/src/views/monitor/log/errorLog.vue index 034b3fa57..77da405ea 100644 --- a/src/views/monitor/log/errorLog.vue +++ b/src/views/monitor/log/errorLog.vue @@ -61,7 +61,7 @@ export default { name: 'ErrorLog', components: { Search, crudOperation, pagination }, cruds() { - return CRUD({ title: '异常日志', url: 'api/logs/error' }) + return CRUD({ title: '异常日志', url: 'system/api/logs/error' }) }, mixins: [presenter()], data() { diff --git a/src/views/monitor/log/index.vue b/src/views/monitor/log/index.vue index 41a00dc25..bc9528706 100644 --- a/src/views/monitor/log/index.vue +++ b/src/views/monitor/log/index.vue @@ -60,7 +60,7 @@ export default { name: 'Log', components: { Search, crudOperation, pagination }, cruds() { - return CRUD({ title: '日志', url: 'api/logs' }) + return CRUD({ title: '日志', url: 'system/api/logs' }) }, mixins: [presenter()], created() { diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue index 1de17457c..413dac5d2 100644 --- a/src/views/monitor/online/index.vue +++ b/src/views/monitor/online/index.vue @@ -64,7 +64,7 @@ export default { name: 'OnlineUser', components: { pagination, crudOperation, rrOperation }, cruds() { - return CRUD({ url: 'auth/online', title: '在线用户' }) + return CRUD({ url: 'system/auth/online', title: '在线用户' }) }, mixins: [presenter(), header(), crud()], data() { diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue index 920861ea6..fbe1a1018 100644 --- a/src/views/monitor/server/index.vue +++ b/src/views/monitor/server/index.vue @@ -148,7 +148,7 @@ export default { return { show: false, monitor: null, - url: 'api/monitor', + url: 'system/api/monitor', data: {}, cpuInfo: { tooltip: { diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 62ee78f4c..572adeb0b 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -110,7 +110,7 @@ export default { name: 'Dept', components: { Treeselect, crudOperation, rrOperation, udOperation, DateRangePicker }, cruds() { - return CRUD({ title: '部门', url: 'api/dept', crudMethod: { ...crudDept }}) + return CRUD({ title: '部门', url: 'system/api/dept', crudMethod: { ...crudDept }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], // 设置数据字典 diff --git a/src/views/system/dict/dictDetail.vue b/src/views/system/dict/dictDetail.vue index 32756da5d..48eac233a 100644 --- a/src/views/system/dict/dictDetail.vue +++ b/src/views/system/dict/dictDetail.vue @@ -66,7 +66,7 @@ export default { components: { pagination, rrOperation, udOperation }, cruds() { return [ - CRUD({ title: '字典详情', url: 'api/dictDetail', query: { dictName: '' }, sort: ['dictSort,asc', 'id,desc'], + CRUD({ title: '字典详情', url: 'system/api/dictDetail', query: { dictName: '' }, sort: ['dictSort,asc', 'id,desc'], crudMethod: { ...crudDictDetail }, optShow: { add: true, diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index f10202336..647dead5c 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -84,7 +84,7 @@ export default { components: { crudOperation, pagination, rrOperation, udOperation, dictDetail }, cruds() { return [ - CRUD({ title: '字典', url: 'api/dict', crudMethod: { ...crudDict }}) + CRUD({ title: '字典', url: 'system/api/dict', crudMethod: { ...crudDict }}) ] }, mixins: [presenter(), header(), form(defaultForm)], diff --git a/src/views/system/job/index.vue b/src/views/system/job/index.vue index e17ea75bc..3f86f2e60 100644 --- a/src/views/system/job/index.vue +++ b/src/views/system/job/index.vue @@ -62,7 +62,7 @@ export default { cruds() { return CRUD({ title: '岗位', - url: 'api/job', + url: 'system/api/job', sort: ['jobSort,asc', 'id,desc'], crudMethod: { ...crudJob } }) diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index e4800e1d4..4ef91ecd7 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -165,7 +165,7 @@ export default { name: 'Menu', components: { Treeselect, IconSelect, crudOperation, rrOperation, udOperation, DateRangePicker }, cruds() { - return CRUD({ title: '菜单', url: 'api/menus', crudMethod: { ...crudMenu }}) + return CRUD({ title: '菜单', url: 'system/api/menus', crudMethod: { ...crudMenu }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], data() { diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index bea269dbb..d9581b58e 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -135,7 +135,7 @@ export default { name: 'Role', components: { Treeselect, pagination, crudOperation, rrOperation, udOperation, DateRangePicker }, cruds() { - return CRUD({ title: '角色', url: 'api/roles', sort: 'level,asc', crudMethod: { ...crudRoles }}) + return CRUD({ title: '角色', url: 'system/api/roles', sort: 'level,asc', crudMethod: { ...crudRoles }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], data() { diff --git a/src/views/system/timing/index.vue b/src/views/system/timing/index.vue index bb3bf7708..463f01ac9 100644 --- a/src/views/system/timing/index.vue +++ b/src/views/system/timing/index.vue @@ -127,7 +127,7 @@ export default { name: 'Timing', components: { Log, pagination, crudOperation, rrOperation, DateRangePicker }, cruds() { - return CRUD({ title: '定时任务', url: 'api/jobs', crudMethod: { ...crudJob }}) + return CRUD({ title: '定时任务', url: 'quartz/api/jobs', crudMethod: { ...crudJob }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], data() { diff --git a/src/views/system/timing/log.vue b/src/views/system/timing/log.vue index 2c6df9690..c02b91a50 100644 --- a/src/views/system/timing/log.vue +++ b/src/views/system/timing/log.vue @@ -80,7 +80,7 @@ export default { }, // 获取数据前设置好接口地址 beforeInit() { - this.url = 'api/jobs/logs' + this.url = 'quartz/api/jobs/logs' this.size = 6 return true }, diff --git a/src/views/system/user/center.vue b/src/views/system/user/center.vue index 1cc5681bc..56f25d000 100644 --- a/src/views/system/user/center.vue +++ b/src/views/system/user/center.vue @@ -171,7 +171,7 @@ export default { } }, beforeInit() { - this.url = 'api/logs/user' + this.url = 'system/api/logs/user' return true }, cropUploadSuccess(jsonData, field) { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 60233d748..90dabbc4b 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -222,7 +222,7 @@ export default { name: 'User', components: { Treeselect, crudOperation, rrOperation, udOperation, pagination, DateRangePicker }, cruds() { - return CRUD({ title: '用户', url: 'api/users', crudMethod: { ...crudUser }}) + return CRUD({ title: '用户', url: 'system/api/users', crudMethod: { ...crudUser }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], // 数据字典 diff --git a/src/views/tools/storage/local/index.vue b/src/views/tools/storage/local/index.vue index 3adf8a03b..497173b6c 100644 --- a/src/views/tools/storage/local/index.vue +++ b/src/views/tools/storage/local/index.vue @@ -115,7 +115,7 @@ const defaultForm = { id: null, name: '' } export default { components: { pagination, crudOperation, rrOperation, DateRangePicker }, cruds() { - return CRUD({ title: '文件', url: 'api/localStorage', crudMethod: { ...crudFile }}) + return CRUD({ title: '文件', url: 'system/api/localStorage', crudMethod: { ...crudFile }}) }, mixins: [presenter(), header(), form(defaultForm), crud()], data() { diff --git a/src/views/tools/storage/qiniu/index.vue b/src/views/tools/storage/qiniu/index.vue index bdb9c8deb..a654d502b 100644 --- a/src/views/tools/storage/qiniu/index.vue +++ b/src/views/tools/storage/qiniu/index.vue @@ -79,7 +79,7 @@ import DateRangePicker from '@/components/DateRangePicker' export default { components: { eForm, pagination, crudOperation, rrOperation, DateRangePicker }, cruds() { - return CRUD({ title: '七牛云文件', url: 'api/qiNiuContent', crudMethod: { ...crudQiNiu }}) + return CRUD({ title: '七牛云文件', url: 'system/api/qiNiuContent', crudMethod: { ...crudQiNiu }}) }, mixins: [presenter(), header(), crud()], data() { diff --git a/vue.config.js b/vue.config.js index d6a792fb7..001b884d5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -27,18 +27,32 @@ module.exports = { errors: true }, proxy: { - '/api': { + 'mng/api': { target: process.env.VUE_APP_BASE_API, changeOrigin: true, pathRewrite: { - '^/api': 'api' + '^/mng/api': '/mng/api' } }, - '/auth': { + 'quartz/api': { target: process.env.VUE_APP_BASE_API, changeOrigin: true, pathRewrite: { - '^/auth': 'auth' + '^/quartz/api': 'quartz/api' + } + }, + 'system/auth': { + target: process.env.VUE_APP_BASE_API, + changeOrigin: true, + pathRewrite: { + '^/system/auth': 'system/auth' + } + }, + 'system/api': { + target: process.env.VUE_APP_BASE_API, + changeOrigin: true, + pathRewrite: { + '^/system/api': 'system/api' } } }