Commit 1c501d7762e51b6621938edaf96edcf962287673

Authored by zhangdaiscott
1 parent aa948a1c

字典明细禁用样式

ant-design-vue-jeecg/src/views/system/DictItemList.vue
... ... @@ -58,6 +58,7 @@
58 58 :pagination="ipagination"
59 59 :loading="loading"
60 60 @change="handleTableChange"
  61 + :rowClassName="getRowClassname"
61 62 >
62 63  
63 64 <span slot="action" slot-scope="text, record">
... ... @@ -200,8 +201,22 @@
200 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 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 222 </style>
208 223 \ No newline at end of file
... ...