xuhaoyun 2 years ago
commit f74b23c02a

@ -469,7 +469,7 @@ export default {
level: "3", level: "3",
}; };
this.$emit("back", massage); this.$emit("back", massage);
bus.$emit("send", massage); // bus.$emit("send_three", massage); //
}, },
}, },
}; };

@ -92,7 +92,6 @@ export default {
}, },
mounted() { mounted() {
bus.$on("send", (data) => { bus.$on("send", (data) => {
console.log(data, "data");
this.params = { this.params = {
safeRuleId: data.safeRuleId, safeRuleId: data.safeRuleId,
levelIndex: data.level, levelIndex: data.level,

@ -1,22 +1,138 @@
<!-- 三级指标详细信息展示 --> <!-- 三级指标详细信息展示 -->
<template> <template>
<div class="massage_body"> <div class="massage_body">
<div class="note_text"></div> <div class="note_text">{{ this.note.titleNote }}</div>
<div class="three_table">
<div class="three_table_top">
<div class="title_btn">
<div class="title">指数归一化设置:</div>
<el-button icon="el-icon-plus">增加数量分级</el-button>
</div>
<el-table></el-table>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
export default { import bus from "@/assets/js/eventBus.js";
import { getIndexTable } from "@/api/systemManagement/safeIndex";
export default {
name: "indexmassageThree", name: "indexmassageThree",
data() { data() {
return {}; return {
}, note_arr: [], // id
two_level_arr: [], //
three_level_arr: [], //
three_level_id: "",
note: "", //
}; };
},
created() {
this.getData();
},
mounted() {
bus.$on("send_three", (data) => {
console.log("data", data);
this.three_level_id = data.safeRuleId; // id
const new_arr = this.three_level_arr.filter(
(item) => item.id == this.three_level_id
);
console.log("new_arr", new_arr);
this.note = JSON.parse(new_arr[0].note);
});
},
methods: {
getData() {
//
getIndexTable().then((res) => {
console.log("res", res.data);
this.note_arr = res.data;
for (let i = 0; i < this.note_arr.length; i++) {
console.log("1", this.note_arr[i].tbSafeRuleTwoVoList);
//
this.two_level_arr = this.two_level_arr.concat(
this.note_arr[i].tbSafeRuleTwoVoList
);
}
for (let i = 0; i < this.two_level_arr.length; i++) {
//
this.three_level_arr = this.three_level_arr.concat(
this.two_level_arr[i].tbSafeRuleThreeVoList
);
}
console.log("this.three_level_arr", this.three_level_arr);
});
},
},
};
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.massage_body { .massage_body {
margin-top: 2vh; margin-top: 2vh;
width: 52.5vw; width: 52.5vw;
height: 52vh; height: 52vh;
border: 0.1px solid #4d8f89; border: 0.1px solid #4d8f89;
.note_text {
margin-top: 1vh;
margin-left: 0.4vw;
width: 51.5vw;
height: 4.5vh;
border-bottom: 0.1px solid #4d8f89;
color: #fff;
font-size: 20px;
font-weight: 400;
line-height: 4.5vh;
}
.three_table {
margin-top: 1vh;
margin-left: 0.4vw;
width: 51.5vw;
height: 44.5vh;
overflow-y: auto;
border: 0.1px solid #4d8f89;
.three_table_top {
margin-left: 0.2vw;
margin-top: 0.5vh;
width: 51vw;
border: 0.1px solid #4d8f89;
.title_btn {
margin-left: 0.5vw;
margin-top: 0.5vh;
width: 50vw;
height: 4vh;
display: flex;
justify-content: space-between;
.title {
color: #fff;
height: 4vh;
line-height: 4vh;
font-size: 17px;
}
.el-button {
width: 7vw;
border: 1px solid #4a6072;
color: #fff;
border-radius: 0px !important;
background: #323f43;
}
.el-button:focus,
.el-button:hover {
color: #34e1b3;
filter: brightness(150%);
}
}
}
}
.three_table::-webkit-scrollbar {
width: 6px;
background-color: #5e666a;
border-radius: 4px;
}
.three_table::-webkit-scrollbar-thumb {
width: 5px;
background-color: #3c4b4a;
border-radius: 4px;
} }
}
</style> </style>

@ -92,7 +92,6 @@ export default {
}, },
mounted() { mounted() {
bus.$on("send", (data) => { bus.$on("send", (data) => {
console.log(data, "data");
this.params = { this.params = {
safeRuleId: data.safeRuleId, safeRuleId: data.safeRuleId,
levelIndex: data.level, levelIndex: data.level,

Loading…
Cancel
Save