|
@@ -20,6 +20,10 @@
|
|
|
<a-form-item v-show="false">
|
|
|
<a-input v-decorator="['id']" type="hidden"/>
|
|
|
<a-input v-decorator="['sbId']" type="hidden"/>
|
|
|
+ <a-input v-decorator="['warnFirstColor']" type="hidden"/>
|
|
|
+ <a-input v-decorator="['warnSecondColor']" type="hidden"/>
|
|
|
+ <a-input v-decorator="['warnThirdColor']" type="hidden"/>
|
|
|
+ <a-input v-decorator="['warnFourColor']" type="hidden"/>
|
|
|
</a-form-item>
|
|
|
|
|
|
<row-list :col="2">
|
|
@@ -243,11 +247,12 @@
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
<a-input-number
|
|
|
- style="width: 100%"
|
|
|
+ style="width: 70%"
|
|
|
:min="0.01"
|
|
|
:formatter="BaseTool.Amount.formatter"
|
|
|
:parser="BaseTool.Amount.parser"
|
|
|
- v-decorator="['warnFirst', {initialValue:100,rules: [{required: false, message: '最低阈值不能为空'}]}]"/>
|
|
|
+ v-decorator="['warnFirst', {initialValue:'red',rules: [{required: false, message: '最低阈值不能为空'}]}]"/>
|
|
|
+ <a-button type="primary" style="width: 30%" @click="handleSelectColor(1)">选择颜色</a-button>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -258,11 +263,12 @@
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
<a-input-number
|
|
|
- style="width: 100%"
|
|
|
+ style="width: 70%"
|
|
|
:min="0.01"
|
|
|
:formatter="BaseTool.Amount.formatter"
|
|
|
:parser="BaseTool.Amount.parser"
|
|
|
- v-decorator="['warnSecond', {initialValue:0,rules: [{required: false, message: '低阈值不能为空'}]}]"/>
|
|
|
+ v-decorator="['warnSecond', {initialValue:'red',rules: [{required: false, message: '低阈值不能为空'}]}]"/>
|
|
|
+ <a-button type="primary" style="width: 30%" @click="handleSelectColor(2)">选择颜色</a-button>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -273,11 +279,12 @@
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
<a-input-number
|
|
|
- style="width: 100%"
|
|
|
+ style="width: 70%"
|
|
|
:min="0.01"
|
|
|
:formatter="BaseTool.Amount.formatter"
|
|
|
:parser="BaseTool.Amount.parser"
|
|
|
- v-decorator="['warnThird', {initialValue:100,rules: [{required: false, message: '高阈值不能为空'}]}]"/>
|
|
|
+ v-decorator="['warnThird', {initialValue:'red',rules: [{required: false, message: '高阈值不能为空'}]}]"/>
|
|
|
+ <a-button type="primary" style="width: 30%" @click="handleSelectColor(3)">选择颜色</a-button>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -288,11 +295,12 @@
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
<a-input-number
|
|
|
- style="width: 100%"
|
|
|
+ style="width: 70%"
|
|
|
:min="0.01"
|
|
|
:formatter="BaseTool.Amount.formatter"
|
|
|
:parser="BaseTool.Amount.parser"
|
|
|
- v-decorator="['warnFour', {initialValue:0,rules: [{required: false, message: '最高阈值不能为空'}]}]"/>
|
|
|
+ v-decorator="['warnFour', {initialValue:'red',rules: [{required: false, message: '最高阈值不能为空'}]}]"/>
|
|
|
+ <a-button type="primary" style="width: 30%" @click="handleSelectColor(4)">选择颜色</a-button>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -437,6 +445,14 @@ export default {
|
|
|
'ratio',
|
|
|
'low',
|
|
|
'high',
|
|
|
+ 'warnFirst',
|
|
|
+ 'warnSecond',
|
|
|
+ 'warnThird',
|
|
|
+ 'warnFour',
|
|
|
+ 'warnFirstColor',
|
|
|
+ 'warnSecondColor',
|
|
|
+ 'warnThirdColor',
|
|
|
+ 'warnFourColor',
|
|
|
'xposition',
|
|
|
'yposition',
|
|
|
'imgXPosition',
|
|
@@ -507,6 +523,9 @@ export default {
|
|
|
this.$emit('ok')
|
|
|
}
|
|
|
},
|
|
|
+ handleSelectColor (type) {
|
|
|
+ this.$message.info(type)
|
|
|
+ },
|
|
|
checkPoint (e) {
|
|
|
const { form: { setFieldsValue, getFieldValue } } = this
|
|
|
fetchRemoteOpcByPositionNumAndLine({
|