Browse Source

perf: 新增一楼一码隐患查询条件为已整改和已修改

TwoKe945 1 year ago
parent
commit
3949a46a6f
2 changed files with 11 additions and 3 deletions
  1. 9 1
      app/src/views/Detail/components/Risklevel.vue
  2. 2 2
      utils/request.js

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

@@ -144,11 +144,19 @@ export default {
   },
   methods: {
     openModal(name) {
-      if (name === "qhyyModal" || name === "yhModal") {
+      if (name === "qhyyModal") {
         this.$emit("openModal", {
           name,
           params: { gcjzmc: this.detail.gcjzmc },
         });
+      } else if (name === "yhModal") {
+        this.$emit("openModal", {
+          name,
+          params: {
+            gcjzmc: this.detail.gcjzmc,
+            zgjd: ['待计划', '待整改']
+          },
+        });
       } else {
         this.$emit("openModal", { name });
       }

+ 2 - 2
utils/request.js

@@ -2,10 +2,10 @@ import axios from 'axios'
 
 // 创建一个axios实例
 const instance = axios.create({
-  // baseURL: 'http://183.66.101.53:8787/api'
+  baseURL: 'http://183.66.101.53:8787/api'
   // baseURL: 'http://192.168.31.129:8080'
   // baseURL: 'http://127.0.0.1:8080'
-  baseURL: '/api'
+  // baseURL: '/api'
 })
 
 // 配置请求拦截器