Browse Source

reactor:测试iframe通信

zhangchong 7 hours ago
parent
commit
3cc4c4ccc9
1 changed files with 10 additions and 4 deletions
  1. 10 4
      src/views/seats/XTRight.vue

+ 10 - 4
src/views/seats/XTRight.vue

@@ -28,16 +28,22 @@
             @command="handleCommand($event, item)"
             @command="handleCommand($event, item)"
             class="seats_item_dropdown"
             class="seats_item_dropdown"
             trigger="click"
             trigger="click"
-            v-if="item.State === '8' && globalState.callCenterIsSignIn"
+            v-if="
+              ['8', '2'].includes(item.State) && globalState.callCenterIsSignIn
+            "
           >
           >
             <el-icon class="seats_item_more" size="18">
             <el-icon class="seats_item_more" size="18">
               <Operation />
               <Operation />
             </el-icon>
             </el-icon>
             <template #dropdown>
             <template #dropdown>
               <el-dropdown-menu>
               <el-dropdown-menu>
-                <el-dropdown-item command="listen">监 听</el-dropdown-item>
-                <el-dropdown-item command="interject">强 插</el-dropdown-item>
-                <el-dropdown-item command="cut">强 拆</el-dropdown-item>
+                <el-dropdown-item command="listen" v-if="item.State == '8'"
+                  >监 听</el-dropdown-item
+                >
+                <template v-if="item.State == '2'">
+                  <el-dropdown-item command="interject">强 插</el-dropdown-item>
+                  <el-dropdown-item command="cut">强 拆</el-dropdown-item>
+                </template>
               </el-dropdown-menu>
               </el-dropdown-menu>
             </template>
             </template>
           </el-dropdown>
           </el-dropdown>