• ExtJs6级联combo的实现


    父类获取子类进行操作

        {
                xtype: 'combo',
                store: Common.Dic.getDicData("IMAGE_BIG_TYPE") ,
                multiSelect: false,
                valueField: 'dictionaryText',
                displayField: 'dictionaryText',
                name: 'bigType',
                fieldLabel: '一级分类',
                emptyText: '一级分类',
                allowBlank:false,
                listeners : {select : function(combo, record, index) {
                        var spaceCombo=Ext.getCmp('customerF').form.findField('space');
                        var spaceStore = spaceCombo.store;
                        spaceCombo.clearValue();
                        spaceStore.reload({
                            params : {
                                typeName : record.get('dictionaryText')
                            }
                        });
                        spaceCombo.expand();
                    }
                }
            } ,{
                xtype: 'combo',
                store :Ext.create('Ext.data.Store', {
                    model: 'dictionary.Dictionary',
                    proxy: {
                        type: 'ajax',
                        extraParams:{
                            type:0
                        },
                        url: Common.Config.requestPath('Dictionary' , 'getDictionaryByType'),
                        reader: {
                            type: 'json',
                            rootProperty: 'data'
                        }
                    }
                }),
                multiSelect: true,
                valueField: 'dictionaryText',
                displayField: 'dictionaryText',
                name: 'space',
                fieldLabel: '空间(功能)',
                emptyText: '请选择空间(功能)',
                allowBlank:false
            }
  • 相关阅读:
    常用JSR-303数据校验
    SpringBoot配置文件及自动配置原理
    SpringBoot自动装配原理
    Centos安装TensorFlow和Keras
    Batch梯度下降
    梯度下降法的注意点
    读取流量
    Linux开机启动服务
    Shell分割字符得到数组
    Linux下无图形界面安装Matlab
  • 原文地址:https://www.cnblogs.com/Java-Starter/p/7825201.html
Copyright © 2020-2023  润新知