fix(接口定义) 修复用例操作按钮权限问题,修复用例列表刷新问题
--bug=1006841 --user=赵勇 【接口测试】接口case执行结果筛选 测试中 的失败 https://www.tapd.cn/55049933/s/1050076
This commit is contained in:
parent
c33863e021
commit
701b9751f8
|
@ -205,6 +205,7 @@ public class ApiDefinitionExecResultService {
|
|||
// 更新用例最后执行结果
|
||||
caseWithBLOBs.setLastResultId(resourceId);
|
||||
caseWithBLOBs.setStatus(status);
|
||||
caseWithBLOBs.setUpdateTime(System.currentTimeMillis());
|
||||
apiTestCaseMapper.updateByPrimaryKey(caseWithBLOBs);
|
||||
return caseWithBLOBs.getName();
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<span @click.stop>
|
||||
<i class="icon el-icon-arrow-right" :class="{'is-active': apiCase.active}" @click="active(apiCase)"/>
|
||||
<el-input v-if="!apiCase.id || isShowInput" size="small" v-model="apiCase.name" :name="index" :key="index"
|
||||
class="ms-api-header-select" style="width: 180px" readonly="hasPermission('PROJECT_API_DEFINITION:READ+EDIT_CASE')"
|
||||
class="ms-api-header-select" style="width: 180px" :readonly="!hasPermission('PROJECT_API_DEFINITION:READ+EDIT_CASE')"
|
||||
@blur="saveTestCase(apiCase,true)" :placeholder="$t('commons.input_name')" ref="nameEdit"/>
|
||||
<span v-else>
|
||||
<el-tooltip :content="apiCase.id ? apiCase.name : ''" placement="top">
|
||||
|
@ -178,6 +178,7 @@ const esbDefinitionResponse = (requireComponent != null && requireComponent.keys
|
|||
import {API_METHOD_COLOUR} from "../../model/JsonData";
|
||||
import MsChangeHistory from "../../../../history/ChangeHistory";
|
||||
import {TYPE_TO_C} from "@/business/components/api/automation/scenario/Setting";
|
||||
import {hasPermission} from '@/common/js/utils';
|
||||
|
||||
export default {
|
||||
name: "ApiCaseItem",
|
||||
|
@ -282,6 +283,7 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
hasPermission,
|
||||
openHis(row) {
|
||||
this.$refs.changeHistory.open(row.id);
|
||||
},
|
||||
|
|
|
@ -258,6 +258,7 @@ export default {
|
|||
this.runResult = {testId: getUUID()};
|
||||
this.$refs.apiCaseItem.runLoading = false;
|
||||
this.$success(this.$t('organization.integration.successful_operation'));
|
||||
this.$store.state.currentApiCase = {refresh: true};
|
||||
this.getApiTest();
|
||||
},
|
||||
errorRefresh() {
|
||||
|
|
|
@ -585,23 +585,6 @@ export default {
|
|||
isNext = true;
|
||||
}
|
||||
});
|
||||
this.$nextTick(function () {
|
||||
|
||||
handleRowDrop(this.tableData, (param) => {
|
||||
param.groupId = this.condition.projectId;
|
||||
editApiTestCaseOrder(param);
|
||||
});
|
||||
|
||||
if (this.$refs.caseTable) {
|
||||
this.$refs.caseTable.doLayout();
|
||||
this.$refs.caseTable.checkTableRowIsSelect();
|
||||
}
|
||||
});
|
||||
if (isNext) {
|
||||
setTimeout(() => {
|
||||
this.initTable();
|
||||
}, 5000);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue