liuxing 1 rok temu
rodzic
commit
5c2df27d5a

+ 5 - 9
app/src/views/Detail/components/Risklevel.vue

@@ -92,7 +92,8 @@
 </template>
 
 <script>
-import { getFxdj, getYh, getLshz, getQrcode } from "@/api/detail.js";
+import { getFxdj, getLshz, getQrcode } from "@/api/detail.js";
+import { ylycyhzzqdTc } from "@/api/risk.js";
 export default {
   name: "Risklevel",
   data() {
@@ -131,18 +132,13 @@ export default {
           this.fxd = res.data.rows.map((p) => p.yhxmmc);
         }
       });
-      getYh({
+      ylycyhzzqdTc({
         jzid: this.detail.id,
+        // gcjzmc: this.detail.gcjzmc,
         pageNum: 1,
         pageSize: 100,
       }).then((res) => {
-        const list = [];
-        if (res.data.rows) {
-          res.data.rows.forEach((p) => {
-            // list.push([])
-          });
-        }
-        this.yhList = list;
+        this.yhList = res.data.rows;
       });
       getLshz({
         pageNum: 1,

+ 1 - 0
app/src/views/Detail/components/YhModalContent.vue

@@ -312,6 +312,7 @@ export default {
         min-width="100"
       >
       </el-table-column>
+      <el-table-column label="风险等级" prop="fxdj"></el-table-column>
       <el-table-column label="隐患数" show-overflow-tooltip>
         <template> 1 </template>
       </el-table-column>