【发布时间】:2019-03-01 12:52:55
【问题描述】:
我在 extjs 中编写新标签,它是前一个标签的副本,但数据将相同。
使用 route.jsp 文件从一个选项卡移动到另一个选项卡
说选项卡 A 是旧的,选项卡 B 是新的,两者都使用相同的 route.jsp(路由器)
GLOBAL_PERSON_FILTERS = ['name' 'age']
这是一个标签
this.MGridFilter = {
ftype : 'filters',
encode : true, // json encode the filter query
local : true, // defaults to false (remote filtering)
filters : [
{
type : 'list',
dataIndex : 'endview',
options : Indigo.GLOBAL_PERSON_FILTERS
},
也复制了相同的选项卡 B,但选项名称已更改
GLOBAL_TEST_PERSON_FILTERS = ['designation' 'company']
this.MGridFilter = {
ftype : 'filters',
encode : true, // json encode the filter query
local : true, // defaults to false (remote filtering)
filters : [
{
type : 'list',
dataIndex : 'endview',
options : Indigo.GLOBAL_TEST_PERSON_FILTERS
},
但我面临的问题是,当我检查选项卡 B 中的过滤器时,选项卡 A 也会受到影响
请帮我解决这个问题
【问题讨论】: