|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="level">
|
|
<div class="level">
|
|
- <div class="fxdj" :style="'background-color: ' + color">{{ detail.fxdj }}</div>
|
|
|
|
|
|
+ <div class="fxdj" :style="'background-color: ' + color">{{ detail.fxdj&&detail.fxdjYs!='低风险(蓝色)'?detail.fxdj:'较低风险' }}</div>
|
|
<!-- 风险等级 -->
|
|
<!-- 风险等级 -->
|
|
<div class="row" style="padding-right: 150px;">
|
|
<div class="row" style="padding-right: 150px;">
|
|
<div
|
|
<div
|
|
@@ -181,7 +181,6 @@ export default {
|
|
yhzt: '已整改',
|
|
yhzt: '已整改',
|
|
};
|
|
};
|
|
getFxdj(param).then((res) => {
|
|
getFxdj(param).then((res) => {
|
|
- console.log('-----fengx ',res);
|
|
|
|
if (res.data.rows) {
|
|
if (res.data.rows) {
|
|
this.fxd = res.data.rows.map((p) => p.yhxmmc);
|
|
this.fxd = res.data.rows.map((p) => p.yhxmmc);
|
|
}
|
|
}
|
|
@@ -208,16 +207,15 @@ export default {
|
|
}
|
|
}
|
|
this.hzs = list;
|
|
this.hzs = list;
|
|
});
|
|
});
|
|
-
|
|
|
|
- console.log(this.detail.fxdj.indexOf("重大风险"));
|
|
|
|
if (this.detail.fxdj) {
|
|
if (this.detail.fxdj) {
|
|
|
|
+ console.log('-----详情',this.detail);
|
|
let color = "";
|
|
let color = "";
|
|
let bgColor = "";
|
|
let bgColor = "";
|
|
- if (this.detail.fxdj.indexOf("低风险") >= 0) {
|
|
|
|
- color = "#00A3FF";
|
|
|
|
- bgColor = "#00A3FF";
|
|
|
|
|
|
+ if (this.detail.fxdj.indexOf("低风险") >= 0&&this.detail.fxdjYs.indexOf("绿色") >= 0) {
|
|
|
|
+ color = "#2DD25D";
|
|
|
|
+ bgColor = "#2DD25D";
|
|
} else if (this.detail.fxdj.indexOf("一般风险") >= 0) {
|
|
} else if (this.detail.fxdj.indexOf("一般风险") >= 0) {
|
|
- color = "#fbff3d";
|
|
|
|
|
|
+ color = "#FFE600";
|
|
} else if (
|
|
} else if (
|
|
this.detail.fxdj.indexOf("较大风险") >= 0 ||
|
|
this.detail.fxdj.indexOf("较大风险") >= 0 ||
|
|
this.detail.fxdj.indexOf("较高风险") >= 0
|
|
this.detail.fxdj.indexOf("较高风险") >= 0
|
|
@@ -227,7 +225,7 @@ export default {
|
|
} else if (this.detail.fxdj.indexOf("重大风险") >= 0) {
|
|
} else if (this.detail.fxdj.indexOf("重大风险") >= 0) {
|
|
color = "#ff0b0b";
|
|
color = "#ff0b0b";
|
|
bgColor = "#ff0b0b";
|
|
bgColor = "#ff0b0b";
|
|
- } else {
|
|
|
|
|
|
+ } else if(this.detail.fxdjYs.indexOf("蓝色")>=0) {
|
|
color = "#35c2ff";
|
|
color = "#35c2ff";
|
|
bgColor = "#35c2ff";
|
|
bgColor = "#35c2ff";
|
|
}
|
|
}
|