Ellen翔 普通
2018-01-10 开始修炼简单之道
刚刚
Jieven 发表了文章
71月前
Ellen翔 回复
<%layout("/eova/layout/default.html",{'title' : 'CRUD'}){%>
<script type="text/javascript" src="${STATIC!}/ui/js/template.js"></script>
<body class="easyui-layout" data-options="fit:true,border:false">
<div class="eova-form-field" title="分派角色[fpjs]" style="">
<div class="eova-form-lbl">分派角色</div>
<div>
<div class="eova-combo" id="fpjs" name="fpjs" value=""
url="/widget/comboJson?exp=select id,name from sys_xnsg.eova_role"
data-options=" disable : false">
</div>
<script>
$('#fpjs').eovacombo({
valueField: 'id',
textField: 'name',
multiple: false
});
</script>
</div>
</div>
</body>

<script>
var submitForm = function($dialog, $grid, $pjq) {
/* var url = "/mt2/mdxxAssignment/" + ${mids};
var date = document.getElementsByName("finddate")[0].value;//打开查看器查看input标签
var o = {
'date' : date
};
$.post(url, o, function(result) {
if (result.success) {
$.slideMsg("操作成功!", $pjq);
$grid.datagrid('load');
$dialog.dialog('destroy');
} else {
$pjq.messager.alert('提示', result.msg, 'error');
}
}, 'json');
return; */
};
</script>

<%}%>
71月前
Ellen翔 回复
@Jieven 为什么文本域禁用只有一部分是灰色的啊,其他地方还是可以输入值
71月前
Ellen翔 回复
@chunqiu 和table一样,就是选择的时候选择视图
71月前
Ellen翔 回复
解决了
使用tcr.eovatext().setValue(user.nickname);
71月前
Ellen翔 回复
//${user.login_id}
$(document).ready(function(){
var addform = $('#addFormc_mt2_tjbl').get(0);
console.log($('#addFormc_mt2_tjbl'));
if(addform){
addTcr();
}
})

function addTcr(){

var userid='${user.login_id}';
var tcr = $("div[name='tcr']").get(0);
var mdid = $('#mdid');
mdid.val();
console.log(mdid);
console.log('********');
}
71月前
Ellen翔 回复
@Jieven 如果使用js怎么设置啊?[图片]
76月前
Ellen翔 回复
@Jieven 如何在eova里面调用存储过程啊
76月前
Ellen翔 回复
com.oss.product.ReviewController.cancelReviewNewAgreement> xdids=[1000048]xdnames=[11]
Sql: insert into agreement(id, xdid, xdname) values(seq_agreement.nextval, ?, ?)

JFinal action report -------- 2018-01-10 16:53:50 ------------------------------
Controller : com.oss.product.ReviewController.(ReviewController.java:1)
Method : cancelReviewNewAgreement
UrlPara : 1000048-11
Interceptor : com.eova.interceptor.LoginInterceptor.(LoginInterceptor.java:1)
--------------------------------------------------------------------------------
Sql: select * from eova_object where code = ?
com.oss.product.ReviewController.cancelReviewNewAgreement> xdids=[1000048]xdnames=[11]
Sql: insert into agreement(id, xdid, xdname) values(seq_agreement.nextval, ?, ?)
Sql: select * from eova_field where object_code = ? order by order_num

JFinal action report -------- 2018-01-10 16:53:50 ------------------------------
Controller : com.oss.product.ReviewController.(ReviewController.java:1)
Method : cancelReviewNewAgreement
UrlPara : 1000048-11
Interceptor : com.eova.interceptor.LoginInterceptor.(LoginInterceptor.java:1)
76月前
Ellen翔 回复
html:

<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'${button.icon!}',plain:true"

onclick="NewAgreement()">

${button.name!}

</a>

<script type="text/javascript">

//弹出Dialog

var saveAgreement = function(name, url, width, height) {

if(!width){

width = 920;

}

if(!height){

height = $(window).height() * 0.9;

}

// 弹出窗口

var dialog = parent.sy.modalDialog({

title : name,

url : url,

buttons : [ {

text : ' 确 定 ',

handler : function() {

dialog.dialog('close');

}

} ]

}, width, height);

};

var NewAgreement = function() {

var $grid = $('#${gridId}');

var rows = $grid.datagrid('getSelections');

var num = rows.length;

if (num == "0") {

$.slideMsg("请至少选择一条记录!");

return;

}

var vals = [];

var xdnames = [];

for (var i = 0; i < rows.length; i++) { //组成一个字符串,ID主键用逗号隔开

vals.push(rows[i]['xdid']);

xdnames.push(rows[i]['xdname']);

}

saveAgreement('${object.name}', '/review/cancelReviewNewAgreement/' + vals.join(',')+'-'+xdnames.join(','), 320, 200);

if($grid.context.URL.indexOf('/single_tree') != -1){

$grid.treegrid('load');

} else {

$grid.datagrid('load');

}

};

</script>
76月前
Ellen翔 回复
按钮ui:/review/btn/cancelReviewNewAgreement.html
bs:/review/cancelReviewNewAgreement