From cc1c0a396698648256c350f6f0fe2cb2f0b02c7e Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 27 Mar 2024 15:44:10 +0800
Subject: [PATCH] 许可按钮放出,备案审批按钮放出
---
src/views/securityUnitOperation/operationAnalysis.vue | 151 ++++++++++++++++++++++++-------------------------
1 files changed, 74 insertions(+), 77 deletions(-)
diff --git a/src/views/securityUnitOperation/operationAnalysis.vue b/src/views/securityUnitOperation/operationAnalysis.vue
index defe937..dc37ab6 100644
--- a/src/views/securityUnitOperation/operationAnalysis.vue
+++ b/src/views/securityUnitOperation/operationAnalysis.vue
@@ -6,33 +6,27 @@
<div class="rowTitle">
<img src="../../../public/img/bajgxt/u1618.png" />
<span>数据概览</span>
-
- <!-- <el-select class="select0" v-model="value0" placeholder="请选择">
- <el-option
- v-for="item in options0"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select> -->
- <el-select
+ <avue-input-tree
class="select1"
- ref="treeForm"
- v-model="node.title"
- placeholder="请选择"
- >
- <el-option style="height: auto;" :value="node">
- <el-tree
- :data="options1"
- default-expand-all
- node-key="id"
- @node-click="handleNodeClick"
- :props="props"
- >
- </el-tree>
- </el-option>
- </el-select>
- <el-select
+ default-expand-all
+ v-model="value1"
+ placeholder="请选择内容"
+ type="tree"
+ :dic="options1"
+ :props="props"
+ @change="handleNodeClick"
+ ></avue-input-tree>
+ <avue-input-tree
+ class="select2"
+ default-expand-all
+ v-model="value2"
+ placeholder="请选择公司"
+ type="tree"
+ :dic="options2"
+ :props="props2"
+ @change="changeCompanys"
+ ></avue-input-tree>
+ <!-- <el-select
class="select2"
v-model="value2"
placeholder="请选择"
@@ -44,7 +38,7 @@
:label="item.enterpriseName"
:value="item.departmentid"
></el-option>
- </el-select>
+ </el-select> -->
<el-button @click="toOperationTable">进入数据统计表</el-button>
</div>
@@ -146,7 +140,7 @@
getCompanys,
queryYearKh,
queryYearG,
- selectAge
+ selectAge,
} from "../../api/securityUnitOperation/securityUnitOperation";
export default {
data() {
@@ -168,33 +162,33 @@
sheb: 0,
addsheb: 0,
baoanPq: 0,
- addbaoanPq: 0
+ addbaoanPq: 0,
},
options0: [
{
value: "2012",
- label: "2012年"
+ label: "2012年",
},
{
value: "2011",
- label: "2011年"
+ label: "2011年",
},
{
value: "2010",
- label: "2010年"
+ label: "2010年",
},
{
value: "2009",
- label: "2009年"
+ label: "2009年",
},
{
value: "2008",
- label: "2008年"
+ label: "2008年",
},
{
value: "2007",
- label: "2007年"
- }
+ label: "2007年",
+ },
],
options1: [],
options2: [],
@@ -207,36 +201,39 @@
middleEchart1: null,
middleEchart2: null,
bottomEchart: null,
- bottomEchart1: null
+ bottomEchart1: null,
},
ageData: {
qing: 0,
zhong: 0,
- lao: 0
+ lao: 0,
},
props: {
children: "children",
label: "title",
- value: "id"
+ value: "id",
},
- node: {} //选中的记录
+ props2: {
+ children: "children",
+ label: "enterpriseName",
+ value: "departmentid",
+ },
+ node: {}, //选中的记录
};
},
methods: {
//点击节点
- handleNodeClick(data) {
- this.node = data;
- this.value1 = data.id;
- this.$refs.treeForm.blur();
+ handleNodeClick(id) {
+ this.value1 = id;
this.getCompanys();
},
setAgeEchart() {
this.loading4 = true;
let params = {
jurisdiction: this.value1,
- deptid: this.value2
+ deptid: this.value2,
};
- selectAge(params).then(res => {
+ selectAge(params).then((res) => {
if (res.data.code === 200) {
if (!this.echartDom.bottomEchart1) {
this.echartDom.bottomEchart1 = echarts.init(
@@ -263,14 +260,14 @@
"&enterpriseName=" +
this.enterpriseName +
"&jurisdiction1=" +
- this.value1
+ this.value1,
});
},
getFenju() {
this.options1 = [];
this.value1 = "";
this.node = {};
- lazyTrees().then(res => {
+ lazyTrees().then((res) => {
if (res.data.code === 200) {
this.options1 = res.data.data;
this.value1 = this.options1[0] ? this.options1[0].id : "";
@@ -283,10 +280,10 @@
},
getCompanys() {
- getCompanys({ jurisdiction: this.value1 }).then(res => {
+ getCompanys({ jurisdiction: this.value1 }).then((res) => {
if (res.data.code === 200) {
this.options2 = res.data.data;
- this.value2 = this.options2[0] ? this.options2[0].departmentid : "";
+ // this.value2 = this.options2[0] ? this.options2[0].departmentid : "";
this.enterpriseName = this.options2[0]
? this.options2[0].enterpriseName
: "";
@@ -297,26 +294,26 @@
getQueryCounts() {
let params = {
jurisdiction: this.value1,
- deptid: this.value2
+ deptid: this.value2,
};
- queryCounts(params).then(res => {
+ queryCounts(params).then((res) => {
if (res.data.code === 200) {
let data = res.data.data[0];
this.card = {
- baoanTotal: data.baoan.thisnum,
- addbaoanTotal: data.baoan.thisnum - data.baoan.lastnum,
- zcBaoan: data.zcbaoan.thisnum,
- addzcBaoan: data.zcbaoan.thisnum - data.zcbaoan.lastnum,
- czBaoan: data.czbaoan.thisnum,
- addczBaoan: data.czbaoan.thisnum - data.czbaoan.lastnum,
+ baoanTotal: data.baoan.num,
+ addbaoanTotal: data.baoan.thisnum,
+ zcBaoan: data.zcbaoan.num,
+ addzcBaoan: data.zcbaoan.thisnum,
+ czBaoan: data.czbaoan.num,
+ addczBaoan: data.czbaoan.thisnum,
gkBaoan: 0,
addgkBaoan: 0,
- kh: data.kh.thisnum,
- addkh: data.kh.thisnum - data.kh.lastnum,
- sheb: data.sheb.thisnum,
- addsheb: data.sheb.thisnum - data.sheb.lastnum,
- baoanPq: data.paiq.thisnum,
- addbaoanPq: data.paiq.thisnum - data.paiq.lastnum
+ kh: data.kh.num,
+ addkh: data.kh.thisnum,
+ sheb: data.sheb.num,
+ addsheb: data.sheb.thisnum,
+ baoanPq: data.paiq.num,
+ addbaoanPq: data.paiq.thisnum,
};
}
});
@@ -325,9 +322,9 @@
this.loading2 = true;
let params = {
jurisdiction: this.value1,
- deptid: this.value2
+ deptid: this.value2,
};
- queryYearKh(params).then(res => {
+ queryYearKh(params).then((res) => {
if (res.data.code === 200) {
if (!this.echartDom.middleEchart2) {
this.echartDom.middleEchart2 = echarts.init(
@@ -346,9 +343,9 @@
this.loading3 = true;
let params = {
jurisdiction: this.value1,
- deptid: this.value2
+ deptid: this.value2,
};
- queryYearG(params).then(res => {
+ queryYearG(params).then((res) => {
if (res.data.code === 200) {
if (!this.echartDom.middleEchart1) {
this.echartDom.middleEchart1 = echarts.init(
@@ -387,16 +384,16 @@
sheb: 0,
addsheb: 0,
baoanPq: 0,
- addbaoanPq: 0
+ addbaoanPq: 0,
};
this.ageData = {
qing: 0,
zhong: 0,
- lao: 0
+ lao: 0,
};
},
changeCompanys() {
- this.options2.forEach(item => {
+ this.options2.forEach((item) => {
if (item.departmentid === this.value2) {
this.enterpriseName = item.enterpriseName;
}
@@ -406,11 +403,11 @@
this.getQueryYearKh();
this.getQueryYearG();
this.setAgeEchart();
- }
+ },
},
mounted() {
this.getFenju();
- }
+ },
};
</script>
<style lang="scss" scoped>
@@ -509,7 +506,7 @@
}
}
// 适配分辨率1600*900
-@media screen and (min-width: 1281px)and (max-width: 1600px) {
+@media screen and (min-width: 1281px) and (max-width: 1600px) {
.box-card {
font-size: 15px;
width: 128px;
@@ -594,7 +591,7 @@
}
}
}
-@media screen and (min-width: 1601px)and (max-width: 1920px) {
+@media screen and (min-width: 1601px) and (max-width: 1920px) {
.box-card {
width: 150px;
background: #00aaf1;
@@ -744,7 +741,7 @@
}
.select1 {
position: absolute;
- right: 302px;
+ right: 360px;
}
.select2 {
position: absolute;
@@ -755,7 +752,7 @@
right: 0px;
}
/deep/ .el-input__inner {
- width: 120px;
+ width: 180px;
}
}
.col-content {
--
Gitblit v1.9.3