duy 2 mesi fa
parent
commit
fa3b417f56
1 ha cambiato i file con 29 aggiunte e 14 eliminazioni
  1. 29 14
      src/views/codeRule/ruleManage.vue

+ 29 - 14
src/views/codeRule/ruleManage.vue

@@ -209,12 +209,12 @@
 
 
                     </div>
                     </div>
                   </div>
                   </div>
-                        <div class="box-card-content2-top">
+                  <div class="box-card-content2-top">
                     <div class="box-card-content2-title">
                     <div class="box-card-content2-title">
-                     <div class="title-container">
-                      <span>技术指标</span>
-                      <i class="el-icon-circle-plus" @click="addJs"></i>
-                    </div>
+                      <div class="title-container">
+                        <span>技术指标</span>
+                        <i class="el-icon-circle-plus" @click="addJs"></i>
+                      </div>
                     </div>
                     </div>
                     <div class="box-card-content2-list">
                     <div class="box-card-content2-list">
                       <div class="box-card-content2-list-item" v-for="(item, index) in jsList" :key="index">
                       <div class="box-card-content2-list-item" v-for="(item, index) in jsList" :key="index">
@@ -593,6 +593,8 @@ import { getStore, setStore } from "@/util/store";
     },
     },
 
 
     created(){
     created(){
+      console.log(111111111111);
+      
         this.getFqOptions()
         this.getFqOptions()
         const { id, tenant_id,projectid} = this.$route.query;
         const { id, tenant_id,projectid} = this.$route.query;
         this.id = id;
         this.id = id;
@@ -609,18 +611,19 @@ import { getStore, setStore } from "@/util/store";
           this.getRuleItemOptions();
           this.getRuleItemOptions();
         } 
         } 
     },
     },
-     watch: {
-    projectid(newVal, oldVal) {
-      if (newVal !== oldVal) {
-        this.curreenttid = '';
+    beforeRouteLeave(to, from, next) {
+
+      
+       this.curreenttid=''
         setStore({
         setStore({
           name: 'curreenttid',
           name: 'curreenttid',
           content: this.curreenttid,
           content: this.curreenttid,
           type: true, // sessionStorage
           type: true, // sessionStorage
         });
         });
-      }
-    }
-  },
+      next();
+    },
+   
+
     methods: {
     methods: {
       //获取符号字典
       //获取符号字典
       getFqOptions(){
       getFqOptions(){
@@ -1551,9 +1554,11 @@ import { getStore, setStore } from "@/util/store";
 }
 }
 .box-card-content2{
 .box-card-content2{
   margin-top: 10px;
   margin-top: 10px;
-
+// border: 1px solid red;
+height: calc(100vh - 270px);
 
 
   .box-card-content2-title{
   .box-card-content2-title{
+    margin-top: 10px;
     color:  rgba(130, 130, 130, 1);
     color:  rgba(130, 130, 130, 1);
     font-size: 10px;;
     font-size: 10px;;
     width: 98%;
     width: 98%;
@@ -1634,10 +1639,20 @@ import { getStore, setStore } from "@/util/store";
   // 可选: 添加上边框
   // 可选: 添加上边框
   border-top: 1px solid #EBEEF5;
   border-top: 1px solid #EBEEF5;
 }
 }
+.box-card-content2-top{
+  display: flex;
+  flex-direction: column;
+  height: 50%;
+  // border: 1px solid orangered;
+
+}
 .box-card-content2-list{
 .box-card-content2-list{
   margin-top: 20px;
   margin-top: 20px;
-  height: 250px;
+
+  // height: 250px;
   overflow-y: auto;
   overflow-y: auto;
+  // border: 1px solid blue;
+
   
   
   .eg{
   .eg{
     color:rgba(37, 80, 162, 1);
     color:rgba(37, 80, 162, 1);