Commit accff522 authored by xuke's avatar xuke

报警状态-第一次提交

parent d4c16b07
...@@ -67,9 +67,8 @@ ...@@ -67,9 +67,8 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<div class="left"> <div class="left">
<p>ZTY</p> <p v-for="(item,index) in cnNames_before">{{item.cnName}}</p>
<p>LPJ</p>
<p>LXH</p>
</div> </div>
</el-col> </el-col>
...@@ -188,7 +187,8 @@ ...@@ -188,7 +187,8 @@
<el-col :span="6"> <el-col :span="6">
<div class="left"> <div class="left">
<ul> <ul>
<li> <li v-for="(item,index) in cnNames_after">
{{item.cnName}}
</li> </li>
</ul> </ul>
</div> </div>
...@@ -471,24 +471,39 @@ function getImgUrl(scope, item) { ...@@ -471,24 +471,39 @@ function getImgUrl(scope, item) {
// 报警参数设置 // 报警参数设置
const cnNames = reactive([{}]) let cnNames_before = reactive([{}])
let cnNames_after = reactive([{}])
const getCnNames = () => { const getCnNames = () => {
let newType = let newType =
type.value == "GetPipeAlarmStatusData" ? 1 : type.value == "GetBoilerAlarmStatusData" ? 2 : 3 type.value == "GetPipeAlarmStatusData" ? 1 : type.value == "GetBoilerAlarmStatusData" ? 2 : 3
let newAlarmInfo = AlarmInfo.value[0]; let newAlarmInfo = AlarmInfo.value[0];
const data = http.post("api/alarm/para/GetAlarmPara", { type: newType, id: newAlarmInfo }, false) let data = http.post("api/alarm/para/GetAlarmPara", { type: newType, id: newAlarmInfo }, false)
console.log("data:", data); // console.log("data:", data);
data.then(function (val) {
cnNames_before = val.data.before
cnNames_after = val.data.after
// console.log("@@@@",cnNames_before);
// console.log("@@@@",cnNames_after);
});
console.log("报警参数cnnames:",data.data); fillTable()
// data.data.forEach(function(obj, index) => {
// console.log(`Object ${index + 1} items:`, obj.items);
// console.log(obj);
// });
// cnNames = data.data.before;
console.log("cnNames.value", cnNames);
} }
const params = reactive([{}])
const fillTable = () => {
let newType =
type.value == "GetPipeAlarmStatusData" ? 1 : type.value == "GetBoilerAlarmStatusData" ? 2 : 3
let newAlarmInfo = AlarmInfo.value[0];
const data = http.post("/api/alarm/para/GetAlarmParaInfo",{type:newType,id:newAlarmInfo,baseid:cnNames_before.transParaBaseId},false)
console.log(data);
}
getCnNames() getCnNames()
...@@ -505,7 +520,7 @@ onUnmounted(() => { ...@@ -505,7 +520,7 @@ onUnmounted(() => {
</script> </script>
<style lang="less" scoped> <style lang="less">
.moduleCard { .moduleCard {
width: auto; width: auto;
overflow: auto; overflow: auto;
...@@ -617,7 +632,7 @@ table td { ...@@ -617,7 +632,7 @@ table td {
.left { .left {
// border: 1px solid red; // border: 1px solid red;
overflow: auto; overflow: auto;
height: 10px; height: 800px;
border-top: 1px solid #eff1f4; border-top: 1px solid #eff1f4;
border-bottom: 1px solid #eff1f4; border-bottom: 1px solid #eff1f4;
padding: 0px 30px 11px 27px; padding: 0px 30px 11px 27px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment