diff --git a/src/api/system/info.js b/src/api/system/info.js index c1bf1ee..09f50df 100644 --- a/src/api/system/info.js +++ b/src/api/system/info.js @@ -10,9 +10,9 @@ export function listInfo(query) { } // 查询企业管理详细 -export function getInfo(enterpriseId) { +export function getInfo(deptId) { return request({ - url: '/system/info/' + enterpriseId, + url: '/system/info/' + deptId, method: 'get' }) } @@ -36,9 +36,9 @@ export function updateInfo(data) { } // 删除企业管理 -export function delInfo(enterpriseId) { +export function delInfo(deptId) { return request({ - url: '/system/info/' + enterpriseId, - method: 'delete' + url: '/system/info/' + deptId, + method: 'post' }) } diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index ce6c777..d73f74d 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -319,6 +319,7 @@ export default { } }); }, + /** 删除按钮操作 */ handleDelete(row) { const dictIds = row.dictId || this.ids; @@ -329,6 +330,8 @@ export default { this.$modal.msgSuccess("删除成功"); }).catch(() => {}); }, + + /** 导出按钮操作 */ handleExport() { this.download('system/dict/type/export', { diff --git a/src/views/system/info/index.vue b/src/views/system/info/index.vue index 3d84d14..08aba10 100644 --- a/src/views/system/info/index.vue +++ b/src/views/system/info/index.vue @@ -24,54 +24,26 @@ + - 新增 + 新增 + + + + 修改 - 修改 + 删除 - 删除 - - - 导出 + 导出 - + @@ -94,29 +66,23 @@ - + - - - - - - - + + - - - - + + +