diff --git a/src/assets/css/tablebg.scss b/src/assets/css/tablebg.scss new file mode 100644 index 0000000..0038abf --- /dev/null +++ b/src/assets/css/tablebg.scss @@ -0,0 +1,7 @@ +/deep/.el-table .warning-row { + background: rgb(253, 255, 255)!important; +} + +/deep/.el-table .success-row { + background: rgb(250, 251, 255)!important; +} \ No newline at end of file diff --git a/src/assets/js/myConfig.js b/src/assets/js/myConfig.js new file mode 100644 index 0000000..be9e5a7 --- /dev/null +++ b/src/assets/js/myConfig.js @@ -0,0 +1,25 @@ +const headerCellStyle = { + 'background-color': 'rgb(235, 239, 255)', + 'color': 'black', + 'font-weight': '700' +} + +const tableRowClassName = function({row, rowIndex}) { + if (rowIndex % 2 === 1) { + return 'warning-row'; + } else if (rowIndex % 2 === 0) { + return 'success-row'; + } + return ''; +} + +const cellStyle = { + padding: 0 +} + + +export { + headerCellStyle, + tableRowClassName, + cellStyle +} \ No newline at end of file diff --git a/src/assets/js/tableRowClassName.js b/src/assets/js/tableRowClassName.js new file mode 100644 index 0000000..5621f19 --- /dev/null +++ b/src/assets/js/tableRowClassName.js @@ -0,0 +1,14 @@ +const tableRowClassName = function({row, rowIndex}) { + if (rowIndex % 2 === 1) { + return 'warning-row'; + } else if (rowIndex % 2 === 0) { + return 'success-row'; + } + return ''; +} + +export { + tableRowClassName +} + +export default tableRowClassName \ No newline at end of file diff --git a/src/pages/manage/list/ImportantCash/controlCash/cashOut.vue b/src/pages/manage/list/ImportantCash/controlCash/cashOut.vue index b7ef1db..325c4d4 100644 --- a/src/pages/manage/list/ImportantCash/controlCash/cashOut.vue +++ b/src/pages/manage/list/ImportantCash/controlCash/cashOut.vue @@ -1,6 +1,6 @@ // 存款