diff --git a/src/App.vue b/src/App.vue index 3b897de..4bcd199 100644 --- a/src/App.vue +++ b/src/App.vue @@ -89,30 +89,6 @@ body, font-size: 14px; } -.ant-layout-header { - height: 48px; - line-height: 48px; - padding: 0 16px; - border-bottom: 1px solid #cccccc; -} - -.ant-layout-sider { - width: 300px !important; - max-width: 300px !important; - min-width: 300px !important; - border-right: 1px solid #cccccc; - flex: 0 0 300px !important; -} - -.project-detail { - width: 400px !important; - max-width: 400px !important; - min-width: 400px !important; - border-right: 1px solid #cccccc; - flex: 0 0 400px !important; - background: #fff; -} - .font-14 { font-size: 14px !important; } @@ -133,43 +109,6 @@ body, color: #cccccc !important; } -.ant-form label { - display: block; - margin-bottom: 5px; -} - -/* 全局提示 */ -.ant-message { - position: fixed; - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - color: rgba(0, 0, 0, 0.85); - z-index: 9999; -} - -.ant-message .ant-message-notice { - margin: 10px 0; - padding: 8px 16px; - background: #fff; - -moz-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12); - -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12); - box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12); - border-radius: 3px; -} - -.ant-message .ant-message-custom-content { - display: flex; - align-items: center; -} - -.ant-message .ant-message-custom-content .anticon { - margin-right: 8px; - color: #1890ff; - font-size: 16px; -} - .border { border-width: 1px; } @@ -187,11 +126,26 @@ body, padding-right: 0.75rem; } +.px-5 { + padding-left: 1.25rem; + padding-right: 1.25rem; +} + .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } +.py-3 { + padding-top: 0.75rem; + padding-bottom: 0.75rem; +} + +.py-4 { + padding-top: 1rem; + padding-bottom: 1rem; +} + .text-xs { font-size: 0.75rem; line-height: 1rem; @@ -212,10 +166,105 @@ body, color: rgba(255, 255, 255, var(--tw-text-opacity)); } +.bg-black { + --tw-bg-opacity: 1; + background-color: rgba(0, 0, 0, var(--tw-bg-opacity)); +} + +.bg-gray-200 { + --tw-bg-opacity: 1; + background-color: rgba(229, 231, 235, var(--tw-bg-opacity)); +} + +.bg-opacity-50 { + --tw-bg-opacity: 0.5; +} + .rounded-md { border-radius: 0.375rem; } +.h-screen { + height: 100vh; +} + +.w-screen { + width: 100vw; +} + +.fixed { + position: fixed; +} + +.z-10 { + z-index: 10; +} + +.font-bold { + font-weight: 700; +} + +.ant-layout-header { + height: 48px; + line-height: 48px; + padding: 0 16px; + border-bottom: 1px solid #cccccc; +} + +.ant-layout-sider { + width: 300px !important; + max-width: 300px !important; + min-width: 300px !important; + border-right: 1px solid #cccccc; + flex: 0 0 300px !important; +} + +.project-detail { + width: 400px !important; + max-width: 400px !important; + min-width: 400px !important; + border-right: 1px solid #cccccc; + flex: 0 0 400px !important; + background: #fff; +} + +.ant-form label { + display: block; + margin-bottom: 5px; +} + +/* 全局提示 */ +.ant-message { + position: fixed; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + color: rgba(0, 0, 0, 0.85); + z-index: 9999; +} + +.ant-message .ant-message-notice { + margin: 10px 0; + padding: 8px 16px; + background: #fff; + -moz-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12); + -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12); + box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12); + border-radius: 3px; +} + +.ant-message .ant-message-custom-content { + display: flex; + align-items: center; +} + +.ant-message .ant-message-custom-content .anticon { + margin-right: 8px; + color: #1890ff; + font-size: 16px; +} + /* 任务面板 */ .task-card-plugin { padding: 12px; diff --git a/src/plugins/p-daily-account/p-daily-account-detail.vue b/src/plugins/p-daily-account/p-daily-account-detail.vue index bbcead8..fe9c710 100644 --- a/src/plugins/p-daily-account/p-daily-account-detail.vue +++ b/src/plugins/p-daily-account/p-daily-account-detail.vue @@ -447,7 +447,7 @@ async function handleExport() { } // 改变单元格颜色 -function rowClassName(record, index) { +function rowClassName(record) { const bgColor = record.bgColor ? 'bg-style-color' : ''; return bgColor; } diff --git a/src/utils/axios.js b/src/utils/axios.js index 6476a53..d97cc40 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -76,12 +76,11 @@ instance.interceptors.response.use( return Promise.reject(msg); }, error => { - console.log('error', error); if (error.response && error.response.data) { const msg = error.response.data.message; message.error(msg); } else { - message.error(error.message); + message.error(error.message || '请求失败'); } return Promise.reject(error); },