Przeglądaj źródła

修改按钮bug

yf_yx 3 lat temu
rodzic
commit
b40287b27b
1 zmienionych plików z 3 dodań i 1 usunięć
  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'
     }
   },