api根据条件查询,选择条件固定
This commit is contained in:
@@ -28,28 +28,10 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
background-color: #f2f2f2;
|
background-color: #f2f2f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resizable-td {
|
.resizable-td {
|
||||||
resize: horizontal;
|
resize: horizontal; /* 允许水平调整大小 */
|
||||||
overflow: auto;
|
overflow: auto; /* 显示滚动条以便查看超出部分 */
|
||||||
min-width: 50px;
|
min-width: 50px; /* 设置最小宽度,防止过于缩小 */
|
||||||
}
|
|
||||||
|
|
||||||
.form-label {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-select {
|
|
||||||
font-size: 15px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-button {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -69,71 +51,152 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="purpose" class="form-label">账号用途:</label>
|
<label for="purpose" class="form-label">账号用途:</label>
|
||||||
<select name="purpose" class="form-select" id="purpose">
|
<select name="purpose" class="form-select">
|
||||||
<option value="1">API</option>
|
<option value="1" <#if purpose?? && purpose == 1>selected</#if> >API</option>
|
||||||
<option value="2">PDS</option>
|
<option value="2"<#if purpose?? && purpose == 2>selected</#if> >PDS</option>
|
||||||
<option value="4">房生活</option>
|
<option value="4"<#if purpose?? && purpose == 4>selected</#if> >房生活</option>
|
||||||
<option value="">请选择</option>
|
<option >请选择</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="isTest" class="form-label">账号类型:</label>
|
<label for="isTest" class="form-label">账号类型:</label>
|
||||||
<select name="isTest" class="form-select" id="isTest">
|
<select name="isTest" class="form-select">
|
||||||
<option value="0">正式账号</option>
|
<option value="0" <#if isTest?? && isTest == 0>selected</#if> >正式账号</option>
|
||||||
<option value="1">测试账号</option>
|
<option value="1" <#if isTest?? && isTest == 1>selected</#if> >测试账号</option>
|
||||||
<option value="2">内部账号</option>
|
<option value="2" <#if isTest?? && isTest == 2>selected</#if> >内部账号</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="status" class="form-label">账号状态:</label>
|
<label for="status" class="form-label">账号状态:</label>
|
||||||
<select name="status" class="form-select" id="status">
|
<select name="status" class="form-select">
|
||||||
<option value="0">正常</option>
|
<option value="0" <#if status?? && status == 0>selected</#if> >正常</option>
|
||||||
<option value="1">禁用</option>
|
<option value="1" <#if status?? && status == 1>selected</#if> >禁用</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<input id="queryBtn" class="btn btn-primary form-button" type="button" value="查询"/>
|
<input id="queryBtn" class="btn btn-primary form-button" type="submit" value="查询"/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th align="center" width="55px">ID</th>
|
<th align="center" width="55px">
|
||||||
<th align="center" width="100px">昵称</th>
|
ID
|
||||||
<th align="center" width="100px">username</th>
|
</th>
|
||||||
<th align="center" width="60px">password</th>
|
<th align="center" width="100px">
|
||||||
<th align="center" width="100px">销售负责人</th>
|
昵称
|
||||||
<th align="center" width="100px">公司</th>
|
</th>
|
||||||
<th align="center" width="150px">appKey</th>
|
<#-- <th align="center" width="60px">-->
|
||||||
<th align="center" width="60px">账户类型</th>
|
<#-- 账户用途-->
|
||||||
<th align="center" width="60px">账户用途</th>
|
<#-- </th>-->
|
||||||
<th align="center" width="60px">是否监控</th>
|
<th align="center" width="100px">
|
||||||
<th align="center" width="120px">到期时间</th>
|
username
|
||||||
<th align="center">操作</th>
|
</th>
|
||||||
|
<th align="center" width="60px">
|
||||||
|
password
|
||||||
|
</th>
|
||||||
|
<th align="center" width="100px">
|
||||||
|
销售负责人
|
||||||
|
</th>
|
||||||
|
<th align="center" width="100px">
|
||||||
|
公司
|
||||||
|
</th>
|
||||||
|
<th align="center" width="150px">
|
||||||
|
appKey
|
||||||
|
</th>
|
||||||
|
<th align="center" width="60px">
|
||||||
|
账户类型
|
||||||
|
</th>
|
||||||
|
<th align="center" width="60px">
|
||||||
|
账户用途
|
||||||
|
</th>
|
||||||
|
<th align="center" width="60px">
|
||||||
|
是否监控
|
||||||
|
</th>
|
||||||
|
<th align="center" width="120px">
|
||||||
|
到期时间
|
||||||
|
</th>
|
||||||
|
<th align="center">
|
||||||
|
操作
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<#if (apiUserBoList?? && apiUserBoList?size > 0)>
|
<#if (apiUserBoList??&&apiUserBoList?size>0)>
|
||||||
<#list apiUserBoList as bo>
|
<#list apiUserBoList as bo>
|
||||||
<tr <#if bo.status != 0>style="background-color:#C3C3C3"</#if>>
|
<tr <#if bo.status!=0>style="background-color:#C3C3C3"</#if>>
|
||||||
<td align="center">${bo.userId!}</td>
|
<td align="center">
|
||||||
<td align="center"><a href="../apiUser/edit?userId=${bo.userId!}">${bo.displayName!}</a></td>
|
${bo.userId!}
|
||||||
<td align="center">${bo.userName!}</td>
|
</td>
|
||||||
<td align="center"><#if bo.password?? && bo.password == t_util.md5Hex('123456')>初始密码<#else>******</#if></td>
|
<td align="center">
|
||||||
<td align="center">${bo.manager!}</td>
|
<a href="../apiUser/edit?userId=${bo.userId!}">${bo.displayName!}</a>
|
||||||
<td align="center">${bo.company!}</td>
|
</td>
|
||||||
<td align="center" class="resizable-td">${bo.appKey!}</td>
|
<#-- <td>-->
|
||||||
<td align="center"><#if bo.isTest == 0>正式账户<#elseif bo.isTest == 1>测试账户<#else>内部账户</#if></td>
|
<#-- <#if bo.purpose?? && bo.purpose == 1>-->
|
||||||
<td align="center"><#if bo.purpose?? && bo.purpose == 1>API<#elseif bo.purpose?? && bo.purpose == 2>PDS<#elseif bo.purpose?? && bo.purpose == 4>房生活</#if></td>
|
<#-- API-->
|
||||||
<td align="center"><#if bo.isMonitor == 1>是<#else>否</#if></td>
|
<#-- <#elseif bo.purpose?? && bo.purpose == 2>-->
|
||||||
<td align="center"><#if bo.deadTime??>${bo.deadTime?string("yyyy年MM月dd日")}</#if></td>
|
<#-- PDS-->
|
||||||
|
<#-- <#elseif bo.purpose?? && bo.purpose == 4>-->
|
||||||
|
<#-- 房生活-->
|
||||||
|
<#-- </#if>-->
|
||||||
|
<#-- </td>-->
|
||||||
|
<td align="center">
|
||||||
|
${bo.userName!}
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<#if bo.password?? && bo.password == t_util.md5Hex('123456')>
|
||||||
|
初始密码
|
||||||
|
<#else>
|
||||||
|
******
|
||||||
|
</#if>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
${bo.manager!}
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
${bo.company!}
|
||||||
|
</td>
|
||||||
|
<td align="center" class="resizable-td">
|
||||||
|
${bo.appKey!}
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<#if bo.isTest==0>
|
||||||
|
正式账户
|
||||||
|
<#elseif bo.isTest==1>
|
||||||
|
测试账户
|
||||||
|
<#else>
|
||||||
|
内部账户
|
||||||
|
</#if>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<#if bo.purpose?? && bo.purpose == 1>
|
||||||
|
API
|
||||||
|
<#elseif bo.purpose?? && bo.purpose == 2>
|
||||||
|
PDS
|
||||||
|
<#elseif bo.purpose?? && bo.purpose == 4>
|
||||||
|
房生活
|
||||||
|
</#if>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<#if bo.isMonitor==1>
|
||||||
|
是
|
||||||
|
<#else>
|
||||||
|
否
|
||||||
|
</#if>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<#if bo.deadTime??>
|
||||||
|
${bo.deadTime?string("yyyy年MM月dd日")}
|
||||||
|
</#if>
|
||||||
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="../apiUser/auth?userId=${bo.userId!}">API权限控制</a>
|
<a href="../apiUser/auth?userId=${bo.userId!}">API权限控制</a>
|
||||||
<a href="../apiUser/auth?userId=${bo.userId!}&msg=0">新增API</a>
|
<a href="../apiUser/auth?userId=${bo.userId!}&msg=0">新增API</a>
|
||||||
<a href="../apiUser/city?userId=${bo.userId!}">城市管理</a>
|
<a href="../apiUser/city?userId=${bo.userId!}">城市管理</a>
|
||||||
<a href="../apiUser/priceRating?userId=${bo.userId!}">价格评级</a>
|
<a href="../apiUser/priceRating?userId=${bo.userId!}">价格评级</a>
|
||||||
<#if bo.status == 0>
|
<#if bo.status==0>
|
||||||
<a href="javascript:if(confirm('确认禁用?')){location.href='../apiUser/status?userId=${bo.userId!}&status=1'}">禁用</a>
|
<a href="javascript:if(confirm('确认禁用?')){location.href='../apiUser/status?userId=${bo.userId!}&status=1'}">禁用</a>
|
||||||
<#else>
|
<#else>
|
||||||
<a href="javascript:if(confirm('确认再次启用?')){location.href='../apiUser/status?userId=${bo.userId!}&status=0'}"><font style="color:#198B3D;">再启用</font></a>
|
<a href="javascript:if(confirm('确认再次启用?')){location.href='../apiUser/status?userId=${bo.userId!}&status=0'}"><font
|
||||||
|
style="color:#198B3D;">再启用</font></a>
|
||||||
</#if>
|
</#if>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -142,39 +205,24 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
|
||||||
document.getElementById('queryBtn').addEventListener('click', function() {
|
|
||||||
// 获取所有 select 元素的值
|
|
||||||
const purpose = document.getElementById('purpose').value;
|
|
||||||
const isTest = document.getElementById('isTest').value;
|
|
||||||
const status = document.getElementById('status').value;
|
|
||||||
|
|
||||||
// 将值存储在 localStorage 中
|
|
||||||
localStorage.setItem('purpose', purpose);
|
|
||||||
localStorage.setItem('isTest', isTest);
|
|
||||||
localStorage.setItem('status', status);
|
|
||||||
|
|
||||||
// 提交表单
|
|
||||||
document.getElementById('_search_log_form').submit();
|
|
||||||
});
|
|
||||||
|
|
||||||
// 页面加载时,恢复 select 元素的值
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
const storedPurpose = localStorage.getItem('purpose');
|
|
||||||
const storedIsTest = localStorage.getItem('isTest');
|
|
||||||
const storedStatus = localStorage.getItem('status');
|
|
||||||
|
|
||||||
if (storedPurpose) {
|
|
||||||
document.getElementById('purpose').value = storedPurpose;
|
|
||||||
}
|
|
||||||
if (storedIsTest) {
|
|
||||||
document.getElementById('isTest').value = storedIsTest;
|
|
||||||
}
|
|
||||||
if (storedStatus) {
|
|
||||||
document.getElementById('status').value = storedStatus;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
|
<style>
|
||||||
|
.form-label {
|
||||||
|
font-size: 15px; /* 增加标签的字体大小 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-select {
|
||||||
|
font-size: 15px; /* 增加选择框的字体大小 */
|
||||||
|
margin-right: 10px; /* 调整选择框之间的间距 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-button {
|
||||||
|
font-size: 15px; /* 增加按钮的字体大小 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
display: inline-block; /* 使每个表单组不换行 */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</html>
|
</html>
|
||||||
</#compress>
|
</#compress>
|
||||||
@@ -295,7 +295,7 @@
|
|||||||
<@menuitem uri='/creditRate/list' text="价格可信度与匹配率关系" />
|
<@menuitem uri='/creditRate/list' text="价格可信度与匹配率关系" />
|
||||||
<@menuitem uri='/czBank/sampleLogs' text="浙商银行" />
|
<@menuitem uri='/czBank/sampleLogs' text="浙商银行" />
|
||||||
<@menuitem uri='/villageIdentify/importResult' text="涉农结果导入" />
|
<@menuitem uri='/villageIdentify/importResult' text="涉农结果导入" />
|
||||||
<@menuitem uri='/apiCountLog/list' text="API次数日志" />
|
<@menuitem uri='/apiCountLog/list?purpose=1&isTest=0&status=0' text="API次数日志" />
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user