Web/JS/menumanagerlist.js

(开头部分) 24KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

Ext.onReady(function () {
    /**定义提示信息**/
    Ext.QuickTips.init();
    //TextField的提示方式为:在右边缘
    Ext.form.Field.prototype.msgTarget = 'side';
    /**创建GridPanel**/
    //查询信息
    var topbararr = [{
        xtype: 'button',
        text: '刷新',
        icon: '../images/btnrefresh.png',
        handler: function () {
            menustore.load({
                params: {
                    start: 0,
                    limit: 10
                }
            });
        }
    },'-', {
        xtype: 'button',
        text: '添加菜单',
        icon: '../images/table_add.png',
        handler: function () {
            menuAdd.show();
        }
    }, '-', {
        xtype: 'button',
        text: '全部删除',
        icon: '../images/table_add.png',
        handler: function () {
            var allcheckbox = Ext.getCmp("menugirdpanel").getSelectionModel().getSelection();
            if (allcheckbox.length == "0") {
                Ext.Msg.alert("提示信息", "请选择删除内容");
                return;
            }
            else {
                if (window.confirm('确定要删除选择内容') == true) {
                    var menuidall="";
                    for (var i = 0; i < allcheckbox.length; i++) {
                        var menuid = allcheckbox[i].get("menuid");
                        menuidall += menuid + ',';
                    }
                    if (menuidall.length > 0)
                    {
                        menuopertion(menuidall,"delAll");
                    }
                }
            }

        }
    }, '-', '查询条件:', {
        xtype: 'textfield',
        id: 'selectname',
        name: 'selectname',
        width: 150
    }, {
        xtype: 'button',
        text: '查询',
        icon: '../images/table_go.png',
后面还有 668 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。