|
@@ -40,8 +40,10 @@
|
|
<a href="#">特殊分组</a>
|
|
<a href="#">特殊分组</a>
|
|
<dl class="layui-nav-child">
|
|
<dl class="layui-nav-child">
|
|
<dd><a class="pageRequest" href="#"
|
|
<dd><a class="pageRequest" href="#"
|
|
- data-param="{"elementType": "","pageID": ""}">全部数据</a></dd>
|
|
|
|
- <dd><a class="pageRequest" href="#" data-param="{"elementType": 3,"pageID": ""}">个人数据</a></dd>
|
|
|
|
|
|
+ data-param="{"elementType": "","pageID": ""}">全部数据</a>
|
|
|
|
+ </dd>
|
|
|
|
+ <dd><a class="pageRequest" href="#"
|
|
|
|
+ data-param="{"elementType": 3,"pageID": ""}">个人数据</a></dd>
|
|
</dl>
|
|
</dl>
|
|
</li>
|
|
</li>
|
|
<li class="layui-nav-item">
|
|
<li class="layui-nav-item">
|
|
@@ -79,7 +81,8 @@
|
|
<div class="layui-inline" style="display: inline">
|
|
<div class="layui-inline" style="display: inline">
|
|
<label class="layui-form-label" style="width: 90px;">Android</label>
|
|
<label class="layui-form-label" style="width: 90px;">Android</label>
|
|
<div class="layui-input-inline" style="width: 18%;">
|
|
<div class="layui-input-inline" style="width: 18%;">
|
|
- <input type="text" name="elementAndroidLocate" class="layui-input" placeholder="请输入Android定位关键值">
|
|
|
|
|
|
+ <input type="text" name="elementAndroidLocate" class="layui-input"
|
|
|
|
+ placeholder="请输入Android定位关键值">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline" style="display: inline">
|
|
<div class="layui-inline" style="display: inline">
|
|
@@ -95,7 +98,9 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline" style="display: inline">
|
|
<div class="layui-inline" style="display: inline">
|
|
- <button type="button" class="layui-btn mgl-20" lay-submit lay-filter="search"><i class="layui-icon"></i>查询</button>
|
|
|
|
|
|
+ <button type="button" class="layui-btn mgl-20" lay-submit lay-filter="search"><i
|
|
|
|
+ class="layui-icon"></i>查询
|
|
|
|
+ </button>
|
|
<button class="layui-btn layui-btn-primary" type="reset" lay-active="reset">重置</button>
|
|
<button class="layui-btn layui-btn-primary" type="reset" lay-active="reset">重置</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -141,6 +146,7 @@
|
|
</script>
|
|
</script>
|
|
<script type="text/html" id="toolbar">
|
|
<script type="text/html" id="toolbar">
|
|
<a class="layui-btn layui-btn-sm" lay-event="clearFilter">清除所有筛选条件</a>
|
|
<a class="layui-btn layui-btn-sm" lay-event="clearFilter">清除所有筛选条件</a>
|
|
|
|
+ <a class="layui-btn layui-btn-sm" lay-event="addElement">添加</a>
|
|
</script>
|
|
</script>
|
|
<script type="text/html" id="elementTypeTpl">
|
|
<script type="text/html" id="elementTypeTpl">
|
|
{{# if(d.elementType === 0){ }}
|
|
{{# if(d.elementType === 0){ }}
|
|
@@ -277,11 +283,11 @@
|
|
|
|
|
|
//处理属性 为 lay-active 的所有元素事件
|
|
//处理属性 为 lay-active 的所有元素事件
|
|
util.event('lay-active', {
|
|
util.event('lay-active', {
|
|
- reset: function(othis){
|
|
|
|
|
|
+ reset: function (othis) {
|
|
table.reload('myTable', {
|
|
table.reload('myTable', {
|
|
where: {
|
|
where: {
|
|
- elementType : elementType,
|
|
|
|
- pageID : pageID
|
|
|
|
|
|
+ elementType: elementType,
|
|
|
|
+ pageID: pageID
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -333,6 +339,21 @@
|
|
// 清除所有筛选条件并重载表格
|
|
// 清除所有筛选条件并重载表格
|
|
// 参数: tableId
|
|
// 参数: tableId
|
|
soulTable.clearFilter('myTable')
|
|
soulTable.clearFilter('myTable')
|
|
|
|
+ } else if (obj.event === 'addElement') {
|
|
|
|
+ layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: ['700px', '450px'],
|
|
|
|
+ fixed: false, //不固定
|
|
|
|
+ maxmin: true,
|
|
|
|
+ resizing: false,
|
|
|
|
+ content: 'addElement',
|
|
|
|
+ success: function (layero, index) {
|
|
|
|
+ let iframe = window['layui-layer-iframe' + index];
|
|
|
|
+ console.log(iframe);
|
|
|
|
+ // console.log("父组件" + pageID);
|
|
|
|
+ iframe.test1("123123");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|