Ver código fonte

BuildDeploy.vue 添加刷新按钮

reghao 3 meses atrás
pai
commit
77dd9308a7
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/views/devops/app/BuildDeploy.vue

+ 4 - 0
src/views/devops/app/BuildDeploy.vue

@@ -29,6 +29,7 @@
             :value="item.value"
           />
         </el-select>
+        <el-button type="success" icon="el-icon-refresh" style="margin-left: 5px" @click="onRefresh">刷新</el-button>
         <el-button type="text" style="margin-left: 5px" @click="handleBuildTask">构建任务</el-button>
         <el-button type="text" style="margin-left: 5px" @click="handleResetStat">重置状态</el-button>
       </el-row>
@@ -817,6 +818,9 @@ export default {
         this.$message.error(error.message)
       })
     },
+    onRefresh() {
+      this.getData()
+    },
     onSelectChange() {
       this.currentPage = 1
       this.queryInfo.pn = 1