changed the way how task is saved to database

This commit is contained in:
Marvin Zhang
2019-03-13 21:33:47 +08:00
parent e7ec1259a8
commit 6ed8a449ce
9 changed files with 59 additions and 34 deletions

View File

@@ -20,7 +20,7 @@
width="100">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.status === 'SUCCESS'">SUCCESS</el-tag>
<el-tag type="warning" v-else-if="scope.row.status === 'PENDING'">PENDING</el-tag>
<el-tag type="warning" v-else-if="scope.row.status === 'STARTED'">STARTED</el-tag>
<el-tag type="danger" v-else-if="scope.row.status === 'FAILURE'">FAILURE</el-tag>
<el-tag type="info" v-else>{{scope.row['status']}}</el-tag>
</template>