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:
guoyuqi 2023-01-10 20:19:16 +08:00 committed by xiaomeinvG
parent 49e8c8a276
commit 4f1ed64a7f
2 changed files with 10 additions and 8 deletions

View File

@ -711,11 +711,8 @@ export default {
this.condition.combine = {creator: {operator: "current user", value: "current user",}}
} else {
if (this.isFinish) {
if (this.condition.filters == null || !this.condition.filters) {
this.condition.filters = {};
if (this.condition.filters.case_status === null || !this.condition.filters.case_status) {
this.condition.filters.case_status = ["Prepare", "Underway"];
}
if (!this.condition.filters || this.condition.filters.case_status === null) {
this.condition.filters.case_status = ["Prepare", "Underway"];
}
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++) {

View File

@ -763,10 +763,15 @@ export default {
buildCondition() {
if (this.isFinish === true) {
this.batchButtons = this.commonButtons
if (this.condition.filters) {
if (!this.condition.filters || this.condition.filters.status === null) {
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",}}
if (this.condition.toUpdate) {