From c12a6cdcbbef8ebcb07db87bbb702b7c4e792815 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Fri, 17 Sep 2021 23:43:37 +0800
Subject: [PATCH] 改接口
---
src/views/securityUnitOperation/operationAnalysis.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/views/securityUnitOperation/operationAnalysis.vue b/src/views/securityUnitOperation/operationAnalysis.vue
index d5a2aad..b7360e7 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();
--
Gitblit v1.9.3