Prechádzať zdrojové kódy

feat: 电子稳相终止接口对接,前端优化

WANGKANG 9 mesiacov pred
rodič
commit
0b66f84687
1 zmenil súbory, kde vykonal 14 pridanie a 2 odobranie
  1. 14 2
      src/views/demo/videoStable/index.vue

+ 14 - 2
src/views/demo/videoStable/index.vue

@@ -19,7 +19,13 @@
       </template>
       <!-- 表格操作 -->
       <template #operation="scope">
-        <el-button type="primary" link icon="View" @click="startVideoStable(scope.row)" v-if="scope.row.status == '0' || scope.row.status == '3'">
+        <el-button
+          type="primary"
+          link
+          icon="View"
+          @click="startVideoStable(scope.row)"
+          v-if="scope.row.status == '0' || scope.row.status == '3' || scope.row.status == '4'"
+        >
           开始
         </el-button>
         <el-popconfirm title="确定终止此任务吗?" @confirm="stopVideoStable(scope.row)" v-if="scope.row.status == '1'">
@@ -260,7 +266,7 @@ const statusEnums: EnumProps[] = [
     tagType: 'primary'
   },
   {
-    label: '已结束',
+    label: '完成',
     value: '2',
     disabled: false,
     tagType: 'success'
@@ -270,6 +276,12 @@ const statusEnums: EnumProps[] = [
     value: '3',
     disabled: false,
     tagType: 'danger'
+  },
+  {
+    label: '已中断',
+    value: '4',
+    disabled: false,
+    tagType: 'default'
   }
 ]