首页无数据

zhangtao
laozt 1 year ago
parent c3e60ab508
commit aacf36352b

@ -48,6 +48,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<!-- 列表/图表切换 -->
<div class="rightBigNav"> <div class="rightBigNav">
<div class="right-nav"> <div class="right-nav">
<div <div
@ -84,7 +85,7 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 列表 -->
<div class="bgContent" v-if="activeIndex == 0"> <div class="bgContent" v-if="activeIndex == 0">
<div class="tables"> <div class="tables">
<el-table <el-table
@ -96,34 +97,73 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
> >
<el-table-column <el-table-column
prop="institutionName" prop="district"
label="行政区划" label="行政区划"
header-align="center" header-align="center"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="" label="执法计划" header-align="center">
prop="plannedEnterpriseCount" <template slot-scope="scope">
label="执法计划" <span class="numb-hover" @click="openDialog(scope.row)"
header-align="center" >{{ 150 }}</span
> >
</template>
</el-table-column>
<el-table-column label="完成执法" prop="" header-align="center">
<template slot-scope="scope"> {{ 150 }} </template>
</el-table-column> </el-table-column>
<el-table-column label="完成率" prop="" header-align="center">
<!-- <template slot-scope="scope">
{{
scope.row.pt == "NaN" ? "0" : (scope.row.pt * 100).toFixed(2)
}}%
</template> -->
<template slot-scope="scope"> {{ 50 }}% </template>
</el-table-column>
</el-table>
</div>
</div>
<!-- 列表对话框 -->
<el-dialog
:title="title"
:visible.sync="isDialogShow"
width="60%"
append-to-body
class="tables-dialog"
>
<div class="tables">
<el-table
:data="tableInfoData"
style="width: 100%"
:height="530"
:border="false"
:row-class-name="tableRowClassName"
>
<el-table-column <el-table-column
label="完成执法" prop="county"
prop="checkEnterpriseCount" label="行政区划"
header-align="center" header-align="center"
show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column label="完成率" prop="pt" header-align="center"> <el-table-column prop="" label="执法计划" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope"> {{ 150 }} </template>
</el-table-column>
<el-table-column label="完成执法" prop="" header-align="center">
<template slot-scope="scope"> {{ 150 }} </template>
</el-table-column>
<el-table-column label="完成率" prop="" header-align="center">
<!-- <template slot-scope="scope">
{{ {{
scope.row.pt == "NaN" ? "0" : (scope.row.pt * 100).toFixed(2) scope.row.pt == "NaN" ? "0" : (scope.row.pt * 100).toFixed(2)
}}% }}%
</template> </template> -->
<template slot-scope="scope"> {{ 50 }}% </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</div> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
@ -210,6 +250,9 @@ export default {
// //
loadS: false, loadS: false,
newTable: [], newTable: [],
title: "",
isDialogShow: false,
tableInfoData: [],
}; };
}, },
components: { components: {
@ -230,7 +273,27 @@ export default {
resetQuery() {}, resetQuery() {},
// //
getList() { getList() {
//
let treeData = JSON.parse(localStorage.getItem("TREE_DATA"));
console.log(treeData);
// ()
this.tableData = treeData;
},
//
openDialog(row) {
console.log(row);
this.isDialogShow = true;
this.tableInfoData = row.children;
this.title = row.district + "执法计划";
},
active(e) {
this.activeIndex = e;
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 !== 0) {
return "success-row";
}
return "";
}, },
// searchList() { // searchList() {
// this.beforeParams = { ...this.beforeParams, ...this.ruleForm }; // this.beforeParams = { ...this.beforeParams, ...this.ruleForm };
@ -253,15 +316,6 @@ export default {
// this.loadS = false; // this.loadS = false;
// }); // });
// }, // },
active(e) {
this.activeIndex = e;
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 !== 0) {
return "success-row";
}
return "";
},
}, },
}; };
</script> </script>
@ -314,11 +368,20 @@ export default {
} }
} }
.numb-hover {
color: #045ffd;
cursor: pointer;
&:hover {
color: #518afb;
text-decoration: underline;
}
}
.inputs { .inputs {
display: flex; display: flex;
} }
//=== //===
.bgContent { .bgContent,
.tables-dialog {
height: calc(100% - 48px); height: calc(100% - 48px);
width: 100%; width: 100%;
.tables { .tables {

Loading…
Cancel
Save