求助layui table中隐藏一些按键

提问 未结
8 377
fishchips
fishchips 2017-8-11
悬赏:5飞吻
table中opset的某个按钮,怎么样能在每行数据不能情况隐藏呢?

}, opset: {
title: "操作",
btn: {
"edit": ["编辑", function (e) { var $this = $(this); gotoEditUrl(e.ID) }],
"delete": ["删除", function (e) { var $this = $(this); delData(e.ID) }],
"save": ["添加大区", function (e) { var $this = $(this); gotoAddLocationGroupUrl(e.ID) }],
"children": ["下属大区", function (e) { var $this = $(this); gotoChildrenUrl(e.ID) }],
"area": ["下属地区", function (e) { var $this = $(this); gotoAddLocationGroupUrl(e.ID) }],
"parent": ["所属厂商", function (e) { var $this = $(this); gotoParentUrl(e.ID) }],
}
},

回帖