liuxing vor 1 Jahr
Ursprung
Commit
f2fd7745e9
2 geänderte Dateien mit 15 neuen und 5 gelöschten Zeilen
  1. 8 1
      app/src/views/Detail/components/Risklevel.vue
  2. 7 4
      app/src/views/H5/index.vue

+ 8 - 1
app/src/views/Detail/components/Risklevel.vue

@@ -1,6 +1,13 @@
 <template>
   <div class="level">
-    <div class="fxdj" :style="'background-color: ' + color">
+    <div class="fxdj" :style="'background-color: ' + color" v-if="detail.fxdj !== '一般风险'">
+      {{
+        detail.fxdj && detail.fxdjYs != "低风险(蓝色)"
+          ? detail.fxdj
+          : "较低风险"
+      }}
+    </div>
+    <div class="fxdj" :style="'background-color: ' + color + '; color: #2c2c23'" v-if="detail.fxdj === '一般风险'">
       {{
         detail.fxdj && detail.fxdjYs != "低风险(蓝色)"
           ? detail.fxdj

+ 7 - 4
app/src/views/H5/index.vue

@@ -10,7 +10,8 @@
 					<div style="margin-bottom: 19px;">
 						<div class="fxdj">风险等级</div>
 						<div class="fxdjFlex">
-							<div class="fxTxt" :style="'background-color: ' + color">{{detail.fxdj}}</div>
+							<div class="fxTxt" :style="'background-color: ' + color" v-if="detail.fxdj !== '一般风险'">{{detail.fxdj}}</div>
+							<div class="fxTxt" :style="'background-color: ' + color+ '; color: #2c2c23'" v-else>{{detail.fxdj}}</div>
 						</div>
 					</div>
 					<div class="fxdj">主要风险点</div>
@@ -20,7 +21,8 @@
 						<div class="gdst">疏通管道</div>
 						<div class="gdst">疏通管道拥堵</div>
 						<div class="gdst">疏通管道拥堵</div> -->
-						<span class="gdst" v-for="(item, i) in fxd" :key="i">{{ item }},</span>
+						<span class="gdst" v-if="fxd && fxd.length > 0">{{ fxd }}</span>
+						<span class="gdst" v-if="!fxd || fxd.length === 0">暂无</span>
 					</div>
 				</div>
 				<div class="ewm">
@@ -225,9 +227,10 @@
                	jzid:this.params.id,
                	pageSize: 100,
                	pageNum: 1,
+				yhzt: '已整改'
                }
 				getFxdj(wbCs).then((res) => {
-					this.fxd = res.data.rows.map((p) => p.yhxmmc);
+					this.fxd = res.data.rows.map((p) => p.yhxmmc).join(',');
 				});
 				
 				getWbqk(wbCs).then((res) => {
@@ -526,7 +529,7 @@
 				font-weight: 400;
 				font-size: 12px;
 				color: #454545;
-				margin: 0 3px;
+				// margin: 0 3px;
 				margin-bottom: 9px;
 			}