newCac1.0
fanluyan 6 months ago
parent 9c716e7a1b
commit baf4fc3c09

@ -37,7 +37,7 @@
<div class="coltitle"> <div class="coltitle">
<span>表字段</span> <span>表字段</span>
<span>导出字段</span> <span>导出字段</span>
<span>拆分sensorCode附加值</span> <span>拆分sensorCode编号替换</span>
</div> </div>
<div <div

@ -25,7 +25,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="destFieldName" label="导出字段"> <el-table-column prop="destFieldName" label="导出字段">
</el-table-column> </el-table-column>
<el-table-column prop="attach" label="拆分sensorCode附加值"> <el-table-column prop="attach" label="拆分sensorCode编号替换">
</el-table-column> </el-table-column>
</el-table> </el-table>
</template> </template>

@ -87,6 +87,16 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="硬接点告警:" prop="notifyCom">
<el-switch
v-model="formInfo.notifyCom"
active-text="是"
inactive-text="否"
:active-value="1"
:inactive-value="0"
></el-switch>
</el-form-item>
<el-form-item label="状态:" prop="state"> <el-form-item label="状态:" prop="state">
<el-switch <el-switch
v-model="formInfo.state" v-model="formInfo.state"
@ -126,6 +136,7 @@ export default {
thresholdR: "", thresholdR: "",
riskLevelVal: 0, // riskLevelVal: 0, //
state: 1, state: 1,
notifyCom: 1,
}, },
rulesId: "", rulesId: "",
//type //type
@ -168,6 +179,7 @@ export default {
thresholdR: thresholdValues[1], thresholdR: thresholdValues[1],
riskLevelVal: val.level, // riskLevelVal: val.level, //
state: val.active, state: val.active,
notifyCom: val.active,
}; };
console.log(this.formInfo); console.log(this.formInfo);
} else { } else {
@ -178,6 +190,7 @@ export default {
threshold: val.threshold, // threshold: val.threshold, //
riskLevelVal: val.level, // riskLevelVal: val.level, //
state: val.active, state: val.active,
notifyCom: val.active,
}; };
} }
this.rulesId = val.id; this.rulesId = val.id;
@ -285,6 +298,7 @@ export default {
threshold: threholdVal, threshold: threholdVal,
level: this.formInfo.riskLevelVal, level: this.formInfo.riskLevelVal,
active: this.formInfo.state, // active: this.formInfo.state, //
notifyCom: this.formInfo.notifyCom,
}; };
} else { } else {
params = { params = {
@ -295,6 +309,7 @@ export default {
threshold: this.formInfo.threshold, threshold: this.formInfo.threshold,
level: this.formInfo.riskLevelVal, level: this.formInfo.riskLevelVal,
active: this.formInfo.state, // active: this.formInfo.state, //
notifyCom: this.formInfo.notifyCom,
}; };
} }
if (this.title == "添加规则") { if (this.title == "添加规则") {
@ -367,6 +382,7 @@ export default {
thresholdR: "", thresholdR: "",
riskLevelVal: 0, // riskLevelVal: 0, //
state: 1, state: 1,
notifyCom: 1,
}; };
}, },
}, },

@ -28,7 +28,12 @@
</span> </span>
<span v-else> <el-tag type="success">启用</el-tag> </span> <span v-else> <el-tag type="success">启用</el-tag> </span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="硬接点告警">
<span v-if="rulesData.notifyCom == 0"
><el-tag type="danger"></el-tag>
</span>
<span v-else> <el-tag type="success"></el-tag> </span>
</el-descriptions-item>
<el-descriptions-item label="告警等级" <el-descriptions-item label="告警等级"
><span v-if="rulesData.level == 2" ><span v-if="rulesData.level == 2"
><el-tag type="danger"></el-tag> ><el-tag type="danger"></el-tag>
@ -130,6 +135,7 @@ export default {
thresholdR: thresholdValues[1], thresholdR: thresholdValues[1],
riskLevelVal: val.level, // riskLevelVal: val.level, //
state: val.active, state: val.active,
notifyCom: val.notifyCom,
}; };
console.log(this.formInfo); console.log(this.formInfo);
} else { } else {
@ -140,6 +146,7 @@ export default {
threshold: val.threshold, // threshold: val.threshold, //
riskLevelVal: val.level, // riskLevelVal: val.level, //
state: val.active, state: val.active,
notifyCom: val.notifyCom,
}; };
} }
}, },
@ -221,6 +228,7 @@ export default {
threshold: thresholdVal, threshold: thresholdVal,
level: this.formInfo.riskLevelVal, level: this.formInfo.riskLevelVal,
active: this.formInfo.state, // active: this.formInfo.state, //
notifyCom: this.formInfo.notifyCom,
}; };
} else { } else {
params = { params = {
@ -231,6 +239,7 @@ export default {
threshold: this.formInfo.threshold, threshold: this.formInfo.threshold,
level: this.formInfo.riskLevelVal, level: this.formInfo.riskLevelVal,
active: this.formInfo.state, // active: this.formInfo.state, //
notifyCom: this.formInfo.notifyCom,
}; };
} }

@ -71,6 +71,14 @@
<span v-else> <el-tag type="success">启用</el-tag> </span> <span v-else> <el-tag type="success">启用</el-tag> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="notifyCom" label="硬接点告警">
<template slot-scope="scope">
<span v-if="scope.row.notifyCom == 0"
><el-tag type="danger"></el-tag>
</span>
<span v-else> <el-tag type="success"></el-tag> </span>
</template>
</el-table-column>
<el-table-column prop="level" label="告警等级"> <el-table-column prop="level" label="告警等级">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.level == 2" <span v-if="scope.row.level == 2"

@ -23,9 +23,12 @@
height="calc(100% - 0px)" height="calc(100% - 0px)"
v-loading="recordLoading" v-loading="recordLoading"
> >
<el-table-column label="文件名称"> <el-table-column label="传感器名称">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.config.sensor.name }}</span> <span v-if="scope.row.config">{{
scope.row.config.sensor.name
}}</span>
<span v-else>{{ scope.row.configId }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="id" prop="id"> <!-- <el-table-column label="id" prop="id">

@ -73,6 +73,23 @@
</el-table-column> </el-table-column>
<el-table-column prop="port" label="port" width="80px"> <el-table-column prop="port" label="port" width="80px">
</el-table-column> </el-table-column>
<el-table-column prop="connected" label="连接状态" width="80px">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.connected == 1"
>连接</el-tag
>
<el-tag type="danger" v-else></el-tag>
</template>
</el-table-column>
<el-table-column
prop="retry"
label="重连次数(等待秒数)"
width="80px"
>
<template slot-scope="scope">
{{ scope.row.retry }}({{ scope.row.seconds }})
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200px"> <el-table-column fixed="right" label="操作" width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
@ -173,7 +190,7 @@ export default {
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
message: "服务器开始成功", message: "订阅成功",
type: "success", type: "success",
}); });
this.getIcdListFile(); this.getIcdListFile();
@ -238,7 +255,7 @@ export default {
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
message: "服务器开始成功", message: "订阅成功",
type: "success", type: "success",
}); });
this.getLedList(); this.getLedList();
@ -361,7 +378,7 @@ export default {
} }
} }
.cardBox2 { .cardBox2 {
width: 560px; width: 800px;
margin-top: 20px; margin-top: 20px;
margin-left: 12px; margin-left: 12px;
height: calc(100% - 40px); height: calc(100% - 40px);

Loading…
Cancel
Save