lex-xin %!s(int64=4) %!d(string=hai) anos
pai
achega
71f31fd2ed

+ 1 - 1
src/views/arrearage-students/modals/list.vue

@@ -84,7 +84,7 @@
         label="操作"
       >
         <template slot-scope="scope">
-          <el-button v-if="scope.row.paymentStatus == 'NON_PAYMENT' && permission('musicGroupPaymentCalenderDetail/qrCodeLook')" type="text" @click="openCode(scope.row)">查看二维码</el-button>
+          <el-button v-if="scope.row.paymentStatus == 'NON_PAYMENT' && $helpers.permission('musicGroupPaymentCalenderDetail/qrCodeLook')" type="text" @click="openCode(scope.row)">查看二维码</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 4 - 3
src/views/teacherManager/teacherDetail/index.vue

@@ -150,10 +150,10 @@ export default {
 
   },
 
-  created () {
+  mounted () {
       this.teacherName = this.$route.query.teacherName;
-        this.teacherId = this.$route.query.teacherId
-    this.activeName = "0";
+      this.teacherId = this.$route.query.teacherId
+      this.activeName = "0";
       teacherGet({ teacherId: this.teacherId }).then(res => {
         if (res.code == 200) {
          this.teacherInfos = res.data
@@ -162,6 +162,7 @@ export default {
       })
   },
   methods: {
+    permission,
     handleClick (val, event) {
       this.activeName = val.name;
       // this.activeStatus[val.name] = true