ソースを参照

reactor:测试iframe通信

zhangchong 9 時間 前
コミット
3cc4c4ccc9
1 ファイル変更10 行追加4 行削除
  1. 10 4
      src/views/seats/XTRight.vue

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

@@ -28,16 +28,22 @@
             @command="handleCommand($event, item)"
             class="seats_item_dropdown"
             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">
               <Operation />
             </el-icon>
             <template #dropdown>
               <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>
             </template>
           </el-dropdown>