From aa3c2a4cd44d4ab1d7183aa8c2f5ddfa1def4ef4 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 24 Nov 2021 13:52:05 +0800
Subject: [PATCH] +
---
src/views/securityUnitOperation/operationAnalysis.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/views/securityUnitOperation/operationAnalysis.vue b/src/views/securityUnitOperation/operationAnalysis.vue
index d5a2aad..8fc47b9 100644
--- a/src/views/securityUnitOperation/operationAnalysis.vue
+++ b/src/views/securityUnitOperation/operationAnalysis.vue
@@ -198,7 +198,6 @@
:key="gridData.type"
prop="enterprisename"
label="保安公司名称"
- width="180"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
@@ -223,6 +222,7 @@
:key="gridData.type"
prop="pnum"
label="派遣比例"
+ :formatter="kslFormatter"
:show-overflow-tooltip="true"
></el-table-column>
<!-- <el-table-column
@@ -263,6 +263,7 @@
:key="gridData.type"
prop="pnum"
label="持证比例"
+ :formatter="kslFormatter"
:show-overflow-tooltip="true"
></el-table-column>
<!-- <el-table-column
@@ -394,6 +395,13 @@
};
},
methods: {
+ kslFormatter(row) {
+ if (row.pnum && row.pnum !== "0") {
+ return row.pnum + "%";
+ } else {
+ return row.pnum;
+ }
+ },
changePage() {
this.showcurTable(this.gridData.type);
},
@@ -404,8 +412,8 @@
this.showcurTable(type);
},
showcurTable(type) {
- this.dialogloading = true;
this.dialogTableVisible = true;
+ // this.dialogloading = true;
if (type === "fw") {
this.gridData.title = "服务对象预警保安公司";
this.getSecurityUnitServerLessPage();
@@ -419,6 +427,7 @@
},
//点击节点
handleNodeClick(data) {
+ debugger
this.value1 = data;
this.getCompanys();
},
@@ -467,6 +476,7 @@
this.options1 = res.data.data;
// this.value1 = this.options1[0] ? this.options1[0].id : "";
this.node = this.options1[0];
+ debugger
this.getCompanys();
} else {
this.$message.error(res.msg);
--
Gitblit v1.9.3