1. 增加了海报的图片压缩

2. 优化海报与名片生成的速度
3. 优化后台模板列表的加载速度
4. 动态表单增加了富文本
5. 栏目设置添加角色控制
6. 增加接口调用的控制台调试
7. 修改服务页
This commit is contained in:
cuibaocheng 2021-09-15 18:32:26 +08:00
parent 9445246f18
commit 47835575bf
2 changed files with 11 additions and 2 deletions

View File

@ -2,7 +2,9 @@ package cn.com.tenlion.systemcard.controller.route.cardconsole;
import ink.wgink.common.base.DefaultBaseController;
import ink.wgink.interfaces.consts.ISystemConstant;
import ink.wgink.properties.ServerProperties;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -20,9 +22,16 @@ import org.springframework.web.servlet.ModelAndView;
@RequestMapping(ISystemConstant.ROUTE_PREFIX + "/cardconsole")
public class CardConsoleController extends DefaultBaseController {
@Autowired
private ServerProperties systemProperties;
@GetMapping("console")
public ModelAndView save() {
return new ModelAndView("cardconsole/console");
ModelAndView mv = new ModelAndView("cardconsole/console");
String serverUrl = systemProperties.getUrl();
String wsUrl = serverUrl.replaceAll("https:", "ws:/").replaceAll("http:", "ws:/");
mv.addObject("serverUrl", wsUrl);
return mv;
}
}

View File

@ -118,7 +118,7 @@
}else{
console.log("您的浏览器支持WebSocket");
//实现化WebSocket对象指定要连接的服务器地址与端口 建立连接
socket = new WebSocket("ws:///192.168.0.115:8091/systemcard/cardlogsocket");
socket = new WebSocket("[[${serverUrl}]]/cardlogsocket");
//打开事件
socket.onopen = function() {
console.log("Socket 已打开");