|
@@ -72,7 +72,7 @@ var FlowRealTime = new (function () {
|
|
|
}
|
|
|
})(this);
|
|
|
|
|
|
- var ClearDataControl = new (function (parent) {
|
|
|
+ this.ClearDataControl = new (function (parent) {
|
|
|
this.p = parent;
|
|
|
this.finished = true;
|
|
|
this.executed = false;
|
|
@@ -83,9 +83,13 @@ var FlowRealTime = new (function () {
|
|
|
this.directCount = -1;
|
|
|
this.finished = true;
|
|
|
var hand = handId;
|
|
|
- var hd = 0;
|
|
|
- if (hand.length > 0) {
|
|
|
- hd = parseInt(hand);
|
|
|
+ hand = hand.trim();
|
|
|
+ var possible = "0123456789,-*";
|
|
|
+ for(let i = 0; i < hand.length ; i++){
|
|
|
+ if(possible.indexOf(hand.charAt(i)) === -1){
|
|
|
+ send_alert("您的输入有误,请重新输入 : " +handId);
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
get_data("endpoint/clearBoard?flowId=" + flowId + "&handheldId=" + hd, this.clearSuccess);
|
|
|
};
|