提交 ab44d677 编写于 作者: doc_wei's avatar doc_wei

页面更新

上级 2a094792
......@@ -35,6 +35,9 @@ function _openNewWindows(mation){
if(isNull(mation.offset)){
mation.offset = ['15vh', '20vw'];
}
if(isNull(mation.maxmin)){
mation.maxmin = false;
}
var index = layer.load(1);
refreshCode = "";
layui.$.ajax({
......@@ -45,19 +48,23 @@ function _openNewWindows(mation){
layer.close(index);
//从桌面打开
// top.winui.window.open
layer.open({
var pageIndex = layer.open({
id: mation.pageId,
type: 2,
title: mation.title,
content: mation.url,
area: mation.area,
offset: mation.offset,
maxmin: mation.maxmin,
end: function(){
if(typeof(mation.callBack) == "function") {
mation.callBack(refreshCode);
}
}
});
if(mation.maxmin){
layer.full(pageIndex);
}
},
error: function (xml) {
layer.close(index);
......
......@@ -79,7 +79,6 @@ layui.config({
url: "../../tpl/rmmysmpropage/mysmpropagelist.html",
title: "管理项目",
pageId: "rmmysmproconsolePro",
area:[],
maxmin: true,
callBack: function(refreshCode){
if (refreshCode == '0') {
......
layui.config({
base: basePath,
version: skyeyeVersion
}).define(['table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table;
console.log(parent.rowId);
function loadTable(){
table.reload("messageTable", {where:{proName:$("#proName").val()}});
}
exports('mysmpropagelist', {});
});
......@@ -34,7 +34,8 @@
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑项目</a>
<a class="layui-btn layui-btn-xs" lay-event="consolePro">管理项目</a>
{{# if(d.pageNum == 0 && d.modelNum == 0){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
{{# } }}
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i>刷新数据</button>
<button id="addBean" class="winui-toolbtn"><i class="fa fa-plus" aria-hidden="true"></i>新增项目</button>
</div>
</div>
<div class="txtcenter" style="width:700px;margin:0 auto;padding-top:20px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/rmmysmpropage/'}).use('mysmpropagelist');
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册