您当前的位置: 首页 > 

苗先生的PHP记录

暂无认证

  • 5浏览

    0关注

    190博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

fastadmin隐藏自定义按钮

苗先生的PHP记录 发布时间:2021-07-07 17:06:34 ,浏览量:5

 buttons: [
                                {
                                    name: 'ajax',
                                    text: __('审核通过'),
                                    title: __('审核通过'),
                                    classname: 'btn btn-xs btn-success btn-magic btn-ajax',
                                    icon: 'fa fa-magic',
                                    url: 'user/withdraw/checkdraw'+'?status=1',
                                    confirm: '确认审核',
                                    success: function (data, ret) {
                                        Layer.alert(ret.msg);
                                        window.setInterval(function () {
                                            window.location.reload();
                                        },1000);
                                        return false;
                                    },
                                    error: function (data, ret) {
                                        Layer.alert(ret.msg);
                                        return false;
                                    }
                                    ,visible: function (row) {
                                        if (row.status == 0){
                                            return true;
                                        }
                                        return false;
                                    },
                                },
                                {
                                    name: 'zidingyi2',
                                    text: __('审核拒绝'),
                                    title: __('审核拒绝'),
                                    classname: 'btn btn-xs btn-danger btn-ajax',
                                    icon: 'fa fa-angellist',
                                    url: 'user/withdraw/checkdraw'+'?status=2',
                                    confirm: '确认拒绝',
                                    visible: function (row) {
                                        if (row.status == 0){
                                            return true;
                                        }
                                        return false;
                                    },
                                    refresh:true
                                }
                            ],
关注
打赏
1665468453
查看更多评论
立即登录/注册

微信扫码登录

0.0442s