fix
This commit is contained in:
@@ -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
|
||||
});
|
||||
},
|
||||
// 拖拽结束后更新排序值
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user