walter 11 månader sedan
förälder
incheckning
90a254b271
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/point/views/setting/pk.vue

+ 3 - 3
src/point/views/setting/pk.vue

@@ -34,7 +34,7 @@
         </div>
         <el-tabs v-if=" currentDoc && currentDoc.teams.length > 0 " v-model="activeTeam"  type="border-card" closable @tab-remove="removeTeam" v-loading="contentLoading">
           <el-tab-pane v-for="(team,index) in currentDoc.teams" :key="index" :name="index.toString()" :label="team.name" >
-            <el-table :data="team.employees" v-if="activeTeam == index.toString()"> <!--v-if="activeTeam == index.toString()"防止标签切换抖动-->
+            <el-table :data="team.employees" v-if="activeTeam === index.toString()"> <!--v-if="activeTeam == index.toString()"防止标签切换抖动-->
               <el-table-column label="员工" align="left" width="200">
                 <template slot-scope="scope">
                   <userImage class="fl" :id="scope.row.id" :user_name="scope.row.name" :img_url="scope.row.img_url" width="50px" height="50px"></userImage>
@@ -226,7 +226,7 @@ export default {
       contentLoading: false,
       currentDoc: null,
       currentTeam: null,
-      activeTeam: 0,
+      activeTeam: "0",
       docList: [],
       isUpdateDoc: false,
       isUpdateTeam: false,
@@ -443,7 +443,7 @@ export default {
       this.$axiosUser('get','/api/pro/pk/doc/info',{doc_id:doc.id})
         .then(res => {
           this.currentDoc = res.data.data;
-          this.activeTeam = 0;    //只能在这里设置不能在开头初始化
+          this.activeTeam = "0";    //只能在这里设置不能在开头初始化
           if (this.currentDoc.teams.length > 0) this.currentTeam = this.currentDoc.teams[0];
         })
         .finally(() => {