From cf7544b23230fda56cdd67278ec7b40869a3fcf2 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Thu, 1 Jun 2023 17:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=EF=BC=8C=E5=85=A8=E5=AE=97?= =?UTF-8?q?=EF=BC=8C=E9=83=A8=E9=97=A8=E6=8E=A5=E5=8F=A3=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept.js | 18 +- src/api/system/fonds.js | 7 + src/assets/styles/yxk-admin.scss | 1 + src/components/Crud/crud.js | 2 +- src/views/system/dept/index.vue | 181 +++++++++++++------- src/views/system/groupManage/index.vue | 2 - src/views/system/role/index.vue | 225 +++++++++++++++---------- 7 files changed, 277 insertions(+), 159 deletions(-) diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 2c0bb28..636ce1d 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -1,5 +1,13 @@ import request from '@/utils/request' +export function getDeptsList(params) { + return request({ + url: 'api/depts/initDeptsList', + method: 'get', + params + }) +} + export function getDepts(params) { return request({ url: 'api/depts/initDeptsList', @@ -19,7 +27,7 @@ export function getDeptSuperior(ids) { export function add(data) { return request({ - url: 'api/dept', + url: 'api/depts/editDepts', method: 'post', data }) @@ -27,8 +35,8 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/depts/editDepts', - method: 'delete', + url: 'api/depts/delDepts', + method: 'post', data: ids }) } @@ -36,9 +44,9 @@ export function del(ids) { export function edit(data) { return request({ url: 'api/depts/editDepts', - method: 'put', + method: 'post', data }) } -export default { add, edit, del, getDepts, getDeptSuperior } +export default { add, edit, del, getDepts, getDeptSuperior, getDeptsList } diff --git a/src/api/system/fonds.js b/src/api/system/fonds.js index 659c6d1..2a825a3 100644 --- a/src/api/system/fonds.js +++ b/src/api/system/fonds.js @@ -48,4 +48,11 @@ export function FetchDownload(params) { }) } +export function FetchFondsAll() { + return request({ + url: '/api/fonds/getFondsAll', + method: 'get' + }) +} + export default { add, edit, del, FetchInitFondsList, FetchUpdateFondsStatus, FetchDownload } diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index 23d52a9..085290c 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -427,6 +427,7 @@ } .el-table__body tr.el-table__row:hover>td.el-table__cell, .el-table__body tr.el-table__row:focus>td.el-table__cell, +.el-table__body tr.current-row>td.el-table__cell, .el-table__body tr.current-row:hover>td.el-table__cell, .el-table__body tr.current-row:focus>td.el-table__cell{ @include elTable-hover-style; diff --git a/src/components/Crud/crud.js b/src/components/Crud/crud.js index 49b3219..011f878 100644 --- a/src/components/Crud/crud.js +++ b/src/components/Crud/crud.js @@ -32,7 +32,7 @@ function CRUD(options) { // 重置表单 defaultForm: () => {}, // 排序规则,默认 id 降序, 支持多字段排序 ['id,desc', 'createTime,asc'] - sort: ['id,desc'], + sort: ['update_time,desc'], // 等待时间 time: 50, // CRUD Method diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index b881385..d0f792d 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -4,13 +4,10 @@