关于帆软参数栏收起展开按钮样式更改的问题

如图,这个按钮可以变大或者更改图吗?

image.png

我设置一下,发现不能变大或者换图,有大佬知道怎么改吗?

image.png

FineReport 狂奔的小蜗牛 发布于 2021-3-25 16:14
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
狂奔的小蜗牛Lv3见习互助
发布于2021-9-29 11:18

添加加载前事件:

 $(window).off("resize");

 $(function() {

  //  setTimeout(function () {

console.log("is first load" + window.isFirstLoad)

  if (!window.isFirstLoad) {

  var upArrow =

  "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAPDklEQVR4Xu1daXAcxRX+3qzWNsaHdlcKDhCIY60MocIRIBAICWdxBAIhtjA2l7HltQ4T+JO/Ib+pionxrjRrGxvwgS3lIIQjVAhUgHBDqIopSysfHDGHpV0MNkjWTr9Uz9pgjKTulVZ7zPT+2qr5prvf975+09P9uodgfr5mgHxtvTEeRgA+F4ERgBGAzxnwufkmAhgB+JwBn5tvIoARgM8Z8Ln5JgIYAficAZ+bbyKAEYDPGfC5+SYCGAH4nAGfm28igBGAzxnwufkmAhgB+JwBn5tvIoARgM8Z8Ln5JgIYAficAZ+bbyKAEYDPGfC5+SYCGAH4nAGfm28igBGAzxnwufkmAhgB+I+BUNv2qy0WSxi4RlpPwKMCbGea6x/zGxu+iQA19q5vi+xADGQ1Ajh2SEcz3idieyBL9r47onv8IAbPC+DI3q7vVPoTmO10S/Qp/XsqD+lJAXzV22kxQMeN0S07GbAHs7jfi1HBUwLIp7cz0ENE7VIczLyUgDoNoWy2mOzelrpnNLAVAal4ARz2bL8NwIkarHeQEHZf6+ynD8dGVnZdwpYVAzBXXQZ1A2wfyOKhSo8KFSuAfHo7gHcJaB+cMMn+dPF30iM5eNrq98LBA/0xBpYCOEElBgLWOw7WfLIs+qwKW47XK0oAh3o7kXUTA7NU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var $parameterContainer = $(".parameter-container");

  var $btn = $(".parameter-container .fr-horizontalboxlayout:eq(0) > div");

  var $parent = $btn.parent();

  var $parameter = $(".parameter-container .fr-horizontalboxlayout:eq(1)");

  var parameterHeight = parseInt($parameter.css("height"));

  var $contentContainer = $("#content-container");

  $btn.off("click");

  $btn.css({

  height: "32px",

  "background-image": "url(" + downArrow + ")",

  "background-size": "32px 32px",

  "background-position": "center"

  });

  $parent.css({

  height: "32px",

  top: "0px"

  });

  $parameterContainer.css({

  height: "32px"

  });

  $parameter.css({

  height: "0px"

  });

  $contentContainer.css({

  top: "40px"

  });

  $btn.on("click", function() {

  if ($btn.hasClass("parameter-container-collapseimg-up")) {

  // 展开

  $btn

  .removeClass("parameter-container-collapseimg-up")

  .addClass("parameter-container-collapseimg-down");

  $btn.css({

  height: "32px",

  "background-image": "url(" + upArrow + ")",

  "background-size": "32px 32px"

  });

  $parent.css("height", "32px");

  $parameter.css("height", parameterHeight + "px");

  $parent.css("top", parameterHeight - 8 + "px");

  $parameterContainer.css("height", parameterHeight + 24 + "px");

  $contentContainer.css("top", parameterHeight + 24 + "px");

  } else {

  // 折叠

  $btn

  .removeClass("parameter-container-collapseimg-down")

  .addClass("parameter-container-collapseimg-up");

  $btn.css({

  height: "32px",

  "background-image": "url(" + downArrow + ")",

  "background-size": "32px 32px"

  });

  $parent.css("height", "32px");

  $parameter.css("height", "0px");

  $parent.css("top", "0px");

  $parameterContainer.css("height", "32px");

  $contentContainer.css("top", "40px");

  }

  });

  }

 });

添加加载后事件:

//将帆软变更的高度再次赋值

if (!window.isFirstLoad) {

setTimeout(function() {

var $parameterContainer = $(".parameter-container");

var $btn = $(".parameter-container .fr-horizontalboxlayout:eq(0) > div");

var $parent = $btn.parent();

var $parameter = $(".parameter-container .fr-horizontalboxlayout:eq(1)");

var parameterHeight = parseInt($parameter.css("height"));

var $contentContainer = $("#content-container");

$btn.css({

height: "32px"

});

$parent.css({

height: "32px",

top: "0px"

});

$parameterContainer.css({

height: "32px"

});

$parameter.css({

height: "0px"

});

$contentContainer.css({

top: "40px"

});

}, 100)

};

$.ajax({

url: "https://t.jundunxueyuan.com/educ-mgt/getSysUserExportJuri.do",

type: 'GET',

contentType: "application/json",

data: {

userId: userId

},

//dataType: "jsonp",

success: function(data) {

console.log("-----", data)

if (data.code == 1) {

var exp = data.data.exportJuri;

if (exp== 1) {

$(".x-emb-export").show();

} else {

$(".x-emb-export").hide();

}

} else {

$(".x-emb-export").hide();

}

},

});

查询按钮事件:

window.isFirstLoad = true;

最佳回答
0
snrtuemcLv8专家互助
发布于2021-3-25 16:17

这个目前好像没有办法变大,可以隐藏

  • 狂奔的小蜗牛 狂奔的小蜗牛(提问者) 不也能换成别的图呗,现在有需求,说嫌弃小,不好点,不够醒目
    2021-03-25 16:19 
  • snrtuemc snrtuemc 回复 狂奔的小蜗牛(提问者) 自己会js,可以通过js+css来改变他,我这边还没方案
    2021-09-29 07:51 
  • 狂奔的小蜗牛 狂奔的小蜗牛(提问者) 回复 snrtuemc 我 这里实现了
    2021-09-29 09:47 
  • snrtuemc snrtuemc 回复 狂奔的小蜗牛(提问者) 可以上传下代码吗?大家一起学习下
    2021-09-29 09:49 
  • 狂奔的小蜗牛 狂奔的小蜗牛(提问者) 回复 snrtuemc 可以,但是现在不行啊,现在我遇到一个问题,这个报表的软件登不上了,我在社区发了下,看看有没有人知道原因,等我登录上了我把代码拿下来上传
    2021-09-29 09:53 
  • 1关注人数
  • 579浏览人数
  • 最后回答于:2021-9-29 11:18
    请选择关闭问题的原因
    确定 取消
    返回顶部