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

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

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

Loading…
Cancel
Save