fix(工作台): 修复接口定义以及接口用例待完成页面显示已完成的问题
--bug=1021803 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021803 --bug=1021815 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021815
This commit is contained in:
parent
49e8c8a276
commit
4f1ed64a7f
|
@ -711,12 +711,9 @@ export default {
|
||||||
this.condition.combine = {creator: {operator: "current user", value: "current user",}}
|
this.condition.combine = {creator: {operator: "current user", value: "current user",}}
|
||||||
} else {
|
} else {
|
||||||
if (this.isFinish) {
|
if (this.isFinish) {
|
||||||
if (this.condition.filters == null || !this.condition.filters) {
|
if (!this.condition.filters || this.condition.filters.case_status === null) {
|
||||||
this.condition.filters = {};
|
|
||||||
if (this.condition.filters.case_status === null || !this.condition.filters.case_status) {
|
|
||||||
this.condition.filters.case_status = ["Prepare", "Underway"];
|
this.condition.filters.case_status = ["Prepare", "Underway"];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (this.condition.filters.case_status && this.condition.filters.case_status.length > 0) {
|
if (this.condition.filters.case_status && this.condition.filters.case_status.length > 0) {
|
||||||
for (let i = 0; i < this.condition.filters.case_status.length; i++) {
|
for (let i = 0; i < this.condition.filters.case_status.length; i++) {
|
||||||
if (this.condition.filters.case_status[i] === "Completed") {
|
if (this.condition.filters.case_status[i] === "Completed") {
|
||||||
|
|
|
@ -763,10 +763,15 @@ export default {
|
||||||
buildCondition() {
|
buildCondition() {
|
||||||
if (this.isFinish === true) {
|
if (this.isFinish === true) {
|
||||||
this.batchButtons = this.commonButtons
|
this.batchButtons = this.commonButtons
|
||||||
if (this.condition.filters) {
|
if (!this.condition.filters || this.condition.filters.status === null) {
|
||||||
this.condition.filters.status = ["Prepare", "Underway"];
|
this.condition.filters.status = ["Prepare", "Underway"];
|
||||||
} else {
|
}
|
||||||
this.condition.filters = {status: ["Prepare", "Underway"]};
|
if (this.condition.filters.status && this.condition.filters.status.length > 0) {
|
||||||
|
for (let i = 0; i < this.condition.filters.status.length; i++) {
|
||||||
|
if (this.condition.filters.status[i] === "Completed") {
|
||||||
|
this.condition.filters.status[i] = "NO"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.condition.combine = {creator: {operator: "current user", value: "current user",}}
|
this.condition.combine = {creator: {operator: "current user", value: "current user",}}
|
||||||
if (this.condition.toUpdate) {
|
if (this.condition.toUpdate) {
|
||||||
|
|
Loading…
Reference in New Issue