fix(测试跟踪): 待办缺陷列表未显示Local平台

--bug=1024905 --user=宋昌昌 【工作台】我的待办-缺陷管理,集成平台为local时,缺陷不显示 https://www.tapd.cn/55049933/s/1356586
This commit is contained in:
song-cc-rock 2023-03-28 16:47:39 +08:00 committed by jianxing
parent 160025c92b
commit c9f91640bb
2 changed files with 21 additions and 23 deletions

View File

@ -339,6 +339,26 @@
<property name="object" value="${condition}.platformStatus"/>
</include>
</if>
<!-- 我的待办中替换过滤条件platformStatus为doneStatus, 单独过滤出待办的缺陷-->
<if test="${condition}.doneStatus != null">
and (
(
issues.platform != 'Local' and
issues.platform_status
<include refid="condition">
<property name="object" value="${condition}.doneStatus"/>
</include>
)
or
(
issues.platform = 'Local' and
issues.status
<include refid="condition">
<property name="object" value="${condition}.doneStatus"/>
</include>
)
)
</if>
<if test="${condition}.followPeople != null">
and issues.id in (
select issue_id from issue_follow where follow_id

View File

@ -394,29 +394,7 @@ export default {
}
}
if (this.isToDo) {
let statusFieldId = null;
this.issueTemplate.customFields.forEach(field => {
if (field.name === '状态') {
statusFieldId = field.id;
}
});
if (statusFieldId) {
this.page.condition.combine.platformStatus = [
{
id: statusFieldId,
operator: 'not in',
value: [
'closed',
'已关闭',
'resolved',
'Done',
'verified'
],
type: 'select'
}
];
}
this.page.condition.combine.platformStatus = {
this.page.condition.combine.doneStatus = {
operator: "not in",
value: [
'closed',