添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱跑步的口罩  ·  【Spring ...·  1 年前    · 
道上混的丝瓜  ·  sql server if ...·  1 年前    · 
精彩文章免费看

帆软 通过JS 获取单元格的值

$(".x-table tr").click(function(){
 var a = $(this).find("td:eq(0)").text(); //获得当行第一个单元格的值作为参数
 var b = contentPane.parameterEl.getWidgetByName('p2').getValue()  
 contentPane.parameterEl.getWidgetByName('p2').setValue(a)
 window.alert(a+b)
document.getElementById('r-40-0').getElementsByTagName('span')[0].textContent
$('#r-40-0 td span')[0].textContent

https://help.fanruan.com/finereport10.0/doc-view-4301.html

获取单元格值 判断 跳转报表 参数传递

    var isdep = $(this).find("td:eq(2)").text(); //获得当行第一个单元格的值作为参数
    if(isdep != ''){
        window.alert('开始跳转')
        var url = encodeURI(encodeURI("${servletURL}?viewlet=WorkBook29.cpt&p1="+ isdep));
        FR.doHyperlinkByGet({
                url: url,
                title: '员工简历'
    window.alert(isdep)
//table = document.getElementsByClassName("react-table")[2]
//btn = table.getElementsByTagName("div")
//btnLength = btn.length
//for(var i=0; i<btnLength; i++){
//  (function(i){
//      var b = btn[i]
//      b.onclick = function(){
//          row = b.id.split("_")[3]
//          id = "col_2_row_"+row
//          phone = document.getElementById(id).textContent
//          alert(phone)
//      }
//  })(i)