⬆️ Upgrading dependencies. spring boot admin 2.2.2

This commit is contained in:
冷冷 2020-01-01 21:17:05 +08:00
parent 3b124cee31
commit 5af00a33d0
4 changed files with 19 additions and 5 deletions

View File

@ -22,6 +22,7 @@ export const tableOption = {
stripe: true,
menuAlign: 'center',
align: 'center',
searchMenuSpan: 6,
column: [
#foreach ($column in $columns)
{

View File

@ -10,6 +10,8 @@
@on-load="getList"
@search-change="searchChange"
@refresh-change="refreshChange"
@size-change="sizeChange"
@current-change="currentChange"
@row-update="handleUpdate"
@row-save="handleSave"
@row-del="rowDel">
@ -63,7 +65,6 @@
})
},
rowDel: function (row, index) {
var _this = this
this.$confirm('是否确认删除ID为' + row.$pk.lowerAttrName, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -71,7 +72,7 @@
}).then(function () {
return delObj(row.$pk.lowerAttrName)
}).then(data => {
_this.$message.success('删除成功')
this.$message.success('删除成功')
this.getList(this.page)
})
},
@ -93,9 +94,16 @@
loading();
});
},
searchChange(form) {
sizeChange(pageSize){
this.page.pageSize = pageSize
},
currentChange(current){
this.page.currentPage = current
},
searchChange(form, done) {
this.searchForm = form
this.getList(this.page, form)
done()
},
refreshChange() {
this.getList(this.page)

View File

@ -51,6 +51,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<!--web 模块-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--security-->
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@ -19,7 +19,7 @@ package com.pig4cloud.pig.monitor;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
/**
* @author lengleng
@ -27,7 +27,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* 监控中心
*/
@EnableAdminServer
@SpringBootApplication
@SpringCloudApplication
public class PigMonitorApplication {
public static void main(String[] args) {