yf_yx 3 лет назад
Родитель
Сommit
b40287b27b
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      test/src/views/home/index.vue

+ 3 - 1
test/src/views/home/index.vue

@@ -120,12 +120,14 @@
               <el-button
                 size="mini"
                 type="success"
+                :disabled="scope.row.state_name === 'RUNNING' ? false : true"
                 @click="handlestop(scope.$index, scope.row)"
                 >停止</el-button
               >
               <el-button
                 size="mini"
                 type="danger"
+               
                 @click="remove(scope.$index, scope.row)"
                 >删除</el-button
               >
@@ -639,7 +641,7 @@ export default {
       )
     },
     diskResidue () {
-      return this.diskTotal.split('G')[0] - this.disk_used.split('G')[0] + 'G'
+      return (this.diskTotal.split('G')[0] - this.disk_used.split('G')[0]).toFixed(1) + 'G'
     }
   },