@@ -94,6 +94,7 @@
|
|||||||
edit(record) {
|
edit(record) {
|
||||||
if (record.id) {
|
if (record.id) {
|
||||||
this.dictId = record.dictId;
|
this.dictId = record.dictId;
|
||||||
|
this.status = record.status;
|
||||||
this.visibleCheck = (record.status == 1) ? true : false;
|
this.visibleCheck = (record.status == 1) ? true : false;
|
||||||
}
|
}
|
||||||
this.form.resetFields();
|
this.form.resetFields();
|
||||||
|
|||||||
+10
-1
@@ -3,16 +3,20 @@ package org.jeecg.config;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jeecg.handler.HystrixFallbackHandler;
|
import org.jeecg.handler.HystrixFallbackHandler;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.web.reactive.function.server.RequestPredicates;
|
import org.springframework.web.reactive.function.server.RequestPredicates;
|
||||||
import org.springframework.web.reactive.function.server.RouterFunction;
|
import org.springframework.web.reactive.function.server.RouterFunction;
|
||||||
import org.springframework.web.reactive.function.server.RouterFunctions;
|
import org.springframework.web.reactive.function.server.RouterFunctions;
|
||||||
|
import org.springframework.web.reactive.function.server.ServerResponse;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import static org.springframework.web.reactive.function.server.RequestPredicates.GET;
|
||||||
|
import static org.springframework.web.reactive.function.server.RouterFunctions.route;
|
||||||
|
import static org.springframework.web.reactive.function.server.ServerResponse.ok;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author scott
|
* @author scott
|
||||||
* @date 2020/05/26
|
* @date 2020/05/26
|
||||||
@@ -74,6 +78,11 @@ public class GatewayRoutersConfiguration {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public RouterFunction<ServerResponse> indexRouter(@Value("classpath:/META-INF/resources/doc.html") final org.springframework.core.io.Resource indexHtml) {
|
||||||
|
return route(GET("/"), request -> ok().contentType(MediaType.TEXT_HTML).syncBody(indexHtml));
|
||||||
|
}
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private HystrixFallbackHandler hystrixFallbackHandler;
|
private HystrixFallbackHandler hystrixFallbackHandler;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user