fix(测试跟踪): 缺陷高级搜索,所属平台AzureDevops过滤失败
--bug=1023527 --user=陈建星 【测试跟踪】功能用例-编辑-关联现有缺陷-筛选/缺陷管理-高级搜索-所属平台AzureDevops-搜索失败 https://www.tapd.cn/55049933/s/1340070
This commit is contained in:
parent
703d0dafb4
commit
0e524fe351
|
@ -755,12 +755,7 @@ export const PLATFORM = {
|
||||||
operator: {
|
operator: {
|
||||||
options: [OPERATORS.IN, OPERATORS.NOT_IN]
|
options: [OPERATORS.IN, OPERATORS.NOT_IN]
|
||||||
},
|
},
|
||||||
options: [
|
options: [],
|
||||||
{label: "Tapd", value: "Tapd"},
|
|
||||||
{label: "Jira", value: "Jira"},
|
|
||||||
{label: "Zentao", value: "Zentao"},
|
|
||||||
{label: "Local", value: "Local"},
|
|
||||||
],
|
|
||||||
props: {
|
props: {
|
||||||
multiple: true
|
multiple: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,6 +167,7 @@ export function getRelateIssues(page) {
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
getPageDate(response, page);
|
getPageDate(response, page);
|
||||||
buildIssues(page);
|
buildIssues(page);
|
||||||
|
page.loading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
:condition.sync="page.condition"
|
:condition.sync="page.condition"
|
||||||
@search="getIssues"/>
|
@search="getIssues"/>
|
||||||
<ms-table
|
<ms-table
|
||||||
v-loading="page.result.status"
|
v-loading="page.loading"
|
||||||
:data="page.data"
|
:data="page.data"
|
||||||
:condition="page.condition"
|
:condition="page.condition"
|
||||||
:total="page.total"
|
:total="page.total"
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
import MsEditDialog from "metersphere-frontend/src/components/MsEditDialog";
|
import MsEditDialog from "metersphere-frontend/src/components/MsEditDialog";
|
||||||
import MsTable from "metersphere-frontend/src/components/table/MsTable";
|
import MsTable from "metersphere-frontend/src/components/table/MsTable";
|
||||||
import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColumn";
|
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 IssueDescriptionTableItem from "@/business/issue/IssueDescriptionTableItem";
|
||||||
import {ISSUE_STATUS_MAP} from "metersphere-frontend/src/utils/table-constants";
|
import {ISSUE_STATUS_MAP} from "metersphere-frontend/src/utils/table-constants";
|
||||||
import MsTablePagination from "metersphere-frontend/src/components/pagination/TablePagination";
|
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 {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
|
||||||
import {TEST_CASE_RELEVANCE_ISSUE_LIST} from "@/business/utils/sdk-utils";
|
import {TEST_CASE_RELEVANCE_ISSUE_LIST} from "@/business/utils/sdk-utils";
|
||||||
import MsSearch from "metersphere-frontend/src/components/search/MsSearch";
|
import MsSearch from "metersphere-frontend/src/components/search/MsSearch";
|
||||||
|
import {setIssuePlatformComponent} from "@/business/issue/issue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "IssueRelateList",
|
name: "IssueRelateList",
|
||||||
|
@ -120,11 +121,17 @@ export default {
|
||||||
open() {
|
open() {
|
||||||
this.getIssues();
|
this.getIssues();
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
|
||||||
|
getPlatformOption()
|
||||||
|
.then((r) => {
|
||||||
|
setIssuePlatformComponent(r.data, this.page.condition.components);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
getIssues() {
|
getIssues() {
|
||||||
this.page.condition.projectId = this.projectId;
|
this.page.condition.projectId = this.projectId;
|
||||||
this.page.condition.notInIds = this.notInIds;
|
this.page.condition.notInIds = this.notInIds;
|
||||||
getRelateIssues(this.page, this.page.result);
|
this.page.loading = true;
|
||||||
|
getRelateIssues(this.page);
|
||||||
},
|
},
|
||||||
getCaseResourceId() {
|
getCaseResourceId() {
|
||||||
return this.planCaseId ? this.planCaseId : this.caseId;
|
return this.planCaseId ? this.planCaseId : this.caseId;
|
||||||
|
|
|
@ -278,20 +278,6 @@
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</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 -->
|
<!-- since v2.7 -->
|
||||||
<case-diff-side-viewer ref="caseDiffViewerRef" ></case-diff-side-viewer>
|
<case-diff-side-viewer ref="caseDiffViewerRef" ></case-diff-side-viewer>
|
||||||
<version-create-other-info-select
|
<version-create-other-info-select
|
||||||
|
|
|
@ -172,7 +172,6 @@ import CaseIssueRelate from "./CaseIssueRelate";
|
||||||
import CaseCommentComponent from "./CaseCommentComponent";
|
import CaseCommentComponent from "./CaseCommentComponent";
|
||||||
import CaseCommentViewer from "./CaseCommentViewer";
|
import CaseCommentViewer from "./CaseCommentViewer";
|
||||||
import { getRelationshipCountCase } from "@/api/testCase";
|
import { getRelationshipCountCase } from "@/api/testCase";
|
||||||
import { testCaseCommentList } from "@/api/test-case-comment";
|
|
||||||
import TabPaneCount from "@/business/plan/view/comonents/report/detail/component/TabPaneCount";
|
import TabPaneCount from "@/business/plan/view/comonents/report/detail/component/TabPaneCount";
|
||||||
export default {
|
export default {
|
||||||
name: "CaseEditInfoComponent",
|
name: "CaseEditInfoComponent",
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
@clearSelect="clearSelection"
|
@clearSelect="clearSelection"
|
||||||
ref="relevanceDialog"
|
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="header-search-row">
|
||||||
<div class="simple-row">
|
<div class="simple-row">
|
||||||
<ms-new-ui-search
|
<ms-new-ui-search
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
<ms-table
|
<ms-table
|
||||||
v-if="page.data.length > 0"
|
v-if="page.data.length > 0"
|
||||||
:screen-height="screenHeight"
|
:screen-height="screenHeight"
|
||||||
v-loading="page.result.status"
|
v-loading="page.loading"
|
||||||
:data="page.data"
|
:data="page.data"
|
||||||
:condition="page.condition"
|
:condition="page.condition"
|
||||||
:total="page.total"
|
:total="page.total"
|
||||||
|
@ -124,12 +124,6 @@
|
||||||
|
|
||||||
</ms-table>
|
</ms-table>
|
||||||
|
|
||||||
<!-- <ms-table-pagination
|
|
||||||
:change="getIssues"
|
|
||||||
:current-page.sync="page.currentPage"
|
|
||||||
:page-size.sync="page.pageSize"
|
|
||||||
:total="page.total"
|
|
||||||
/> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div slot="pagination" v-if="page.data.length > 0">
|
<div slot="pagination" v-if="page.data.length > 0">
|
||||||
<home-pagination
|
<home-pagination
|
||||||
|
@ -141,14 +135,6 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</ms-drawer-component>
|
</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>
|
</template>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.search-input {
|
.search-input {
|
||||||
|
@ -290,7 +276,8 @@ export default {
|
||||||
getIssues() {
|
getIssues() {
|
||||||
this.page.condition.projectId = this.projectId;
|
this.page.condition.projectId = this.projectId;
|
||||||
this.page.condition.notInIds = this.notInIds;
|
this.page.condition.notInIds = this.notInIds;
|
||||||
getRelateIssues(this.page, this.page.result);
|
this.page.loading = true;
|
||||||
|
getRelateIssues(this.page);
|
||||||
},
|
},
|
||||||
getCaseResourceId() {
|
getCaseResourceId() {
|
||||||
return this.planCaseId ? this.planCaseId : this.caseId;
|
return this.planCaseId ? this.planCaseId : this.caseId;
|
||||||
|
|
|
@ -4,7 +4,7 @@ export function setIssuePlatformComponent(platformOptions, components) {
|
||||||
item.options = [
|
item.options = [
|
||||||
{label: "Tapd", value: "Tapd"},
|
{label: "Tapd", value: "Tapd"},
|
||||||
{label: "Local", value: "Local"},
|
{label: "Local", value: "Local"},
|
||||||
{label: "AzureDevops", value: "Azure Devops"}
|
{label: "Azure Devops", value: "AzureDevops"}
|
||||||
];
|
];
|
||||||
platformOptions.forEach(option => {
|
platformOptions.forEach(option => {
|
||||||
item.options.push({label: option.text, value: option.value});
|
item.options.push({label: option.text, value: option.value});
|
||||||
|
|
Loading…
Reference in New Issue