Commit 3b13988cd0952a13467ec93c8ee908b8f85d8380
1 parent
ed3d5df2
update
Showing
4 changed files
with
9 additions
and
10 deletions
src/main/resources/application-dev.properties
| @@ -8,9 +8,9 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | @@ -8,9 +8,9 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | ||
| 8 | spring.jpa.database= MYSQL | 8 | spring.jpa.database= MYSQL |
| 9 | spring.jpa.show-sql= true | 9 | spring.jpa.show-sql= true |
| 10 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver | 10 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver |
| 11 | -spring.datasource.url= jdbc:mysql://192.168.168.201:3306/control | 11 | +spring.datasource.url= jdbc:mysql://127.0.0.1:3306/control |
| 12 | spring.datasource.username= root | 12 | spring.datasource.username= root |
| 13 | -spring.datasource.password= 123456 | 13 | +spring.datasource.password= panzhao |
| 14 | #DATASOURCE | 14 | #DATASOURCE |
| 15 | spring.datasource.max-active=100 | 15 | spring.datasource.max-active=100 |
| 16 | spring.datasource.max-idle=8 | 16 | spring.datasource.max-idle=8 |
src/main/resources/ms-jdbc.properties
| @@ -4,6 +4,6 @@ | @@ -4,6 +4,6 @@ | ||
| 4 | #ms.mysql.password= 123456 | 4 | #ms.mysql.password= 123456 |
| 5 | 5 | ||
| 6 | ms.mysql.driver= com.mysql.jdbc.Driver | 6 | ms.mysql.driver= com.mysql.jdbc.Driver |
| 7 | -ms.mysql.url= jdbc:mysql://192.168.168.171:3306/ms?useUnicode=true&characterEncoding=utf-8 | 7 | +ms.mysql.url= jdbc:mysql://192.168.40.82:3306/ms?useUnicode=true&characterEncoding=utf-8 |
| 8 | ms.mysql.username= root | 8 | ms.mysql.username= root |
| 9 | -ms.mysql.password= root2jsp | ||
| 10 | \ No newline at end of file | 9 | \ No newline at end of file |
| 10 | +ms.mysql.password= 123456 | ||
| 11 | \ No newline at end of file | 11 | \ No newline at end of file |
src/main/resources/static/index.html
| @@ -143,7 +143,7 @@ tr.row-active td { | @@ -143,7 +143,7 @@ tr.row-active td { | ||
| 143 | <div class="page-header-inner "> | 143 | <div class="page-header-inner "> |
| 144 | <!-- LOGO --> | 144 | <!-- LOGO --> |
| 145 | <div class="page-logo"> | 145 | <div class="page-logo"> |
| 146 | - <a href="index.html" class="logo-default logo-default-text" > 闵行公交调度系统 </a> | 146 | + <a href="index.html" class="logo-default logo-default-text" > 青浦公交调度系统 </a> |
| 147 | <div class="menu-toggler sidebar-toggler"> | 147 | <div class="menu-toggler sidebar-toggler"> |
| 148 | </div> | 148 | </div> |
| 149 | </div> | 149 | </div> |
src/main/resources/static/pages/permission/user/list.html
| @@ -133,11 +133,7 @@ | @@ -133,11 +133,7 @@ | ||
| 133 | {{obj.lastLoginDate}} | 133 | {{obj.lastLoginDate}} |
| 134 | </td> | 134 | </td> |
| 135 | <td> | 135 | <td> |
| 136 | - {{if obj.enabled}} | ||
| 137 | - <button type="button" onclick="changeEnabled({{obj.id}},0)" class="btn btn-warning btn-sm">禁用</button> | ||
| 138 | - {{else}} | ||
| 139 | - <button type="button" onclick="changeEnabled({{obj.id}},1)" class="btn btn-success btn-sm">启用</button> | ||
| 140 | - {{/if}} | 136 | + <a class="btn btn-sm blue btn-outline" href="edit.html?no={{obj.id}}"><i class="fa fa-edit"></i> 编辑</a> |
| 141 | </td> | 137 | </td> |
| 142 | </tr> | 138 | </tr> |
| 143 | {{/each}} | 139 | {{/each}} |
| @@ -194,6 +190,9 @@ $(function(){ | @@ -194,6 +190,9 @@ $(function(){ | ||
| 194 | params['page'] = page; | 190 | params['page'] = page; |
| 195 | var i = layer.load(2); | 191 | var i = layer.load(2); |
| 196 | $get('/user' ,params, function(data){ | 192 | $get('/user' ,params, function(data){ |
| 193 | + $.each(data.content, function(i, obj) { | ||
| 194 | + obj.lastLoginDate = moment(obj.lastLoginDate).format("YYYY-MM-DD HH:mm:ss"); | ||
| 195 | + }); | ||
| 197 | var bodyHtm = template('user_list_temp', {list: data.content}); | 196 | var bodyHtm = template('user_list_temp', {list: data.content}); |
| 198 | 197 | ||
| 199 | $('#datatable_user tbody').html(bodyHtm) | 198 | $('#datatable_user tbody').html(bodyHtm) |