点击报表设置一个提示

image.png

如图,实现点击报表先弹出个提示,让对方先进行条件选择。

FineReport 良月二三 发布于 2024-7-15 12:06
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
HHHHH123Lv7中级互助
发布于2024-7-15 13:55

image.png

function showAlert() {

    // 显示警告框

    alert("先选择会计科目,再进行查询");

    // 设置一个3秒的定时器

    setTimeout(function() {

        // 使用定时器关闭警告框

        var alertBox = document.querySelector(".alert-box");

        if (alertBox) {

            alertBox.style.display = "none";

        }

    }, 3000);

}

// 创建自定义警告框

function createCustomAlert() {

    var alertBox = document.createElement("div");

    alertBox.className = "alert-box";

    alertBox.innerText = "先选择会计科目,再进行查询";

    alertBox.style.position = "fixed";

    alertBox.style.top = "50%";

    alertBox.style.left = "50%";

    alertBox.style.transform = "translate(-50%, -50%)";

    alertBox.style.padding = "20px";

    alertBox.style.backgroundColor = "#f44336";

    alertBox.style.color = "#fff";

    alertBox.style.zIndex = "1000";

    document.body.appendChild(alertBox);

    // 设置一个3秒的定时器

    setTimeout(function() {

        alertBox.style.display = "none";

    }, 3000);

}

// 调用自定义警告框

createCustomAlert();

最佳回答
0
CovidLv3高级互助
发布于2024-7-15 12:15

会计科目控件

image.png

  • 3关注人数
  • 131浏览人数
  • 最后回答于:2024-7-15 13:55
    请选择关闭问题的原因
    确定 取消
    返回顶部