From dbb160f7ce6c334ee561e551930ec72b5f5db899 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Tue, 07 Dec 2021 21:09:14 +0800
Subject: [PATCH] 预警输入框禁用
---
src/views/securityUnitOperation/operationAnalysis.vue | 194 ++++++++++++++++++++++++++++++------------------
1 files changed, 121 insertions(+), 73 deletions(-)
diff --git a/src/views/securityUnitOperation/operationAnalysis.vue b/src/views/securityUnitOperation/operationAnalysis.vue
index 3d83130..40ffef9 100644
--- a/src/views/securityUnitOperation/operationAnalysis.vue
+++ b/src/views/securityUnitOperation/operationAnalysis.vue
@@ -64,39 +64,54 @@
</div>
</el-col>
<el-col :span="10">
- <div class="rowContent first-menu">
+ <div class="rowContent first-menu yujing-class">
<div class="rowTitle">
<img src="../../../public/img/bajgxt/yj.png" />
<span>预警分析</span>
</div>
- <div class="col-content" style="margin-left: 55px">
- <div
- class="box-card"
- style="margin-right: 50px; cursor: pointer"
- @click="showTable('fw')"
- >
+ <div class="col-content" style="margin-left: 40px">
+ <div class="box-card" style="margin-right: 25px;">
<span>服务对象预警(家)</span>
- <span>{{ yj.fuwu }}</span>
- <span>服务对象小于2家</span>
+ <span style=" cursor: pointer" @click="showTable('fw')">{{
+ yj.fuwu
+ }}</span>
+ <div class="yujing_bottom">
+ <span>服务对象小于</span>
+ <el-input
+ v-model="inputNum.fuwu"
+ @change="getSecurityUnitServerLessPage()"
+ ></el-input>
+ <span>家</span>
+ </div>
</div>
- <div
- class="box-card"
- style="margin-right: 50px; cursor: pointer"
- @click="showTable('pq')"
- >
+ <div class="box-card" style="margin-right: 25px;">
<span>派遣预警(家)</span>
- <span>{{ yj.paiqian }}</span>
- <span>派遣率小于50%</span>
+ <span style=" cursor: pointer" @click="showTable('pq')">{{
+ yj.paiqian
+ }}</span>
+ <div class="yujing_bottom">
+ <span>派遣率小于</span>
+ <el-input
+ v-model="inputNum.paiqian"
+ @change="getSecurityUnitDispatcherLessPage"
+ ></el-input>
+ <span>%</span>
+ </div>
</div>
- <div
- class="box-card"
- style="margin-right: 50px; cursor: pointer"
- @click="showTable('cz')"
- >
+ <div class="box-card" style="margin-right: 25px;">
<span>持证上岗预警(家)</span>
- <span>{{ yj.chizheng }}</span>
- <span>持证率小于50%</span>
+ <span style=" cursor: pointer" @click="showTable('cz')">{{
+ yj.chizheng
+ }}</span>
+ <div class="yujing_bottom">
+ <span>持证率小于</span>
+ <el-input
+ v-model="inputNum.chizheng"
+ @change="getSecurityUnitHoldLessPage"
+ ></el-input>
+ <span>%</span>
+ </div>
</div>
</div>
</div>
@@ -299,7 +314,7 @@
selectAge,
getSecurityUnitServerLessPage,
getSecurityUnitDispatcherLessPage,
- getSecurityUnitHoldLessPage,
+ getSecurityUnitHoldLessPage
} from "../../api/securityUnitOperation/securityUnitOperation";
export default {
data() {
@@ -321,38 +336,38 @@
sheb: 0,
addsheb: 0,
baoanPq: 0,
- addbaoanPq: 0,
+ addbaoanPq: 0
},
yj: {
fuwu: 0,
paiqian: 0,
- chizheng: 0,
+ chizheng: 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: [],
@@ -365,22 +380,22 @@
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"
},
props2: {
children: "children",
label: "enterpriseName",
- value: "departmentid",
+ value: "departmentid"
},
node: {}, //选中的记录
gridData: {
@@ -388,10 +403,15 @@
total: 0,
current: 1,
type: "fw",
- title: "",
+ title: ""
},
dialogloading: false,
dialogTableVisible: false,
+ inputNum: {
+ fuwu: 2,
+ paiqian: 50,
+ chizheng: 50
+ }
};
},
methods: {
@@ -435,9 +455,9 @@
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(
@@ -457,6 +477,7 @@
});
},
toOperationTable() {
+ debugger;
this.$router.push({
path:
"/securityUnitOperation/operationTable?jurisdiction=" +
@@ -464,14 +485,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 : "";
@@ -485,13 +506,14 @@
},
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.enterpriseName = this.options2[0]
- ? this.options2[0].enterpriseName
- : "";
+ // this.enterpriseName = this.options2[0]
+ // ? this.options2[0].enterpriseName
+ // : "";
+ this.value2 = "";
this.changeCompanys();
}
});
@@ -499,26 +521,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
};
}
});
@@ -527,9 +549,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(
@@ -548,9 +570,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(
@@ -589,17 +611,17 @@
sheb: 0,
addsheb: 0,
baoanPq: 0,
- addbaoanPq: 0,
+ addbaoanPq: 0
};
this.yj = {
fuwu: 0,
paiqian: 0,
- chizheng: 0,
+ chizheng: 0
};
this.ageData = {
qing: 0,
zhong: 0,
- lao: 0,
+ lao: 0
};
},
getSecurityUnitServerLessPage() {
@@ -608,8 +630,9 @@
departmentid: this.value2,
current: this.gridData.current,
size: 10,
+ proportion: this.inputNum.fuwu
};
- getSecurityUnitServerLessPage(params).then((res) => {
+ getSecurityUnitServerLessPage(params).then(res => {
if (res.data.code === 200) {
this.yj.fuwu = res.data.data.total;
this.gridData.data = res.data.data.records;
@@ -626,8 +649,9 @@
departmentid: this.value2,
current: this.gridData.current,
size: 10,
+ proportion: this.inputNum.paiqian
};
- getSecurityUnitDispatcherLessPage(params).then((res) => {
+ getSecurityUnitDispatcherLessPage(params).then(res => {
if (res.data.code === 200) {
this.yj.paiqian = res.data.data.total;
this.gridData.data = res.data.data.records;
@@ -644,8 +668,9 @@
departmentid: this.value2,
current: this.gridData.current,
size: 10,
+ proportion: this.inputNum.chizheng
};
- getSecurityUnitHoldLessPage(params).then((res) => {
+ getSecurityUnitHoldLessPage(params).then(res => {
if (res.data.code === 200) {
this.yj.chizheng = res.data.data.total;
this.gridData.data = res.data.data.records;
@@ -657,7 +682,7 @@
});
},
changeCompanys() {
- this.options2.forEach((item) => {
+ this.options2.forEach(item => {
if (item.departmentid === this.value2) {
this.enterpriseName = item.enterpriseName;
}
@@ -670,11 +695,11 @@
this.getSecurityUnitServerLessPage();
this.getSecurityUnitDispatcherLessPage();
this.getSecurityUnitHoldLessPage();
- },
+ }
},
mounted() {
this.getFenju();
- },
+ }
};
</script>
<style lang="scss" scoped>
@@ -693,6 +718,7 @@
font-size: 31px;
}
}
+
.col-content {
margin-top: 39px !important;
}
@@ -870,6 +896,11 @@
span:nth-child(2) {
color: #06ffff;
font-size: 34px;
+ }
+ }
+ .yujing-class {
+ .box-card {
+ width: 180px !important;
}
}
.leftEchartTitle.qing {
@@ -1101,4 +1132,21 @@
height: 77%;
}
}
+.yujing_bottom {
+ display: inline-flex;
+ // width: 100%;
+ span {
+ width: auto;
+ }
+ .el-input {
+ width: 30px;
+ /deep/ .el-input__inner {
+ width: 30px;
+ padding: 0px;
+ height: 20px !important;
+ line-height: 20px !important;
+ text-align: center;
+ }
+ }
+}
</style>
--
Gitblit v1.9.3