|
@@ -14,7 +14,7 @@
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px" size="small ">
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="标签" prop="tagname" >
|
|
|
+ <el-form-item label="标签" prop="tagname">
|
|
|
<el-input v-model="form.tagname" placeholder="请输入标签(必填)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -99,6 +99,11 @@ export default {
|
|
|
elearm () {
|
|
|
this.$refs['form'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ this.form.tagname = this.form.tagname.replace(/\s*/g,"")
|
|
|
+ this.form.source = this.form.source.replace(/\s*/g,"")
|
|
|
+ this.form.alarm_position = this.form.alarm_position.replace(/\s*/g,"")
|
|
|
+ this.form.alarm_content = this.form.alarm_content.replace(/\s*/g,"")
|
|
|
+ this.form.handle_methode = this.form.handle_methode.replace(/\s*/g,"")
|
|
|
alarmConfigurationadd(this.form).then(res => {
|
|
|
if (res.resultCode == 1) {
|
|
|
this.$message({
|