guhongwei пре 5 година
родитељ
комит
01da7dbee5
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 2 2
      src/layout/common/topInfo.vue
  2. 1 0
      src/views/financial/index.vue

+ 2 - 2
src/layout/common/topInfo.vue

@@ -9,7 +9,7 @@
           </el-breadcrumb>
           </el-breadcrumb>
         </el-col>
         </el-col>
         <el-col :span="2">
         <el-col :span="2">
-          <el-button type="text" @click="clickBtn" icon="el-icon-plus">添加信息</el-button>
+          <el-button type="text" @click="clickBtn()" icon="el-icon-plus">添加信息</el-button>
         </el-col>
         </el-col>
       </el-col>
       </el-col>
     </el-row>
     </el-row>
@@ -28,7 +28,7 @@ export default {
   computed: {},
   computed: {},
   methods: {
   methods: {
     clickBtn() {
     clickBtn() {
-      this.$$emit('clickBtn');
+      this.$emit('clickBtn');
     },
     },
   },
   },
 };
 };

+ 1 - 0
src/views/financial/index.vue

@@ -42,6 +42,7 @@ export default {
   computed: {},
   computed: {},
   methods: {
   methods: {
     clickBtn() {
     clickBtn() {
+      console.log('你好');
       this.$router.push({ path: '/financial/detail' });
       this.$router.push({ path: '/financial/detail' });
     },
     },
   },
   },