shanyunduo.cheng

启用停用只展示一个

......@@ -86,17 +86,20 @@
<el-button
type="text"
size="mini"
icon="el-icon-video-play"
@click="changeStatus(scope.row.id, 1)"
>启用</el-button
icon="el-icon-video-pause"
@click="changeStatus(scope.row.id, 3)"
v-if="scope.row.status == '1'"
>停用</el-button
>
<el-button
type="text"
size="mini"
icon="el-icon-video-pause"
@click="changeStatus(scope.row.id, 3)"
>停用</el-button
icon="el-icon-video-play"
@click="changeStatus(scope.row.id, 1)"
v-else
>启用</el-button
>
</template>
</el-table-column>
</el-table>
......