This commit is contained in:
2025-03-18 16:13:39 +08:00
parent 66559b96bc
commit e1fe9b3a63
2 changed files with 12 additions and 2 deletions

View File

@@ -35,6 +35,11 @@
<el-button type="primary" @click="submit"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
<el-dialog title="操作日志详细" :visible.sync="open" >
<div v-if="open">
<report :sid="caseSID"/>
</div>
</el-dialog>
</div>
</template>
@@ -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
});
},
// 拖拽结束后更新排序值

View File

@@ -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) {