EXT 重载

KGSIR 2017-10-20 05:20:38
图是 我写的页面,我想要实现的是在文本框中输入值,底下的重新加载

这是主页代码

这是底下子页代码
Ext.define('YZSoft.src.component.ProcessSegmentedButton', {
extend: 'YZSoft.src.component.SquaredSegmentedButton',
config: {
minBoxCount: 3,
minBoxWidth: 150,
scrollable: null,
cls: 'yz-layout-columnbuttons'
},

constructor: function (config) {
var me = this,
items = [],
processeNames, cfg;

YZSoft.Ajax.request({
async: false,
url: YZSoft.$url('YZSoft.Services.REST.Mobile/BPM/Process.ashx'),
params: {
method: 'GetAllProcessNames'
},
success: function (action) {
var prn;
prn = action.result;
if (config.Method == "a") {
prn.splice(1, 1);
}
processeNames = prn;
}
});

items.push({
text: RS.$('All__All'),
value: null,
isAll:true
});

Ext.each(processeNames, function (processName) {
items.push({
text: processName,
value: processName
});
});

cfg = {
items: items
};

Ext.apply(cfg, config);
me.callParent([cfg]);
}
});

会的回复一下,谢谢
...全文
274 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

52,797

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧