feat: add new type of running model
fix: fix the bug in distributing & starting multi-point contracts in NodePortal.html
This commit is contained in:
parent
ecb922b3ae
commit
ce3609904e
@ -272,7 +272,7 @@
|
||||
<input class="form-control" id="selectUnitNum" type="number"
|
||||
placeholder="选择节点数量" step="1" class="modal_input" min="1"
|
||||
max="10"/>
|
||||
<select class="custom-select"
|
||||
<select class="custom-select" id="sequence"
|
||||
style="appearance: none">
|
||||
<option selected id="sequencing" value="0">选择集群合约模式</option>
|
||||
<option value="1">RequestOnce</option>
|
||||
@ -280,6 +280,7 @@
|
||||
<option value="3">RARF</option>
|
||||
<option value="4">RARH</option>
|
||||
<option value="5">RARA</option>
|
||||
<option value="6">Shading</option>
|
||||
</select>
|
||||
<div class="btn-group mr-3" role="group"
|
||||
style="margin-left: 2%">
|
||||
@ -301,7 +302,7 @@
|
||||
</div>
|
||||
</br>
|
||||
<div class="input-group mb3">
|
||||
<select id="sequence" class="custom-select"
|
||||
<select class="custom-select"
|
||||
style="appearance: none">
|
||||
<option selected value="0">选择共识算法</option>
|
||||
<option value="0">无需共识</option>
|
||||
|
@ -62,17 +62,17 @@ var onLogin = function(data) {
|
||||
|
||||
var distributeContract = function() {
|
||||
var place = $("#selectUnits")[0].value;
|
||||
if (place == "选择节点集群") {
|
||||
if (place === "选择节点集群") {
|
||||
myToast("提示","请选择集群分发合约!");
|
||||
return;
|
||||
}
|
||||
|
||||
if(global.ypkName == undefined || global.ypkName == "请选择ypk文件"){
|
||||
if(!global.ypkName || global.ypkName === "请选择ypk文件"){
|
||||
myToast("提示","请选择文件!");
|
||||
return;
|
||||
}
|
||||
|
||||
var unitsID = place.split(":")[1];
|
||||
var unitsID = place.split("_")[1];
|
||||
var nodeIDs = ""; //公钥
|
||||
for ( var i in global.units[unitsID]) {
|
||||
if(global.units[unitsID][i].nodeName == global.config.nodeName)
|
||||
@ -160,7 +160,7 @@ var onStartContract = function(obj) {
|
||||
// 集群启动合约
|
||||
var startContractUnits = function(place) {
|
||||
// ZYX
|
||||
var unitsID = $("#selectUnits")[0].value.split(":")[1];
|
||||
var unitsID = $("#selectUnits")[0].value.split("_")[1];
|
||||
if(unitsID == undefined || unitsID == "选择节点集群"){
|
||||
myToast("提示","请选择节点集群!");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user