From f3f3cf8cb97f92054563e9fe59977f414c67b220 Mon Sep 17 00:00:00 2001 From: hanyuqing <1106611654@qq.com> Date: Thu, 11 Sep 2025 21:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gyxtp/src/view/small.vue | 12 ++++ .../web/controller/system/ZhyTaskController.java | 8 +++ .../controller/system/ZhyTaskInfoController.java | 1 + .../resources/mapper/system/ZhyTaskInfoMapper.xml | 10 ++- ruoyi-ui/src/api/system/task.js | 7 ++ ruoyi-ui/src/views/system/info/index.vue | 79 ++++++++++++++-------- ruoyi-ui/src/views/system/task/index.vue | 7 +- 7 files changed, 90 insertions(+), 34 deletions(-) diff --git a/gyxtp/src/view/small.vue b/gyxtp/src/view/small.vue index 08b72de..985c5fe 100644 --- a/gyxtp/src/view/small.vue +++ b/gyxtp/src/view/small.vue @@ -99,7 +99,9 @@ + {{scope.row.title}} + @@ -348,6 +350,16 @@ export default { params: { id: nodeObject.id } }) }, + goArticle(row){ + console.log(row.id) + this.$router.push({ + path: '/articleInfo', + query: { + id: row.id + } + }) + + }, getColor(type){ let res = "rgb(227,203,0)" if (type=="author"){ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyTaskController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyTaskController.java index 4df1d87..890d38b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyTaskController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyTaskController.java @@ -47,6 +47,14 @@ public class ZhyTaskController extends BaseController return getDataTable(list); } + @PreAuthorize("@ss.hasPermi('system:task:list')") + @GetMapping("/getAll") + public TableDataInfo getAll(ZhyTask zhyTask) + { + List list = zhyTaskService.selectZhyTaskList(zhyTask); + return getDataTable(list); + } + /** * 导出任务列表 */ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyTaskInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyTaskInfoController.java index 04e1fa8..874d99c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyTaskInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyTaskInfoController.java @@ -37,6 +37,7 @@ public class ZhyTaskInfoController extends BaseController { startPage(); List list = zhyTaskInfoService.selectZhyTaskInfoList(zhyTaskInfo); + System.out.println(list); return getDataTable(list); } diff --git a/ruoyi-system/src/main/resources/mapper/system/ZhyTaskInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ZhyTaskInfoMapper.xml index 15534d1..c32c12e 100644 --- a/ruoyi-system/src/main/resources/mapper/system/ZhyTaskInfoMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/ZhyTaskInfoMapper.xml @@ -19,12 +19,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - and name1 = #{name1} - and name2 = #{name2} + and status = #{status} and group_id = #{groupId} and task_id = #{taskId} + + AND name1 LIKE CONCAT('%', #{name1}, '%') + + + OR name2 LIKE CONCAT('%', #{name1}, '%') + diff --git a/ruoyi-ui/src/api/system/task.js b/ruoyi-ui/src/api/system/task.js index 4afa714..1389745 100644 --- a/ruoyi-ui/src/api/system/task.js +++ b/ruoyi-ui/src/api/system/task.js @@ -8,6 +8,13 @@ export function listTask(query) { params: query }) } +export function getAll(query) { + return request({ + url: '/system/task/getAll', + method: 'get', + params: query + }) +} // 查询任务详细 export function getTask(id) { diff --git a/ruoyi-ui/src/views/system/info/index.vue b/ruoyi-ui/src/views/system/info/index.vue index 2a782fe..5c5f83c 100644 --- a/ruoyi-ui/src/views/system/info/index.vue +++ b/ruoyi-ui/src/views/system/info/index.vue @@ -1,38 +1,48 @@ - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 重置 @@ -87,8 +97,15 @@ - - + + + + TASK-{{scope.row.taskId}} + + + + + @@ -157,6 +174,7 @@