其他分享
首页 > 其他分享> > 0909

0909

作者:互联网

2021-09-09 10:21:46 星期四

之前vue那边传值是这样 data{name:,age:,...},导致后端systest里面的值都为空,后端需要的是{name:,age:,...}
image
这个才是正常的参数传值
image
调用
image
image
查看数据库
image

2021-09-09 11:31:43 星期四

测试问卷

{"list":[{"type":"grid","icon":"icon-RectangleCopy","columns":[{"type":"col","options":{"span":24,"offset":0,"push":0,"pull":0,"xs":24,"sm":24,"md":24,"lg":24,"xl":24,"customClass":""},"list":[{"type":"input","icon":"icon-input","options":{"width":"","defaultValue":"","required":true,"requiredMessage":"姓名必填","dataType":"","dataTypeCheck":false,"dataTypeMessage":"","pattern":"","patternCheck":false,"patternMessage":"","validatorCheck":false,"validator":"","placeholder":"","customClass":"","disabled":false,"labelWidth":70,"isLabelWidth":true,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_q0ql3gm2","remoteOption":"option_q0ql3gm2","tableColumn":false,"hideLabel":false},"events":{"onChange":"","onFocus":"","onBlur":""},"name":"姓名","key":"hn7x0hrl","model":"name","rules":[{"required":true,"message":"姓名必填"}],"novalid":{}},{"type":"input","icon":"icon-input","options":{"width":"","defaultValue":"","required":true,"requiredMessage":"年龄必填","dataType":"","dataTypeCheck":false,"dataTypeMessage":"","pattern":"/^(([0-9]|[1-9][1-9]|1[0-7][0-9])(\\\\.[0-9]+)?|180)$/","patternCheck":false,"patternMessage":"年龄格式不对","validatorCheck":false,"validator":"","placeholder":"","customClass":"","disabled":false,"labelWidth":70,"isLabelWidth":true,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_27vdyecn","remoteOption":"option_27vdyecn","hideLabel":false,"tableColumn":false},"events":{"onChange":"","onFocus":"","onBlur":""},"name":"年龄","key":"ku6eof5r","model":"age","rules":[{"required":true,"message":"年龄必填"}],"novalid":{}},{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"","required":true,"requiredMessage":"性别必填","validatorCheck":false,"validator":"","showLabel":false,"width":"","options":[{"value":"男"},{"value":"女"}],"remote":false,"remoteType":"datasource","remoteOption":"option_qdxmpk7e","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_qdxmpk7e","customClass":"","labelWidth":70,"isLabelWidth":true,"hidden":false,"dataBind":true,"tableColumn":false},"events":{"onChange":"","onFocus":"","onBlur":""},"name":"性别","key":"ieoh8a5i","model":"gender","rules":[{"required":true,"message":"性别必填"}],"novalid":{}},{"type":"input","icon":"icon-input","options":{"width":"","defaultValue":"","required":false,"requiredMessage":"","dataType":"","dataTypeCheck":false,"dataTypeMessage":"","pattern":"","patternCheck":false,"patternMessage":"","validatorCheck":false,"validator":"","placeholder":"","customClass":"","disabled":false,"labelWidth":70,"isLabelWidth":true,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_e3zb314v","remoteOption":"option_e3zb314v","tableColumn":false},"events":{"onChange":"","onFocus":"","onBlur":""},"name":"手机号","key":"e3zb314v","model":"phone","rules":[],"novalid":{}},{"type":"input","icon":"icon-input","options":{"width":"","defaultValue":"","required":false,"requiredMessage":"","dataType":"","dataTypeCheck":false,"dataTypeMessage":"","pattern":"","patternCheck":false,"patternMessage":"","validatorCheck":false,"validator":"","placeholder":"","customClass":"","disabled":false,"labelWidth":70,"isLabelWidth":true,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_8tin281g","remoteOption":"option_8tin281g","tableColumn":false},"events":{"onChange":"","onFocus":"","onBlur":""},"name":"邮箱","key":"8tin281g","model":"mail","rules":[],"novalid":{}},{"type":"radio","icon":"icon-radio-active","options":{"inline":true,"defaultValue":"","showLabel":false,"options":[{"value":"硕士","label":"Option 1"},{"value":"本科","label":"Option 2"},{"value":"专科","label":"Option 3"}],"required":false,"requiredMessage":"","validatorCheck":false,"validator":"","width":"","remote":false,"remoteType":"datasource","remoteOption":"option_3ny6n6jj","remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_3ny6n6jj","customClass":"","labelWidth":70,"isLabelWidth":true,"hidden":false,"dataBind":true,"disabled":false,"tableColumn":false},"events":{"onChange":""},"name":"学历","key":"3ny6n6jj","model":"education","rules":[],"novalid":{}},{"type":"rate","icon":"icon-pingfen1","options":{"defaultValue":2.5,"max":5,"disabled":false,"allowHalf":true,"required":false,"requiredMessage":"","validatorCheck":false,"validator":"","customClass":"","labelWidth":70,"isLabelWidth":true,"hidden":false,"dataBind":true,"showScore":false,"remoteFunc":"func_x1c6y85h","remoteOption":"option_x1c6y85h","tableColumn":false},"events":{"onChange":""},"name":"自我评价","key":"x1c6y85h","model":"self_evaluation","rules":[],"novalid":{}}],"key":"s8hjiv97"}],"options":{"gutter":0,"justify":"start","align":"bottom","customClass":"","hidden":false,"flex":true,"responsive":true,"remoteFunc":"func_gmjbbyik","remoteOption":"option_gmjbbyik"},"name":"栅格布局","key":"gmjbbyik","model":"grid_gmjbbyik","rules":[]}],"config":{"labelWidth":100,"labelPosition":"right","size":"small","customClass":"","ui":"antd","layout":"horizontal","labelCol":0,"width":"100%","hideLabel":false,"hideErrorMessage":false,"eventScript":[{"key":"mounted","name":"mounted","func":""}],"dataSource":[{"key":"upload","name":"Get Upload Token","url":"http://tools-server.making.link/api/uptoken","method":"GET","auto":true,"responseFunc":"return res.uptoken;"},{"key":"getoptions","name":"Get Options","url":"http://tools-server.making.link/api/new/options","method":"GET","auto":true,"responseFunc":"return res.data;"}],"platform":"pc","styleSheets":"text-align: center;"}}

image


2021-09-09 14:48:12 星期四

实体类必须加 @TableId("self_evaluation") ,否则 查出来的self_evaluation值为空
image

标签:false,name,0909,key,true,options,icon
来源: https://www.cnblogs.com/drsyq/p/15247026.html