小优化
This commit is contained in:
+2
@@ -5,12 +5,14 @@ import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
* @date 2019/5/1
|
||||
*/
|
||||
@EnableDiscoveryClient
|
||||
@EnableFeignClients
|
||||
@SpringBootApplication
|
||||
@EnableConfigurationProperties(IndexProperties.class)
|
||||
public class SearchCenterApp {
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
### xxl-job, datasource
|
||||
spring.datasource.url=jdbc:mysql://192.168.28.131:3306/xxl-job?Unicode=true&characterEncoding=UTF-8
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=1q2w3e4r
|
||||
zlt.datasource.ip=192.168.28.131
|
||||
zlt.datasource.username=root
|
||||
zlt.datasource.password=1q2w3e4r
|
||||
|
||||
spring.datasource.url=jdbc:mysql://${zlt.datasource.ip}:3306/xxl-job?Unicode=true&characterEncoding=UTF-8
|
||||
spring.datasource.username=${zlt.datasource.username}
|
||||
spring.datasource.password=${zlt.datasource.password}
|
||||
|
||||
### xxl-job email
|
||||
spring.mail.host=smtp.qq.com
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
### xxl-job, datasource
|
||||
spring.datasource.url=jdbc:mysql://192.168.28.131:3306/xxl-job?Unicode=true&characterEncoding=UTF-8
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=1q2w3e4r
|
||||
zlt.datasource.ip=192.168.28.131
|
||||
zlt.datasource.username=root
|
||||
zlt.datasource.password=1q2w3e4r
|
||||
|
||||
spring.datasource.url=jdbc:mysql://${zlt.datasource.ip}:3306/xxl-job?Unicode=true&characterEncoding=UTF-8
|
||||
spring.datasource.username=${zlt.datasource.username}
|
||||
spring.datasource.password=${zlt.datasource.password}
|
||||
|
||||
### xxl-job email
|
||||
spring.mail.host=smtp.qq.com
|
||||
|
||||
@@ -43,50 +43,6 @@ layui.define(function (exports) {
|
||||
value: JSON.stringify(token)
|
||||
});
|
||||
},
|
||||
// 导航菜单,最多支持三级,因为还有判断权限,所以渲染左侧菜单很复杂,无法做到递归,你需要更多极请联系我添加,添加可以无限添加,只是无法做到递归
|
||||
// 左部菜单
|
||||
// menus:
|
||||
// [ {
|
||||
// name: '系统管理',
|
||||
// icon: 'layui-icon-set',
|
||||
// url: 'javascript:;',
|
||||
// subMenus: [{
|
||||
// name: '用户管理',
|
||||
// url: '#!user', // 这里url不能带斜杠,因为是用递归循环进行关键字注册,带斜杠会被q.js理解为其他注册模式
|
||||
// path: 'system/user_search.html',
|
||||
// auth: 'back:user:query'
|
||||
// }, {
|
||||
// name: '角色管理',
|
||||
// url: '#!role',
|
||||
// path: 'system/role.html',
|
||||
// auth: 'back:role:query'
|
||||
// }, {
|
||||
// name: '菜单管理',
|
||||
// url: '#!menus',
|
||||
// path: 'system/menus.html',
|
||||
// auth: 'back:menu:query'
|
||||
// }, {
|
||||
// name: '权限管理',
|
||||
// url: '#!permissions',
|
||||
// path: 'system/permissions.html',
|
||||
// auth: 'back:permission:query'
|
||||
// }, {
|
||||
// name: '我的信息',
|
||||
// url: '#!myInfo',
|
||||
// path: 'system/myInfo.html',
|
||||
// hidden :true
|
||||
// }, {
|
||||
// name: 'API文档',
|
||||
// url: '#!api',
|
||||
// path: 'http://127.0.0.1:9200/swagger-ui.html'
|
||||
// }, {
|
||||
// name: '监控中心',
|
||||
// url: '#!monitor',
|
||||
// path: 'http://127.0.0.1:9001/#/wallboard'
|
||||
// //自定义一个字段 携带参数
|
||||
// }
|
||||
// ]
|
||||
// }],
|
||||
// 当前登录的用户
|
||||
getUser: function () {
|
||||
var u = layui.data(config.tableName).login_user;
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
var layer = layui.layer;
|
||||
var admin = layui.admin;
|
||||
var form = layui.form;
|
||||
var formSelects = layui.formSelects;
|
||||
|
||||
// 修改菜单类型
|
||||
let changeType = function (type) {
|
||||
|
||||
Reference in New Issue
Block a user