浏览代码

git-svn-id: https://192.168.57.71/svn/jsgkj@481 931142cf-59ea-a443-aa0e-51397b428577

ld_zhoutl 9 年之前
父节点
当前提交
03d009a553

+ 3 - 2
xtdsp/trunk/src/main/webapp/js/rwgl/task/task.js

@@ -91,9 +91,9 @@ function initGrid() {
 			editable : false,
 			sortable : true
 			,formatter:function(cellvalue, options, rowObject){
-				if(cellvalue == 0){
+				if(cellvalue == "0"){
 					return '否';
-				} else if(cellvalue == 1){
+				} else if(cellvalue == "1"){
 					return '是';
 				} else{
 					return '';
@@ -213,6 +213,7 @@ function intOperButton() {
 			$("#btnSave").show();
 			// 启用元素
 			comEnableElements("modal-table");
+			$("#cacheUse").val("0");
 			$("#modal-table #myModalLabel").text("新增任务");
 			$('#modal-table').modal('show');
 		},

+ 10 - 2
xtdsp/trunk/src/main/webapp/js/sys/datasource/datasource.js

@@ -207,7 +207,15 @@ function intOperButton() {
 			// 启用元素
 			comEnableElements("modal-table");
 			currentOper = "ADD";
-			$('#id').removeAttr("readonly");//去除ID元素的readonly属性
+//			$('#id').removeAttr("readonly");//去除ID元素的readonly属性
+			$('#initialsize').val("10");
+			$('#minidle').val("10");
+			$('#maxactive').val("50");
+			$('#timebetweenevictionrunsmillis').val("60000");
+			$('#minevictableidletimemillis').val("300000");
+			$('#testonreturn').val("FALSE");
+			$('#poolpreparedstatements').val("TRUE");
+			$('#maxpoolpreparedstatementpercon').val("20");
 			$("#modal-table #myModalLabel").text("新增数据源");
 			$('#modal-table').modal('show');
 		},
@@ -258,7 +266,7 @@ function editRecord(rid) {
 	// 启用元素
 	comEnableElements("modal-table");
 	currentOper = "EDIT";
-	$('#id').attr("readonly","readonly");//将ID设置为readonly
+//	$('#id').attr("readonly","readonly");//将ID设置为readonly
 	$("#modal-table #myModalLabel").text("编辑数据源");
 	initBaseInfo(rid);
 }