Ext combo 回填显示值问题

                    {
                   name : 'sysUser.useMobile',
                   id : 'useMobile',
                   fieldLabel : '<font color=red>*</font>使用移动端',
                   allowBlank : false,
                   hiddenName : 'sysUser.useMobile',
                   mode : 'local',
                   editable : false,
                   triggerAction : 'all',
                   store : new Ext.data.JsonStore({
                       root : "result",
                       totalProperty : "totalCounts",
                       autoLoad : true,
                       url : __ctxPath + "/system/loadDictionary.do?typeKey=UserMobile",
                       fields : [ "itemCode", "itemValue" ],
                       listeners : {
                           load : function() {
                               Ext.getCmp('useMobile').setValue(Ext.getCmp('useMobile').getValue())
                           }
                       }

                   }),
                   xtype : 'combo',
                   valueField : "itemValue",
                   displayField : "itemCode"
               },

猜你喜欢

转载自blog.csdn.net/weixin_37627291/article/details/80414545
ext