Commit 6c7a47fe13c6d0a107f07a9f8adebe35921577c9
1 parent
5f2a159b
debug
Showing
2 changed files
with
13 additions
and
12 deletions
src/utils/tool.ts
| @@ -45,11 +45,11 @@ export function toDecimal2(x) { | @@ -45,11 +45,11 @@ export function toDecimal2(x) { | ||
| 45 | * @param {string} cFormat 转换格式 | 45 | * @param {string} cFormat 转换格式 |
| 46 | * @returns {string | null} | 46 | * @returns {string | null} |
| 47 | */ | 47 | */ |
| 48 | -export function parseTime(time, cFormat) { | 48 | +export function parseTime(time, cFormat, sep = '-') { |
| 49 | if (arguments.length === 0 || !time) { | 49 | if (arguments.length === 0 || !time) { |
| 50 | return null | 50 | return null |
| 51 | } | 51 | } |
| 52 | - const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' | 52 | + const format = cFormat || `{y}${sep}{m}${sep}{d} {h}:{i}:{s}` |
| 53 | let date | 53 | let date |
| 54 | if (typeof time === 'object') { | 54 | if (typeof time === 'object') { |
| 55 | date = time | 55 | date = time |
src/views/fee/paper.vue
| @@ -110,9 +110,9 @@ const props = withDefaults(defineProps<Props>(), { | @@ -110,9 +110,9 @@ const props = withDefaults(defineProps<Props>(), { | ||
| 110 | <el-col :span="20"> | 110 | <el-col :span="20"> |
| 111 | <div class="paper-table-content"> | 111 | <div class="paper-table-content"> |
| 112 | {{ | 112 | {{ |
| 113 | - parseTime(new Date(paperData.beginTime).getTime()).slice(0, 7) | 113 | + parseTime(new Date(paperData.beginTime).getTime(), "", "/").slice(0, 7) |
| 114 | }} | 114 | }} |
| 115 | - ~ {{ parseTime(new Date(paperData.endTime).getTime()).slice(0, 7) }} | 115 | + - {{ parseTime(new Date(paperData.endTime).getTime(), "", "/").slice(0, 7) }} |
| 116 | </div> | 116 | </div> |
| 117 | </el-col> | 117 | </el-col> |
| 118 | </el-col> | 118 | </el-col> |
| @@ -124,7 +124,7 @@ const props = withDefaults(defineProps<Props>(), { | @@ -124,7 +124,7 @@ const props = withDefaults(defineProps<Props>(), { | ||
| 124 | </el-col> | 124 | </el-col> |
| 125 | <el-col :span="20"> | 125 | <el-col :span="20"> |
| 126 | <div class="paper-table-content"> | 126 | <div class="paper-table-content"> |
| 127 | - {{ parseTime(new Date(paperData.payTime).getTime()) }} | 127 | + {{ parseTime(new Date(paperData.payTime).getTime(), "", "/") }} |
| 128 | </div> | 128 | </div> |
| 129 | </el-col> | 129 | </el-col> |
| 130 | </el-col> | 130 | </el-col> |
| @@ -134,26 +134,27 @@ const props = withDefaults(defineProps<Props>(), { | @@ -134,26 +134,27 @@ const props = withDefaults(defineProps<Props>(), { | ||
| 134 | 134 | ||
| 135 | <style lang="scss" scoped> | 135 | <style lang="scss" scoped> |
| 136 | .paper-table { | 136 | .paper-table { |
| 137 | - border: 1px solid #ebeef5; | 137 | + border-top: 2px solid #000; |
| 138 | + border-left: 2px solid #000; | ||
| 139 | + border-right: 2px solid #000; | ||
| 138 | &-line { | 140 | &-line { |
| 139 | - border-bottom: 1px solid #ebeef5; | 141 | + border-bottom: 2px solid #000; |
| 140 | display: flex; | 142 | display: flex; |
| 141 | } | 143 | } |
| 142 | &-content-right { | 144 | &-content-right { |
| 143 | - border-left: 1px solid #ebeef5; | 145 | + border-left: 2px solid #000; |
| 144 | flex-grow: 1; | 146 | flex-grow: 1; |
| 145 | } | 147 | } |
| 146 | } | 148 | } |
| 147 | .paper-table-label { | 149 | .paper-table-label { |
| 148 | - background-color: #f5f7fa; | ||
| 149 | - line-height: 30px; | 150 | + line-height: 25px; |
| 150 | padding: 10px; | 151 | padding: 10px; |
| 151 | width: 100px; | 152 | width: 100px; |
| 152 | - border-right: 1px solid #ebeef5; | 153 | + border-right: 2px solid #000; |
| 153 | text-align: center; | 154 | text-align: center; |
| 154 | } | 155 | } |
| 155 | .paper-table-content { | 156 | .paper-table-content { |
| 156 | - line-height: 30px; | 157 | + line-height: 25px; |
| 157 | padding: 10px; | 158 | padding: 10px; |
| 158 | } | 159 | } |
| 159 | </style> | 160 | </style> |