| | |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :rowClassName="tableRowClass" |
| | | :loading="loading" |
| | | @change="handleTableChange"> |
| | | |
| | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import '@/assets/less/TableExpand.less' |
| | | |
| | | export default { |
| | | name: "ABCAssessmentList", |
| | |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | tableRowClass(record, index) { |
| | | if (record.equipmentImportanceId!==record.finalStandard) { |
| | | return 'primary' |
| | | } |
| | | |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | <style lang="less" scoped> |
| | | @import '~@assets/less/common.less'; |
| | | /deep/.primary { |
| | | color: rgb(0, 115, 255); |
| | | font-weight: bold; |
| | | } |
| | | </style> |
| | |
| | | return { |
| | | description: '设备ABC评价管理页面', |
| | | // 表头 |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | |
| | | } |
| | | }, |
| | | { |
| | | title: '关键设备?', |
| | | title: '关键设备', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment', |
| | | scopedSlots: { customRender: 'specificEquipment' } |
| | |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | <style lang="less" scoped> |
| | | @import '~@assets/less/common.less'; |
| | | .error { |
| | | |
| | | /deep/.error { |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | .primary { |
| | | |
| | | /deep/.primary { |
| | | color: rgb(255, 0, 251); |
| | | font-weight: bold; |
| | | } |