注册氚云社区,学习低代码知识,与更多氚友互动交流
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 老余sam 于 2021-3-23 15:39 编辑
大家好,我已知如何改变某个控件的CSS样式,但是如何改变子表中某一行的单个控件的CSS样式,还请各位大佬教我
以下为我改变子表F0000010控件样式的代码,但是只有第一行的F0000010发生变化。
OnLoad:function(){
debugger;
var parent = this;
var controlManager = parent.D001074Fwxhb79v1x2r06zc94aoxgpst6;
controlManager.BindChange("ColorChange",function(data){
debugger;
var responseData = data[0];//当前第1行
if (responseData != null && responseData.DataField == "D001074Fwxhb79v1x2r06zc94aoxgpst6.F0000010") {
var currentRowId = responseData.ObjectId;//获取当前行Id
currentsum = controlManager.GetCellManager(currentRowId,"D001074Fwxhb79v1x2r06zc94aoxgpst6.F0000010").GetValue();
statisticssum = controlManager.GetCellManager(currentRowId,"D001074Fwxhb79v1x2r06zc94aoxgpst6.F0000011").GetValue();
if( currentsum != statisticssum ) {
//$( "#F0000010" ).css( { "background-color": "orange" });//直接输入控件编码,在字表不需要输入字表编号,但是永远是第一行
$( "#F0000010" ).css( { "border-style": "solid","border-color": "red"});//方框框线加粗标红
}
else{
$( "#F0000010" ).css( { "border-style": "none" });//方框无变化
}
}
})
},
|