Extjs mvc 组合框';在extjs MVC中未加载s值

Extjs mvc 组合框';在extjs MVC中未加载s值,extjs-mvc,Extjs Mvc,我正在使用ExtJS MVC并实现调度器 我想在我的组合框中加载我的存储,但未成功加载 我的店铺是 Ext.define('gantt.store.serviceStore', { extend: 'Ext.data.Store', model: 'gantt.model.Service', storeId: 'serviceStore', autoLoad: true, autoSync: true, proxy: { type:

我正在使用ExtJS MVC并实现调度器

我想在我的组合框中加载我的存储,但未成功加载

我的店铺是

Ext.define('gantt.store.serviceStore', {
    extend: 'Ext.data.Store',
    model: 'gantt.model.Service',
    storeId: 'serviceStore',
    autoLoad: true,
    autoSync: true,
    proxy: {
        type: 'ajax',
        api: {
            read: 'Event/Get'
        },
        reader: {
            type: 'json',
            root: 'data'
        },
        writer: {
            type: 'json',
            encode: true,
            writeAllFields: true,
            root: 'data'
        }
    }
});
Ext.define('gantt.model.Service', {
    extend: 'Sch.model.Event',
    fields: [{ name: 'ServiceId' },
        { name: 'ServiceName' },
        { name: 'Description' },
        { name: 'Rate' }
        ],
    proxy: {
        type: 'ajax',
        api: {
            read: 'Service/Get'
        },
        reader: {
            type: 'json',
            root: 'data'
        },
        writer: {
            root: 'data',
            type: 'json',
            encode: true,
            writeAllFields: true
        }
    }
});
我的型号是

Ext.define('gantt.store.serviceStore', {
    extend: 'Ext.data.Store',
    model: 'gantt.model.Service',
    storeId: 'serviceStore',
    autoLoad: true,
    autoSync: true,
    proxy: {
        type: 'ajax',
        api: {
            read: 'Event/Get'
        },
        reader: {
            type: 'json',
            root: 'data'
        },
        writer: {
            type: 'json',
            encode: true,
            writeAllFields: true,
            root: 'data'
        }
    }
});
Ext.define('gantt.model.Service', {
    extend: 'Sch.model.Event',
    fields: [{ name: 'ServiceId' },
        { name: 'ServiceName' },
        { name: 'Description' },
        { name: 'Rate' }
        ],
    proxy: {
        type: 'ajax',
        api: {
            read: 'Service/Get'
        },
        reader: {
            type: 'json',
            root: 'data'
        },
        writer: {
            root: 'data',
            type: 'json',
            encode: true,
            writeAllFields: true
        }
    }
});
我的组合框代码如下

this.combo = new Ext.form.ComboBox({
   id: 'statesCombo',
   store: 'serviceStore',
   displayField: 'ServiceName',
   valueField: 'ServiceName',
   hiddenName: 'ServiceId',
   typeAhead: true,
   mode: 'local',
   fieldLabel: 'Services',
   anchor: '100%',
   forceSelection: true,
   triggerAction: 'all',
   emptyText: 'Select a Service',
   selectOnFocus: true   })
我的问题是,当我点击组合框时,我的值没有加载。。 并且没有显示任何错误。

您缺少“名称”选项。。。像这样:


name:'ServiceName',

您是否看到与服务器的通信尝试?实际上我正在创建计划程序,但当我单击组合框时,它将调用事件Get,而不是服务Get。它将无法与服务器正确交互