diff --git a/test-ui/src/views/test/case/detail/step.vue b/test-ui/src/views/test/case/detail/step.vue index bd5fbc9..304e98e 100644 --- a/test-ui/src/views/test/case/detail/step.vue +++ b/test-ui/src/views/test/case/detail/step.vue @@ -35,6 +35,11 @@ 提 交 取 消 + +
+ +
+
@@ -48,18 +53,21 @@ import page3 from "./page3.vue" import page4 from "./page4.vue" import {listHttp} from "@/api/test/http"; import {listDatasource} from "@/api/test/database"; +import Report from "@/views/test/case/report/index.vue"; export default { dicts: ['step_type'], - components: {draggable, page1, page2, page3, page4}, + components: {Report, draggable, page1, page2, page3, page4}, data() { return { id: '', loading: false, + open: false, activeName: null, list: [], hosts: [], datasourceList: [], + caseSID: null, }; }, created() { @@ -147,9 +155,11 @@ export default { methods: { handleRun(id) { this.$modal.confirm('是否确认执行用例?').then(function () { + this.open = true; return runCase(id); }).then(() => { this.$modal.msgSuccess("执行成功"); + this.caseSID = res.msg }); }, // 拖拽结束后更新排序值 diff --git a/test-ui/src/views/test/case/index.vue b/test-ui/src/views/test/case/index.vue index 49795e8..0e6828a 100644 --- a/test-ui/src/views/test/case/index.vue +++ b/test-ui/src/views/test/case/index.vue @@ -90,11 +90,11 @@ export default { }, handleRun(id) { this.$modal.confirm('是否确认执行用例?').then(function () { + this.open = true; return runCase(id); }).then((res) => { this.$modal.msgSuccess("执行成功"); this.caseSID = res.msg - this.open = true; }); }, handleRowClick(row) {