From eaeb34b4724a59f2ef447747aa09ade30f3c3645 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Mon, 12 Jun 2023 11:27:38 +0800 Subject: [PATCH] * Add col link on my task page. --- module/my/config/table.php | 4 +++- module/my/js/task.ui.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module/my/config/table.php b/module/my/config/table.php index 1f907ba5ae..d69bd5ea54 100644 --- a/module/my/config/table.php +++ b/module/my/config/table.php @@ -196,7 +196,7 @@ $config->my->task->dtable->fieldList['id']['type'] = 'checkID'; $config->my->task->dtable->fieldList['name']['name'] = 'name'; $config->my->task->dtable->fieldList['name']['title'] = $lang->task->name; $config->my->task->dtable->fieldList['name']['type'] = 'title'; -$config->my->task->dtable->fieldList['name']['link'] = helper::createLink('task', 'view', 'taskID={id}'); +$config->my->task->dtable->fieldList['name']['link'] = array('url' => helper::createLink('task', 'view', 'taskID={id}'), 'data-app' => 'project'); $config->my->task->dtable->fieldList['name']['fixed'] = 'left'; $config->my->task->dtable->fieldList['pri']['name'] = 'pri'; @@ -214,11 +214,13 @@ $config->my->task->dtable->fieldList['status']['group'] = 'pri'; $config->my->task->dtable->fieldList['project']['name'] = 'projectName'; $config->my->task->dtable->fieldList['project']['title'] = $lang->task->project; $config->my->task->dtable->fieldList['project']['type'] = 'text'; +$config->my->task->dtable->fieldList['project']['link'] = helper::createLink('project', 'view', 'projectID={project}'); $config->my->task->dtable->fieldList['project']['group'] = 'project'; $config->my->task->dtable->fieldList['execution']['name'] = 'executionName'; $config->my->task->dtable->fieldList['execution']['title'] = $lang->task->execution; $config->my->task->dtable->fieldList['execution']['type'] = 'text'; +$config->my->task->dtable->fieldList['execution']['link'] = helper::createLink('execution', 'task', 'executionID={execution}'); $config->my->task->dtable->fieldList['execution']['group'] = 'project'; $config->my->task->dtable->fieldList['openedBy']['name'] = 'openedBy'; diff --git a/module/my/js/task.ui.js b/module/my/js/task.ui.js index 5bb55aa9f5..9a83cd9a00 100644 --- a/module/my/js/task.ui.js +++ b/module/my/js/task.ui.js @@ -47,8 +47,8 @@ window.setStatistics = function(element, checks) } /** - * 对截至日期列进行重定义。 - * Redefine the deadline column. + * 对部分列进行重定义。 + * Redefine the partial column. * * @param array result * @param array info