阅读:1352 回复:2
bpmh3
83

帖子

250

跟帖

2431

积分

铂金榴莲
铂金榴莲
  • 社区居民

发起流程不展开菜单

楼主#
更多 发布于:2017-07-18 09:24
如何设置发起流程默认不进行菜单展开,如下图@t156965365 @武汉技术支持团队 @岩竹玉雨

最新喜欢:

金先森金先森
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
1楼#
发布于:2017-07-19 00:18
帖内置顶  –    –  2017-07-19 11:20
在bootstrap-table.js这个文件里加入下面代码
    

图片:dai.png

if (this.$body.find('> tr').length > 1) {
         this.$body.find('> tr').each(function () {
             var childrenkey = $(this).attr("data-childrenkey");
             var parentkey = $(this).attr("data-parentkey");
             if (childrenkey && parentkey == "") {
                 $(this).find("td:eq(0)").click();
                 var labtd = $(this).text().trim();
                 if (labtd == "常用流程") {
                     $(this).find("td:eq(0)").click();
                 }
             }
 
         });
     }
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
2楼#
发布于:2017-07-19 00:18
在bootstrap-table.js这个文件里加入下面代码
    

图片:dai.png

if (this.$body.find('> tr').length > 1) {
         this.$body.find('> tr').each(function () {
             var childrenkey = $(this).attr("data-childrenkey");
             var parentkey = $(this).attr("data-parentkey");
             if (childrenkey && parentkey == "") {
                 $(this).find("td:eq(0)").click();
                 var labtd = $(this).text().trim();
                 if (labtd == "常用流程") {
                     $(this).find("td:eq(0)").click();
                 }
             }
 
         });
     }
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
3楼#
发布于:2017-07-19 00:19
代码位置如截图
游客

返回顶部