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