diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
index de78d0ff..c4c4d6a5 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
@@ -168,12 +168,11 @@
-
+
- 动态条件分页查询
+ 动态条件查询
-
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/DeptController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/DeptController.cs
index e2c7252d..b9fb1de5 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/DeptController.cs
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/DeptController.cs
@@ -26,15 +26,14 @@ namespace Yi.Framework.ApiMicroservice.Controllers
}
///
- /// 动态条件分页查询
+ /// 动态条件查询
///
///
- ///
///
[HttpGet]
- public async Task PageList([FromQuery] DeptEntity dept, [FromQuery] PageParModel page)
+ public async Task SelctGetList([FromQuery] DeptEntity dept)
{
- return Result.Success().SetData(await _iDeptService.SelctPageList(dept, page));
+ return Result.Success().SetData(await _iDeptService.SelctGetList(dept));
}
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db
index dd3876ef..8bda6f81 100644
Binary files a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db and b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db differ
diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/IDeptService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/IDeptService.cs
index 8c26ddab..26e345a1 100644
--- a/Yi.Framework.Net6/Yi.Framework.Interface/IDeptService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Interface/IDeptService.cs
@@ -9,11 +9,10 @@ namespace Yi.Framework.Interface
public partial interface IDeptService:IBaseService
{
///
- /// 动态条件分页查询
+ /// 动态条件查询
///
///
- ///
///
- Task>> SelctPageList(DeptEntity dept, PageParModel page);
+ Task> SelctGetList(DeptEntity dept);
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Service/DeptService.cs b/Yi.Framework.Net6/Yi.Framework.Service/DeptService.cs
index bc016d60..a031e847 100644
--- a/Yi.Framework.Net6/Yi.Framework.Service/DeptService.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Service/DeptService.cs
@@ -9,18 +9,17 @@ using Yi.Framework.Repository;
namespace Yi.Framework.Service
{
- public partial class DeptService : BaseService, IDeptService
+ public partial class DeptService
{
- public async Task>> SelctPageList(DeptEntity dept, PageParModel page)
+ public async Task> SelctGetList(DeptEntity dept)
{
- RefAsync total = 0;
var data = await _repository._DbQueryable
.WhereIF(!string.IsNullOrEmpty(dept.DeptName), u => u.DeptName.Contains(dept.DeptName))
.WhereIF(dept.IsDeleted.IsNotNull(), u => u.IsDeleted == dept.IsDeleted)
.OrderBy(u => u.OrderNum, OrderByType.Desc)
- .ToPageListAsync(page.PageNum, page.PageSize, total);
+ .ToListAsync();
- return new PageModel>(data, total);
+ return data;
}
}
}
diff --git a/Yi.Vue3.X.RuoYi/src/api/system/dept.js b/Yi.Vue3.X.RuoYi/src/api/system/dept.js
index 285a5631..0d85cd7f 100644
--- a/Yi.Vue3.X.RuoYi/src/api/system/dept.js
+++ b/Yi.Vue3.X.RuoYi/src/api/system/dept.js
@@ -3,19 +3,19 @@ import request from '@/utils/request'
// 查询部门列表
export function listDept(query) {
return request({
- url: '/dept/pageList',
+ url: '/dept/SelctGetList',
method: 'get',
params: query
})
}
-// 查询部门列表(排除节点)
-export function listDeptExcludeChild(deptId) {
- return request({
- url: '/system/dept/list/exclude/' + deptId,
- method: 'get'
- })
-}
+// // 查询部门列表(排除节点)
+// export function listDeptExcludeChild(deptId) {
+// return request({
+// url: '/system/dept/list/exclude/' + deptId,
+// method: 'get'
+// })
+// }
// 查询部门详细
export function getDept(deptId) {
@@ -52,6 +52,6 @@ export function delDept(deptId) {
return request({
url: '/dept/delList',
method: 'delete',
- data:postId
+ data:deptId
})
}
\ No newline at end of file
diff --git a/Yi.Vue3.X.RuoYi/src/api/system/user.js b/Yi.Vue3.X.RuoYi/src/api/system/user.js
index d7588541..39b14803 100644
--- a/Yi.Vue3.X.RuoYi/src/api/system/user.js
+++ b/Yi.Vue3.X.RuoYi/src/api/system/user.js
@@ -128,10 +128,10 @@ export function updateAuthRole(data) {
})
}
-// 查询部门下拉树结构
-export function deptTreeSelect() {
- return request({
- url: '/system/user/deptTree',
- method: 'get'
- })
-}
+// // 查询部门下拉树结构
+// export function deptTreeSelect() {
+// return request({
+// url: '/system/user/deptTree',
+// method: 'get'
+// })
+// }
diff --git a/Yi.Vue3.X.RuoYi/src/views/system/dept/index.vue b/Yi.Vue3.X.RuoYi/src/views/system/dept/index.vue
index 636a86c5..1479acae 100644
--- a/Yi.Vue3.X.RuoYi/src/views/system/dept/index.vue
+++ b/Yi.Vue3.X.RuoYi/src/views/system/dept/index.vue
@@ -9,8 +9,8 @@
@keyup.enter="handleQuery"
/>
-
-
+
+
-
+
-
+
@@ -100,8 +100,8 @@
@@ -134,7 +134,7 @@
-
+