fix
This commit is contained in:
@@ -35,6 +35,11 @@
|
|||||||
<el-button type="primary" @click="submit">提 交</el-button>
|
<el-button type="primary" @click="submit">提 交</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
<el-dialog title="操作日志详细" :visible.sync="open" >
|
||||||
|
<div v-if="open">
|
||||||
|
<report :sid="caseSID"/>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -48,18 +53,21 @@ import page3 from "./page3.vue"
|
|||||||
import page4 from "./page4.vue"
|
import page4 from "./page4.vue"
|
||||||
import {listHttp} from "@/api/test/http";
|
import {listHttp} from "@/api/test/http";
|
||||||
import {listDatasource} from "@/api/test/database";
|
import {listDatasource} from "@/api/test/database";
|
||||||
|
import Report from "@/views/test/case/report/index.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
dicts: ['step_type'],
|
dicts: ['step_type'],
|
||||||
components: {draggable, page1, page2, page3, page4},
|
components: {Report, draggable, page1, page2, page3, page4},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
id: '',
|
id: '',
|
||||||
loading: false,
|
loading: false,
|
||||||
|
open: false,
|
||||||
activeName: null,
|
activeName: null,
|
||||||
list: [],
|
list: [],
|
||||||
hosts: [],
|
hosts: [],
|
||||||
datasourceList: [],
|
datasourceList: [],
|
||||||
|
caseSID: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -147,9 +155,11 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleRun(id) {
|
handleRun(id) {
|
||||||
this.$modal.confirm('是否确认执行用例?').then(function () {
|
this.$modal.confirm('是否确认执行用例?').then(function () {
|
||||||
|
this.open = true;
|
||||||
return runCase(id);
|
return runCase(id);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$modal.msgSuccess("执行成功");
|
this.$modal.msgSuccess("执行成功");
|
||||||
|
this.caseSID = res.msg
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 拖拽结束后更新排序值
|
// 拖拽结束后更新排序值
|
||||||
|
|||||||
@@ -90,11 +90,11 @@ export default {
|
|||||||
},
|
},
|
||||||
handleRun(id) {
|
handleRun(id) {
|
||||||
this.$modal.confirm('是否确认执行用例?').then(function () {
|
this.$modal.confirm('是否确认执行用例?').then(function () {
|
||||||
|
this.open = true;
|
||||||
return runCase(id);
|
return runCase(id);
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.$modal.msgSuccess("执行成功");
|
this.$modal.msgSuccess("执行成功");
|
||||||
this.caseSID = res.msg
|
this.caseSID = res.msg
|
||||||
this.open = true;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleRowClick(row) {
|
handleRowClick(row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user