BIP弹框内容显示的隐藏
2024-10-21 13:32:05
viewModel.on("customInit", function (data) {
// 关闭或取消关原因详情--页面初始化
viewModel.on("afterLoadData", function (event) {
if (
viewModel.originalParams["SetData"] &&
viewModel.originalParams["SetData"] == "取消关闭"
) {
viewModel.get("canCloseRea").setVisible("true"); //取消关闭显示
viewModel.get("reasonClose").setVisible("false"); //关闭隐藏
} else if (
viewModel.originalParams["SetData"] &&
viewModel.originalParams["SetData"] == "关闭"
) {
viewModel.get("canCloseRea").setVisible("false"); //取消关闭隐藏
viewModel.get("reasonClose").setVisible("true"); //关闭显示
}
});
});
//【关闭】功能
viewModel.get("button135ja").on("click", function (args) {
let state = viewModel.get("state").getValue();
let reasonClose = viewModel.get("reasonClose").getValue();
if (state !== "1") {
cb.utils.alert("状态为待认证才可关闭", "error");
return false;
}
if (
reasonClose == null ||
reasonClose == undefined ||
reasonClose == ""
) {
let params = {
mode: "add",
setData: "关闭",
};
let data = {
billtype: "Voucher",
billno: "f8724c3c",
params: params,
};
cb.loader.runCommandLine("bill", data, viewModel);
}
}); //【取消关闭】功能
viewModel.get("button175re").on("click", function (args) {
let closeState = viewModel.get("closeState").getValue();
let canCloseRea = viewModel.get("canCloseRea").getValue();
if (closeState !== "1") {
cb.utils.alert("关闭状态为已关闭才可取消关闭", "error");
return false;
}
if (
canCloseRea == null ||
canCloseRea == undefined ||
canCloseRea == ""
) {
let params = {
mode: "add",
setData: "取消关闭",
};
let data = {
billtype: "Voucher",
billno: "f8724c3c",
params: params,
};
cb.loader.runCommandLine("bill", data, viewModel);
}
});
有bug的写法 viewModel.communication({//弹出模态框
type: 'modal',
payload: {
mode: 'inner',
groupCode: 'modal16tc',
viewModel: viewModel,
readOnly: false
}
})
有bug的样式
最新文章
- 共享文件夹:The user has not been granted the requested logon type at this computer
- MSSQL 多行合并为一行
- 异步数据库查询 Z
- Scala 深入浅出实战经典 第67讲:Scala并发编程匿名Actor、消息传递、偏函数解析
- 理解tornado
- perl dbi 测试 mysql wait_timeout
- poj3708:函数式化简+高精度进制转换+同余方程组
- Ubuntu12.04环境搭建遇到的问题和建议(一个)
- HDU 1724 Ellipse [辛普森积分]
- [BZOJ4825][HNOI2017]单旋spaly
- Java 开发, volatile 你必须了解一下
- VS Code插件配置
- 15 python 初学(闭包,函数装饰器)
- 黄聪:visual studio 2017编译运行出现脚本发生错误等问题如何解决?
- Ubuntu 16.04: How to install OpenCV
- Java多线程面试大全
- poj 2406 Power Strings KMP匹配
- MyBitis(iBitis)系列随笔之三:简单实现CRUD
- Delphi XE TStringBuilder
- ss-libev 源码解析local篇(1): ss_local的启动,客户端连入