Commit 77a9e69c authored by 耿迪迪's avatar 耿迪迪
parents c72e49ee 80e15b2e
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<el-button type="danger" size="small" @click="setLock(scope.row)" v-if="scope.row.accountStatus === '0'"> <el-button type="danger" size="small" @click="setLock(scope.row)" v-if="scope.row.accountStatus === '0'">
<i class="el-icon-lock"></i>注销 <i class="el-icon-lock"></i>注销
</el-button> </el-button>
<el-button type="success" size="small" @click="setLock(scope.row)" v-if="scope.row.accountStatus === '2'"> <el-button type="success" size="small" @click="setEnable(scope.row)" v-if="scope.row.accountStatus === '2'">
<i class="el-icon-unlock"></i>启用 <i class="el-icon-unlock"></i>启用
</el-button> </el-button>
</template> </template>
...@@ -181,6 +181,29 @@ export default class EnterprisesMg extends Vue { ...@@ -181,6 +181,29 @@ export default class EnterprisesMg extends Vue {
); );
}); });
} }
setEnable(row: any){
let that = this;
that.$confirm(`确定启用企业 ${row.unitName} 吗?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
METHOD.axiosGet(
that,
`/enterpriseInfo/enableEnterpriseInfoById/${row.enterpriseId}`,
function(res: any) {
if (res.code == 0) {
(that as any).$message({
type: "success",
message: "启用成功!"
});
that.getTableData();
}
}
);
});
}
/*选择城市*/ /*选择城市*/
changeFun(v: any) { changeFun(v: any) {
this.searchData.provinceId = v[0]; this.searchData.provinceId = v[0];
......
...@@ -81,21 +81,21 @@ ...@@ -81,21 +81,21 @@
<img src="../../assets/logo2.png" width="25%" style="margin-top: 2rem;"> <img src="../../assets/logo2.png" width="25%" style="margin-top: 2rem;">
<p>危险源数量</p> <p>危险源数量</p>
</div> </div>
<div style="width: 60%;height: 100%;text-align: center;line-height: 9rem;float: right;font-size: 3rem;font-family: 'UnidreamLED';">12345</div> <div style="width: 60%;height: 100%;text-align: center;line-height: 9rem;float: right;font-size: 3rem;font-family: 'UnidreamLED';">{{tjNumberObj.dangerNum}}</div>
</div> </div>
<div class="el-tab-pane-div second-div" style=""> <div class="el-tab-pane-div second-div" style="">
<div style="width: 40%;height: 100%; text-align: center;float: left;font-size: 15px;"> <div style="width: 40%;height: 100%; text-align: center;float: left;font-size: 15px;">
<img src="../../assets/logo2.png" width="25%" style="margin-top: 2rem;"> <img src="../../assets/logo2.png" width="25%" style="margin-top: 2rem;">
<p>注册企业数量</p> <p>注册企业数量</p>
</div> </div>
<div style="width: 60%;height: 100%;text-align: center;line-height: 9rem;float: right;font-size: 3rem;font-family: 'UnidreamLED';">12345</div> <div style="width: 60%;height: 100%;text-align: center;line-height: 9rem;float: right;font-size: 3rem;font-family: 'UnidreamLED';">{{tjNumberObj.enterpriseRegNum}}</div>
</div> </div>
<div class="el-tab-pane-div second-div" style=""> <div class="el-tab-pane-div second-div" style="">
<div style="width: 40%;height: 100%; text-align: center;float: left;font-size: 15px;"> <div style="width: 40%;height: 100%; text-align: center;float: left;font-size: 15px;">
<img src="../../assets/logo2.png" width="25%" style="margin-top: 2rem;"> <img src="../../assets/logo2.png" width="25%" style="margin-top: 2rem;">
<p>待审批数量</p> <p>待审批数量</p>
</div> </div>
<div style="width: 60%;height: 100%;text-align: center;line-height: 9rem;float: right;font-size: 3rem;font-family: 'UnidreamLED';">12345</div> <div style="width: 60%;height: 100%;text-align: center;line-height: 9rem;float: right;font-size: 3rem;font-family: 'UnidreamLED';">{{tjNumberObj.enterpriseCheckIngNum}}</div>
</div> </div>
</div> </div>
<Demo></Demo> <Demo></Demo>
...@@ -136,6 +136,7 @@ export default class EnterprisesMg extends Vue { ...@@ -136,6 +136,7 @@ export default class EnterprisesMg extends Vue {
@Provide() searchData: any = {}; @Provide() searchData: any = {};
@Provide() loading: Boolean = false; @Provide() loading: Boolean = false;
@Provide() cityval: any = []; @Provide() cityval: any = [];
@Provide() tjNumberObj: any = {};
//编辑组件 //编辑组件
@Provide() dialogVisible: Boolean = false; @Provide() dialogVisible: Boolean = false;
@Provide() formData: any = { dataType: "", enterpriseId: "" }; @Provide() formData: any = { dataType: "", enterpriseId: "" };
...@@ -157,6 +158,19 @@ export default class EnterprisesMg extends Vue { ...@@ -157,6 +158,19 @@ export default class EnterprisesMg extends Vue {
} }
); );
} }
getStatiData() {
let that = this;
METHOD.axiosPost(
that,
`/dataStatistics/managerDataStatistics`,
{ cityId: "", countyId: "", provinceId: "" },
function (res: any) {
if (res.code == 0) {
that.tjNumberObj = res.data;
}
}
);
}
searchFun() { searchFun() {
this.PAGE = { page: 1, size: 10 }; this.PAGE = { page: 1, size: 10 };
this.getTableData(); this.getTableData();
...@@ -196,6 +210,9 @@ export default class EnterprisesMg extends Vue { ...@@ -196,6 +210,9 @@ export default class EnterprisesMg extends Vue {
created() { created() {
this.getTableData(); this.getTableData();
} }
mounted() {
this.getStatiData();
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -88,6 +88,7 @@ export default class Content extends Vue { ...@@ -88,6 +88,7 @@ export default class Content extends Vue {
height: 100%; height: 100%;
overflow: auto; overflow: auto;
box-sizing: border-box; box-sizing: border-box;
padding: 10px;
} }
.el-container { .el-container {
height: 100%; height: 100%;
......
<template> <template>
<div class="pomentWrap"> <div class="pomentWrap" style="background-color: black">
<el-row :gutter="5" type="flex" justify="space-around"> <el-row :gutter="5" type="flex" justify="space-around">
<el-col :xs="12" :sm="12" :md="6" :lg="4" :xl="4"> <el-col :xs="12" :sm="12" :md="6" :lg="4" :xl="4">
<div class="topBar"> <div class="topBar">
<el-tree <el-tree id="videoTree"
:data="treeData" :data="treeData"
:props="treeProps" :props="treeProps"
ref="Tree" ref="Tree"
...@@ -12,16 +12,32 @@ ...@@ -12,16 +12,32 @@
:default-expanded-keys="[0]" :default-expanded-keys="[0]"
:default-checked-keys="[]" :default-checked-keys="[]"
@node-click="nodeClick" @node-click="nodeClick"
style="background-color: black; color: #a5a5a8"
> >
<!--<template slot-scope="{node, data}"> <template slot-scope="{node, data}">
<span> <span>
<i class="'#' + iconArrClass[data.level]" aria-hidden="true"> <i class="'#' + iconArrClass[data.level]" aria-hidden="true">
</i> </i>
{{node.label}} {{node.label}}
</span> </span>
</template>--> </template>
</el-tree> </el-tree>
</div> </div>
<!-- <div class="controlBtn">
<div class="directionBg1">
<div class="directionBg2">
<a data-action="upleft" class="button upleft"></a>
<a data-action="up" class="button up"></a>
<a data-action="upright" class="button upright"></a>
<a data-action="left" class="button left"></a>
<a data-action="pointgoto" class="button reset"></a>
<a data-action="right" class="button right"></a>
<a data-action="downleft" class="button downleft"></a>
<a data-action="down" class="button down"></a>
<a data-action="downright" class="button downright"></a>
</div>
</div>
</div>-->
</el-col> </el-col>
<el-col :xs="12" :sm="12" :md="18" :lg="20" :xl="20"> <el-col :xs="12" :sm="12" :md="18" :lg="20" :xl="20">
...@@ -56,6 +72,19 @@ ...@@ -56,6 +72,19 @@
</template> </template>
<style lang="scss" scped> <style lang="scss" scped>
@import '@/utils/public.scss'; @import '@/utils/public.scss';
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
background-color: #a5a5a8;
color: #454547;
}
.el-tree--highlight-current .el-tree-node > .el-tree-node__content:hover {
background-color: #a5a5a8;
color: white;
}
main > div {
background: #ffffff;
height: calc(100vh - 111px) !important;
padding: 0px 0px 0px 10px !important;
}
.row{ .row{
display: flex; display: flex;
.box{ .box{
...@@ -73,17 +102,17 @@ ...@@ -73,17 +102,17 @@
.novideo{ .novideo{
/*padding: 147px 0px 147px 0px; /*padding: 147px 0px 147px 0px;
display: block;*/ display: block;*/
line-height: calc((100vh - 120px)/2); line-height: calc((100vh - 114px)/2);
color: white; color: white;
} }
/*.nodeImg1{ /* .nodeImg1{
background: url("//assets//qiye.png") no-repeat center, background: url('../../assets/qiye.png') no-repeat center,
} }
.nodeImg2{ .nodeImg2{
background: url("//assets//enterprises.png") no-repeat center, background: url("../../assets/enterprises.png") no-repeat center,
} }
.nodeImg3{ .nodeImg3{
background: url("//assets//video.png") no-repeat center, background: url("../../assets/video.png") no-repeat center,
}*/ }*/
</style> </style>
...@@ -115,6 +144,7 @@ ...@@ -115,6 +144,7 @@
label: "name" label: "name"
}; };
@Provide() treecheckedObj: any = {}; @Provide() treecheckedObj: any = {};
@Provide() ideoController: any = {};
getTreeData() { getTreeData() {
let that = this; let that = this;
......
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