|
@@ -12,6 +12,18 @@ define(function (require) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 弹框的方式
|
|
|
+ var widgets = {
|
|
|
+ // 搜索分类检索
|
|
|
+ selectTableUnit: {
|
|
|
+ url: 'app/whepi/home/selectLYbumen.js',
|
|
|
+ bind: {
|
|
|
+ unitId: 'unitId',
|
|
|
+ unit: 'unit',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
// 检索条件查询
|
|
|
function queryGrid1() {
|
|
|
var queryForm = $form.formGet();
|
|
@@ -53,10 +65,28 @@ define(function (require) {
|
|
|
xtype: 'textbox',
|
|
|
label: '检索条件',
|
|
|
name: 'queryProperties',
|
|
|
- prompt: "小区名称/用户名称/电话号码",
|
|
|
+ prompt: "用户名称/电话号码",
|
|
|
labelWidth: 'auto',
|
|
|
events: {keydown: enterQueryGrid1}, width: 350
|
|
|
},
|
|
|
+ {xtype: 'hidden', name: 'unitId'},
|
|
|
+ {
|
|
|
+ xtype: 'searchbox',
|
|
|
+ label: '部门',
|
|
|
+ name: 'unit',
|
|
|
+ prompt: "部门",
|
|
|
+ width: '400px',
|
|
|
+ widget: widgets.selectTableUnit,// 弹出框方法
|
|
|
+ labelWidth: '120px',
|
|
|
+ onChange: function (value) {
|
|
|
+ if (!isNotNullOrEmpty(value)) {
|
|
|
+ $form.formSet({
|
|
|
+ unitId : ''
|
|
|
+ })
|
|
|
+ }
|
|
|
+ queryGrid1();
|
|
|
+ },
|
|
|
+ },
|
|
|
]]
|
|
|
};
|
|
|
|