Showing
1 changed file
with
9 additions
and
6 deletions
| ... | @@ -86,17 +86,20 @@ | ... | @@ -86,17 +86,20 @@ |
| 86 | <el-button | 86 | <el-button |
| 87 | type="text" | 87 | type="text" |
| 88 | size="mini" | 88 | size="mini" |
| 89 | - icon="el-icon-video-play" | 89 | + icon="el-icon-video-pause" |
| 90 | - @click="changeStatus(scope.row.id, 1)" | 90 | + @click="changeStatus(scope.row.id, 3)" |
| 91 | - >启用</el-button | 91 | + v-if="scope.row.status == '1'" |
| 92 | + >停用</el-button | ||
| 92 | > | 93 | > |
| 93 | <el-button | 94 | <el-button |
| 94 | type="text" | 95 | type="text" |
| 95 | size="mini" | 96 | size="mini" |
| 96 | - icon="el-icon-video-pause" | 97 | + icon="el-icon-video-play" |
| 97 | - @click="changeStatus(scope.row.id, 3)" | 98 | + @click="changeStatus(scope.row.id, 1)" |
| 98 | - >停用</el-button | 99 | + v-else |
| 100 | + >启用</el-button | ||
| 99 | > | 101 | > |
| 102 | + | ||
| 100 | </template> | 103 | </template> |
| 101 | </el-table-column> | 104 | </el-table-column> |
| 102 | </el-table> | 105 | </el-table> | ... | ... |
-
Please register or login to post a comment