“Error: for nested data item, row-key is required.

VueElementUI树形表格row-key问题
在使用VueElementUI开发树形可折叠表格时,遇到Error: for nested data item, row-key is required错误。解决方法是确保tableData中的id名称与row-key的名称一致,例如将row-key=id改为row-key=areaId。
部署运行你感兴趣的模型镜像

问题:

vue elementUI 开发树形可折叠表格时报错:Error: for nested data item, row-key is required.

查了一些资料说是版本的问题,去掉package.json中elementUI版本号前面的 ^,试过了不生效
在这里插入图片描述
在这里插入图片描述

解决

官网上说:行数据的 Key,用来优化 Table 的渲染;在使用 reserve-selection 功能与显示树形数据时,该属性是必填的。类型为 String 时,支持多层访。 所以还是row-key的绑定问题:

row-key="id" 替换成 row-key="areaId",tableData的id也换为areaId,总之就是tableData中的id名称与row-key的名称一致,个人猜想可能是id这个名字太常用了,引起的冲突。

在这里插入图片描述在这里插入图片描述在这里插入图片描述

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

"E:\buka resource\Tomcat 9.0\Tomcat 9.0\bin\catalina.bat" run [2025-09-15 02:17:00,236] Artifact 9.14_homework:war: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\asus\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\571f7d60-cc7b-4657-a774-118f50351c2c" Using CATALINA_HOME: "E:\buka resource\Tomcat 9.0\Tomcat 9.0" Using CATALINA_TMPDIR: "E:\buka resource\Tomcat 9.0\Tomcat 9.0\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_211" Using CLASSPATH: "E:\buka resource\Tomcat 9.0\Tomcat 9.0\bin\bootstrap.jar;E:\buka resource\Tomcat 9.0\Tomcat 9.0\bin\tomcat-juli.jar" Using CATALINA_OPTS: "" Connected to the target VM, address: '127.0.0.1:59280', transport: 'socket' 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/9.0.54 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建: Sep 28 2021 13:51:49 UTC 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号: 9.0.54.0 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 操作系统名称: Windows 10 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 10.0 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构: amd64 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: C:\Program Files\Java\jdk1.8.0_211\jre 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java虚拟机版本: 1.8.0_211-b12 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\asus\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\571f7d60-cc7b-4657-a774-118f50351c2c 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: E:\buka resource\Tomcat 9.0\Tomcat 9.0 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.util.logging.config.file=C:\Users\asus\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\571f7d60-cc7b-4657-a774-118f50351c2c\conf\logging.properties 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:59280,suspend=y,server=n 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -javaagent:C:\Users\asus\AppData\Local\JetBrains\IntelliJIdea2021.1\captureAgent\debugger-agent.jar 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote= 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote.port=1099 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote.ssl=false 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote.password.file=C:\Users\asus\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\571f7d60-cc7b-4657-a774-118f50351c2c\jmxremote.password 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote.access.file=C:\Users\asus\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\571f7d60-cc7b-4657-a774-118f50351c2c\jmxremote.access 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.rmi.server.hostname=127.0.0.1 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djdk.tls.ephemeralDHKeySize=2048 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dignore.endorsed.dirs= 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcatalina.base=C:\Users\asus\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\571f7d60-cc7b-4657-a774-118f50351c2c 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcatalina.home=E:\buka resource\Tomcat 9.0\Tomcat 9.0 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.io.tmpdir=E:\buka resource\Tomcat 9.0\Tomcat 9.0\temp 15-Sep-2025 14:17:01.205 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent 在java.library.path:[C:\Program Files\Java\jdk1.8.0_211\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;D:\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Bandizip\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;E:\MYSql\mysql-8.0.30-winx64\bin;D:\app\mysql xx\bc\bin;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Users\asus\AppData\Local\Microsoft\WindowsApps;C:\Users\asus\.dotnet\tools;D:\app\idea\IntelliJ IDEA 2023.3.4\bin;;;.]上找不到基于APR的Apache Tomcat本机库,该库允许在生产环境中获得最佳性能 15-Sep-2025 14:17:01.380 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"] 15-Sep-2025 14:17:01.380 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[333]毫秒内初始化 15-Sep-2025 14:17:01.411 信息 [main] org.apache.catalina.core.StandardService.startInternal 正在启动服务[Catalina] 15-Sep-2025 14:17:01.411 信息 [main] org.apache.catalina.core.StandardEngine.startInternal 正在启动 Servlet 引擎:[Apache Tomcat/9.0.54] 15-Sep-2025 14:17:01.417 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"] 15-Sep-2025 14:17:01.427 信息 [main] org.apache.catalina.startup.Catalina.start [40]毫秒后服务器启动 Connected to server [2025-09-15 02:17:01,807] Artifact 9.14_homework:war: Artifact is being deployed, please wait... 15-Sep-2025 14:17:04.092 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 14:17:04.188 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started 14:17:04.267 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext 14:17:04.457 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\ROOT\WEB-INF\classes\com\buka\service\ClassService.class] 14:17:04.457 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\ROOT\WEB-INF\classes\com\buka\service\StuService.class] 14:17:04.489 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 11 bean definitions from class path resource [application.xml] 14:17:04.537 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' 14:17:04.584 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' 14:17:04.631 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter. 14:17:04.631 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner - Identified candidate component class: file [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\ROOT\WEB-INF\classes\com\buka\dao\ClassDao.class] 14:17:04.631 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner - Identified candidate component class: file [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\ROOT\WEB-INF\classes\com\buka\dao\Studao.class] 14:17:04.631 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner - Creating MapperFactoryBean with name 'classDao' and 'com.buka.dao.ClassDao' mapperInterface 14:17:04.631 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.mapper.ClassPathMapperScanner - Creating MapperFactoryBean with name 'studao' and 'com.buka.dao.Studao' mapperInterface 14:17:04.647 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0' 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/jdbc.driver] 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/jdbc.driver] not found - trying original name [jdbc.driver]. javax.naming.NameNotFoundException: 名称[jdbc.driver]未在此上下文中绑定。找不到[jdbc.driver]。 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [jdbc.driver] 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [jdbc.driver] threw NamingException with message: 名称[jdbc.driver]未在此上下文中绑定。找不到[jdbc.driver]。. Returning null. 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.core.env.PropertySourcesPropertyResolver - Found key 'jdbc.driver' in PropertySource 'localProperties' with value of type String 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/jdbc.password] 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/jdbc.password] not found - trying original name [jdbc.password]. javax.naming.NameNotFoundException: 名称[jdbc.password]未在此上下文中绑定。找不到[jdbc.password]。 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [jdbc.password] 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [jdbc.password] threw NamingException with message: 名称[jdbc.password]未在此上下文中绑定。找不到[jdbc.password]。. Returning null. 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.core.env.PropertySourcesPropertyResolver - Found key 'jdbc.password' in PropertySource 'localProperties' with value of type String 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/jdbc.url] 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/jdbc.url] not found - trying original name [jdbc.url]. javax.naming.NameNotFoundException: 名称[jdbc.url]未在此上下文中绑定。找不到[jdbc.url]。 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [jdbc.url] 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [jdbc.url] threw NamingException with message: 名称[jdbc.url]未在此上下文中绑定。找不到[jdbc.url]。. Returning null. 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.core.env.PropertySourcesPropertyResolver - Found key 'jdbc.url' in PropertySource 'localProperties' with value of type String 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/jdbc.username] 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/jdbc.username] not found - trying original name [jdbc.username]. javax.naming.NameNotFoundException: 名称[jdbc.username]未在此上下文中绑定。找不到[jdbc.username]。 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [jdbc.username] 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [jdbc.username] threw NamingException with message: 名称[jdbc.username]未在此上下文中绑定。找不到[jdbc.username]。. Returning null. 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.core.env.PropertySourcesPropertyResolver - Found key 'jdbc.username' in PropertySource 'localProperties' with value of type String 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor' 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory' 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor' 14:17:04.663 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor' 14:17:04.679 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.ui.context.support.UiApplicationContextUtils - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@3a0a0d1e] 14:17:04.679 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'classService' 14:17:04.710 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'classDao' 14:17:04.726 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'sqlsessionFactory' 14:17:04.726 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'dataSource' Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter. 14:17:04.901 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.SqlSessionFactoryBean - Parsed configuration file: 'class path resource [mybatis-config.xml]' 14:17:04.965 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\ROOT\WEB-INF\classes\mapper\ClassMapper.xml]' 14:17:04.965 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\ROOT\WEB-INF\classes\mapper\StuMapper.xml]' 14:17:04.981 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'stuService' 14:17:04.981 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'studao' 14:17:05.020 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain] 14:17:05.020 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/spring.liveBeansView.mbeanDomain] not found - trying original name [spring.liveBeansView.mbeanDomain]. javax.naming.NameNotFoundException: 名称[spring.liveBeansView.mbeanDomain]未在此上下文中绑定。找不到[spring.liveBeansView.mbeanDomain]。 14:17:05.020 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [spring.liveBeansView.mbeanDomain] 14:17:05.020 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [spring.liveBeansView.mbeanDomain] threw NamingException with message: 名称[spring.liveBeansView.mbeanDomain]未在此上下文中绑定。找不到[spring.liveBeansView.mbeanDomain]。. Returning null. 14:17:05.020 [RMI TCP Connection(3)-127.0.0.1] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext initialized in 832 ms 14:17:05.028 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.springframework.web.filter.CharacterEncodingFilter - Filter 'charset' configured for use [2025-09-15 02:17:05,044] Artifact 9.14_homework:war: Artifact is deployed successfully [2025-09-15 02:17:05,044] Artifact 9.14_homework:war: Deploy took 3,237 milliseconds 14:17:06.043 [http-nio-8080-exec-2] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'springMVC' 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/spring.profiles.active] 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/spring.profiles.active] not found - trying original name [spring.profiles.active]. javax.naming.NameNotFoundException: 名称[spring.profiles.active]未在此上下文中绑定。找不到[spring.profiles.active]。 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [spring.profiles.active] 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [spring.profiles.active] threw NamingException with message: 名称[spring.profiles.active]未在此上下文中绑定。找不到[spring.profiles.active]。. Returning null. 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/spring.profiles.default] 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: 名称[spring.profiles.default]未在此上下文中绑定。找不到[spring.profiles.default]。 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [spring.profiles.default] 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [spring.profiles.default] threw NamingException with message: 名称[spring.profiles.default]未在此上下文中绑定。找不到[spring.profiles.default]。. Returning null. 14:17:06.043 [http-nio-8080-exec-2] DEBUG org.springframework.web.context.support.XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'springMVC-servlet' 14:17:06.073 [http-nio-8080-exec-2] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\ROOT\WEB-INF\classes\com\buka\controller\ClassController.class] 14:17:06.073 [http-nio-8080-exec-2] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\ROOT\WEB-INF\classes\com\buka\controller\StuController.class] 14:17:06.120 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 26 bean definitions from class path resource [springmvc-config.xml] 14:17:06.120 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' 14:17:06.170 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor' 14:17:06.170 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory' 14:17:06.170 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor' 14:17:06.170 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor' 14:17:06.170 [http-nio-8080-exec-2] DEBUG org.springframework.ui.context.support.UiApplicationContextUtils - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.DelegatingThemeSource@2e74de95] 14:17:06.170 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'classController' 14:17:06.170 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'stuController' 14:17:06.170 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'mvcContentNegotiationManager' 14:17:06.183 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping' 14:17:06.231 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'mvcCorsConfigurations' 14:17:06.231 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.handler.MappedInterceptor#0' 14:17:06.231 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0' 14:17:06.320 [http-nio-8080-exec-2] DEBUG _org.springframework.web.servlet.HandlerMapping.Mappings - c.b.c.ClassController: { [/menu]}: index(Clazz,ModelAndView) { [/addClass]}: addClass(Clazz,ModelAndView) { [/]}: home() 14:17:06.325 [http-nio-8080-exec-2] DEBUG _org.springframework.web.servlet.HandlerMapping.Mappings - c.b.c.StuController: { [/addStu]}: addStu(Student,ModelAndView) 14:17:06.325 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - 4 mappings in 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping' 14:17:06.325 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter' 14:17:06.373 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - ControllerAdvice beans: none 14:17:06.420 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'mvcUriComponentsContributor' 14:17:06.420 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - ControllerAdvice beans: none 14:17:06.420 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0' 14:17:06.436 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver - ControllerAdvice beans: none 14:17:06.436 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0' 14:17:06.436 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0' 14:17:06.436 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping' 14:17:06.452 [http-nio-8080-exec-2] DEBUG _org.springframework.web.servlet.HandlerMapping.Mappings - 'org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping' {} 14:17:06.452 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter' 14:17:06.452 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter' 14:17:06.452 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'localeResolver' 14:17:06.452 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'themeResolver' 14:17:06.452 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'viewNameTranslator' 14:17:06.452 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'flashMapManager' 14:17:06.452 [http-nio-8080-exec-2] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'multipartResolver' 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.DispatcherServlet - Detected CommonsMultipartResolver 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.DispatcherServlet - Detected AcceptHeaderLocaleResolver 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.DispatcherServlet - Detected FixedThemeResolver 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.DispatcherServlet - Detected org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@2bd4fa16 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.DispatcherServlet - Detected org.springframework.web.servlet.support.SessionFlashMapManager@53592927 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain] 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/spring.liveBeansView.mbeanDomain] not found - trying original name [spring.liveBeansView.mbeanDomain]. javax.naming.NameNotFoundException: 名称[spring.liveBeansView.mbeanDomain]未在此上下文中绑定。找不到[spring.liveBeansView.mbeanDomain]。 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiTemplate - Looking up JNDI object with name [spring.liveBeansView.mbeanDomain] 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.jndi.JndiPropertySource - JNDI lookup for name [spring.liveBeansView.mbeanDomain] threw NamingException with message: 名称[spring.liveBeansView.mbeanDomain]未在此上下文中绑定。找不到[spring.liveBeansView.mbeanDomain]。. Returning null. 14:17:06.468 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.DispatcherServlet - enableLoggingRequestDetails='false': request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data 14:17:06.468 [http-nio-8080-exec-2] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 425 ms 14:17:06.492 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.DispatcherServlet - GET "/menu", parameters={} 14:17:06.496 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped to com.buka.controller.ClassController#index(Clazz, ModelAndView) Creating a new SqlSession SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@50162767] was not registered for synchronization because synchronization is not active 14:17:06.548 [http-nio-8080-exec-2] DEBUG org.springframework.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource 14:17:06.594 [http-nio-8080-exec-2] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@d2e8721] will not be managed by Spring ==> Preparing: select cid,cname,teacher from class ==> Parameters: <== Columns: cid, cname, teacher <== Row: 1, 1班, zhangsan <== Row: 19, 2班, lisi <== Total: 2 Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@50162767] 14:17:07.225 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.view.JstlView - View name 'menu.jsp', model {clazz=Clazz{cid=0, cname='null', teacher='null'}, org.springframework.validation.BindingResult.clazz=org.springframework.validation.BeanPropertyBindingResult: 0 errors, modelAndView=ModelAndView [view="menu.jsp"; model={classist=[Clazz{cid=1, cname='1班', teacher='zhangsan'}, Clazz{cid=19, cname='2班', teacher='lisi'}]}], org.springframework.validation.BindingResult.modelAndView=org.springframework.validation.BeanPropertyBindingResult: 0 errors, classist=[Clazz{cid=1, cname='1班', teacher='zhangsan'}, Clazz{cid=19, cname='2班', teacher='lisi'}]} 14:17:07.243 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.view.JstlView - Forwarding to [menu.jsp] 14:17:07.370 [http-nio-8080-exec-2] DEBUG org.springframework.web.servlet.DispatcherServlet - Completed 200 OK 14:17:07.386 [http-nio-8080-exec-4] DEBUG org.springframework.web.servlet.DispatcherServlet - GET "/menu", parameters={} 14:17:07.386 [http-nio-8080-exec-4] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped to com.buka.controller.ClassController#index(Clazz, ModelAndView) Creating a new SqlSession SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@726f97db] was not registered for synchronization because synchronization is not active 14:17:07.386 [http-nio-8080-exec-4] DEBUG org.springframework.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@d2e8721] will not be managed by Spring ==> Preparing: select cid,cname,teacher from class ==> Parameters: <== Columns: cid, cname, teacher <== Row: 1, 1班, zhangsan <== Row: 19, 2班, lisi <== Total: 2 Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@726f97db] 14:17:07.386 [http-nio-8080-exec-4] DEBUG org.springframework.web.servlet.view.JstlView - View name 'menu.jsp', model {clazz=Clazz{cid=0, cname='null', teacher='null'}, org.springframework.validation.BindingResult.clazz=org.springframework.validation.BeanPropertyBindingResult: 0 errors, modelAndView=ModelAndView [view="menu.jsp"; model={classist=[Clazz{cid=1, cname='1班', teacher='zhangsan'}, Clazz{cid=19, cname='2班', teacher='lisi'}]}], org.springframework.validation.BindingResult.modelAndView=org.springframework.validation.BeanPropertyBindingResult: 0 errors, classist=[Clazz{cid=1, cname='1班', teacher='zhangsan'}, Clazz{cid=19, cname='2班', teacher='lisi'}]} 14:17:07.386 [http-nio-8080-exec-4] DEBUG org.springframework.web.servlet.view.JstlView - Forwarding to [menu.jsp] 14:17:07.386 [http-nio-8080-exec-4] DEBUG org.springframework.web.servlet.DispatcherServlet - Completed 200 OK 14:17:07.540 [http-nio-8080-exec-6] DEBUG org.springframework.web.servlet.DispatcherServlet - GET "/menu", parameters={} 14:17:07.542 [http-nio-8080-exec-6] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped to com.buka.controller.ClassController#index(Clazz, ModelAndView) Creating a new SqlSession SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@600acfdb] was not registered for synchronization because synchronization is not active 14:17:07.542 [http-nio-8080-exec-6] DEBUG org.springframework.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@d2e8721] will not be managed by Spring ==> Preparing: select cid,cname,teacher from class ==> Parameters: <== Columns: cid, cname, teacher <== Row: 1, 1班, zhangsan <== Row: 19, 2班, lisi <== Total: 2 Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@600acfdb] 14:17:07.547 [http-nio-8080-exec-6] DEBUG org.springframework.web.servlet.view.JstlView - View name 'menu.jsp', model {clazz=Clazz{cid=0, cname='null', teacher='null'}, org.springframework.validation.BindingResult.clazz=org.springframework.validation.BeanPropertyBindingResult: 0 errors, modelAndView=ModelAndView [view="menu.jsp"; model={classist=[Clazz{cid=1, cname='1班', teacher='zhangsan'}, Clazz{cid=19, cname='2班', teacher='lisi'}]}], org.springframework.validation.BindingResult.modelAndView=org.springframework.validation.BeanPropertyBindingResult: 0 errors, classist=[Clazz{cid=1, cname='1班', teacher='zhangsan'}, Clazz{cid=19, cname='2班', teacher='lisi'}]} 14:17:07.549 [http-nio-8080-exec-6] DEBUG org.springframework.web.servlet.view.JstlView - Forwarding to [menu.jsp] 14:17:07.549 [http-nio-8080-exec-6] DEBUG org.springframework.web.servlet.DispatcherServlet - Completed 200 OK 15-Sep-2025 14:17:11.430 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\manager] 14:17:11.459 [http-nio-8080-exec-9] DEBUG org.springframework.web.servlet.DispatcherServlet - POST "/addStu", parameters={masked} 14:17:11.461 [http-nio-8080-exec-9] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped to com.buka.controller.StuController#addStu(Student, ModelAndView) 14:17:11.469 [http-nio-8080-exec-9] DEBUG org.springframework.web.method.HandlerMethod - Could not resolve parameter [0] in public org.springframework.web.servlet.ModelAndView com.buka.controller.StuController.addStu(com.buka.po.Student,org.springframework.web.servlet.ModelAndView): org.springframework.validation.BeanPropertyBindingResult: 1 errors Field error in object 'student' on field 'sid': rejected value [null]; codes [typeMismatch.student.sid,typeMismatch.sid,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [student.sid,sid]; arguments []; default message [sid]]; default message [Failed to convert value of type 'null' to required type 'int'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [null] to type [int] for value 'null'; nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type] 14:17:11.472 [http-nio-8080-exec-9] WARN org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.ModelAttributeMethodProcessor$1: org.springframework.validation.BeanPropertyBindingResult: 1 errors<EOL>Field error in object 'student' on field 'sid': rejected value [null]; codes [typeMismatch.student.sid,typeMismatch.sid,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [student.sid,sid]; arguments []; default message [sid]]; default message [Failed to convert value of type 'null' to required type 'int'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [null] to type [int] for value 'null'; nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type]] 14:17:11.472 [http-nio-8080-exec-9] DEBUG org.springframework.web.servlet.DispatcherServlet - Completed 400 BAD_REQUEST 15-Sep-2025 14:17:11.490 信息 [Catalina-utility-1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 15-Sep-2025 14:17:11.492 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[E:\buka resource\Tomcat 9.0\Tomcat 9.0\webapps\manager]的部署已在[62]毫秒内完成
09-16
In file included from D:/qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/unordered_map:35:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:29, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support for the \ ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:27:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:45:1: warning: identifier 'constexpr' is a keyword in C++11 [-Wc++0x-compat] constexpr Number abs(Number val) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:85:5: warning: identifier 'static_assert' is a keyword in C++11 [-Wc++0x-compat] static_assert(std::is_floating_point<LNumber>::value || std::is_floating_point<RNumber>::value, ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:169:9: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] assert(len_converted != nullptr); ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:76:5: warning: identifier 'noexcept' is a keyword in C++11 [-Wc++0x-compat] optional() noexcept ^ In file included from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:30:0: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell_reference.hpp:267:9: warning: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat] static_assert(std::is_same<decltype(x.row()), std::uint32_t>::value, "this hash function expects both row and column to be 32-bit numbers"); ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:32:0, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell_type.hpp:38:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11 enum class XLNT_API cell_type ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:33:0, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:40:7: error: expected nested-name-specifier before 'row_t' using row_t = std::uint32_t; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:53:11: error: expected nested-name-specifier before 'index_t' using index_t = std::uint32_t; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:63:12: error: 'index_t' does not name a type static index_t column_index_from_string(const std::string &column_string); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:73:49: error: 'index_t' has not been declared static std::string column_string_from_index(index_t column_index); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:83:22: error: expected ')' before 'column_index' column_t(index_t column_index); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:128:21: error: 'index_t' has not been declared bool operator==(index_t other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:128:10: error: 'bool xlnt::column_t::operator==(int) const' cannot be overloaded bool operator==(index_t other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:123:10: error: with 'bool xlnt::column_t::operator==(int) const' bool operator==(int other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:148:21: error: 'index_t' has not been declared bool operator!=(index_t other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:148:10: error: 'bool xlnt::column_t::operator!=(int) const' cannot be overloaded bool operator!=(index_t other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:143:10: error: with 'bool xlnt::column_t::operator!=(int) const' bool operator!=(int other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:183:36: error: 'index_t' in 'class xlnt::column_t' does not name a type bool operator>(const column_t::index_t &other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:188:37: error: 'index_t' in 'class xlnt::column_t' does not name a type bool operator>=(const column_t::index_t &other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:193:36: error: 'index_t' in 'class xlnt::column_t' does not name a type bool operator<(const column_t::index_t &other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:198:37: error: 'index_t' in 'class xlnt::column_t' does not name a type bool operator<=(const column_t::index_t &other) const; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:243:52: error: 'index_t' in 'class xlnt::column_t' does not name a type friend XLNT_API bool operator>(const column_t::index_t &left, const column_t &right); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:248:53: error: 'index_t' in 'class xlnt::column_t' does not name a type friend XLNT_API bool operator>=(const column_t::index_t &left, const column_t &right); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:253:52: error: 'index_t' in 'class xlnt::column_t' does not name a type friend XLNT_API bool operator<(const column_t::index_t &left, const column_t &right); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:258:53: error: 'index_t' in 'class xlnt::column_t' does not name a type friend XLNT_API bool operator<=(const column_t::index_t &left, const column_t &right); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:268:5: error: 'index_t' does not name a type index_t index; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:271:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11 enum class row_or_col_t : int ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:271:27: warning: scoped enums only available with -std=c++11 or -std=gnu++11 enum class row_or_col_t : int ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:297:8: error: 'hash' is not a class template struct hash<xlnt::column_t> ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/index_types.hpp:298:1: error: explicit specialization of non-template 'std::hash' { ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:30:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/phonetic_run.hpp:38:5: error: 'uint32_t' does not name a type uint32_t start; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/phonetic_run.hpp:39:5: error: 'uint32_t' does not name a type uint32_t end; ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:26:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:50:36: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 exception(const exception &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:55:16: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~exception() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:55:5: error: looser throw specifier for 'virtual xlnt::exception::~exception()' ~exception() override; ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:28:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:26, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/stdexcept:121:13: error: overriding 'virtual std::runtime_error::~runtime_error() throw ()' virtual ~runtime_error() _GLIBCXX_USE_NOEXCEPT; ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:26:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:89:52: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 invalid_parameter(const invalid_parameter &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:94:24: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~invalid_parameter() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:111:56: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 invalid_sheet_title(const invalid_sheet_title &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:116:26: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~invalid_sheet_title() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:134:42: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 invalid_file(const invalid_file &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:139:19: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~invalid_file() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:157:52: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 illegal_character(const illegal_character &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:162:24: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~illegal_character() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:179:52: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 invalid_data_type(const invalid_data_type &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:184:24: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~invalid_data_type() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:201:58: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 invalid_column_index(const invalid_column_index &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:206:27: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~invalid_column_index() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:218:45: error: 'row_t' has not been declared invalid_cell_reference(column_t column, row_t row); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:228:62: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 invalid_cell_reference(const invalid_cell_reference &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:233:29: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~invalid_cell_reference() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:250:52: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 invalid_attribute(const invalid_attribute &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:255:24: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~invalid_attribute() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:272:44: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 key_not_found(const key_not_found &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:277:20: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~key_not_found() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:294:60: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 no_visible_worksheets(const no_visible_worksheets &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:299:28: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~no_visible_worksheets() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:316:60: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 unhandled_switch_case(const unhandled_switch_case &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:321:28: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~unhandled_switch_case() override; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:339:40: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 unsupported(const unsupported &) = default; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/exceptions.hpp:344:18: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 ~unsupported() override; ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:27:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:45:1: error: 'constexpr' does not name a type constexpr Number abs(Number val) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:45:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:54:1: error: 'constexpr' does not name a type constexpr typename std::common_type<NumberL, NumberR>::type (max)(NumberL lval, NumberR rval) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:54:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:63:1: error: 'constexpr' does not name a type constexpr typename std::common_type<NumberL, NumberR>::type (min)(NumberL lval, NumberR rval) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:63:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:80:27: error: no default argument for 'LNumber' int epsilon_scale = 20) // scale the "fuzzy" equality. Higher value gives a more tolerant comparison ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:80:27: error: no default argument for 'RNumber' D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:80:27: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp: In function 'bool xlnt::detail::float_equals(const LNumber&, const RNumber&, int)': D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:83:11: error: expected nested-name-specifier before 'common_t' using common_t = typename std::common_type<LNumber, RNumber>::type; ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:85:19: error: 'is_floating_point' is not a member of 'std' static_assert(std::is_floating_point<LNumber>::value || std::is_floating_point<RNumber>::value, ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:85:49: error: expected primary-expression before '>' token static_assert(std::is_floating_point<LNumber>::value || std::is_floating_point<RNumber>::value, ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:85:50: error: '::value' has not been declared static_assert(std::is_floating_point<LNumber>::value || std::is_floating_point<RNumber>::value, ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:85:61: error: 'is_floating_point' is not a member of 'std' static_assert(std::is_floating_point<LNumber>::value || std::is_floating_point<RNumber>::value, ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:85:91: error: expected primary-expression before '>' token static_assert(std::is_floating_point<LNumber>::value || std::is_floating_point<RNumber>::value, ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:85:92: error: '::value' has not been declared static_assert(std::is_floating_point<LNumber>::value || std::is_floating_point<RNumber>::value, ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:86:77: error: there are no arguments to 'static_assert' that depend on a template parameter, so a declaration of 'static_assert' must be available [-fpermissive] "Using this function with two integers is just wasting time. Use =="); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:86:77: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:87:76: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 static_assert(std::numeric_limits<EpsilonType>::epsilon() < EpsilonType{1}, ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:98:5: error: 'constexpr' was not declared in this scope constexpr common_t epsilon = static_cast<common_t>(std::numeric_limits<EpsilonType>::epsilon()); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:103:5: error: 'common_t' was not declared in this scope common_t scaled_fuzz = epsilon_scale * epsilon * max(max(xlnt::detail::abs<common_t>(lhs), ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:105:43: error: expected primary-expression before ')' token common_t{1}); // clamp ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:106:20: error: 'scaled_fuzz' was not declared in this scope return ((lhs + scaled_fuzz) >= rhs) && ((rhs + scaled_fuzz) >= lhs); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp: At global scope: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:111:12: error: 'constexpr' does not name a type static constexpr int Excel_Digit_Precision = 15; //sf ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:111:12: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from D:/qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/cassert:43:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:28, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:27, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp: In member function 'double xlnt::detail::number_serialiser::deserialise(const string&, ptrdiff_t*) const': D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:169:33: error: 'nullptr' was not declared in this scope assert(len_converted != nullptr); ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:27:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:179:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat] auto copy_end = std::copy(s.begin(), s.end(), buf); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:179:14: error: 'copy_end' does not name a type auto copy_end = std::copy(s.begin(), s.end(), buf); ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/numeric.hpp:180:54: error: 'copy_end' was not declared in this scope convert_pt_to_comma(buf, static_cast<size_t>(copy_end - buf)); ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp: At global scope: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:57:45: error: 'enable_if' in namespace 'std' does not name a template type template <typename U = T, typename std::enable_if<!std::is_floating_point<U>::value>::type * = nullptr> ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:57:54: error: expected '>' before '<' token template <typename U = T, typename std::enable_if<!std::is_floating_point<U>::value>::type * = nullptr> ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:58:5: error: 'constexpr' does not name a type constexpr bool compare_equal(const U &lhs, const U &rhs) const ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:58:5: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:66:45: error: 'enable_if' in namespace 'std' does not name a template type template <typename U = T, typename std::enable_if<std::is_floating_point<U>::value>::type * = nullptr> ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:66:54: error: expected '>' before '<' token template <typename U = T, typename std::enable_if<std::is_floating_point<U>::value>::type * = nullptr> ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:67:5: error: 'constexpr' does not name a type constexpr bool compare_equal(const U &lhs, const U &rhs) const ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:67:5: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:76:14: error: expected ';' at end of member declaration optional() noexcept ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:76:16: error: 'noexcept' does not name a type optional() noexcept ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:85:28: error: expected ';' at end of member declaration optional(const T &value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_copy_T_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:41: error: expected identifier before '(' token #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:85:39: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const T &value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_copy_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected ')' before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:85:39: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const T &value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_copy_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected ')' before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:85:39: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const T &value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_copy_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:41: error: expected ';' at end of member declaration #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:85:39: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const T &value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_copy_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected unqualified-id before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:85:39: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const T &value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_copy_T_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:95:16: error: expected ',' or '...' before '&&' token optional(T &&value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_move_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:95:23: error: expected ';' at end of member declaration optional(T &&value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_move_T_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:41: error: expected identifier before '(' token #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:95:34: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(T &&value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_move_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected ')' before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:95:34: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(T &&value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_move_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected ')' before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:95:34: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(T &&value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_move_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:41: error: expected ';' at end of member declaration #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:95:34: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(T &&value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_move_T_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:95:25: error: 'int xlnt::optional<T>::noexcept(...)' cannot be overloaded optional(T &&value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_move_T_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:85:30: error: with 'int xlnt::optional<T>::noexcept(...)' optional(const T &value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_copy_T_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected unqualified-id before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:95:34: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(T &&value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_move_T_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:105:35: error: expected ';' at end of member declaration optional(const optional &other) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(copy_ctor_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:41: error: expected identifier before '(' token #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:105:46: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const optional &other) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(copy_ctor_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected ')' before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:105:46: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const optional &other) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(copy_ctor_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected ')' before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:105:46: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const optional &other) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(copy_ctor_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:41: error: expected ';' at end of member declaration #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:105:46: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const optional &other) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(copy_ctor_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:105:37: error: 'int xlnt::optional<T>::noexcept(...)' cannot be overloaded optional(const optional &other) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(copy_ctor_noexcept{})) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:85:30: error: with 'int xlnt::optional<T>::noexcept(...)' optional(const T &value) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(ctor_copy_T_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:43:42: error: expected unqualified-id before 'false' #define XLNT_NOEXCEPT_VALUE_COMPAT(...) (false) ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:105:46: note: in expansion of macro 'XLNT_NOEXCEPT_VALUE_COMPAT' optional(const optional &other) noexcept(XLNT_NOEXCEPT_VALUE_COMPAT(copy_ctor_noexcept{})) ^ In file included from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/color.hpp:31:0, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/styles/font.hpp:30, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text_run.hpp:29, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/rich_text.hpp:31, from D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/cell/cell.hpp:34, from D:\luoyu\xlnt-master测试有效\xlnt-master\xlnt-master\source\cell\cell.cpp:29: D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:186:28: error: expected '}' before end of line #pragma GCC diagnostic push ^ D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:186:28: error: expected unqualified-id before end of line D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:186:28: error: expected '}' before end of line D:/luoyu/xlnt-master测试有效/xlnt-master/xlnt-master/source/../include/xlnt/utils/optional.hpp:186:28: error: expected declaration before end of line CMakeFiles\xlnt.dir\build.make:54: recipe for target 'CMakeFiles/xlnt.dir/cell/cell.cpp.obj' failed mingw32-make[2]: *** [CMakeFiles/xlnt.dir/cell/cell.cpp.obj] Error 1 CMakeFiles\Makefile2:90: recipe for target 'CMakeFiles/xlnt.dir/all' failed mingw32-make[1]: *** [CMakeFiles/xlnt.dir/all] Error 2 makefile:116: recipe for target 'all' failed mingw32-make: *** [all] Error 2
08-02
下面代码出现 JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token at [Source: (PushbackInputStream); line: 1, column: 406] (through reference chain: net.sk.china.common.request.groupbuy.GroupBuyAddRequest["products"]->java.util.ArrayList[0]->net.sk.china.common.model.groupbuy.GroupBuyProduct["image"])这个问题:<template> <div class="container"> <el-tabs type="border-card"> <el-tab-pane :label="title"> <el-form ref="form" :model="form" :rules="rules" label-width="120px"> <uploadForm label="介绍图片:" v-model="form.cover" name="cover" :rules="rules.cover" :disabled="Boolean(queryParams.type)" :limit="1"></uploadForm> <el-row> <el-col :span="12"> <el-form-item label="团购名称:" prop="name"> <el-input class="input" v-model="form.name" :disabled="Boolean(queryParams.type)" placeholder="请输入团购名称" /> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="自动截止:" prop="isAutoEnd"> <el-switch v-model="form.isAutoEnd" :disabled="Boolean(queryParams.type)" :active-value="true" :inactive-value="false" /> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="开始时间:" prop="startTime"> <el-date-picker clearable v-model="form.startTime" type="datetime" default-time="12:00:00" :disabled="Boolean(queryParams.type)" value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择活动开始时间"> </el-date-picker> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="截止时间:" prop="endTime"> <el-date-picker clearable v-model="form.endTime" type="datetime" default-time="12:00:00" value-format="yyyy-MM-dd HH:mm:ss" :disabled="Boolean(queryParams.type)" placeholder="请选择活动截止时间"> </el-date-picker> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="最大接龙人数" prop="maxJoinNum"> <el-input-number :disabled="Boolean(queryParams.type)" v-model="form.maxJoinNum" :precision="0" :step="1" :min="0"></el-input-number> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="最小成交金额" prop="minAmount"> <el-input-number :disabled="Boolean(queryParams.type)" v-model="form.minAmount" :precision="2" :step="0.1" :min="0"></el-input-number> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="提货地址:" prop="addressIds"> <el-select :disabled="Boolean(queryParams.type)" v-model="form.addressIds" filterable placeholder="请选择" multiple> <el-option v-for="item in addressoptions" :key="item.id" :label="item.addressName" :value="item.id"> </el-option> </el-select> </el-form-item> </el-col> <el-col :span="24"> <el-form-item label="团购内容" prop="detailInfo"> <UEditor v-model="form.detailInfo" ref="ueditor" :config="myConfig" :disabled="Boolean(queryParams.type)"/> </el-form-item> <!-- <el-form-item label="团购内容:" prop="detailInfo"> <el-input :disabled="Boolean(queryParams.type)" type="textarea" :rows="2" placeholder="请输入团购内容" :autosize="{ minRows: 4, maxRows: 8 }" v-model="form.detailInfo"></el-input> </el-form-item> --> </el-col> </el-row> <el-form-item label="其它信息:"> <el-checkbox-group v-model="form.selectedItemsOther" :disabled="Boolean(queryParams.type)"> <el-checkbox label="isGetRealName">真实姓名</el-checkbox> <el-checkbox label="isGetPhone">手机号码</el-checkbox> </el-checkbox-group> </el-form-item> <el-form-item label="功能选择:"> <el-checkbox-group v-model="form.selectedItemsFunction" :disabled="Boolean(queryParams.type)"> <el-checkbox label="isHideList">发布最新接龙列表</el-checkbox> <el-checkbox label="isHideOrderAmount">接龙金额仅创建人可见</el-checkbox> <el-checkbox label="canCancel">禁止用户取消订单</el-checkbox> </el-checkbox-group> </el-form-item> <div> <el-form-item label="商品信息:" prop="products"> <el-table :data="form.products"> <el-table-column label="商品名称" align="center"> <template slot-scope="{row,$index}"> <div style="padding-bottom: 15px;"> <el-form-item :prop="`products.${$index}.name`" :rules="[{ required: true, message: '请输入团购名称', trigger: ['change', 'blur'] }]"> <el-input :disabled="Boolean(queryParams.type)" v-model="form.products[$index].name" placeholder="请输入团购名称"></el-input> </el-form-item> </div> </template> </el-table-column> <el-table-column label="商品价格" align="center"> <template slot-scope="{row,$index}"> <div style="padding-bottom: 15px;"> <el-form-item :prop="`products.${$index}.price`" :rules="[{ required: true, message: '请输入商品价格', trigger: ['change', 'blur'] }]"> <el-input-number :precision="2" :step="0.1" :min="0" :disabled="Boolean(queryParams.type)" v-model="form.products[$index].price"></el-input-number> </el-form-item> </div> </template> </el-table-column> <el-table-column label="商品数量" align="center"> <template slot-scope="{row,$index}"> <div style="padding-bottom: 15px;"> <el-form-item :prop="`products.${$index}.totalNum`" :rules="[{ required: true, message: '请输入商品数量', trigger: ['change', 'blur'] }]"> <el-input-number :precision="0" :step="1" :min="1" :disabled="Boolean(queryParams.type)" v-model="form.products[$index].totalNum"></el-input-number> </el-form-item> </div> </template> </el-table-column> <el-table-column label="每单限制购买量" align="center"> <template slot-scope="{row,$index}"> <div style="padding-bottom: 15px;"> <el-form-item :prop="`products.${$index}.limitNum`" :rules="[{ required: true, message: '请输入每单限制购买量', trigger: ['change', 'blur'] }]"> <el-input-number :precision="0" :step="1" :min="1" :disabled="Boolean(queryParams.type)" v-model="form.products[$index].limitNum"></el-input-number> </el-form-item> </div> </template> </el-table-column> <!-- <el-form-item label="活动补录照片:" prop="material"> <el-upload action class="avatar-uploader" :http-request="selectPicUploadMaterial" list-type="picture-card" :file-list="fileList" :on-preview="handlePictureCardPreviewMaterial" :on-remove="handleRemoveMaterial"> <i class="el-icon-plus avatar-uploader-icon"></i> </el-upload> <el-dialog :visible.sync="dialogVisible" :close-on-click-modal="false"> <img width="100%" :src="dialogImageUrl" alt="" class="avatar"> </el-dialog> </el-form-item> --> <!-- <el-table-column label="商品图片" align="center"> <template slot-scope="{row,$index}"> <div style="padding-bottom: 15px;"> <el-upload action class="avatar-uploader" :http-request="selectPicUploadMaterial" list-type="picture-card" :file-list="fileList" > <i class="el-icon-plus avatar-uploader-icon"></i> </el-upload> </div> </template> </el-table-column> --> <el-table-column label="商品图片" align="center"> <template slot-scope="{row,$index}"> <div style="padding-bottom: 15px;"> <el-upload action class="avatar-uploader" :http-request="(obj) => selectPicUploadMaterial(obj, $index)" list-type="picture-card" :file-list="fileList" > <i class="el-icon-plus avatar-uploader-icon"></i> </el-upload> </div> </template> </el-table-column> <!-- <el-table-column label="商品图片" align="center"> <template slot-scope="{row,$index}"> <div style="padding-bottom: 15px;"> <uploadForm label="" v-model="form.products[$index].image" :name="`products.${$index}.image`" :rules="[ { required: true, message: '请选择商品图片', trigger: ['change', 'blur'] } ]" :disabled="Boolean(queryParams.type)" :limit="3"></uploadForm> </div> </template> </el-table-column> --> <el-table-column v-if="!queryParams.type" label="操作" align="center" class-name="small-padding fixed-width" width="180"> <template slot-scope="scope"> <el-button @click="addproduct()"> 添加</el-button> <el-button type="danger" icon="el-icon-delete" :disabled="form.products.length <= 1" @click="removeRow(scope.$index)">删除</el-button> </template> </el-table-column> </el-table> </el-form-item> </div> </el-form> <!-- 修改/新增 --> <div class="dialog-footer"> <el-button v-if="!queryParams.type" type="primary" @click="submitForm">确 定</el-button> <el-button @click="handleBack">取 消</el-button> </div> </el-tab-pane> </el-tabs> </div> </template> <script> import { imgUrl } from '@/utils/request' import uploadForm from "@/components/uploadForm/index2.vue"; import { getISOTime, checkLongitudeValidator, checkPointIsNumber } from '@/utils/parsing' import { checkPhone } from '@/utils/validate' import mapView from '@/components/MapContainer/index.vue' import UEditor from '@/components/UEditor/ue' import { addGroupShop, editGroupBuy, getGroupBuyAddressPage, getGroupBuyDetail } from '@/api/solitaire/solitaire' import { uploadPic } from '@/api/activity/activity' import { onMounted, beforeDestroy } from 'vue' import { reset } from 'echarts/lib/visual/seriesColor' export default { components: { UEditor, mapView, uploadForm, }, onMounted() { }, data() { return { fileList: [], myConfig:{}, addressoptions: [], addressList: [], currentTime: new Date().toLocaleTimeString(), timer: null, // 第一个复选框组绑定值 // 第二个复选框组绑定值 selectedItemsFunction: [], checkList: ['选中且禁用', '复选框 A'], checked: true, // 单个复选框的绑定 dataList: [], title: "新增接龙", // 封面图片 selectImgUrl: '', queryParams: {}, currentImgIndex: 0, // 封面图片类型选择 imgDialogVisible: false, // 表单数据 form: { selectedItemsOther: [], selectedItemsFunction: [], addressIds: [], canCancel: 0, cover: [], detailInfo: null, endTime: null, id: 0, isAutoEnd: 0, isHideList: false, isHideOrderAmount: false, isJoin: 0, maxJoinNum: null, minAmount: null, name: "", products: [ { id: 0, image: [], limitNum: 0, name: "", parentId: 0, price: 0, soldNum: 0, totalNum: 0, } ], realEndTime: "", startTime: "", status: 0, }, // 表单校验 rules: { addressIds: [ { required: true, message: '请选择提货地址', trigger: ['change', 'blur'] } ], cover: [ { required: true, message: '请选择介绍图片', trigger: ['change', 'blur'] } ], name: [ { required: true, message: '请输入团购名称', trigger: 'change' } ], othermessage: [ { type: 'array', required: true, message: '请选择其它信息', trigger: 'change' } ], selectability: [ { type: 'array', required: true, message: '请选择功能', trigger: 'change' }, ], shopmessage: [ { required: true, message: '请输入商品信息', trigger: 'change' }, ], detailInfo: [ { required: true, message: '请输入团购内容', trigger: ['change', 'blur'] } ], maxJoinNum: [ { required: true, message: '请输入最大接龙人数', trigger: 'change' }, ], minAmount: [ { required: true, message: '最小成交金额不能为空', trigger: 'change' } ], endTime: [ { required: true, message: '结束时间必须选择', trigger: 'change' } ], startTime: [ { required: true, message: '开始时间不能为空', trigger: 'change' } ], description: [ { required: true, message: '活动开始内容不能为空', trigger: 'change' } ], address: [ { required: true, message: '地点不能为空', trigger: 'change' } ], conditionRequire: [ { required: true, message: '请输入条件说明', trigger: 'change' } ], // signStartDatetime: [ // { required: true, message: '报名开始时间必须选择', trigger: 'change' } // ], signEndDatetime: [ { required: true, message: '活动截止时间必须选择', trigger: 'change' } ], jobUserVOLists: [ { type: 'array', required: true, message: '请添加岗位需求', trigger: 'change' } ], }, // 图片前缀 cover: imgUrl, // //分页 column: { pageSize: null, pageNum: null }, // 队伍列表 // 岗位表单校验 jobRules: { jobName: [ { required: true, message: '请输入岗位名称', trigger: 'change' } ], jobCount: [ { required: true, message: '请输入岗位人数', trigger: 'change' } ], workHour: [ { required: true, message: '请输入工时', trigger: 'change' } ], pointPercent: [ { required: true, message: '请输入积分(每人每小时)', trigger: 'change' }, { validator: checkPointIsNumber, message: '积分必须为数字' } ], checkInTime: [ { required: true, message: '请输入签到时间', trigger: 'change' } ], checkOutTime: [ { required: true, message: '请输入签退时间', trigger: 'change' } ], checkLocation: [ { required: true, message: '请选择签到地点', trigger: 'change' } ] }, } }, created() { this.getAddressList() this.queryParams = this.$route.query; if (this.queryParams.id) { // 编辑 this.title = '修改接龙' console.log(Boolean(this.queryParams.type),'59') // this.isdisabled = true; getGroupBuyDetail(this.queryParams.id).then(res => { this.form = { ...res, cover: [{ url: res.cover }], isAutoEnd: res.isAutoEnd === 1 ? true : false, addressIds: res.addresses.map(n => (n.id)), selectedItemsOther: [], selectedItemsFunction: [], products: res.products.map((n)=>{ return { ...n, image: [{ url : n.image }] } }) } console.log(this.form.isAutoEnd,'0000') if (res.isGetRealName === 1) { this.form.selectedItemsOther.push('isGetRealName') } if (res.isGetPhone === 1) { this.form.selectedItemsOther.push('isGetPhone') } if (res.isHideList ===0) { this.form.selectedItemsFunction.push('isHideList') } if (res.isHideOrderAmount === 1) { this.form.selectedItemsFunction.push('isHideOrderAmount') } if (res.canCancel === 1) { this.form.selectedItemsFunction.push('canCancel') } this.$nextTick(() => { if (this.$refs.ueditor) { this.$refs.ueditor.setContent(res.detailInfo); } }); }) } }, methods: { // selectPicUploadMaterial(obj) { // console.log(obj); // let fd = new FormData(); // 参数的格式是formData格式的 // fd.append('file', obj.file); // 参数 // uploadPic(fd, { modularName: 'ACTIVITY' }).then(res => { // console.log(res, '====='); // // 假设当前上传的图片是针对表格中最后一个商品 // const lastProduct = this.form.products[this.form.products.length - 1]; // if (!lastProduct.image) { // lastProduct.image = []; // } // lastProduct.image.push(res); // }); // console.log(this.form.products.image); // }, selectPicUploadMaterial(obj, index) { console.log(obj); let fd = new FormData(); // 参数的格式是formData格式的 fd.append('file', obj.file); // 参数 uploadPic(fd, { modularName: 'ACTIVITY' }).then(res => { console.log(res, '====='); const product = this.form.products[index]; if (!product.image) { product.image = []; } product.image.push(res); }); console.log(this.form.products[index].image); }, onMounted() { }, getAddressList() { getGroupBuyAddressPage().then(res => { console.log(res,'099') this.addressoptions = res.pageData }) }, beforeDestroy() { clearInterval(this.timer); }, addproduct() { this.form.products.push({ /* 初始化新商品 */ }); this.$nextTick(() => { this.$refs.form.validateField('products'); // 触发products字段校验 }); }, removeRow(index) { // 添加长度检查 if (this.form.products.length <= 1) { this.$message.warning('至少需要保留一个商品'); return; } this.form.products.splice(index, 1); this.$nextTick(() => { this.$refs.form.validateField('products'); }); }, handleProductAvatarChange(file) { if (!file || !file.raw) return; const reader = new FileReader(); reader.onload = (e) => { const img = new Image(); img.onload = () => { // 限制最大尺寸(合理值:800×600) const MAX_SIZE = 800; let width = img.width; let height = img.height; // 按比例缩放到最大尺寸 if (width > MAX_SIZE || height > MAX_SIZE) { const scale = Math.min(MAX_SIZE / width, MAX_SIZE / height); width *= scale; height *= scale; } // 画布压缩处理 const canvas = document.createElement('canvas'); const ctx = canvas.getContext('2d'); canvas.width = width; canvas.height = height; ctx.drawImage(img, 0, 0, width, height); // 关键优化:降低质量并生成更短Data URL this.form.products.image = canvas.toDataURL(file.type, 0.01); // 压缩质量65% }; img.src = e.target.result; }; reader.readAsDataURL(file.raw); }, handleAvatarChange(file) { if (!file || !file.raw) return; const reader = new FileReader(); reader.onload = (e) => { const img = new Image(); img.onload = () => { // 限制最大尺寸(合理值:800×600) const MAX_SIZE = 800; let width = img.width; let height = img.height; // 按比例缩放到最大尺寸 if (width > MAX_SIZE || height > MAX_SIZE) { const scale = Math.min(MAX_SIZE / width, MAX_SIZE / height); width *= scale; height *= scale; } // 画布压缩处理 const canvas = document.createElement('canvas'); const ctx = canvas.getContext('2d'); canvas.width = width; canvas.height = height; ctx.drawImage(img, 0, 0, width, height); // 关键优化:降低质量并生成更短Data URL this.form.cover = canvas.toDataURL(file.type, 0.01); // 压缩质量65% }; img.src = e.target.result; }; reader.readAsDataURL(file.raw); }, // 表单重置 reset() { this.form = { addressIds: [], cover: null, canCancel: 0, detailInfo: null, endTime: null, id: 0, isAutoEnd: 0, isGetPhone: 0, isGetRealName: 0, isHideList: 0, isHideOrderAmount: 0, isJoin: 0, maxJoinNum: 0, minAmount: 0, name: "", products: [ { id: 0, image: imgUrl, limitNum: 0, name: "", parentId: 0, price: 0, soldNum: 0, totalNum: 0 } ], realEndTime: "", startTime: "", status: 0, } }, // // 取消关闭弹窗 // closeDialog() { // this.currentImgIndex = 0 // this.selectImgUrl = '' // this.imgDialogVisible = false // }, // // 确认默认图片关闭弹窗 // submitPic() { // this.form.cover = this.selectImgUrl // this.imgDialogVisible = false // }, hasCommonValue(arr) { let seen = new Set(); // 用于存储已经遇到的值 for (let obj of arr) { for (let value of obj.jobUsers) { // 如果值已经存在于 set 中,返回 true if (seen.has(value.userId)) { return true; } // 将当前值加入 set seen.add(value.userId); } } return false; // 如果没有重复的值,返回 false }, /** 提交按钮 */ submitForm() { console.log(this.form, '000') this.form.detailInfo = this.$refs.ueditor.getContent(); let newForm = { addressIds: this.form.addressIds, canCancel: this.form.selectedItemsFunction.includes('canCancel') ? 1 : 0, cover: this.form.cover[0] && this.form.cover[0].url, detailInfo: this.form.detailInfo, endTime: this.form.endTime, id: this.form.id, isAutoEnd: this.form.isAutoEnd === true ? 1 : 0, isGetPhone: this.form.selectedItemsOther.includes('isGetPhone') ? 1 : 0, isGetRealName: this.form.selectedItemsOther.includes('isGetRealName') ? 1 : 0, isHideList: this.form.selectedItemsFunction.includes('isHideList') ? 0 : 1, isHideOrderAmount: this.form.selectedItemsFunction.includes('isHideOrderAmount') ? 1 : 0, isJoin: this.form.isJoin, maxJoinNum: this.form.maxJoinNum, minAmount: this.form.minAmount, name: this.form.name, products: this.form.products.map(item => { const image = item.image || []; return { id: item.id, image: image, limitNum: item.limitNum, name: item.name, parentId: item.parentId, price: item.price, soldNum: item.soldNum, totalNum: item.totalNum }; }), realEndTime: this.form.realEndTime, startTime: this.form.startTime, status: this.form.status, }; console.log(newForm, this.form.id) this.$refs['form'].validate(valid => { if (valid) { if (this.form.id) { editGroupBuy(newForm).then(response => { console.log(response, '00') this.$modal.msgSuccess('修改成功') this.$router.back(-1) }) } else { if (this.form.name != '' && this.form.cover != '') { addGroupShop(newForm).then(response => { console.log(response) this.$modal.msgSuccess('新增成功') this.$router.back(-1) }) } else { this.$modal.msgError('请完善信息') } } } }) }, handleBack() { this.$router.back(-1) }, // 新增时间段 changeStatus() { if (this.currentTime) { this.timer = setInterval(() => { this.currentTime = new Date().toLocaleTimeString(); console.log(this.currentTime, '90') }, 1000); } }, // 改变时间段的初始时间 changeStartTime(value, timeIndex) { console.log(this.form.jobUserVOLists[timeIndex].jobList) if (this.form.jobUserVOLists[timeIndex].jobList) { this.form.jobUserVOLists[timeIndex].jobList.forEach(item => { item.checkInTime = value if (item.checkOutTime && item.checkInTime) { item.workHour = getISOTime(item.checkInTime, item.checkOutTime) if (item.jobUsers) { item.jobUsers.forEach(itemson => { itemson.workHour = item.workHour itemson.point = parseInt(item.pointPercent) * item.workHour }) } } }) } }, // 改变时间段的初始时间 changeEndTime(value, timeIndex) { if (this.form.jobUserVOLists[timeIndex].jobList) { this.form.jobUserVOLists[timeIndex].jobList.forEach(item => { item.checkOutTime = value if (item.checkOutTime && item.checkInTime) { item.workHour = getISOTime(item.checkInTime, item.checkOutTime) if (item.jobUsers) { item.jobUsers.forEach(itemson => { itemson.workHour = item.workHour itemson.point = parseInt(item.pointPercent) * item.workHour }) } } }) } }, // 跳转 toPrck() { window.open('https://lbs.amap.com/tools/picker') }, } } </script> <style scoped> .container { background-color: #f5f5f5; padding: 1%; } .title_type { font-size: 24px; font-weight: 700; margin-bottom: 20px; } .dialog-footer { display: flex; flex-direction: row; justify-content: center; align-items: center; padding-bottom: 30px; } .avatar-uploader .el-upload { border: 1px solid #f8f3f3; border-radius: 6px; cursor: pointer; position: relative; overflow: hidden; } .avatar-uploader .el-upload:hover { border-color: #409EFF; } .avatar-uploader-icon { font-size: 28px; color: #8c939d; width: 120px; height: 120px; line-height: 120px; text-align: center; } .coverImage { width: 214px; height: 129px; border-radius: 6px; cursor: pointer; } .select_mask { position: absolute; z-index: 2; background-color: rgba(127, 125, 121, 0.5); text-align: center; top: 0; bottom: 0; left: 0; right: 0; width: 214px; height: 129px; display: flex; justify-content: center; align-items: center; } .avatar { width: 50px; height: 50px; display: block; } .margin-right-10 { margin-right: 10px; } .job_box { /* border: 1px solid #ccc; */ background-color: #F8F8F8; padding: 46px 10px 10px; margin-bottom: 10px; margin-left: 50px; border-radius: 10px; } </style>
最新发布
11-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值