c8a6265a by 任超

style:字典

1 parent 64adfe3a
...@@ -68,19 +68,12 @@ export default { ...@@ -68,19 +68,12 @@ export default {
68 columns: datas.columns().concat([ 68 columns: datas.columns().concat([
69 { 69 {
70 label: "操作", 70 label: "操作",
71 width: 170,
72 render: (h, scope) => { 71 render: (h, scope) => {
73 return ( 72 return (
74 <div> 73 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { this.editClick(scope.row, 1) }}>修改</el-button>
75 { 74 )
76 scope.row.isenable == '1' ? 75 }
77 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { this.editClick(scope.row, 1) }}>修改</el-button> :
78 <el-button type="text" icon="el-icon-view" onClick={() => { this.editClick(scope.row, 2) }}>查看</el-button>
79 } 76 }
80 </div>
81 );
82 },
83 },
84 ]), 77 ]),
85 data: [] 78 data: []
86 } 79 }
......