Merge branch 'dev' into 'master'

后台优化

See merge request !795
This commit is contained in:
2024-01-24 14:09:05 +08:00
4 changed files with 1705 additions and 1613 deletions
File diff suppressed because it is too large Load Diff
@@ -10,7 +10,27 @@
<#include "/common_js.ftl" /> <#include "/common_js.ftl" />
<script type="text/javascript"> <script type="text/javascript">
</script> </script>
<#-- 将表头固定-->
<style>
table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
th, td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
th {
position: sticky;
top: 0;
background-color: #f2f2f2;
}
</style>
</head> </head>
<body> <body>
@@ -31,12 +51,13 @@
<div class="list"> <div class="list">
<table width="50%"> <table width="50%">
<thead> <thead>
<tr>Ap <tr>
API数量:&nbsp<b>${authorityBoList?size}</b>个
<th align="center" width="15%"> <th align="center" width="15%">
uri uri
</th> </th>
<th align="center" width="15%"> <th align="center" width="15%">
描述 API名称
</th> </th>
<th align="center" width="10%"> <th align="center" width="10%">
是否有权限<input type="checkbox" id="auth" >全选</input> 是否有权限<input type="checkbox" id="auth" >全选</input>
@@ -63,7 +84,7 @@
${bo.uri!} ${bo.uri!}
</td> </td>
<td align="center"> <td align="center">
${bo.description!} ${bo.name!}
</td> </td>
<td align="center"> <td align="center">
<input type="checkbox" <#if bo.hasAuth>checked </#if> id="auth_${bo_index + 1}" ></input> <input type="checkbox" <#if bo.hasAuth>checked </#if> id="auth_${bo_index + 1}" ></input>
@@ -1,150 +1,179 @@
<#ftl attributes={"content_type":"text/html; charset=UTF-8"}> <#ftl attributes={"content_type":"text/html; charset=UTF-8"}>
<#compress> <#compress>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head> <html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <head>
<title>api用户列表</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="../style/main.css?v=${version}" /> <title>api用户列表</title>
<#include "/common_js.ftl" /> <link rel="stylesheet" type="text/css" href="../style/main.css?v=${version}"/>
</head> <#include "/common_js.ftl" />
<body>
<#include "/layout/header.ftl" /> <#-- 将表头固定-->
<div class="main-content"> <style>
<font color="red">${msg!''}</font> table {
<div class="menuButton"> width: 100%;
<a href="list" class="list">用户列表</a><a href="add" class="create">新建用户</a> border-collapse: collapse;
</div> table-layout: fixed;
<hr/> }
<div class="list">
<div style="padding-left:5px;"> th, td {
共有用户<b>${apiUserBoList?size}</b>个 border: 1px solid #dddddd;
</div> text-align: left;
<table width="100%"> padding: 8px;
<thead> }
<tr>
<th align="center" width="55px"> th {
ID position: sticky;
</th> top: 0;
<th align="center" width="100px"> background-color: #f2f2f2;
昵称 }
</th> .resizable-td {
resize: horizontal; /* 允许水平调整大小 */
overflow: auto; /* 显示滚动条以便查看超出部分 */
min-width: 50px; /* 设置最小宽度,防止过于缩小 */
}
</style>
</head>
<body>
<#include "/layout/header.ftl" />
<div class="main-content">
<font color="red">${msg!''}</font>
<div class="menuButton">
<a href="list" class="list">用户列表</a><a href="add" class="create">新建用户</a>
</div>
<hr/>
<div class="list">
<div style="padding-left:5px;">
共有用户<b>${apiUserBoList?size}</b>个
</div>
<table width="100%">
<thead>
<tr>
<th align="center" width="55px">
ID
</th>
<th align="center" width="100px">
昵称
</th>
<th align="center" width="60px"> <th align="center" width="60px">
账户用途 账户用途
</th> </th>
<th align="center" width="100px"> <th align="center" width="100px">
username username
</th> </th>
<th align="center" width="60px"> <th align="center" width="60px">
password password
</th> </th>
<th align="center" width="100px"> <th align="center" width="100px">
销售负责人 销售负责人
</th> </th>
<th align="center" width="100px"> <th align="center" width="100px">
公司 公司
</th> </th>
<th align="center" width="550px"> <th align="center" width="150px">
appKey appKey
</th> </th>
<th align="center" width="60px"> <th align="center" width="60px">
账户类型 账户类型
</th> </th>
<th align="center" width="60px"> <th align="center" width="60px">
账户用途 账户用途
</th> </th>
<th align="center" width="60px"> <th align="center" width="60px">
是否监控 是否监控
</th> </th>
<th align="center" width="120px"> <th align="center" width="120px">
到期时间 到期时间
</th> </th>
<th align="center"> <th align="center">
操作 操作
</th> </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"> <td align="center">
${bo.userId!} ${bo.userId!}
</td> </td>
<td align="center"> <td align="center">
<a href="../apiUser/edit?userId=${bo.userId!}">${bo.displayName!}</a> <a href="../apiUser/edit?userId=${bo.userId!}">${bo.displayName!}</a>
</td> </td>
<td> <td>
<#if bo.purpose?? && bo.purpose == 1> <#if bo.purpose?? && bo.purpose == 1>
API API
<#elseif bo.purpose?? && bo.purpose == 2> <#elseif bo.purpose?? && bo.purpose == 2>
PDS PDS
<#elseif bo.purpose?? && bo.purpose == 4> <#elseif bo.purpose?? && bo.purpose == 4>
房生活 房生活
</#if> </#if>
</td> </td>
<td align="center"> <td align="center">
${bo.userName!} ${bo.userName!}
</td> </td>
<td align="center"> <td align="center">
<#if bo.password?? && bo.password == t_util.md5Hex('123456')> <#if bo.password?? && bo.password == t_util.md5Hex('123456')>
初始密码 初始密码
<#else> <#else>
****** ******
</#if> </#if>
</td> </td>
<td align="center"> <td align="center">
${bo.manager!} ${bo.manager!}
</td> </td>
<td align="center"> <td align="center">
${bo.company!} ${bo.company!}
</td> </td>
<td align="center"> <td align="center" class="resizable-td">
${bo.appKey!} ${bo.appKey!}
</td> </td>
<td align="center"> <td align="center">
<#if bo.isTest==0> <#if bo.isTest==0>
正式账户 正式账户
<#else> <#else>
测试账户 测试账户
</#if> </#if>
</td> </td>
<td> <td>
<#if bo.purpose?? && bo.purpose == 1> <#if bo.purpose?? && bo.purpose == 1>
API API
<#elseif bo.purpose?? && bo.purpose == 2> <#elseif bo.purpose?? && bo.purpose == 2>
PDS PDS
<#elseif bo.purpose?? && bo.purpose == 4> <#elseif bo.purpose?? && bo.purpose == 4>
房生活 房生活
</#if> </#if>
</td> </td>
<td> <td>
<#if bo.isMonitor==1> <#if bo.isMonitor==1>
是 是
<#else> <#else>
否 否
</#if> </#if>
</td> </td>
<td align="center"> <td align="center">
<#if bo.deadTime??> <#if bo.deadTime??>
${bo.deadTime?string("yyyy年MM月dd日")} ${bo.deadTime?string("yyyy年MM月dd日")}
</#if> </#if>
</td> </td>
<td align="center"> <td align="center">
<a href="../apiUser/auth?userId=${bo.userId!}">权限控制</a> <a href="../apiUser/auth?userId=${bo.userId!}">API权限控制</a>
<a href="../apiUser/city?userId=${bo.userId!}">城市管理</a> <a href="../apiUser/auth?userId=${bo.userId!}&msg=0">新增API</a>
<a href="../apiUser/priceRating?userId=${bo.userId!}">价格评级</a> <a href="../apiUser/city?userId=${bo.userId!}">城市管理</a>
<#if bo.status==0> <a href="../apiUser/priceRating?userId=${bo.userId!}">价格评级</a>
<a href="javascript:if(confirm('确认禁用?')){location.href='../apiUser/status?userId=${bo.userId!}&status=1'}">禁用</a> <#if bo.status==0>
<#else> <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=0'}"><font style="color:#198B3D;">再启用</font></a> <#else>
</#if> <a href="javascript:if(confirm('确认再次启用?')){location.href='../apiUser/status?userId=${bo.userId!}&status=0'}"><font
</td> style="color:#198B3D;">再启用</font></a>
</tr> </#if>
</#list> </td>
</#if> </tr>
</table> </#list>
</div> </#if>
</div> </table>
</body> </div>
</html> </div>
</body>
</html>
</#compress> </#compress>
@@ -8,6 +8,25 @@
.up {color: green;} .up {color: green;}
#spinner{width:500px;height:100px;margin:30px 0 0 100px;text-align:center;padding-top:50px;border:2px solid #CCC;} #spinner{width:500px;height:100px;margin:30px 0 0 100px;text-align:center;padding-top:50px;border:2px solid #CCC;}
#checkMsg{width:500px;margin:30px 0 0 100px;padding:10px 0 10px 50px;text-align:left;border:2px solid #CCC;} #checkMsg{width:500px;margin:30px 0 0 100px;padding:10px 0 10px 50px;text-align:left;border:2px solid #CCC;}
<#-- 将表头固定-->
table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
th, td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
th {
position: sticky;
top: 0;
background-color: #f2f2f2;
}
</style> </style>
</head> </head>
<body> <body>