|
@@ -28,12 +28,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="操作" width="300px" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" size="small" @click="handleUpdate(scope.row, false)">编辑</el-button>
|
|
|
- <el-button v-if="scope.row.status == 0" type="success" size="small"
|
|
|
+ <el-button :disabled="scope.row.status == 1?true:false" type="primary" size="small" @click="handleUpdate(scope.row, false)">编辑</el-button>
|
|
|
+ <el-button :disabled="scope.row.status == 1?true:false" v-if="scope.row.status == 0" type="success" size="small"
|
|
|
@click="changeState(scope.row.commendId, 1)">开启</el-button>
|
|
|
- <el-button v-if="scope.row.status == 1" type="warning" size="small"
|
|
|
+ <el-button :disabled="scope.row.status == 1?true:false" v-if="scope.row.status == 1" type="warning" size="small"
|
|
|
@click="changeState(scope.row.commendId, 0)">关闭</el-button>
|
|
|
- <el-button type="danger" size="mini" @click="handleDelete(scope.row.commendId, -1)">删除</el-button>
|
|
|
+ <el-button :disabled="scope.row.status == 1?true:false" type="danger" size="mini" @click="handleDelete(scope.row.commendId, -1)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|