Browse Source

慢病指标添加确定bug修改2058

zhouna 6 years ago
parent
commit
d5d5a26ae2

+ 5 - 4
src/components/icss/AddChronicAndIndexRelation.vue

@@ -149,9 +149,10 @@
             this.diagList=[]
         },
         focuInput() {
-            this.$refs['diagList'].style.display='none'
-             this.$refs['indexList'].style.display='none'
-            
+          if(this.$refs){
+            this.$refs['diagList'].style.display='none';
+            this.$refs['indexList'].style.display='none';
+          }
         },
         searchIndex() {
              const param = {
@@ -219,7 +220,7 @@
                     setTimeout(() => {
                       //返回带搜索条件的首页
                     this.$router.push({
-                        path:'ChronicAndIndexRelation',
+                        name:'ChronicAndIndexRelation',
                       params: Object.assign({}, this.$route.params, {currentPage: 1})
                     })
                     }, 1000);

+ 0 - 1
src/components/icss/ChronicAndIndexRelation.vue

@@ -120,7 +120,6 @@ export default {
   },
   beforeRouteEnter(to, from, next) {
     next(vm => {
-      console.log(to.params)
       //const pm = to.param;
       Object.assign(vm, to.params);
     })