|
@@ -3,6 +3,18 @@ define(function (require) {
|
|
|
|
|
|
var $grid1, $form;
|
|
|
|
|
|
+ // 弹框的方式
|
|
|
+ var widgets = {
|
|
|
+ // 搜索分类检索
|
|
|
+ selectTableUnit: {
|
|
|
+ url: 'app/whepi/home/selectLYbumen.js',
|
|
|
+ bind: {
|
|
|
+ unitId: 'unitId',
|
|
|
+ unit: 'unit',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
// 输入搜索文本后点击回车按钮查询列表
|
|
|
function enterQueryGrid1(e) {
|
|
|
if (e.keyCode === 13) {
|
|
@@ -58,6 +70,24 @@ define(function (require) {
|
|
|
labelWidth: 'auto',
|
|
|
events: {keydown: enterQueryGrid1}, width: 350
|
|
|
},
|
|
|
+ {xtype: 'hidden', name: 'unitId'},
|
|
|
+ {
|
|
|
+ xtype: 'searchbox',
|
|
|
+ label: '部门',
|
|
|
+ labelWidth: 'auto',
|
|
|
+ name: 'unit',
|
|
|
+ prompt: "部门",
|
|
|
+ width: 250,
|
|
|
+ widget: widgets.selectTableUnit,// 弹出框方法
|
|
|
+ onChange: function (value) {
|
|
|
+ if (!isNotNullOrEmpty(value)) {
|
|
|
+ $form.formSet({
|
|
|
+ unitId : ''
|
|
|
+ })
|
|
|
+ }
|
|
|
+ queryGrid1();
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
xtype: 'textbox',
|
|
|
label: '电话',
|