Commit 1c501d7762e51b6621938edaf96edcf962287673
1 parent
aa948a1c
字典明细禁用样式
Showing
1 changed file
with
16 additions
and
1 deletions
ant-design-vue-jeecg/src/views/system/DictItemList.vue
@@ -58,6 +58,7 @@ | @@ -58,6 +58,7 @@ | ||
58 | :pagination="ipagination" | 58 | :pagination="ipagination" |
59 | :loading="loading" | 59 | :loading="loading" |
60 | @change="handleTableChange" | 60 | @change="handleTableChange" |
61 | + :rowClassName="getRowClassname" | ||
61 | > | 62 | > |
62 | 63 | ||
63 | <span slot="action" slot-scope="text, record"> | 64 | <span slot="action" slot-scope="text, record"> |
@@ -200,8 +201,22 @@ | @@ -200,8 +201,22 @@ | ||
200 | this.screenWidth = 600; | 201 | this.screenWidth = 600; |
201 | } | 202 | } |
202 | }, | 203 | }, |
204 | + //update--begin--autor:wangshuai-----date:20191204------for:系统管理 数据字典禁用和正常区别开,添加背景颜色 teambition JT-22------ | ||
205 | + //增加样式方法返回值 | ||
206 | + getRowClassname(record){ | ||
207 | + if(record.status==0){ | ||
208 | + return "data-rule-invalid" | ||
209 | + } | ||
210 | + } | ||
211 | + //update--end--autor:wangshuai-----date:20191204------for:系统管理 数据字典禁用和正常区别开,添加背景颜色 teambition JT-22------ | ||
203 | } | 212 | } |
204 | } | 213 | } |
205 | </script> | 214 | </script> |
206 | -<style scoped> | 215 | +<style lang="less" scoped> |
216 | +//update--begin--autor:wangshuai-----date:20191204------for:系统管理 数据字典禁用和正常区别开,添加背景颜色 teambition JT-22------ | ||
217 | +/deep/ .data-rule-invalid{ | ||
218 | + background: #f4f4f4; | ||
219 | + color: #bababa; | ||
220 | +} | ||
221 | +//update--begin--autor:wangshuai-----date:20191204------for:系统管理 数据字典禁用和正常区别开,添加背景颜色 teambition JT-22------ | ||
207 | </style> | 222 | </style> |
208 | \ No newline at end of file | 223 | \ No newline at end of file |