Browse Source

feat:数据计算样式修改

dev
zhaobing’ 1 year ago
parent
commit
bbae919755
  1. 16
      web/client/src/sections/install/containers/cacl.jsx
  2. 17
      web/client/src/sections/install/containers/trend.jsx

16
web/client/src/sections/install/containers/cacl.jsx

@ -331,7 +331,7 @@ const Calc = (props) => {
case 'interrupt':
return (
<Col span={4}>
<Form.Input field='iv' placeholder="中断阈值:正整数" label="中断阈值" rules={[{
<Form.Input field='iv' placeholder="中断阈值:正整数" noLabel={true} rules={[{
required: true, message: "请输入正整数", validator: checkInterger
}]} trigger='blur'>
</Form.Input>
@ -340,7 +340,7 @@ const Calc = (props) => {
case 'burr':
return (
<Col span={4}>
<Form.Input field='bv1' placeholder="毛刺阈值:数字" label="毛刺阈值" rules={[{
<Form.Input field='bv1' placeholder="毛刺阈值:数字" noLabel={true} rules={[{
required: true, message: "请输入数字", validator: checkNumber
}]} trigger='blur'>
</Form.Input>
@ -351,32 +351,32 @@ const Calc = (props) => {
<Col span={18}>
<Row gutter={10}>
<Col span={4} >
<Form.Input field='bv2' placeholder="毛刺阈值:数字" label="毛刺阈值" rules={[{
<Form.Input field='bv2' placeholder="毛刺阈值:数字" noLabel={true} rules={[{
required: true, message: "请输入正整数", validator: checkInterger
}]} trigger='blur' />
</Col>
<Col span={4}>
<Form.Input field='ws' placeholder="滑动中值:正值" label="滑动中值" rules={[{
<Form.Input field='ws' placeholder="滑动中值:正值" noLabel={true} rules={[{
required: true, message: "请输入正整数", validator: checkInterger
}]} trigger='blur' />
</Col>
<Col span={4}>
<Form.Input field='rc' placeholder="滑动均值:正值" label="滑动均值" rules={[{
<Form.Input field='rc' placeholder="滑动均值:正值" noLabel={true} rules={[{
required: true, message: "请输入正整数", validator: checkInterger
}]} trigger='blur' />
</Col>
<Col span={4}>
<Form.Input field='dv' placeholder="导数阈值:数字" label="导数阈值" rules={[{
<Form.Input field='dv' placeholder="导数阈值:数字" noLabel={true} rules={[{
required: true, message: "请输入数字", validator: checkNumber
}]} trigger='blur' />
</Col>
<Col span={4}>
<Form.Input field='pn' placeholder="渐变点个数:正值" label="渐变点个数" rules={[{
<Form.Input field='pn' placeholder="渐变点个数:正值" noLabel={true} rules={[{
required: true, message: "请输入大于1的正整数", validator: checkPoint
}]} trigger='blur' />
</Col>
<Col span={4}>
<Form.Input field='gv' placeholder="渐变阈值:数字" label="渐变阈值" rules={[{
<Form.Input field='gv' placeholder="渐变阈值:数字" noLabel={true} rules={[{
required: true, message: "请输入数字", validator: checkNumber
}]} trigger='blur' />
</Col>

17
web/client/src/sections/install/containers/trend.jsx

@ -320,8 +320,8 @@ const Trend = (props) => {
{showBatchConfig ?
<Row style={{ display: 'flex',alignItems:'center',marginTop: 10}}>
<Col span={3}>
<Form.Select showSearch filter label="分析时长" field="timeRange" onChange={rangeChange}
placeholder="请选择分析时长" style={{ width: 127, marginBottom: 0 }}>
<Form.Select showSearch filter noLabel={true} field="timeRange" onChange={rangeChange}
placeholder="请选择分析时长" style={{ width: '93%', marginBottom: 0 }}>
<Select.Option value="1">1个月</Select.Option>
<Select.Option value="2">2个月</Select.Option>
<Select.Option value="3">3个月</Select.Option>
@ -330,7 +330,8 @@ const Trend = (props) => {
<Col span={3}>
<Form.Input style={{ marginBottom: 0, width: '93%' }}
field='bv'
placeholder="毛刺阈值:数字" label="毛刺阈值"
noLabel={true}
placeholder="毛刺阈值:数字"
onChange={e => bvValueBatch(e)}
rules={[{
required: true, message: "请输入正整数", validator: checkInterger
@ -341,7 +342,7 @@ const Trend = (props) => {
style={{ marginBottom: 0, width: '93%' }}
field='ws'
placeholder="滑动中值:正值"
label="滑动中值"
noLabel={true}
rules={[{
required: true, message: "请输入正整数", validator: checkInterger
}]}
@ -353,7 +354,7 @@ const Trend = (props) => {
style={{ marginBottom: 0, width: '93%' }}
field='rc'
placeholder="滑动均值:正值"
label="滑动均值" rules={[{
noLabel={true} rules={[{
required: true, message: "请输入正整数", validator: checkInterger
}]}
onChange={e => reCoefBatch(e)}
@ -364,7 +365,7 @@ const Trend = (props) => {
style={{ marginBottom: 0, width: '93%' }}
field='dv'
placeholder="导数阈值:数字"
label="导数阈值"
noLabel={true}
rules={[{
required: true, message: "请输入正整数", validator: checkNumber
}]}
@ -376,7 +377,7 @@ const Trend = (props) => {
style={{ marginBottom: 0, width: '93%' }}
field='pn'
placeholder="渐变点个数:正值"
label="渐变点个数" rules={[{
noLabel={true} rules={[{
required: true, message: "请输入正整数", validator: checkPoint
}]}
onChange={e => graPointBatch(e)}
@ -387,7 +388,7 @@ const Trend = (props) => {
style={{ marginBottom: 0, width: '93%' }}
field='gv'
placeholder="渐变阈值:数字"
label="渐变阈值" rules={[{
noLabel={true} rules={[{
required: true, message: "请输入正整数", validator: checkNumber
}]}
onChange={e => graValueBatch(e)}

Loading…
Cancel
Save