为什么会报 e.data() 错误

提问 已结 1 6648
悬赏:20飞吻
 <div class="topjui-row">
<div class="topjui-col-sm6">
<label class="topjui-form-label">
类型
</label>
<div class="topjui-input-block">
<input type="text" id="filterClass" name="filterClass" data-toggle="topjui-combobox"
data-options="valueField:'key',textField:'value'
,data:[{key:'filterStreet',value:'房源只有街道'},{key:'filterHa',value:'房源有小区有比同'},{key:'filterHaDist',value:'房源有小区无比同'}],required:true">
</div>
</div>
<div class="topjui-col-sm6">
<label class="topjui-form-label">
交易类型
</label>
<div class="topjui-input-block">
<input type="text" id="dealType" name="dealType" data-toggle="topjui-combobox"
data-options="valueField:'key',textField:'value',data:[{key:'sale',value:'出售'},{key:'lease',value:'出租'}],required:true">
</div>
</div>
</div>
<div class="topjui-row">
<div class="topjui-col-sm6">
<label class="topjui-form-label">
用途
</label>
<div class="topjui-input-block">
<input type="text" id="filterPropType" name="filterPropType" data-toggle="topjui-combobox"
data-options="textField:'value',valueField:'key',
data:[{key:'PropType',value:'标准类型',selected:true},{key:'BldgType',value:'建筑类型'},{key:'IndoStru',value:'室内结构'}],onChange:function(newValue,oldValue){
change(newValue);
}">
</div>
</div>
<div class="topjui-col-sm6">
<label class="topjui-form-label">
详细
</label>
<div class="topjui-input-block">
<input type="text" id='filtera' name="propType" data-toggle="topjui-combobox"
data-options="textField:'value',valueField:'key',required:true">
</div>
</div>
</div>
<div class="topjui-row">
<div class="topjui-col-sm6">
<label class="topjui-form-label">
比同下限
</label>
<div class="topjui-input-block">
<input type="text" id="unitPriceLow" name="unitPriceLow" data-toggle="topjui-textbox">
</div>
</div>
<div class="topjui-col-sm6">
<label class="topjui-form-label">
比同上限
</label>
<div class="topjui-input-block">
<input type="text" id="unitPriceHigh" name="unitPriceHigh" data-toggle="topjui-textbox">
</div>
</div>
</div>
<div class="topjui-row">
<div class="topjui-col-sm6">
<label class="topjui-form-label">
比同有效性
</label>
<div class="topjui-input-block">
<input type="text" id="unitPriceLimitEnable" name="unitPriceLimitEnable" data-toggle="topjui-combobox"
data-options="valueField:'key',textField:'value',data:[{key:true,value:'有效'},{key:false,value:'无效'}]">
</div>
</div>
<div class="topjui-col-sm6">
<label class="topjui-form-label">
有效性
</label>
<div class="topjui-input-block">
<input type="text" id="enable" name="enable" data-toggle="topjui-combobox"
data-options="valueField:'key',textField:'value',data:[{key:true,value:'有效'},{key:false,value:'无效'}]">
</div>
</div>
</div>
<div class="topjui-row">
<div class="topjui-col-sm12">
<label class="topjui-form-label">
备注
</label>
<div class="topjui-input-block">
<input type="text" name="description" data-toggle="topjui-textbox">
</div>
</div>
</div>



function change(a) {
console.info(a);
var url = _ctx + 'common/enum';
switch (a) {
case 'PropType':
url = url + '/getPropType';
break;
case 'BldgType':
url = url + '/getBldgType';
break;
case 'IndoStru':
url = url + '/getStru';
break;
default:
url = url + '/getPropType';
}
console.info(url);
$('#filtera').iCombobox('reload', url);
}
回帖
回帖须知