2024-07-31 19:01:05 +08:00
|
|
|
//全局的页面遮盖
|
|
|
|
|
let loadingMsg;
|
|
|
|
|
var startWorkFiles = {};
|
|
|
|
|
var upload;
|
|
|
|
|
var id;
|
|
|
|
|
var formData;
|
|
|
|
|
|
|
|
|
|
|
2024-08-02 16:34:45 +08:00
|
|
|
layui.use(['form', 'table', 'upload'], function () {
|
2024-07-31 19:01:05 +08:00
|
|
|
let form = layui.form; //只有执行了这一步,部分表单元素才会自动修饰成功
|
|
|
|
|
form.render();
|
|
|
|
|
upload = layui.upload;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form.on('submit(formDemo)', function (data) {
|
|
|
|
|
});
|
|
|
|
|
|
2024-08-02 16:34:45 +08:00
|
|
|
$("#closeBt").click(function(){
|
|
|
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
|
|
|
|
parent.layer.close(index); //再执行关闭
|
|
|
|
|
})
|
|
|
|
|
});
|
2024-07-31 19:01:05 +08:00
|
|
|
|
|
|
|
|
//设置弹窗关闭
|
|
|
|
|
function reloading() {
|
|
|
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
|
|
|
|
parent.layer.close(index); //再执行关闭
|
|
|
|
|
window.parent.location.reload();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//字数检测
|
|
|
|
|
function wordCount(event){
|
|
|
|
|
var count = $("#revokeReason").val().length;
|
|
|
|
|
$("#wordCount").text(count);
|
|
|
|
|
}
|