码迷,mamicode.com
首页 > 其他好文 > 详细

菜品类型

时间:2017-01-09 11:33:27      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:var   ons   val   padding   cancel   tle   save   typename   mode   

platformDishAddStyle: function() {
        var store = Ext.data.StoreManager.lookup("DISH_STATUS");
        console.log(store);
        Ext.create(‘Ext.window.Window‘, {
            width: ‘50%‘,
            height: ‘70%‘,
            modal: true,
            border: false,
            itemId: ‘addPlatDishTypeItemId‘,
            padding: ‘0 0 0 5‘,

            items: [{
                xtype: ‘fieldset‘,
                title: forp.model.bussiness.dishType.group1title,
                // in this section we use the form layout that will aggregate all of the fields
                // into a single table, rather than one table per field.
                defaults: {
                    anchor: ‘100%‘
                },

                collapsible: true,
                //                        flex: 1,
                layout: {
                    type: ‘table‘,

                    columns: 4,
                    tableAttrs: {
                        style: {
                            width: ‘100%‘
                        }
                    }
                },

                items: [{
                    xtype: ‘textfield‘,
                    name: ‘dishTypeName‘,
                    itemId: ‘dishTypeNameItemId‘,
                    colspan: 2,
                    //                            width : "50%",
                    fieldLabel: forp.model.bussiness.dishType.name
                },
                {
                    xtype: ‘combobox‘,
                    fieldLabel: forp.model.bussiness.dishType.status,
                    //‘会员类型‘,
                    valueField: ‘code‘,
                    displayField: ‘name‘,
                    itemId: ‘dishTypeStatusItemId‘,
                    colspan: 2,
                    //                            width : "50%",
                    store: store

                },
                {
                    xtype: ‘textareafield‘,
                    grow: true,
                    name: ‘dishTypeIntroduces‘,
                    itemId: ‘dishTypeIntroducesItemId‘,
                    fieldLabel: forp.model.bussiness.dishType.introduces,
                    width: ‘84.5%‘,
                    colspan: 4
                }]
            }],
            buttons: [{
                text: forp.cancel,
                //取消
                handler: ‘platDishTypeCancel‘,
                itemId: ‘resetButtonItemId‘
            },
            {
                text: forp.save,
                handler: ‘platDishTypeSave‘,
                itemId: ‘saveButtonItemId‘
            }]
        }).show();
    },

菜品类型

标签:var   ons   val   padding   cancel   tle   save   typename   mode   

原文地址:http://www.cnblogs.com/tian114527375/p/6264251.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!