|
@@ -153,7 +153,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="modeValueTips" prop="modeValue" v-if="groupRateForm.readMode != '1'" class="cy-mv">
|
|
|
- <el-input v-model="groupRateForm.modeValue" :placeholder="'请输入' + modeValueTips"
|
|
|
+ <el-input v-model.trim="groupRateForm.modeValue" :placeholder="'请输入' + modeValueTips"
|
|
|
oninput="value=value.replace(/[^0-9.]/g,'')">
|
|
|
<template slot="append" v-if="groupRateForm.readMode == '0'">
|
|
|
<el-select v-model="groupRateForm.modeValueUnit" @change="readModeValueUnitChange" placeholder="">
|
|
@@ -584,7 +584,7 @@ export default {
|
|
|
methods: {
|
|
|
/** 表单验证判断 */
|
|
|
testModeValue(rule, value, callback) {
|
|
|
- if (!value || !value.trim()) {
|
|
|
+ if (!value) {
|
|
|
callback(new Error(this.modeValueTips + '不能为空'))
|
|
|
} else {
|
|
|
callback()
|
|
@@ -871,13 +871,15 @@ export default {
|
|
|
this.chooseItemDataView = true
|
|
|
this.groupDialogTitle = '修改数据组'
|
|
|
this.groupRateForm.readMode = item.readMode + ''
|
|
|
- this.groupRateForm.modeValue = item.modeValue
|
|
|
if (parseInt(item.modeValue) % 3600 == 0) { // 时
|
|
|
this.groupRateForm.modeValueUnit = '3'
|
|
|
+ this.groupRateForm.modeValue = item.modeValue / 3600
|
|
|
} else if (parseInt(item.modeValue) % 60 == 0) { // 分
|
|
|
this.groupRateForm.modeValueUnit = '2'
|
|
|
+ this.groupRateForm.modeValue = item.modeValue / 60
|
|
|
} else { // 秒
|
|
|
this.groupRateForm.modeValueUnit = '1'
|
|
|
+ this.groupRateForm.modeValue = item.modeValue
|
|
|
}
|
|
|
this.groupRateForm.valueMode = item.valueCondition + ''
|
|
|
this.groupRateForm.valuePeriod = [item.startReadTime, item.endReadTime]
|
|
@@ -1395,10 +1397,11 @@ export default {
|
|
|
},
|
|
|
/** 选择数据项弹出层保存事件:第二步 */
|
|
|
itemDialogSave2() {
|
|
|
+ this.filterChooseItemText = ''
|
|
|
+ this.chooseItemChangeEvent()
|
|
|
this.groupBasicForm.itemList = this.chooseItemDataList
|
|
|
this.itemDataStep = 1
|
|
|
this.filterItemData = ''
|
|
|
- this.filterChooseItemText = ''
|
|
|
this.dataLineListSelections = []
|
|
|
this.dataItemDialogVisible = false
|
|
|
this.chooseItemDataView = true
|