Browse Source

表彰列表操作权限修改

sunlupeng 1 year ago
parent
commit
9f6205d49e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/commendManage/commendList.vue

+ 4 - 4
src/views/commendManage/commendList.vue

@@ -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>