style:字典
Showing
1 changed file
with
4 additions
and
11 deletions
... | @@ -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> : | 76 | } |
78 | <el-button type="text" icon="el-icon-view" onClick={() => { this.editClick(scope.row, 2) }}>查看</el-button> | ||
79 | } | ||
80 | </div> | ||
81 | ); | ||
82 | }, | ||
83 | }, | ||
84 | ]), | 77 | ]), |
85 | data: [] | 78 | data: [] |
86 | } | 79 | } | ... | ... |
-
Please register or sign in to post a comment