|
|
@@ -701,7 +701,7 @@ $(function () {
|
|
|
|
|
|
}
|
|
|
|
|
|
- function InitTemrinalAbout(server_ip, new_terminalno, vendorName)
|
|
|
+ function InitTemrinalAbout(server_ip, new_terminalno, vendorName, deviceModel, deviceSN)
|
|
|
{
|
|
|
let req = new Request();
|
|
|
req.preStep = DeployStepChain.GetTerminalInfo[preStepIndex];
|
|
|
@@ -712,8 +712,8 @@ $(function () {
|
|
|
req.param3 = server_ip;
|
|
|
req.param4 = new_terminalno + '|' + vendorName;
|
|
|
req.param5 = '';
|
|
|
- req.array1 = [0];
|
|
|
- req.array2 = [''];
|
|
|
+ req.array1 = [0,0,0];
|
|
|
+ req.array2 = [vendorName, deviceModel, deviceSN];
|
|
|
req.options = 0;
|
|
|
req.additional = 1; //重命名root.ini
|
|
|
req.restartApp = true;
|
|
|
@@ -1665,23 +1665,34 @@ $(function () {
|
|
|
$(document).on('click', '#guide_init_param_next', function() {
|
|
|
const ip = $('#guide_server_ip').val();
|
|
|
const terminalno = $('#guide_init_param_terminalno').val();
|
|
|
+
|
|
|
+ var tmp = $('#guide_init_param_device_sn').val();
|
|
|
+ const deviceSN = tmp.replace(/^\s*|\s*$/g,"");
|
|
|
+
|
|
|
if(!isValidIpAddress(ip)) {
|
|
|
utilStartAlertDialog("无效IP格式");
|
|
|
return;
|
|
|
}
|
|
|
- if(!IsDigital(terminalno)) {
|
|
|
- utilStartAlertDialog("无效终端号格式");
|
|
|
- return;
|
|
|
- }
|
|
|
|
|
|
const vendorType = $('#gui_init_param_vendor').attr('value');
|
|
|
if(vendorType === '' || vendorType === 'None') {
|
|
|
utilStartAlertDialog("请选择设备厂商");
|
|
|
return;
|
|
|
}
|
|
|
+ const deviceModel = $('#gui_init_param_device_model').attr('value');
|
|
|
+
|
|
|
+ if(deviceSN === '') {
|
|
|
+ utilStartAlertDialog("请输入设备序列号");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!IsDigital(terminalno)) {
|
|
|
+ utilStartAlertDialog("无效终端号格式");
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
- utilStartConfirmDialog("基本信息录入后将不可撤销,如需修改需重置后再配置,请确认是否提交?", function() {
|
|
|
- InitTemrinalAbout(ip, terminalno, vendorType);
|
|
|
+ utilStartConfirmDialog("<span>基本信息录入后将不可更改,如需重新配置可通过点击页面右上角菜单</span><span><img src=\"./images/clear.png\" style=\"width:20px;height:20px;padding: 0px 2px;\"></span><span>进行重置,请确认是否提交?</span>", function() {
|
|
|
+ InitTemrinalAbout(ip, terminalno, vendorType, deviceModel, deviceSN);
|
|
|
});
|
|
|
});
|
|
|
|