Commit 5dad0090 by 朱天成

jfV5lcyq

parent 5c7f1abf
......@@ -157,17 +157,30 @@ function editRow(index) {
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
is_row[0].OPETYPE = 'update';
openEditRow("formmodelView_formmodelTabDetail",is_row[0],"编辑",true,0.95,0.95,0,0);
$('#list').data('content',is_row[0].MODEL_CONTENT);
var new_is_row=get_FIELD2(is_row[0]);
delete new_is_row.MODEL_CONTENT;
openEditRow("formmodelView_formmodelTabDetail",new_is_row,"编辑",true,0.95,0.95,0,0);
}
function get_FIELD2(data){
if(data == null){
return;
}
var ret_data = {};
$.each(data,function(i,n){
ret_data[i]=n;
});
return ret_data;
}
//加载修改子页面成功后的回调
function updateUrlOnloadCallback(is_row){
initUeditor(is_row);
$("#inputForm").form('load',get_FIELD(is_row));
initUeditor({MODEL_CONTENT:$('#list').data('content')});
}
function initUeditor(is_row){
console.log(is_row);
UE.delEditor('ueditId');
var ue=UE.getEditor('ueditId',{});
ue.ready(function(){
......
package com.gaowj.formmodel.action;
import java.util.Map;
import com.gaowj.business.action.BasicAction;
import com.gaowj.business.exception.BusinessException;
import com.gaowj.business.util.RequestUtils;
public class viewAction extends BasicAction{
......@@ -13,8 +10,6 @@ public class viewAction extends BasicAction{
}
public String formmodelTabDetail() throws BusinessException{
Map<String,Object> query = RequestUtils.getUpdateFieldMapUtf8(request, RequestUtils.UPDATEDATAFIELDPREFIX);
request.setAttribute("is_row", query);
return "formmodelTabDetail";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment