@@ -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);
@@ -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);