帆软 控件内容 清除

对于帆软界面按F12 得到对应生成的HTML

<div class="ui-state-enabled fr-form-btn-group fr-group-box fr-gridlayout" widgetname="P_SAFETY" style="width: 151px; height: 21px; overflow: hidden; position: absolute; left: 619px; top: 15px;"><span class="fr-group-span" style="text-align: left; left: 0px; top: 0px; width: 70.5px; height: 19px; position: absolute;"><div class="ui-state-enabled" style="height: auto; width: auto;"><span class="x-text fr-widget-click fr-radio-radiooff" style="padding-top: 1px; font-size: 12px; display: inline-block;">无预警</span></div></span><span class="fr-group-span" style="text-align: left; left: 75.5px; top: 0px; width: 70.5px; height: 19px; position: absolute;"><div class="ui-state-enabled" style="height: auto; width: auto;"><span class="x-text fr-widget-click fr-radio-radiooff" style="padding-top: 1px; font-size: 12px; display: inline-block;">库存预警</span></div></span></div>

我们找到控件的名称代码

widgetname="P_SAFETY"
获取控件信息
var xxID = this.options.form.getWidgetByName("P_SAFETY");   
得到之后清除控件
xxID.reset();
.
.
.
泛用版清空方式代码
 
$.each(this.options.form.name_widgets,function(i,item){     
    if (item.options.type !=='label') {item.setValue();item.setText();}

});

 

 
posted @ 2018-01-09 16:47  血肉苦弱机械飞升  阅读(739)  评论(0编辑  收藏  举报
跟随粒子特效