Merge pull request 'lukeyan' (#47) from lukeyan into master

Reviewed-on: #47
pull/50/head^2
lukeyan 1 year ago
commit 2216b281f1

@ -17,9 +17,11 @@
</div> </div>
<el-table <el-table
v-if="is_flag" v-if="is_flag"
max_height="310"
:header-cell-style="table_header" :header-cell-style="table_header"
:data="tableData_all" :data="tableData_all"
:cell-style="{ background: 'revert', 'text-align': 'center' }" :cell-style="{ background: 'revert', 'text-align': 'center' }"
key="1"
> >
<el-table-column prop="level" :label="label"> <el-table-column prop="level" :label="label">
<template slot-scope="scope"> <template slot-scope="scope">
@ -68,6 +70,7 @@
:header-cell-style="table_header" :header-cell-style="table_header"
:data="tableData_all" :data="tableData_all"
:cell-style="{ background: 'revert', 'text-align': 'center' }" :cell-style="{ background: 'revert', 'text-align': 'center' }"
key="2"
> >
<el-table-column prop="scoreLowerLimit" label="分值设置" width="360"> <el-table-column prop="scoreLowerLimit" label="分值设置" width="360">
</el-table-column> </el-table-column>
@ -98,6 +101,7 @@
:header-cell-style="table_header" :header-cell-style="table_header"
:data="tableData_warn" :data="tableData_warn"
:cell-style="{ background: 'revert', 'text-align': 'center' }" :cell-style="{ background: 'revert', 'text-align': 'center' }"
key="3"
> >
<el-table-column prop="level" label="预警等级"> <el-table-column prop="level" label="预警等级">
<template slot-scope="scope"> <template slot-scope="scope">
@ -190,6 +194,7 @@ export default {
mounted() { mounted() {
bus.$on("send_three", (data) => { bus.$on("send_three", (data) => {
console.log("data", data); console.log("data", data);
this.tableData_all = []
this.three_level_id = data.safeRuleId; // id this.three_level_id = data.safeRuleId; // id
this.safeRuleId = data.safeRuleId; this.safeRuleId = data.safeRuleId;
this.table_num = data.table_num; // 12 this.table_num = data.table_num; // 12

Loading…
Cancel
Save