# table 显示行号与 checkbox

onInited () {
      //隐藏checkbox列(默认是显示的)
      this.ck = false;
      //显示序号(默认隐藏)
      this.columnIndex = true;
      //主从明细表配置同上
      //  this.detailOptions.ck = false;
      //  this.detailOptions.columnIndex = true;

      //一对多二级明细表
      this.details.forEach(x=>{
            x.ck = false;
            x.columnIndex=true;
      })

       //一对多三级级明细表
           this.subDetails.forEach(x=>{
            x.ck = false;
            x.columnIndex=true;
      })
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21