diff --git a/jero-boot/db/蔚来标准sql/first_bug_fix_record.sql b/jero-boot/db/蔚来标准sql/first_bug_fix_record.sql index 7339060a0..e762a0d48 100644 --- a/jero-boot/db/蔚来标准sql/first_bug_fix_record.sql +++ b/jero-boot/db/蔚来标准sql/first_bug_fix_record.sql @@ -36,3 +36,12 @@ ALTER TABLE `project_laws_inventory` MODIFY COLUMN `design_deliverable_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计符合性确认-交付物类型' AFTER `remark`, MODIFY COLUMN `prehomo_deliverable_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'prehomo确认-交付物类型' AFTER `design_due_date`, MODIFY COLUMN `verify_deliverable_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证符合性确认-交付物类型' AFTER `prehomo_due_date`; + +-- 2022年7月9日通知标题长度 已同步正式环境 +ALTER TABLE `laws_weilai`.`sys_announcement` + MODIFY COLUMN `titile` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题' AFTER `id`; + +-- 2022年7月9日 增加配置数据 已同步正式环境 +INSERT INTO `sys_config` ( `id`, `create_by`, `create_time`, `update_by`, `update_time`, `sys_org_code`, `config`, `config_name` ) +VALUES +( '3', 'admin', '2022-07-09 18:38:23', 'admin', '2022-07-09 18:38:28', 'A01', 'http://localhost:8080', 'domianPreviewURL' ); diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/config/init/TomcatFactoryConfig.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/config/init/TomcatFactoryConfig.java deleted file mode 100644 index eae5a7286..000000000 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/config/init/TomcatFactoryConfig.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.jero.config.init; - -import org.apache.catalina.Context; -import org.apache.catalina.connector.Connector; -import org.apache.coyote.http11.Http11NioProtocol; -import org.apache.tomcat.util.descriptor.web.SecurityCollection; -import org.apache.tomcat.util.descriptor.web.SecurityConstraint; -import org.apache.tomcat.util.scan.StandardJarScanner; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * @Description: TomcatFactoryConfig - * @author: scott - * @date: 2021年01月25日 11:40 - */ -@Configuration -public class TomcatFactoryConfig { - - /** - * tomcat-embed-jasper引用后提示jar找不到的问题 - */ - @Bean - public TomcatServletWebServerFactory tomcatFactory() { - TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory() { - @Override - protected void postProcessContext(Context context) { - ((StandardJarScanner) context.getJarScanner()).setScanManifest(false); - } - }; - factory.addConnectorCustomizers(connector -> { - connector.setProperty("relaxedPathChars", "[]{}"); - connector.setProperty("relaxedQueryChars", "[]{}"); - }); - return factory; - } - - //TODO 配置https证书 部署服务器的时候解开。 - /* @Value("${server.port-https}") - private String serverPortHttp; - @Value("${server.port}") - private String serverPortHttps; - @Bean - public TomcatServletWebServerFactory tomcatFactory() { - TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory() { - @Override - protected void postProcessContext(Context context) { - ((StandardJarScanner) context.getJarScanner()).setScanManifest(false); - - SecurityConstraint securityConstraint = new SecurityConstraint(); - securityConstraint.setUserConstraint("CONFIDENTIAL"); - SecurityCollection securityCollection = new SecurityCollection(); - securityCollection.addPattern("/*"); - securityConstraint.addCollection(securityCollection); - context.addConstraint(securityConstraint); - } - }; - factory.addConnectorCustomizers(connector -> { - connector.setProperty("relaxedPathChars", "[]{}"); - connector.setProperty("relaxedQueryChars", "[]{}"); - }); - factory.addAdditionalTomcatConnectors(redirectConnector()); - return factory; - } - - private Connector redirectConnector() { - Connector connector = new Connector(Http11NioProtocol.class.getName()); - connector.setScheme("http"); - connector.setPort(Integer.parseInt(serverPortHttp)); - connector.setSecure(false); - connector.setRedirectPort(Integer.parseInt(serverPortHttps)); - return connector; - }*/ -} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java index 7f7f094f3..85a5e52d1 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java @@ -4746,7 +4746,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl { Vue.ls.set(UI_CACHE_DB_DICT_DATA, res.result.sysAllDictItems, 7 * 24 * 60 * 60 * 1000) Vue.ls.set('domianWebSocketURL', res.result.domianWebSocketURL) Vue.ls.set('onlinePreviewDomainURL', res.result.onlinePreviewDomainURL) + Vue.ls.set('domianPreviewURL', res.result.domianPreviewURL) store.commit('SET_TOKEN', res.result.token) store.commit('SET_INFO', res.result.userInfo) store.commit('SET_NAME', { diff --git a/jero-web/src/store/modules/user.js b/jero-web/src/store/modules/user.js index 5743ceaa5..74125ad9d 100644 --- a/jero-web/src/store/modules/user.js +++ b/jero-web/src/store/modules/user.js @@ -86,6 +86,7 @@ const user = { Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000) Vue.ls.set('domianWebSocketURL', result.domianWebSocketURL) Vue.ls.set('onlinePreviewDomainURL', result.onlinePreviewDomainURL) + Vue.ls.set('domianPreviewURL', result.domianPreviewURL) commit('SET_TOKEN', result.token) commit('SET_INFO', userInfo) commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() }) @@ -131,11 +132,9 @@ const user = { const menuData = response.result.menu const authData = response.result.auth const allAuthData = response.result.allAuth - window._CONFIG['domianPreviewURL'] = Vue.ls.get('domianWebSocketURL') + '/jero-boot' + window._CONFIG['domianPreviewURL'] = Vue.ls.get('domianPreviewURL') + '/jero-boot' window._CONFIG['domianWebSocketURL'] = Vue.ls.get('domianWebSocketURL') + '/jero-boot' window._CONFIG['onlinePreviewDomainURL'] = Vue.ls.get('onlinePreviewDomainURL') + '/onlinePreview' - const onlinePreviewDomainURL = response.result.onlinePreviewDomainURL - const domianWebSocketURL = response.result.domianWebSocketURL //Vue.ls.set(USER_AUTH,authData); sessionStorage.setItem(USER_AUTH, JSON.stringify(authData)) sessionStorage.setItem(SYS_BUTTON_AUTH, JSON.stringify(allAuthData)) diff --git a/jero-web/src/utils/socketVuex.js b/jero-web/src/utils/socketVuex.js index 733cb2dce..81a0b3f99 100644 --- a/jero-web/src/utils/socketVuex.js +++ b/jero-web/src/utils/socketVuex.js @@ -3,7 +3,6 @@ import Vuex from 'vuex' import store from '@/store/' Vue.use(Vuex) -// console.log(window._CONFIG['domianWebSocketURL']) export default new Vuex.Store({ state: { diff --git a/jero-web/src/utils/socketVuexOne.js b/jero-web/src/utils/socketVuexOne.js index 5e1e6a4ae..0dc3b1700 100644 --- a/jero-web/src/utils/socketVuexOne.js +++ b/jero-web/src/utils/socketVuexOne.js @@ -3,7 +3,6 @@ import Vuex from 'vuex' import store from '@/store/' Vue.use(Vuex) -// console.log(window._CONFIG['domianWebSocketURL']) export default new Vuex.Store({ state: { diff --git a/jero-web/src/views/modules/oss/OSSFileList.vue b/jero-web/src/views/modules/oss/OSSFileList.vue index 6029c553d..6c83e2dc4 100644 --- a/jero-web/src/views/modules/oss/OSSFileList.vue +++ b/jero-web/src/views/modules/oss/OSSFileList.vue @@ -168,7 +168,7 @@ }, handlePreview(record) { if (record && record.url) { - var fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${record.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${record.fileName}` + var fileFullUrl = `${window._CONFIG['domianPreviewURL']}/sys/common/download/${record.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${record.fileName}` let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}` window.open(url) }