Quellcode durchsuchen

BUG修复202109261413

fanghuisheng vor 3 Jahren
Ursprung
Commit
2e2155a272

+ 3 - 5
WebRoot/view/patrolplan/scripts/patrolplan.js

@@ -530,7 +530,7 @@ Ext.onReady(function () {
 		var query = new Object();
 		var spot_id = null;
 
-		var InspectiontimeValue = Ext.getCmp('fa_patrol_cycle').getChecked();
+		var InspectiontimeValue = Ext.getCmp('fm_patrol_cycle').getChecked();
 		var fa_cycle = '';
 		Ext.Array.each(InspectiontimeValue, function (item) {
 			fa_cycle += item.inputValue + ',';
@@ -607,7 +607,7 @@ Ext.onReady(function () {
 		// 							query.V_LOGINNAME = V_LOGINNAME;
 		var jsonstr = Ext.JSON.encode(query);
 		Ext.Ajax.request({
-			timeout: 3000000,
+			timeout: 1000,
 			url: baseUrl + 'iot/planmaster/append1',
 			params: 'queryJson=' + jsonstr,
 			success: function (resp, opts) {
@@ -636,8 +636,6 @@ Ext.onReady(function () {
 			Ext.Msg.alert('提示', '任务名称不能为空!', function (btn, txt) {
 			})
 			return;
-		} else {
-			var start_time1 = ((start_time.getHours() < 10) ? ('0' + start_time.getHours()) : start_time.getHours()) + ':' + ((start_time.getMinutes() < 10) ? ('0' + start_time.getMinutes()) : start_time.getMinutes());
 		}
 
 		var start_time = Ext.getCmp('fa_patrol_start_time').getValue();
@@ -718,7 +716,7 @@ Ext.onReady(function () {
 		// 							query.V_LOGINNAME = V_LOGINNAME;
 		var jsonstr = Ext.JSON.encode(query);
 		Ext.Ajax.request({
-			timeout: 3000000,
+			timeout: 1000,
 			url: baseUrl + 'iot/planmaster/append1',
 			params: 'queryJson=' + jsonstr,
 			success: function (resp, opts) {

+ 3 - 5
out/artifacts/YtIoT_Web_exploded/view/patrolplan/scripts/patrolplan.js

@@ -530,7 +530,7 @@ Ext.onReady(function () {
 		var query = new Object();
 		var spot_id = null;
 
-		var InspectiontimeValue = Ext.getCmp('fa_patrol_cycle').getChecked();
+		var InspectiontimeValue = Ext.getCmp('fm_patrol_cycle').getChecked();
 		var fa_cycle = '';
 		Ext.Array.each(InspectiontimeValue, function (item) {
 			fa_cycle += item.inputValue + ',';
@@ -607,7 +607,7 @@ Ext.onReady(function () {
 		// 							query.V_LOGINNAME = V_LOGINNAME;
 		var jsonstr = Ext.JSON.encode(query);
 		Ext.Ajax.request({
-			timeout: 3000000,
+			timeout: 1000,
 			url: baseUrl + 'iot/planmaster/append1',
 			params: 'queryJson=' + jsonstr,
 			success: function (resp, opts) {
@@ -636,8 +636,6 @@ Ext.onReady(function () {
 			Ext.Msg.alert('提示', '任务名称不能为空!', function (btn, txt) {
 			})
 			return;
-		} else {
-			var start_time1 = ((start_time.getHours() < 10) ? ('0' + start_time.getHours()) : start_time.getHours()) + ':' + ((start_time.getMinutes() < 10) ? ('0' + start_time.getMinutes()) : start_time.getMinutes());
 		}
 
 		var start_time = Ext.getCmp('fa_patrol_start_time').getValue();
@@ -718,7 +716,7 @@ Ext.onReady(function () {
 		// 							query.V_LOGINNAME = V_LOGINNAME;
 		var jsonstr = Ext.JSON.encode(query);
 		Ext.Ajax.request({
-			timeout: 3000000,
+			timeout: 1000,
 			url: baseUrl + 'iot/planmaster/append1',
 			params: 'queryJson=' + jsonstr,
 			success: function (resp, opts) {