refactor: 在旧的PhyExp基础上进行重构,采用了monorepo结构,分为frontend和backend两个子项目
这个提交包含在:
@ -0,0 +1,969 @@
|
||||
{
|
||||
"title": "超声波声速测量实验(记录表)",
|
||||
"description": "按纸质实验记录单组织:基本信息、表1频率与温度、表2驻波法、表3相位法、表4时差法、表5方法比较。",
|
||||
"containers": [
|
||||
{
|
||||
"id": "basic_info",
|
||||
"type": "container",
|
||||
"layout": "grid",
|
||||
"style": {
|
||||
"gridTemplateColumns": "repeat(3, minmax(0, 1fr))"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": "basic_title",
|
||||
"type": "label",
|
||||
"content": "## 基本信息"
|
||||
},
|
||||
{
|
||||
"id": "basic_break_1",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "class_name",
|
||||
"type": "field",
|
||||
"label": "班级",
|
||||
"placeholder": "例如:纳米专业2班",
|
||||
"validation": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "student_name",
|
||||
"type": "field",
|
||||
"label": "姓名",
|
||||
"placeholder": "请输入姓名",
|
||||
"validation": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "student_id",
|
||||
"type": "field",
|
||||
"label": "学号",
|
||||
"placeholder": "请输入学号",
|
||||
"validation": {
|
||||
"type": "regex",
|
||||
"pattern": "^[0-9]{6,20}$",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table1",
|
||||
"type": "container",
|
||||
"layout": "grid",
|
||||
"style": {
|
||||
"gridTemplateColumns": "repeat(5, minmax(0, 1fr))"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": "table1_title",
|
||||
"type": "label",
|
||||
"content": "## 表1 声源频率与介质温度"
|
||||
},
|
||||
{
|
||||
"id": "table1_break_1",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "f1",
|
||||
"type": "field",
|
||||
"label": "$f_{1}$",
|
||||
"placeholder": "36.540",
|
||||
"unit": "$kHz$",
|
||||
"validation": {
|
||||
"type": "number",
|
||||
"min": 30,
|
||||
"max": 45,
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "f2",
|
||||
"type": "field",
|
||||
"label": "$f_{2}$",
|
||||
"placeholder": "36.539",
|
||||
"unit": "$kHz$",
|
||||
"validation": {
|
||||
"type": "number",
|
||||
"min": 30,
|
||||
"max": 45,
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "f3",
|
||||
"type": "field",
|
||||
"label": "$f_{3}$",
|
||||
"placeholder": "36.540",
|
||||
"unit": "$kHz$",
|
||||
"validation": {
|
||||
"type": "number",
|
||||
"min": 30,
|
||||
"max": 45,
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "f4",
|
||||
"type": "field",
|
||||
"label": "$f_{4}$",
|
||||
"placeholder": "36.538",
|
||||
"unit": "$kHz$",
|
||||
"validation": {
|
||||
"type": "number",
|
||||
"min": 30,
|
||||
"max": 45,
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "f5",
|
||||
"type": "field",
|
||||
"label": "$f_{5}$",
|
||||
"placeholder": "36.542",
|
||||
"unit": "$kHz$",
|
||||
"validation": {
|
||||
"type": "number",
|
||||
"min": 30,
|
||||
"max": 45,
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "table1_break_2",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "temperature",
|
||||
"type": "field",
|
||||
"label": "介质温度 $t$",
|
||||
"placeholder": "25.0",
|
||||
"unit": "$^\\circ C$",
|
||||
"validation": {
|
||||
"type": "number",
|
||||
"min": 0,
|
||||
"max": 60,
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "frequency_avg",
|
||||
"type": "area",
|
||||
"label": "平均频率 $\\bar{f}$",
|
||||
"expression": "(f1+f2+f3+f4+f5)/5",
|
||||
"variables": [
|
||||
"f1",
|
||||
"f2",
|
||||
"f3",
|
||||
"f4",
|
||||
"f5"
|
||||
],
|
||||
"format": "0.000"
|
||||
},
|
||||
{
|
||||
"id": "v0_theory",
|
||||
"type": "area",
|
||||
"label": "理论声速 $v_{0}$",
|
||||
"expression": "331.5 + 0.6 * temperature",
|
||||
"variables": [
|
||||
"temperature"
|
||||
],
|
||||
"format": "0.00"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table2_standing",
|
||||
"type": "container",
|
||||
"layout": "grid",
|
||||
"style": {
|
||||
"gridTemplateColumns": "repeat(5, minmax(0, 1fr))"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": "table2_title",
|
||||
"type": "label",
|
||||
"content": "## 表2 驻波法测量"
|
||||
},
|
||||
{
|
||||
"id": "table2_break_1",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "s_l0",
|
||||
"type": "field",
|
||||
"label": "$L_{0}$",
|
||||
"placeholder": "144.02",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "s_l1",
|
||||
"type": "field",
|
||||
"label": "$L_{1}$",
|
||||
"placeholder": "148.80",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "s_l2",
|
||||
"type": "field",
|
||||
"label": "$L_{2}$",
|
||||
"placeholder": "153.50",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "s_l3",
|
||||
"type": "field",
|
||||
"label": "$L_{3}$",
|
||||
"placeholder": "158.30",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "s_l4",
|
||||
"type": "field",
|
||||
"label": "$L_{4}$",
|
||||
"placeholder": "163.00",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "table2_break_2",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "s_l5",
|
||||
"type": "field",
|
||||
"label": "$L_{5}$",
|
||||
"placeholder": "167.80",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "s_l6",
|
||||
"type": "field",
|
||||
"label": "$L_{6}$",
|
||||
"placeholder": "172.66",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "s_l7",
|
||||
"type": "field",
|
||||
"label": "$L_{7}$",
|
||||
"placeholder": "177.30",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "s_l8",
|
||||
"type": "field",
|
||||
"label": "$L_{8}$",
|
||||
"placeholder": "182.29",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "s_l9",
|
||||
"type": "field",
|
||||
"label": "$L_{9}$",
|
||||
"placeholder": "186.84",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "table2_break_3",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "s_d1",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{1}$",
|
||||
"expression": "s_l5 - s_l0",
|
||||
"variables": ["s_l5", "s_l0"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "s_d2",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{2}$",
|
||||
"expression": "s_l6 - s_l1",
|
||||
"variables": ["s_l6", "s_l1"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "s_d3",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{3}$",
|
||||
"expression": "s_l7 - s_l2",
|
||||
"variables": ["s_l7", "s_l2"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "s_d4",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{4}$",
|
||||
"expression": "s_l8 - s_l3",
|
||||
"variables": ["s_l8", "s_l3"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "s_d5",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{5}$",
|
||||
"expression": "s_l9 - s_l4",
|
||||
"variables": ["s_l9", "s_l4"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "table2_break_4",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "s_d_avg",
|
||||
"type": "area",
|
||||
"label": "$\\overline{\\Delta L}$",
|
||||
"expression": "(s_d1 + s_d2 + s_d3 + s_d4 + s_d5) / 5",
|
||||
"variables": ["s_d1", "s_d2", "s_d3", "s_d4", "s_d5"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "lambda_standing",
|
||||
"type": "area",
|
||||
"label": "$\\lambda$",
|
||||
"expression": "(2 / 5) * s_d_avg",
|
||||
"variables": ["s_d_avg"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "v_standing",
|
||||
"type": "area",
|
||||
"label": "声速 $v$",
|
||||
"expression": "frequency_avg * lambda_standing",
|
||||
"variables": ["frequency_avg", "lambda_standing"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "err_standing",
|
||||
"type": "area",
|
||||
"label": "$A_{\\%}$",
|
||||
"expression": "((v_standing - v0_theory) / v0_theory) * 100",
|
||||
"variables": ["v_standing", "v0_theory"],
|
||||
"format": "0.000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table3_phase",
|
||||
"type": "container",
|
||||
"layout": "grid",
|
||||
"style": {
|
||||
"gridTemplateColumns": "repeat(5, minmax(0, 1fr))"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": "table3_title",
|
||||
"type": "label",
|
||||
"content": "## 表3 相位法测量"
|
||||
},
|
||||
{
|
||||
"id": "table3_break_1",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "p_l0",
|
||||
"type": "field",
|
||||
"label": "$L_{0}$",
|
||||
"placeholder": "182.10",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "p_l1",
|
||||
"type": "field",
|
||||
"label": "$L_{1}$",
|
||||
"placeholder": "191.28",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "p_l2",
|
||||
"type": "field",
|
||||
"label": "$L_{2}$",
|
||||
"placeholder": "196.20",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "p_l3",
|
||||
"type": "field",
|
||||
"label": "$L_{3}$",
|
||||
"placeholder": "201.00",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "p_l4",
|
||||
"type": "field",
|
||||
"label": "$L_{4}$",
|
||||
"placeholder": "205.54",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "table3_break_2",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "p_l5",
|
||||
"type": "field",
|
||||
"label": "$L_{5}$",
|
||||
"placeholder": "210.40",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "p_l6",
|
||||
"type": "field",
|
||||
"label": "$L_{6}$",
|
||||
"placeholder": "215.22",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "p_l7",
|
||||
"type": "field",
|
||||
"label": "$L_{7}$",
|
||||
"placeholder": "219.96",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "p_l8",
|
||||
"type": "field",
|
||||
"label": "$L_{8}$",
|
||||
"placeholder": "224.68",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "p_l9",
|
||||
"type": "field",
|
||||
"label": "$L_{9}$",
|
||||
"placeholder": "229.40",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "table3_break_3",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "p_d1",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{1}$",
|
||||
"expression": "p_l5 - p_l0",
|
||||
"variables": ["p_l5", "p_l0"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "p_d2",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{2}$",
|
||||
"expression": "p_l6 - p_l1",
|
||||
"variables": ["p_l6", "p_l1"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "p_d3",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{3}$",
|
||||
"expression": "p_l7 - p_l2",
|
||||
"variables": ["p_l7", "p_l2"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "p_d4",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{4}$",
|
||||
"expression": "p_l8 - p_l3",
|
||||
"variables": ["p_l8", "p_l3"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "p_d5",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{5}$",
|
||||
"expression": "p_l9 - p_l4",
|
||||
"variables": ["p_l9", "p_l4"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "table3_break_4",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "p_d_avg",
|
||||
"type": "area",
|
||||
"label": "$\\overline{\\Delta L}$",
|
||||
"expression": "(p_d1 + p_d2 + p_d3 + p_d4 + p_d5) / 5",
|
||||
"variables": ["p_d1", "p_d2", "p_d3", "p_d4", "p_d5"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "lambda_phase",
|
||||
"type": "area",
|
||||
"label": "$\\lambda$",
|
||||
"expression": "(2 / 5) * p_d_avg",
|
||||
"variables": ["p_d_avg"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "v_phase",
|
||||
"type": "area",
|
||||
"label": "声速 $v$",
|
||||
"expression": "frequency_avg * lambda_phase",
|
||||
"variables": ["frequency_avg", "lambda_phase"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "err_phase",
|
||||
"type": "area",
|
||||
"label": "$A_{\\%}$",
|
||||
"expression": "((v_phase - v0_theory) / v0_theory) * 100",
|
||||
"variables": ["v_phase", "v0_theory"],
|
||||
"format": "0.000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table4_timediff",
|
||||
"type": "container",
|
||||
"layout": "grid",
|
||||
"style": {
|
||||
"gridTemplateColumns": "repeat(5, minmax(0, 1fr))"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": "table4_title",
|
||||
"type": "label",
|
||||
"content": "## 表4 时差法测量"
|
||||
},
|
||||
{
|
||||
"id": "table4_break_1",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "t_l1",
|
||||
"type": "field",
|
||||
"label": "$L_{1}$",
|
||||
"placeholder": "202.80",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_l2",
|
||||
"type": "field",
|
||||
"label": "$L_{2}$",
|
||||
"placeholder": "245.80",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_l3",
|
||||
"type": "field",
|
||||
"label": "$L_{3}$",
|
||||
"placeholder": "197.60",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_l4",
|
||||
"type": "field",
|
||||
"label": "$L_{4}$",
|
||||
"placeholder": "157.56",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_l5",
|
||||
"type": "field",
|
||||
"label": "$L_{5}$",
|
||||
"placeholder": "123.30",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "table4_break_2",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "t_l6",
|
||||
"type": "field",
|
||||
"label": "$L_{6}$",
|
||||
"placeholder": "140.00",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_l7",
|
||||
"type": "field",
|
||||
"label": "$L_{7}$",
|
||||
"placeholder": "161.80",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_l8",
|
||||
"type": "field",
|
||||
"label": "$L_{8}$",
|
||||
"placeholder": "132.30",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_l9",
|
||||
"type": "field",
|
||||
"label": "$L_{9}$",
|
||||
"placeholder": "173.14",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_l10",
|
||||
"type": "field",
|
||||
"label": "$L_{10}$",
|
||||
"placeholder": "152.46",
|
||||
"unit": "$mm$",
|
||||
"validation": { "type": "number", "min": 0, "max": 400, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "table4_break_3",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "t_t1",
|
||||
"type": "field",
|
||||
"label": "$T_{1}$",
|
||||
"placeholder": "584",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_t2",
|
||||
"type": "field",
|
||||
"label": "$T_{2}$",
|
||||
"placeholder": "712",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_t3",
|
||||
"type": "field",
|
||||
"label": "$T_{3}$",
|
||||
"placeholder": "572",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_t4",
|
||||
"type": "field",
|
||||
"label": "$T_{4}$",
|
||||
"placeholder": "456",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_t5",
|
||||
"type": "field",
|
||||
"label": "$T_{5}$",
|
||||
"placeholder": "356",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "table4_break_4",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "t_t6",
|
||||
"type": "field",
|
||||
"label": "$T_{6}$",
|
||||
"placeholder": "404",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_t7",
|
||||
"type": "field",
|
||||
"label": "$T_{7}$",
|
||||
"placeholder": "472",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_t8",
|
||||
"type": "field",
|
||||
"label": "$T_{8}$",
|
||||
"placeholder": "380",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_t9",
|
||||
"type": "field",
|
||||
"label": "$T_{9}$",
|
||||
"placeholder": "500",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "t_t10",
|
||||
"type": "field",
|
||||
"label": "$T_{10}$",
|
||||
"placeholder": "440",
|
||||
"unit": "$\\mu s$",
|
||||
"validation": { "type": "number", "min": 0, "max": 2000, "required": true }
|
||||
},
|
||||
{
|
||||
"id": "table4_break_5",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "t_dl1",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{1}$",
|
||||
"expression": "t_l6 - t_l1",
|
||||
"variables": ["t_l6", "t_l1"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dl2",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{2}$",
|
||||
"expression": "t_l7 - t_l2",
|
||||
"variables": ["t_l7", "t_l2"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dl3",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{3}$",
|
||||
"expression": "t_l8 - t_l3",
|
||||
"variables": ["t_l8", "t_l3"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dl4",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{4}$",
|
||||
"expression": "t_l9 - t_l4",
|
||||
"variables": ["t_l9", "t_l4"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dl5",
|
||||
"type": "area",
|
||||
"label": "$\\Delta L_{5}$",
|
||||
"expression": "t_l10 - t_l5",
|
||||
"variables": ["t_l10", "t_l5"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "table4_break_6",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "t_dt1",
|
||||
"type": "area",
|
||||
"label": "$\\Delta T_{1}$",
|
||||
"expression": "t_t6 - t_t1",
|
||||
"variables": ["t_t6", "t_t1"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dt2",
|
||||
"type": "area",
|
||||
"label": "$\\Delta T_{2}$",
|
||||
"expression": "t_t7 - t_t2",
|
||||
"variables": ["t_t7", "t_t2"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dt3",
|
||||
"type": "area",
|
||||
"label": "$\\Delta T_{3}$",
|
||||
"expression": "t_t8 - t_t3",
|
||||
"variables": ["t_t8", "t_t3"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dt4",
|
||||
"type": "area",
|
||||
"label": "$\\Delta T_{4}$",
|
||||
"expression": "t_t9 - t_t4",
|
||||
"variables": ["t_t9", "t_t4"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dt5",
|
||||
"type": "area",
|
||||
"label": "$\\Delta T_{5}$",
|
||||
"expression": "t_t10 - t_t5",
|
||||
"variables": ["t_t10", "t_t5"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "table4_break_7",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "t_dl_avg",
|
||||
"type": "area",
|
||||
"label": "$\\overline{\\Delta L}$",
|
||||
"expression": "(t_dl1 + t_dl2 + t_dl3 + t_dl4 + t_dl5) / 5",
|
||||
"variables": ["t_dl1", "t_dl2", "t_dl3", "t_dl4", "t_dl5"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "t_dt_avg",
|
||||
"type": "area",
|
||||
"label": "$\\overline{\\Delta T}$",
|
||||
"expression": "(t_dt1 + t_dt2 + t_dt3 + t_dt4 + t_dt5) / 5",
|
||||
"variables": ["t_dt1", "t_dt2", "t_dt3", "t_dt4", "t_dt5"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "v_time",
|
||||
"type": "area",
|
||||
"label": "声速 $v$",
|
||||
"expression": "1000 * t_dl_avg / t_dt_avg",
|
||||
"variables": ["t_dl_avg", "t_dt_avg"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "err_time",
|
||||
"type": "area",
|
||||
"label": "$A_{\\%}$",
|
||||
"expression": "((v_time - v0_theory) / v0_theory) * 100",
|
||||
"variables": ["v_time", "v0_theory"],
|
||||
"format": "0.000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table5_compare",
|
||||
"type": "container",
|
||||
"layout": "grid",
|
||||
"style": {
|
||||
"gridTemplateColumns": "repeat(3, minmax(0, 1fr))"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": "table5_title",
|
||||
"type": "label",
|
||||
"content": "## 表5 几种方法比较"
|
||||
},
|
||||
{
|
||||
"id": "table5_break_1",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "cmp_v_standing",
|
||||
"type": "area",
|
||||
"label": "驻波法声速 $v$",
|
||||
"expression": "v_standing",
|
||||
"variables": ["v_standing"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "cmp_v_phase",
|
||||
"type": "area",
|
||||
"label": "相位法声速 $v$",
|
||||
"expression": "v_phase",
|
||||
"variables": ["v_phase"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "cmp_v_time",
|
||||
"type": "area",
|
||||
"label": "时差法声速 $v$",
|
||||
"expression": "v_time",
|
||||
"variables": ["v_time"],
|
||||
"format": "0.00"
|
||||
},
|
||||
{
|
||||
"id": "table5_break_2",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "cmp_err_standing",
|
||||
"type": "area",
|
||||
"label": "驻波法 $A_{\\%}$",
|
||||
"expression": "err_standing",
|
||||
"variables": ["err_standing"],
|
||||
"format": "0.000"
|
||||
},
|
||||
{
|
||||
"id": "cmp_err_phase",
|
||||
"type": "area",
|
||||
"label": "相位法 $A_{\\%}$",
|
||||
"expression": "err_phase",
|
||||
"variables": ["err_phase"],
|
||||
"format": "0.000"
|
||||
},
|
||||
{
|
||||
"id": "cmp_err_time",
|
||||
"type": "area",
|
||||
"label": "时差法 $A_{\\%}$",
|
||||
"expression": "err_time",
|
||||
"variables": ["err_time"],
|
||||
"format": "0.000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "notes_container",
|
||||
"type": "container",
|
||||
"layout": "vertical",
|
||||
"children": [
|
||||
{
|
||||
"id": "notes_title",
|
||||
"type": "label",
|
||||
"content": "## 实验结论"
|
||||
},
|
||||
{
|
||||
"id": "notes_break_1",
|
||||
"type": "newline"
|
||||
},
|
||||
{
|
||||
"id": "observation",
|
||||
"type": "field",
|
||||
"label": "实验现象与过程记录",
|
||||
"placeholder": "记录波形变化、李萨如图形变化、时差读数现象等",
|
||||
"validation": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "conclusion",
|
||||
"type": "field",
|
||||
"label": "结论与误差分析",
|
||||
"placeholder": "比较三种方法差异,分析系统误差和随机误差来源",
|
||||
"validation": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,249 @@
|
||||
{
|
||||
"title": "超声波声速测量实验(记录表)",
|
||||
"description": "基于网格表单组织:基本信息、表1频率与温度、表2驻波法、表3相位法、表4时差法、表5方法比较。",
|
||||
"sheets": [
|
||||
{
|
||||
"id": "basic_info",
|
||||
"title": "基本信息",
|
||||
"columns": 3,
|
||||
"cells": [
|
||||
[
|
||||
{"type": "label", "content": "班级", "style": "header"},
|
||||
{"type": "input", "fieldId": "class_name", "placeholder": "纳米专业2班", "validation": {"type": "text", "required": true}},
|
||||
{"type": "input", "fieldId": "student_name", "placeholder": "请输入姓名", "validation": {"type": "text", "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "学号", "style": "header"},
|
||||
{"type": "input", "fieldId": "student_id", "placeholder": "请输入学号", "colSpan": 2, "validation": {"type": "regex", "pattern": "^[0-9]{6,20}$", "required": true}},
|
||||
null
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table1_frequency",
|
||||
"title": "表1 声源频率与介质温度",
|
||||
"columns": 6,
|
||||
"columnHeaders": ["测量项目", "1", "2", "3", "4", "5"],
|
||||
"cells": [
|
||||
[
|
||||
{"type": "label", "content": "$f/kHz$"},
|
||||
{"type": "input", "fieldId": "f1", "placeholder": "36.540", "unit": "$kHz$", "validation": {"type": "number", "min": 30, "max": 45, "required": true}},
|
||||
{"type": "input", "fieldId": "f2", "placeholder": "36.539", "unit": "$kHz$", "validation": {"type": "number", "min": 30, "max": 45, "required": true}},
|
||||
{"type": "input", "fieldId": "f3", "placeholder": "36.540", "unit": "$kHz$", "validation": {"type": "number", "min": 30, "max": 45, "required": true}},
|
||||
{"type": "input", "fieldId": "f4", "placeholder": "36.538", "unit": "$kHz$", "validation": {"type": "number", "min": 30, "max": 45, "required": true}},
|
||||
{"type": "input", "fieldId": "f5", "placeholder": "36.542", "unit": "$kHz$", "validation": {"type": "number", "min": 30, "max": 45, "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$t/^\\circ C$"},
|
||||
{"type": "input", "fieldId": "temperature", "placeholder": "25.0", "unit": "$^\\circ C$", "colSpan": 5, "validation": {"type": "number", "min": 0, "max": 60, "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\bar{f}/kHz$"},
|
||||
{"type": "computed", "areaId": "frequency_avg", "expression": "(f1+f2+f3+f4+f5)/5", "variables": ["f1","f2","f3","f4","f5"], "format": "0.000", "colSpan": 5}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$v_0/(m\\cdot s^{-1})$"},
|
||||
{"type": "computed", "areaId": "v0_theory", "expression": "331.5 + 0.6 * temperature", "variables": ["temperature"], "format": "0.00", "colSpan": 5}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table2_standing",
|
||||
"title": "表2 驻波法测量",
|
||||
"columns": 6,
|
||||
"columnHeaders": ["测量项目", "1", "2", "3", "4", "5"],
|
||||
"cells": [
|
||||
[
|
||||
{"type": "label", "content": "$L_i/mm$"},
|
||||
{"type": "input", "fieldId": "s_l0", "placeholder": "144.02", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "s_l1", "placeholder": "148.80", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "s_l2", "placeholder": "153.50", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "s_l3", "placeholder": "158.30", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "s_l4", "placeholder": "163.00", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$L_{i+5}/mm$"},
|
||||
{"type": "input", "fieldId": "s_l5", "placeholder": "167.80", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "s_l6", "placeholder": "172.66", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "s_l7", "placeholder": "177.30", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "s_l8", "placeholder": "182.29", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "s_l9", "placeholder": "186.84", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\Delta L_i/mm$"},
|
||||
{"type": "computed", "areaId": "s_d1", "expression": "s_l5 - s_l0", "variables": ["s_l5","s_l0"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "s_d2", "expression": "s_l6 - s_l1", "variables": ["s_l6","s_l1"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "s_d3", "expression": "s_l7 - s_l2", "variables": ["s_l7","s_l2"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "s_d4", "expression": "s_l8 - s_l3", "variables": ["s_l8","s_l3"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "s_d5", "expression": "s_l9 - s_l4", "variables": ["s_l9","s_l4"], "format": "0.00"}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\overline{\\Delta L}/mm$"},
|
||||
{"type": "computed", "areaId": "s_d_avg", "expression": "(s_d1 + s_d2 + s_d3 + s_d4 + s_d5) / 5", "variables": ["s_d1","s_d2","s_d3","s_d4","s_d5"], "format": "0.00", "colSpan": 5}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\lambda/mm$"},
|
||||
{"type": "computed", "areaId": "lambda_standing", "expression": "(2 / 5) * s_d_avg", "variables": ["s_d_avg"], "format": "0.00", "colSpan": 5}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$v/(m\\cdot s^{-1})$"},
|
||||
{"type": "computed", "areaId": "v_standing", "expression": "frequency_avg * lambda_standing", "variables": ["frequency_avg","lambda_standing"], "format": "0.00", "colSpan": 5}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$A_{\\%}$"},
|
||||
{"type": "computed", "areaId": "err_standing", "expression": "((v_standing - v0_theory) / v0_theory) * 100", "variables": ["v_standing","v0_theory"], "format": "0.000", "colSpan": 5}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table3_phase",
|
||||
"title": "表3 相位法测量",
|
||||
"columns": 6,
|
||||
"columnHeaders": ["测量项目", "1", "2", "3", "4", "5"],
|
||||
"cells": [
|
||||
[
|
||||
{"type": "label", "content": "$L_i/mm$"},
|
||||
{"type": "input", "fieldId": "p_l0", "placeholder": "182.10", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "p_l1", "placeholder": "191.28", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "p_l2", "placeholder": "196.20", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "p_l3", "placeholder": "201.00", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "p_l4", "placeholder": "205.54", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$L_{i+5}/mm$"},
|
||||
{"type": "input", "fieldId": "p_l5", "placeholder": "210.40", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "p_l6", "placeholder": "215.22", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "p_l7", "placeholder": "219.96", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "p_l8", "placeholder": "224.68", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "p_l9", "placeholder": "229.40", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\Delta L_i/mm$"},
|
||||
{"type": "computed", "areaId": "p_d1", "expression": "p_l5 - p_l0", "variables": ["p_l5","p_l0"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "p_d2", "expression": "p_l6 - p_l1", "variables": ["p_l6","p_l1"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "p_d3", "expression": "p_l7 - p_l2", "variables": ["p_l7","p_l2"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "p_d4", "expression": "p_l8 - p_l3", "variables": ["p_l8","p_l3"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "p_d5", "expression": "p_l9 - p_l4", "variables": ["p_l9","p_l4"], "format": "0.00"}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\overline{\\Delta L}/mm$"},
|
||||
{"type": "computed", "areaId": "p_d_avg", "expression": "(p_d1 + p_d2 + p_d3 + p_d4 + p_d5) / 5", "variables": ["p_d1","p_d2","p_d3","p_d4","p_d5"], "format": "0.00", "colSpan": 5}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\lambda/mm$"},
|
||||
{"type": "computed", "areaId": "lambda_phase", "expression": "(2 / 5) * p_d_avg", "variables": ["p_d_avg"], "format": "0.00", "colSpan": 5}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$v/(m\\cdot s^{-1})$"},
|
||||
{"type": "computed", "areaId": "v_phase", "expression": "frequency_avg * lambda_phase", "variables": ["frequency_avg","lambda_phase"], "format": "0.00", "colSpan": 5}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$A_{\\%}$"},
|
||||
{"type": "computed", "areaId": "err_phase", "expression": "((v_phase - v0_theory) / v0_theory) * 100", "variables": ["v_phase","v0_theory"], "format": "0.000", "colSpan": 5}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table4_timediff",
|
||||
"title": "表4 时差法测量",
|
||||
"columns": 11,
|
||||
"columnHeaders": ["测量项目", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
|
||||
"cells": [
|
||||
[
|
||||
{"type": "label", "content": "$L_i/mm$"},
|
||||
{"type": "input", "fieldId": "t_l1", "placeholder": "202.80", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l2", "placeholder": "245.80", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l3", "placeholder": "197.60", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l4", "placeholder": "157.56", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l5", "placeholder": "123.30", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l6", "placeholder": "140.00", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l7", "placeholder": "161.80", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l8", "placeholder": "132.30", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l9", "placeholder": "173.14", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}},
|
||||
{"type": "input", "fieldId": "t_l10", "placeholder": "152.46", "unit": "$mm$", "validation": {"type": "number", "min": 0, "max": 400, "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$T_i/\\mu s$"},
|
||||
{"type": "input", "fieldId": "t_t1", "placeholder": "584", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t2", "placeholder": "712", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t3", "placeholder": "572", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t4", "placeholder": "456", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t5", "placeholder": "356", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t6", "placeholder": "404", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t7", "placeholder": "472", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t8", "placeholder": "380", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t9", "placeholder": "500", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}},
|
||||
{"type": "input", "fieldId": "t_t10", "placeholder": "440", "unit": "$\\mu s$", "validation": {"type": "number", "min": 0, "max": 2000, "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\Delta L_i/mm$"},
|
||||
{"type": "computed", "areaId": "t_dl1", "expression": "t_l6 - t_l1", "variables": ["t_l6","t_l1"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "t_dl2", "expression": "t_l7 - t_l2", "variables": ["t_l7","t_l2"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "t_dl3", "expression": "t_l8 - t_l3", "variables": ["t_l8","t_l3"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "t_dl4", "expression": "t_l9 - t_l4", "variables": ["t_l9","t_l4"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "t_dl5", "expression": "t_l10 - t_l5", "variables": ["t_l10","t_l5"], "format": "0.00"}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\Delta T_i/\\mu s$"},
|
||||
{"type": "computed", "areaId": "t_dt1", "expression": "t_t6 - t_t1", "variables": ["t_t6","t_t1"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "t_dt2", "expression": "t_t7 - t_t2", "variables": ["t_t7","t_t2"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "t_dt3", "expression": "t_t8 - t_t3", "variables": ["t_t8","t_t3"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "t_dt4", "expression": "t_t9 - t_t4", "variables": ["t_t9","t_t4"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "t_dt5", "expression": "t_t10 - t_t5", "variables": ["t_t10","t_t5"], "format": "0.00"}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\overline{\\Delta L}/mm$"},
|
||||
{"type": "computed", "areaId": "t_dl_avg", "expression": "(t_dl1 + t_dl2 + t_dl3 + t_dl4 + t_dl5) / 5", "variables": ["t_dl1","t_dl2","t_dl3","t_dl4","t_dl5"], "format": "0.00", "colSpan": 10}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$\\overline{\\Delta T}/\\mu s$"},
|
||||
{"type": "computed", "areaId": "t_dt_avg", "expression": "(t_dt1 + t_dt2 + t_dt3 + t_dt4 + t_dt5) / 5", "variables": ["t_dt1","t_dt2","t_dt3","t_dt4","t_dt5"], "format": "0.00", "colSpan": 10}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$v/(m\\cdot s^{-1})$"},
|
||||
{"type": "computed", "areaId": "v_time", "expression": "1000 * t_dl_avg / t_dt_avg", "variables": ["t_dl_avg","t_dt_avg"], "format": "0.00", "colSpan": 10}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "$A_{\\%}$"},
|
||||
{"type": "computed", "areaId": "err_time", "expression": "((v_time - v0_theory) / v0_theory) * 100", "variables": ["v_time","v0_theory"], "format": "0.000", "colSpan": 10}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "table5_compare",
|
||||
"title": "表5 几种方法比较",
|
||||
"columns": 3,
|
||||
"columnHeaders": ["方法", "声速 $v/(m\\cdot s^{-1})$", "相对误差 $A_{\\%}$"],
|
||||
"cells": [
|
||||
[
|
||||
{"type": "label", "content": "驻波法"},
|
||||
{"type": "computed", "areaId": "cmp_v_standing", "expression": "v_standing", "variables": ["v_standing"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "cmp_err_standing", "expression": "err_standing", "variables": ["err_standing"], "format": "0.000"}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "相位法"},
|
||||
{"type": "computed", "areaId": "cmp_v_phase", "expression": "v_phase", "variables": ["v_phase"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "cmp_err_phase", "expression": "err_phase", "variables": ["err_phase"], "format": "0.000"}
|
||||
],
|
||||
[
|
||||
{"type": "label", "content": "时差法"},
|
||||
{"type": "computed", "areaId": "cmp_v_time", "expression": "v_time", "variables": ["v_time"], "format": "0.00"},
|
||||
{"type": "computed", "areaId": "cmp_err_time", "expression": "err_time", "variables": ["err_time"], "format": "0.000"}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "notes",
|
||||
"title": "实验结论",
|
||||
"columns": 1,
|
||||
"cells": [
|
||||
[
|
||||
{"type": "input", "fieldId": "observation", "placeholder": "记录波形变化、李萨如图形变化、时差读数现象等", "validation": {"type": "text", "required": true}}
|
||||
],
|
||||
[
|
||||
{"type": "input", "fieldId": "conclusion", "placeholder": "比较三种方法差异,分析系统误差和随机误差来源", "validation": {"type": "text", "required": true}}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户