layui.use( function(){
let table = layui.table;
let dropdown = layui.dropdown;
let $ = layui.$;
});
$.ajax({
url: "/test/actionTotal.html",
method: "post",
data: JSON.stringify(data12[0]),
contentType: 'application/json;charset=utf-8',
dataType: "json",
success: function (res) {
console.log("res:" + JSON.stringify(res));
if (res.code == 0) {
layer.msg("执行成功", {time: 2 * 1000});
} else {
layer.msg("执行失败", {time: 2 * 1000});
}
//parent.layui.table.reload('testTaomao3DTable');
//let index = parent.layer.getFrameIndex(window.name); //获取当前窗口的name
//parent.layer.close(index);//关闭窗口
},
error: function () {
layer.msg("添加异常", {time: 2 * 1000});
}
});