From 1d9ce51e97131ce9dd2155651bf52fa9be2055a4 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Thu, 12 Oct 2023 13:00:40 +0800 Subject: [PATCH] * Merge code. --- db/update20.0.sql | 2 +- module/metric/js/preview.ui.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/db/update20.0.sql b/db/update20.0.sql index d4648a705a..51ea7cd5cb 100644 --- a/db/update20.0.sql +++ b/db/update20.0.sql @@ -378,7 +378,7 @@ INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, ` INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `event`, `cronCFG`, `time`, `createdBy`, `createdDate`, `editedBy`, `editedDate`, `implementedBy`, `implementedDate`, `delistedBy`, `delistedDate`, `builtin`, `fromID`, `order`, `deleted`) VALUES ('rate', 'product', 'story', 'released', 'php', '按产品统计的研发需求交付率', 'rate_of_delivery_story_in_product', 'percentage', NULL, '按产品统计的研发需求交付率表示按产品统计的已交付的研发需求数相对于按产品统计的有效研发需求数。这个度量项衡量了产品团队按时交付需求的能力。交付率越高,代表产品团队能够将更多的需求交付给用户。', '复用:\r\n按产品统计的已交付研发需求数\r\n按产品统计的无效研发需求数\r\n按产品统计的研发需求总数\r\n公式:\r\n按产品统计的研发需求完成率=按产品统计的已交付研发需求数/(按产品统计的研发需求总数-按产品统计的无效研发需求数)*100%', 'realtime', '', '', '', 'system', '2023-08-22 08:00:00', '', NULL, '', NULL, '', NULL, '1', 0, 0, '0'); INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `event`, `cronCFG`, `time`, `createdBy`, `createdDate`, `editedBy`, `editedDate`, `implementedBy`, `implementedDate`, `delistedBy`, `delistedDate`, `builtin`, `fromID`, `order`, `deleted`) VALUES ('scale', 'product', 'requirement', 'released', 'php', '按产品统计的用户需求总数', 'count_of_requirement_in_product', 'count', NULL, '按产品统计的用户需求总数是指产品所有用户需求的总数。该度量项反映了对用户需求量的整体把握和了解程度。越高的用户需求数可能表示市场潜力较大,产品的受欢迎程度较高,有更多的用户对该产品提出了需求。', '产品中用户需求的个数求和\r\n过滤已删除的用户需求\r\n过滤已删除的产品', 'realtime', '', '', '', 'system', '2023-08-22 08:00:00', '', NULL, '', NULL, '', NULL, '1', 0, 0, '0'); INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `event`, `cronCFG`, `time`, `createdBy`, `createdDate`, `editedBy`, `editedDate`, `implementedBy`, `implementedDate`, `delistedBy`, `delistedDate`, `builtin`, `fromID`, `order`, `deleted`) VALUES ('scale', 'product', 'requirement', 'released', 'php', '按产品统计的年度新增用户需求数', 'count_of_annual_created_requirement_in_product', 'count', NULL, '按产品统计的年度新增用户需求数反映了产品在某年度内新产生的用户对产品的需求数量。越高的用户需求数可能表示产品在该年度获得了更多的用户关注和认可,有更多的用户愿意尝试和使用该产品。', '产品中用户需求的个数求和\r\n创建时间为某年\r\n过滤已删除的用户需求\r\n过滤已删除的产品', 'realtime', '', '', '', 'system', '2023-08-22 08:00:00', '', NULL, '', NULL, '', NULL, '1', 0, 0, '0'); -INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `event`, `cronCFG`, `time`, `createdBy`, `createdDate`, `editedBy`, `editedDate`, `implementedBy`, `implementedDate`, `delistedBy`, `delistedDate`, `builtin`, `fromID`, `order`, `deleted`) VALUES ('scale', 'product', 'bug', 'released', 'php', '按产品统计的研发完毕研需规模的Bug密度', 'bug_concentration_of_developed_story_in_product', 'count', NULL, '按产品统计的研发完毕研需规模的Bug密度表示按产品统计的有效Bug数相对于按产品统计的研发完成的研发需求规模数。该度量项反映了研发完毕的研需的质量表现,密度越低代表研发完毕的研需质量越高。', '复用:\r\n按产品统计的有效Bug数\r\n按产品统计的研发完成的研发需求规模数\r\n公式:\r\n按产品统计的研发完成需求的Bug密度=按产品统计的有效Bug数/按产品统计的研发完成的研发需求规模数', 'realtime', '', '', '', 'system', '2023-08-22 08:00:00', '', NULL, '', NULL, '', NULL, '1', 0, 0, '0'); +INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `event`, `cronCFG`, `time`, `createdBy`, `createdDate`, `editedBy`, `editedDate`, `implementedBy`, `implementedDate`, `delistedBy`, `delistedDate`, `builtin`, `fromID`, `order`, `deleted`) VALUES ('scale', 'product', 'bug', 'released', 'php', '按产品统计的研发完毕研发需求规模的Bug密度', 'bug_concentration_of_developed_story_in_product', 'count', NULL, '按产品统计的研发完毕研发需求规模的Bug密度表示按产品统计的有效Bug数相对于按产品统计的研发完成的研发需求规模数。该度量项反映了研发完毕的研发需求的质量表现,密度越低代表研发完毕的研发需求质量越高。', '复用:\r\n按产品统计的有效Bug数\r\n按产品统计的研发完成的研发需求规模数\r\n公式:\r\n按产品统计的研发完成需求的Bug密度=按产品统计的有效Bug数/按产品统计的研发完成的研发需求规模数', 'realtime', '', '', '', 'system', '2023-08-22 08:00:00', '', NULL, '', NULL, '', NULL, '1', 0, 0, '0'); INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `event`, `cronCFG`, `time`, `createdBy`, `createdDate`, `editedBy`, `editedDate`, `implementedBy`, `implementedDate`, `delistedBy`, `delistedDate`, `builtin`, `fromID`, `order`, `deleted`) VALUES ('scale', 'product', 'bug', 'released', 'php', '按产品统计的Bug总数', 'count_of_bug_in_product', 'count', NULL, '按产品统计的Bug总数是指在产品中发现的所有Bug的数量。这个度量项反映了产品整体Bug质量情况。Bug总数越多可能代表产品的代码质量存在问题,需要进行进一步的解决和改进。', '产品中Bug的个数求和\r\n过滤已删除的Bug\r\n过滤已删除的产品', 'realtime', '', '', '', 'system', '2023-08-22 08:00:00', '', NULL, '', NULL, '', NULL, '1', 0, 0, '0'); INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `event`, `cronCFG`, `time`, `createdBy`, `createdDate`, `editedBy`, `editedDate`, `implementedBy`, `implementedDate`, `delistedBy`, `delistedDate`, `builtin`, `fromID`, `order`, `deleted`) VALUES ('scale', 'product', 'bug', 'released', 'php', '按产品统计的激活Bug数', 'count_of_activated_bug_in_product', 'count', NULL, '按产品统计的激活Bug数是指产品中当前状态为激活的Bug数量。这个度量项反映了产品当前存在的待处理问题数量。激活Bug总数越多可能代表产品的稳定性较低,需要加强Bug解决的速度和质量。', '产品中激活Bug的个数求和\r\n过滤已删除的Bug\r\n过滤已删除的产品', 'realtime', '', '', '', 'system', '2023-08-22 08:00:00', '', NULL, '', NULL, '', NULL, '1', 0, 0, '0'); INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `event`, `cronCFG`, `time`, `createdBy`, `createdDate`, `editedBy`, `editedDate`, `implementedBy`, `implementedDate`, `delistedBy`, `delistedDate`, `builtin`, `fromID`, `order`, `deleted`) VALUES ('scale', 'product', 'bug', 'released', 'php', '按产品统计的有效Bug数', 'count_of_effective_bug_in_product', 'count', NULL, '按产品统计的有效Bug数是指产品中真正具有影响和价值的Bug数量。有效Bug通常是指导致产品不正常运行或影响用户体验的Bug。统计有效Bug数可以帮助评估产品的稳定性和质量,也可以评估测试人员之间的协作或对产品的了解程度。', '产品中所有Bug个数求和\r\n解决方案为已解决、延期处理或状态为激活\r\n过滤已删除的Bug\r\n过滤已删除的产品', 'realtime', '', '', '', 'system', '2023-08-22 08:00:00', '', NULL, '', NULL, '', NULL, '1', 0, 0, '0'); diff --git a/module/metric/js/preview.ui.js b/module/metric/js/preview.ui.js index cec556120d..5dc41a144c 100644 --- a/module/metric/js/preview.ui.js +++ b/module/metric/js/preview.ui.js @@ -14,9 +14,15 @@ window.afterPageUpdate = function($target, info, options) window.renderCheckedLabel(); $(window).on('resize', window.renderCheckedLabel); } + if(viewType == 'single') window.addTitle2Star(); window.initFilterPanel(); } +window.addTitle2Star = function() +{ + $('.metric-collect').attr('title', collectStar); +} + /* 事件处理函数。 */ window.handleCheckboxChange = function($el) {