easyui展示时间遇到的问题

  $("#tt").datagrid({
				url : 'console/selectRechargeList.htm',
				title : "充值列表",
				idField : "id",
				pageSize : 5,
				pageList : [5, 10, 15 ,20 ,30],
				pagination : true,
				fit : true,
				border : false,
				loadMsg : '',
				singleSelect : true,
				fitColumns : true,
			    toolbar:'#tb',
				width : 'auto',
				//添加字段名
				columns : [ [ {
					field : "name",
					title : "用户名字"
				}, {
					field : "type",
					title : "用户的类型",
				}, {
					field : "amount",
					title : "充值金额"
				}, {
					field : "transactionType",
					title : "交易类型",
					formatter : function(value, rowData, rowIndex) {
						switch (value) {
						case "1":
							return "用户红包";
						case "2":
							return "用户送积分";
						case "3":
							return "签到";
						case "4":
							return "注册";
						case "5":
							return "渠道订单";
						case "6":
							return "渠道支付";
						case "7":
							return "订单退款";
						case "8":
							return "结算扣积分";
						case "9":
							return "用户充积分";
						case "10":
							return "企业充值";
						case "11":
							return "企业发红包";
						case "12":
							return "企业送积分";
						case "13":
							return "渠道送积分";
						case "14":
							return "企业推广送积分";
						default:
							break;
						}

					}
				}, {
					field : "createTime",
					title : "创建时间",
					 formatter:function(value,row,index){  
                         var unixTimestamp = new Date(value);  
                         return unixTimestamp.toLocaleString();  
                         }  
				}, {
					field : "yerName",
					title : "付款人名字"
				}, {
					field : "payerType",
					title : "付款人类型"
				}, {
					field : "yeeName",
					title : "收款人名字"
				}, {
					field : "payeeType",
					title : "收款人类型"
				}, {
					field : "relationNo",
					title : "关联单号"
				}, {
					field : "relationNoType",
					title : "关联单号类型"
				}, {
					field : "type",
					title : "类型"
				}, {
					field : "remarks",
					title : "备注"
				}, ] ],
				//传递额外的参数
				queryParams : {
					///类型查询条件
					type : $("#nameOrphone1").find("option:checked").attr("data-id"),
					transactionType : $("#nameOrphone2").find("option:checked").attr("data-id"),
					Username : $("#nameOrphone").val()
				}
		        

			});

你可能感兴趣的:(easyui展示时间遇到的问题)