列表状态显示
This commit is contained in:
@@ -55,9 +55,9 @@
|
|||||||
<el-table-column label="ID" align="center" prop="id" />
|
<el-table-column label="ID" align="center" prop="id" />
|
||||||
<el-table-column label="项目状态" align="center" prop="state" >
|
<el-table-column label="项目状态" align="center" prop="state" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="success" v-if="scope.row.state == 0">计划中</el-button>
|
<el-button type="success" v-if="scope.row.state == 'PLAN'">计划中</el-button>
|
||||||
<el-button type="success" v-if="scope.row.state == 1">进行中</el-button>
|
<el-button type="success" v-if="scope.row.state == 'READY'">进行中</el-button>
|
||||||
<el-button type="success" v-if="scope.row.state == 2">已完成</el-button>
|
<el-button type="success" v-if="scope.row.state == 'STARTED'">已完成</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="项目名" align="center" prop="name" />
|
<el-table-column label="项目名" align="center" prop="name" />
|
||||||
|
|||||||
@@ -49,13 +49,13 @@
|
|||||||
<el-table-column label="任务ID" fixed align="center" prop="id" />
|
<el-table-column label="任务ID" fixed align="center" prop="id" />
|
||||||
<el-table-column label="任务状态" fixed align="center" prop="status" >
|
<el-table-column label="任务状态" fixed align="center" prop="status" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="success" v-if="scope.row.status == 0">计划中</el-button>
|
<el-button type="success" v-if="scope.row.status == 'PLAN'">计划中</el-button>
|
||||||
<el-button type="success" v-if="scope.row.status == 1">准备中</el-button>
|
<el-button type="success" v-if="scope.row.status == 'READY'">准备中</el-button>
|
||||||
<el-button type="success" v-if="scope.row.status == 2">已开始</el-button>
|
<el-button type="success" v-if="scope.row.status == 'STARTED'">已开始</el-button>
|
||||||
<el-button type="danger" v-if="scope.row.status == 3">异常状态</el-button>
|
<el-button type="danger" v-if="scope.row.status == 'EXCEPTION'">异常状态</el-button>
|
||||||
<el-button type="success" v-if="scope.row.status == 4">任务完成</el-button>
|
<el-button type="success" v-if="scope.row.status == 'COMPLETE'">任务完成</el-button>
|
||||||
<el-button type="danger" v-if="scope.row.status == 5">返工</el-button>
|
<el-button type="danger" v-if="scope.row.status == 'RETRY'">返工</el-button>
|
||||||
<el-button type="danger" v-if="scope.row.status == 6">任务关闭</el-button>
|
<el-button type="danger" v-if="scope.row.status == 'END'">任务关闭</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="项目名" fixed align="center" prop="projectName">
|
<el-table-column label="项目名" fixed align="center" prop="projectName">
|
||||||
|
|||||||
Reference in New Issue
Block a user