From 70191087bfa6175adc34ca7bbd9b843e7c757e36 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Wed, 15 Dec 2021 18:27:44 +0800 Subject: [PATCH] page_css_table --- src/assets/css/tablebg.scss | 7 ++ src/assets/js/myConfig.js | 25 +++++++ src/assets/js/tableRowClassName.js | 14 ++++ .../ImportantCash/controlCash/cashOut.vue | 72 +++++++++++++++---- .../ImportantCash/controlCash/cashPaid.vue | 22 +++--- .../controlCash/cashRecipients.vue | 23 +++--- .../controlCash/cashTransferInto.vue | 70 ++++++++++++++---- .../ImportantCash/controlCash2/cashOut.vue | 22 +++--- .../ImportantCash/controlCash2/cashPaid.vue | 30 +++----- .../controlCash2/cashRecipients.vue | 30 +++----- .../controlCash2/cashTransferInto.vue | 37 +++++----- .../list/ImportantCash/controlCash3/index.vue | 19 +++-- .../manage/list/acceptanceDraft/invoice.vue | 6 +- src/pages/manage/list/dayEnd/branchDayEnd.vue | 18 +++-- src/pages/manage/list/dayEnd/tellerCash.vue | 31 ++++++-- .../manage/list/dayEnd/tellerCertificate.vue | 16 +++-- .../currentAccount/transferAccounts.vue | 5 +- .../personal/currentAccount/withdrawal.vue | 5 +- .../list/personal/timeDeposit/openAccount.vue | 3 +- .../personal/usefulPhrases/openAccount.vue | 3 +- .../list/servicesAccount/passwordChange.vue | 3 +- .../list/servicesAccount/passwordLost.vue | 3 +- .../list/servicesAccount/relieveLost.vue | 3 +- src/store/modules/system.js | 12 ++++ 24 files changed, 327 insertions(+), 152 deletions(-) create mode 100644 src/assets/css/tablebg.scss create mode 100644 src/assets/js/myConfig.js create mode 100644 src/assets/js/tableRowClassName.js 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 @@ // 存款