⬆️ 升级优化依赖,优化代码生成模板

This commit is contained in:
smallchill 2020-04-17 20:52:36 +08:00
parent 90c8b73c7e
commit 3943a9f618
4 changed files with 17 additions and 18 deletions

View File

@ -88,7 +88,7 @@
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId> <artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.18</version> <version>1.1.22</version>
</dependency> </dependency>
<!-- MySQL --> <!-- MySQL -->
<dependency> <dependency>

View File

@ -47,6 +47,10 @@
}, },
selectionList: [], selectionList: [],
option: { option: {
height: 'auto',
calcHeight: 80,
searchShow: true,
searchMenuSpan: 6,
tip: false, tip: false,
border: true, border: true,
index: true, index: true,
@ -90,30 +94,30 @@
} }
}, },
methods: { methods: {
rowSave(row, loading, done) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(() => {
loading(); done();
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
}); });
}, error => { }, error => {
done(); window.console.log(error);
console.log(error); loading();
}); });
}, },
rowUpdate(row, index, loading, done) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(() => {
loading(); done();
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
}); });
}, error => { }, error => {
done(); window.console.log(error);
console.log(error); loading();
}); });
}, },
rowDel(row) { rowDel(row) {

View File

@ -28,14 +28,9 @@
<!-- Seata--> <!-- Seata-->
<dependency> <dependency>
<groupId>com.alibaba.cloud</groupId> <groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-seata</artifactId> <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
<version>${alibaba.cloud.version}</version> <version>${alibaba.cloud.version}</version>
</dependency> </dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
<version>${alibaba.seata.version}</version>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -48,11 +48,11 @@
<disruptor.version>3.4.2</disruptor.version> <disruptor.version>3.4.2</disruptor.version>
<spring.boot.admin.version>2.2.2</spring.boot.admin.version> <spring.boot.admin.version>2.2.2</spring.boot.admin.version>
<mica.auto.version>1.1.0</mica.auto.version> <mica.auto.version>1.1.0</mica.auto.version>
<alibaba.cloud.version>2.2.0.RELEASE</alibaba.cloud.version> <alibaba.cloud.version>2.2.1.RELEASE</alibaba.cloud.version>
<alibaba.seata.version>1.1.0</alibaba.seata.version> <alibaba.seata.version>1.1.0</alibaba.seata.version>
<spring.boot.version>2.2.5.RELEASE</spring.boot.version> <spring.boot.version>2.2.6.RELEASE</spring.boot.version>
<spring.cloud.version>Hoxton.SR2</spring.cloud.version> <spring.cloud.version>Hoxton.SR3</spring.cloud.version>
<spring.platform.version>Cairo-SR8</spring.platform.version> <spring.platform.version>Cairo-SR8</spring.platform.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>