fix(测试跟踪): 缺陷高级搜索,所属平台AzureDevops过滤失败

--bug=1023527 --user=陈建星 【测试跟踪】功能用例-编辑-关联现有缺陷-筛选/缺陷管理-高级搜索-所属平台AzureDevops-搜索失败 https://www.tapd.cn/55049933/s/1340070
This commit is contained in:
chenjianxing 2023-02-21 21:04:56 +08:00 committed by CaptainB
parent 703d0dafb4
commit 0e524fe351
7 changed files with 17 additions and 42 deletions

View File

@ -755,12 +755,7 @@ export const PLATFORM = {
operator: {
options: [OPERATORS.IN, OPERATORS.NOT_IN]
},
options: [
{label: "Tapd", value: "Tapd"},
{label: "Jira", value: "Jira"},
{label: "Zentao", value: "Zentao"},
{label: "Local", value: "Local"},
],
options: [],
props: {
multiple: true
}

View File

@ -167,6 +167,7 @@ export function getRelateIssues(page) {
.then((response) => {
getPageDate(response, page);
buildIssues(page);
page.loading = false;
});
}

View File

@ -10,7 +10,7 @@
:condition.sync="page.condition"
@search="getIssues"/>
<ms-table
v-loading="page.result.status"
v-loading="page.loading"
:data="page.data"
:condition="page.condition"
:total="page.total"
@ -77,7 +77,7 @@
import MsEditDialog from "metersphere-frontend/src/components/MsEditDialog";
import MsTable from "metersphere-frontend/src/components/table/MsTable";
import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColumn";
import {getRelateIssues, isThirdPartEnable, testCaseIssueRelate} from "@/api/issue";
import {getPlatformOption, getRelateIssues, isThirdPartEnable, testCaseIssueRelate} from "@/api/issue";
import IssueDescriptionTableItem from "@/business/issue/IssueDescriptionTableItem";
import {ISSUE_STATUS_MAP} from "metersphere-frontend/src/utils/table-constants";
import MsTablePagination from "metersphere-frontend/src/components/pagination/TablePagination";
@ -85,6 +85,7 @@ import {getPageInfo} from "metersphere-frontend/src/utils/tableUtils";
import {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
import {TEST_CASE_RELEVANCE_ISSUE_LIST} from "@/business/utils/sdk-utils";
import MsSearch from "metersphere-frontend/src/components/search/MsSearch";
import {setIssuePlatformComponent} from "@/business/issue/issue";
export default {
name: "IssueRelateList",
@ -120,11 +121,17 @@ export default {
open() {
this.getIssues();
this.visible = true;
getPlatformOption()
.then((r) => {
setIssuePlatformComponent(r.data, this.page.condition.components);
});
},
getIssues() {
this.page.condition.projectId = this.projectId;
this.page.condition.notInIds = this.notInIds;
getRelateIssues(this.page, this.page.result);
this.page.loading = true;
getRelateIssues(this.page);
},
getCaseResourceId() {
return this.planCaseId ? this.planCaseId : this.caseId;

View File

@ -278,20 +278,6 @@
</template>
</div>
</div>
<!-- <el-dialog
:fullscreen="true"
:visible.sync="dialogVisible"
:destroy-on-close="true"
width="100%"
>
<test-case-version-diff
v-if="dialogVisible"
:old-data="oldData"
:new-data="newData"
:tree-nodes="treeNodes"
></test-case-version-diff>
</el-dialog>
-->
<!-- since v2.7 -->
<case-diff-side-viewer ref="caseDiffViewerRef" ></case-diff-side-viewer>
<version-create-other-info-select

View File

@ -172,7 +172,6 @@ import CaseIssueRelate from "./CaseIssueRelate";
import CaseCommentComponent from "./CaseCommentComponent";
import CaseCommentViewer from "./CaseCommentViewer";
import { getRelationshipCountCase } from "@/api/testCase";
import { testCaseCommentList } from "@/api/test-case-comment";
import TabPaneCount from "@/business/plan/view/comonents/report/detail/component/TabPaneCount";
export default {
name: "CaseEditInfoComponent",

View File

@ -5,7 +5,7 @@
@clearSelect="clearSelection"
ref="relevanceDialog"
>
<div slot="header" v-if="page.data.length > 0 || page.condition.name !== undefined">
<div slot="header">
<div class="header-search-row">
<div class="simple-row">
<ms-new-ui-search
@ -32,7 +32,7 @@
<ms-table
v-if="page.data.length > 0"
:screen-height="screenHeight"
v-loading="page.result.status"
v-loading="page.loading"
:data="page.data"
:condition="page.condition"
:total="page.total"
@ -124,12 +124,6 @@
</ms-table>
<!-- <ms-table-pagination
:change="getIssues"
:current-page.sync="page.currentPage"
:page-size.sync="page.pageSize"
:total="page.total"
/> -->
</div>
<div slot="pagination" v-if="page.data.length > 0">
<home-pagination
@ -141,14 +135,6 @@
/>
</div>
</ms-drawer-component>
<!-- <ms-edit-dialog
:append-to-body="true"
:visible.sync="visible"
:title="$t('test_track.case.relate_issue')"
@confirm="save"
ref="relevanceDialog"
>
</ms-edit-dialog> -->
</template>
<style scoped>
.search-input {
@ -290,7 +276,8 @@ export default {
getIssues() {
this.page.condition.projectId = this.projectId;
this.page.condition.notInIds = this.notInIds;
getRelateIssues(this.page, this.page.result);
this.page.loading = true;
getRelateIssues(this.page);
},
getCaseResourceId() {
return this.planCaseId ? this.planCaseId : this.caseId;

View File

@ -4,7 +4,7 @@ export function setIssuePlatformComponent(platformOptions, components) {
item.options = [
{label: "Tapd", value: "Tapd"},
{label: "Local", value: "Local"},
{label: "AzureDevops", value: "Azure Devops"}
{label: "Azure Devops", value: "AzureDevops"}
];
platformOptions.forEach(option => {
item.options.push({label: option.text, value: option.value});