自动化测试定时任务
This commit is contained in:
@@ -116,7 +116,7 @@ export default {
|
||||
},
|
||||
// 删除
|
||||
hadleClickDelete(val) {
|
||||
this.$modal.confirm('确认删除元素' + '?').then(() => {
|
||||
this.$modal.confirm('确认删除该场景' + '?').then(() => {
|
||||
deleteAutomation(val.id).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
@@ -129,13 +129,23 @@ export default {
|
||||
},
|
||||
// 查看
|
||||
handleClickDetail(val) {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '执行中...',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
executeAutomationData({ id: val.id }).then(res => {
|
||||
loading.close();
|
||||
if (res.code === 200) {
|
||||
this.$modal.msgSuccess("执行成功");
|
||||
} else {
|
||||
this.$modal.msgSuccess("执行失败");
|
||||
this.$modal.msgError("执行失败");
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
loading.close();
|
||||
this.$modal.msgError("执行失败");
|
||||
});
|
||||
},
|
||||
// 分页
|
||||
handleSizeChange(val) {
|
||||
|
||||
Reference in New Issue
Block a user