From e80260c24ef4e6e22a090a7296246e2b62d456dd Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 22 Dec 2022 11:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=B3=BB=E7=BB=9F=E7=AE=A1?= =?UTF-8?q?=E7=90=86api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/config.js | 9 ++++++--- src/api/system/dept.js | 7 +++++-- src/api/system/dict/data.js | 9 ++++++--- src/api/system/dict/type.js | 11 +++++++---- src/api/system/notice.js | 9 ++++++--- src/api/system/post.js | 9 ++++++--- src/views/system/config/index.vue | 3 +-- src/views/system/dept/index.vue | 3 +-- src/views/system/dict/data.vue | 1 - src/views/system/dict/index.vue | 1 - src/views/system/notice/index.vue | 1 - src/views/system/post/index.vue | 3 +-- 12 files changed, 39 insertions(+), 27 deletions(-) diff --git a/src/api/system/config.js b/src/api/system/config.js index 7858c69..64f6750 100644 --- a/src/api/system/config.js +++ b/src/api/system/config.js @@ -12,7 +12,7 @@ export function listConfig(query) { // 查询参数详细 export function getConfig(configId) { return request({ - url: '/system/config/' + configId, + url: '/system/config?configId=' + configId, method: 'get' }) } @@ -46,8 +46,11 @@ export function updateConfig(data) { // 删除参数配置 export function delConfig(configId) { return request({ - url: '/system/config/' + configId, - method: 'delete' + url: '/system/config', + method: 'delete', + data: { + ids: configId + } }) } diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 9ca6966..e1e3e98 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -46,7 +46,10 @@ export function updateDept(data) { // 删除部门 export function delDept(deptId) { return request({ - url: '/system/dept/' + deptId, - method: 'delete' + url: '/system/dept', + method: 'delete', + data: { + id: deptId + } }) } \ No newline at end of file diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js index 2a6e481..b18f222 100644 --- a/src/api/system/dict/data.js +++ b/src/api/system/dict/data.js @@ -12,7 +12,7 @@ export function listData(query) { // 查询字典数据详细 export function getData(dictCode) { return request({ - url: '/system/dict/data/' + dictCode, + url: '/system/dict/data?dictCode=' + dictCode, method: 'get' }) } @@ -46,7 +46,10 @@ export function updateData(data) { // 删除字典数据 export function delData(dictCode) { return request({ - url: '/system/dict/data/' + dictCode, - method: 'delete' + url: '/system/dict/data', + method: 'delete', + data: { + ids: dictCode + } }) } diff --git a/src/api/system/dict/type.js b/src/api/system/dict/type.js index d89dbd1..9c53be1 100644 --- a/src/api/system/dict/type.js +++ b/src/api/system/dict/type.js @@ -12,7 +12,7 @@ export function listType(query) { // 查询字典类型详细 export function getType(dictId) { return request({ - url: '/system/dict/type/' + dictId, + url: '/system/dict/type?dictId=' + dictId, method: 'get' }) } @@ -38,8 +38,11 @@ export function updateType(data) { // 删除字典类型 export function delType(dictId) { return request({ - url: '/system/dict/type/' + dictId, - method: 'delete' + url: '/system/dict/type', + method: 'delete', + data: { + ids: dictId + } }) } @@ -54,7 +57,7 @@ export function refreshCache() { // 获取字典选择框列表 export function optionselect() { return request({ - url: '/system/dict/type/optionselect', + url: '/system/dict/type/optionSelect', method: 'get' }) } diff --git a/src/api/system/notice.js b/src/api/system/notice.js index 737fc16..72a83d9 100644 --- a/src/api/system/notice.js +++ b/src/api/system/notice.js @@ -12,7 +12,7 @@ export function listNotice(query) { // 查询公告详细 export function getNotice(noticeId) { return request({ - url: '/system/notice/' + noticeId, + url: '/system/notice?noticeId=' + noticeId, method: 'get' }) } @@ -38,7 +38,10 @@ export function updateNotice(data) { // 删除公告 export function delNotice(noticeId) { return request({ - url: '/system/notice/' + noticeId, - method: 'delete' + url: '/system/notice', + method: 'delete', + data:{ + ids: noticeId + } }) } \ No newline at end of file diff --git a/src/api/system/post.js b/src/api/system/post.js index 8faa266..ae7af25 100644 --- a/src/api/system/post.js +++ b/src/api/system/post.js @@ -12,7 +12,7 @@ export function listPost(query) { // 查询岗位详细 export function getPost(postId) { return request({ - url: '/system/post/' + postId, + url: '/system/post?postId=' + postId, method: 'get' }) } @@ -38,7 +38,10 @@ export function updatePost(data) { // 删除岗位 export function delPost(postId) { return request({ - url: '/system/post/' + postId, - method: 'delete' + url: '/system/post', + method: 'delete', + data: { + ids: postId + } }) } diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index 064b36a..b07ffed 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -116,7 +116,6 @@ @@ -292,7 +291,7 @@ function handleDelete(row) { function handleExport() { proxy.download("system/config/export", { ...queryParams.value - }, `config_${new Date().getTime()}.xlsx`); + }, `参数配置_${new Date().getTime()}.xlsx`); } /** 刷新缓存按钮操作 */ function handleRefreshCache() { diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index af51c50..93be0f1 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -71,7 +71,7 @@ @@ -163,7 +163,6 @@ const data = reactive({ status: undefined }, rules: { - parentId: [{ required: true, message: "上级部门不能为空", trigger: "blur" }], deptName: [{ required: true, message: "部门名称不能为空", trigger: "blur" }], orderNum: [{ required: true, message: "显示排序不能为空", trigger: "blur" }], email: [{ type: "email", message: "请输入正确的邮箱地址", trigger: ["blur", "change"] }], diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue index 6960f2e..573e729 100644 --- a/src/views/system/dict/data.vue +++ b/src/views/system/dict/data.vue @@ -111,7 +111,6 @@ diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 33fa3c9..70bbfce 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -126,7 +126,6 @@ diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index 35e15c1..baf10e4 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -96,7 +96,6 @@ diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index aee6034..103d61b 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -96,7 +96,6 @@ @@ -270,7 +269,7 @@ function handleDelete(row) { function handleExport() { proxy.download("system/post/export", { ...queryParams.value - }, `post_${new Date().getTime()}.xlsx`); + }, `岗位_${new Date().getTime()}.xlsx`); } getList();