提交 5af00a33 编写于 作者: pig_冷冷's avatar pig_冷冷

Upgrading dependencies. spring boot admin 2.2.2

上级 3b124cee
......@@ -22,6 +22,7 @@ export const tableOption = {
stripe: true,
menuAlign: 'center',
align: 'center',
searchMenuSpan: 6,
column: [
#foreach ($column in $columns)
{
......
......@@ -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)
......
......@@ -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>
......
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册