diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 152c5e2d..9b545012 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -60,9 +60,9 @@ spring: servlet: multipart: # 单个文件大小 - max-file-size: 10MB + max-file-size: 100MB # 设置总上传的文件大小 - max-request-size: 20MB + max-request-size: 500MB # 服务模块 devtools: restart: diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java index b5bc8c8e..9820a8a4 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java @@ -27,6 +27,11 @@ public class LoginBody */ private String uuid; + /** + * 微信认证ID + */ + private String openId; + public String getUsername() { return username; @@ -66,4 +71,12 @@ public class LoginBody { this.uuid = uuid; } + + public String getOpenId() { + return openId; + } + + public void setOpenId(String openId) { + this.openId = openId; + } } diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index 683a3b04..436a6df5 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -111,7 +111,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter // 过滤请求 .authorizeRequests() // 对于登录login 注册register 验证码captchaImage 允许匿名访问 - .antMatchers("/login", "/register", "/captchaImage", "/weixin/**","/bgscreen/**","/publics/**","/system/dict/data/**").permitAll() + .antMatchers("/login","/wechatLogin/**", "/register", "/captchaImage", "/weixin/**","/bgscreen/**","/publics/**","/system/dict/data/**").permitAll() // 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/**/img/**", "/profile/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java index 67267b77..06c185a7 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java @@ -111,7 +111,7 @@ public class SysLoginService public void validateCaptcha(String username, String code, String uuid) { boolean captchaEnabled = configService.selectCaptchaEnabled(); - if (captchaEnabled) + if (code!=null && uuid!=null && captchaEnabled) { String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + StringUtils.nvl(uuid, ""); String captcha = redisCache.getCacheObject(verifyKey); diff --git a/ruoyi-ui/src/api/project/materialSeal.js b/ruoyi-ui/src/api/project/materialSeal.js new file mode 100644 index 00000000..e5ee6ebb --- /dev/null +++ b/ruoyi-ui/src/api/project/materialSeal.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询材料封样列表 +export function listMaterialSeal(query) { + return request({ + url: '/project/materialSeal/list', + method: 'get', + params: query + }) +} + +// 查询材料封样详细 +export function getMaterialSeal(id) { + return request({ + url: '/project/materialSeal/' + id, + method: 'get' + }) +} + +// 新增材料封样 +export function addMaterialSeal(data) { + return request({ + url: '/project/materialSeal', + method: 'post', + data: data + }) +} + +// 修改材料封样 +export function updateMaterialSeal(data) { + return request({ + url: '/project/materialSeal', + method: 'put', + data: data + }) +} + +// 删除材料封样 +export function delMaterialSeal(id) { + return request({ + url: '/project/materialSeal/' + id, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/api/project/projectMeasure.js b/ruoyi-ui/src/api/project/projectMeasure.js new file mode 100644 index 00000000..4bba0b76 --- /dev/null +++ b/ruoyi-ui/src/api/project/projectMeasure.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询实测实量列表 +export function listProjectMeasure(query) { + return request({ + url: '/project/projectMeasure/list', + method: 'get', + params: query + }) +} + +// 查询实测实量详细 +export function getProjectMeasure(id) { + return request({ + url: '/project/projectMeasure/' + id, + method: 'get' + }) +} + +// 新增实测实量 +export function addProjectMeasure(data) { + return request({ + url: '/project/projectMeasure', + method: 'post', + data: data + }) +} + +// 修改实测实量 +export function updateProjectMeasure(data) { + return request({ + url: '/project/projectMeasure', + method: 'put', + data: data + }) +} + +// 删除实测实量 +export function delProjectMeasure(id) { + return request({ + url: '/project/projectMeasure/' + id, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/views/project/materialSeal/index.vue b/ruoyi-ui/src/views/project/materialSeal/index.vue new file mode 100644 index 00000000..ba41f49a --- /dev/null +++ b/ruoyi-ui/src/views/project/materialSeal/index.vue @@ -0,0 +1,455 @@ + + + diff --git a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue index eb2b87c3..c89a8483 100644 --- a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue +++ b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue @@ -406,6 +406,7 @@ export default { this.isUnit = true; this.getList(); } else { + this.projectCheckingList = []; this.$message.error("当前项目未分配总包单位,不能办理举牌验收!"); this.isUnit = false; } diff --git a/ruoyi-ui/src/views/project/projectMeasure/index.vue b/ruoyi-ui/src/views/project/projectMeasure/index.vue new file mode 100644 index 00000000..20c81c12 --- /dev/null +++ b/ruoyi-ui/src/views/project/projectMeasure/index.vue @@ -0,0 +1,474 @@ + + + diff --git a/ruoyi-ui/src/views/project/surBuildNode/buildNodeDrawer.vue b/ruoyi-ui/src/views/project/surBuildNode/buildNodeDrawer.vue index 7be73460..cea55bea 100644 --- a/ruoyi-ui/src/views/project/surBuildNode/buildNodeDrawer.vue +++ b/ruoyi-ui/src/views/project/surBuildNode/buildNodeDrawer.vue @@ -1,196 +1,262 @@ diff --git a/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue b/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue index eeb86a88..ee8e4da4 100644 --- a/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue +++ b/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue @@ -89,7 +89,6 @@