需求(数据属于超级管理员创建则不可批量删除)

1、效果图

iview table 表格前面复选框置灰

 

2、需要代码

在后台返回数据的时候加入disable属性

代码截图

iview table 表格前面复选框置灰

 

 

that.data1 = result.list;
that.loading = false;
for (var i = 0; i < that.data1.length; i++) {
     if (that.data1[i].isAdminUse == 1) {
          that.data1[i]['_disabled'] = true
     }
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-01-22
  • 2021-10-04
猜你喜欢
  • 2021-07-02
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案