|
@@ -10,18 +10,14 @@
|
|
|
<form id="formId">
|
|
|
<div class="select-list">
|
|
|
<ul>
|
|
|
+ <input type="hidden" id="platformInterfacetype" name="platformInterfacetype" th:value="${shareType}">
|
|
|
<li>
|
|
|
<label>登录名:</label>
|
|
|
<input type="text" name="loginName"/>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <label>接口类型:</label>
|
|
|
- <select name="platformInterfacetype"
|
|
|
- th:with="type=${@dict.getType('share_type')}">
|
|
|
- <option value="">所有</option>
|
|
|
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
- th:value="${dict.dictValue}"></option>
|
|
|
- </select>
|
|
|
+ <label>调用部门:</label>
|
|
|
+ <input type="text" name="deptName" onclick="selectDeptTree()" id="treeName" placeholder="请选择接口调用部门"/>
|
|
|
</li>
|
|
|
<li>
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
|
@@ -51,10 +47,11 @@
|
|
|
let platform_interfacetype_datas = [[${@dict.getType('platform_interfacetype')}]];
|
|
|
let shareType_datas = [[${@dict.getType('share_type')}]];
|
|
|
let intId = [[${intId}]];
|
|
|
+ let shareType = [[${shareType}]];
|
|
|
|
|
|
$(function () {
|
|
|
var options = {
|
|
|
- url: prefix + "/list?id=" + intId,
|
|
|
+ url: prefix + "/list?id="+intId+"&platformInterfacetype="+shareType,
|
|
|
detailUrl: prefix + "/detail/{id}",
|
|
|
exportUrl: prefix + "/export",
|
|
|
modalName: "接口调用日志",
|
|
@@ -129,6 +126,7 @@
|
|
|
{
|
|
|
field: 'platformInterfacetype',
|
|
|
title: '接口类型',
|
|
|
+ visible: false,
|
|
|
formatter: function (value, item, index) {
|
|
|
return $.table.selectDictLabel(shareType_datas, item.platformInterfacetype);
|
|
|
}
|
|
@@ -195,6 +193,30 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**选择部门树**/
|
|
|
+ function selectDeptTree() {
|
|
|
+ var treeId = $("#treeId").val();
|
|
|
+ var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
|
|
|
+ var url = ctx + "system/dept/selectDeptTree/" + deptId;
|
|
|
+ var options = {
|
|
|
+ title: '选择部门',
|
|
|
+ width: "380",
|
|
|
+ url: url,
|
|
|
+ callBack: doSubmit
|
|
|
+ };
|
|
|
+ $.modal.openOptions(options);
|
|
|
+ }
|
|
|
+
|
|
|
+ function doSubmit(index, layero){
|
|
|
+ var tree = layero.find("iframe")[0].contentWindow.$._tree;
|
|
|
+ if ($.tree.notAllowParents(tree)) {
|
|
|
+ var body = layer.getChildFrame('body', index);
|
|
|
+ $("#treeName").val(body.find('#treeName').val());
|
|
|
+ layer.close(index);
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|