feat: UI编辑页调试执行
This commit is contained in:
parent
ca048bcaa0
commit
9e1858241b
|
@ -1 +1 @@
|
|||
Subproject commit 357238040287aa2569b35263479496a10f8924f2
|
||||
Subproject commit 958daf14426c5518ae11654f951767c40f55efd1
|
|
@ -206,3 +206,12 @@ export function resetResourceId(hashTree) {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function getReportMessageSocket(reportId, onmessage) {
|
||||
let protocol = "ws://";
|
||||
if (window.location.protocol === 'https:') {
|
||||
protocol = "wss://";
|
||||
}
|
||||
const uri = protocol + window.location.host + "/ws/" + reportId;
|
||||
return new WebSocket(uri);
|
||||
}
|
||||
|
|
|
@ -387,6 +387,7 @@ import {
|
|||
import "@/common/css/material-icons.css";
|
||||
import OutsideClick from "@/common/js/outside-click";
|
||||
import {
|
||||
getReportMessageSocket,
|
||||
savePreciseEnvProjectIds,
|
||||
saveScenario
|
||||
} from "@/business/components/api/automation/api-automation";
|
||||
|
@ -903,12 +904,7 @@ export default {
|
|||
}
|
||||
},
|
||||
initMessageSocket() {
|
||||
let protocol = "ws://";
|
||||
if (window.location.protocol === 'https:') {
|
||||
protocol = "wss://";
|
||||
}
|
||||
const uri = protocol + window.location.host + "/ws/" + this.reportId;
|
||||
this.messageWebSocket = new WebSocket(uri);
|
||||
this.messageWebSocket = getReportMessageSocket(this.reportId);
|
||||
this.messageWebSocket.onmessage = this.onDebugMessage;
|
||||
},
|
||||
runningEditParent(node) {
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
<el-table-column
|
||||
v-if="operators && operators.length > 0"
|
||||
fixed="right"
|
||||
:fixed="operatorFixed"
|
||||
:min-width="operatorWidth"
|
||||
:label="$t('commons.operating')">
|
||||
<template slot="header">
|
||||
|
@ -224,6 +224,13 @@ export default {
|
|||
return "150px";
|
||||
}
|
||||
},
|
||||
// 操作列的宽度
|
||||
operatorFixed: {
|
||||
type: [String, Boolean],
|
||||
default() {
|
||||
return "right";
|
||||
}
|
||||
},
|
||||
//开启全选
|
||||
enableSelection: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e9c6a77bfe7cd49a3ff9e8ce3766281d1e5d86df
|
||||
Subproject commit 3b93ee7bbe1fd8f37d0880902f77633a519eb1e4
|
Loading…
Reference in New Issue