1
Showing
1 changed file
with
9 additions
and
5 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-01-26 16:13:12 | 4 | * @LastEditTime: 2024-01-30 16:47:02 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="tableBox"> | 7 | <div class="tableBox"> |
| ... | @@ -159,18 +159,22 @@ | ... | @@ -159,18 +159,22 @@ |
| 159 | default: (label) => label | 159 | default: (label) => label |
| 160 | }; | 160 | }; |
| 161 | const strategy = strategies[prop] || strategies.default; | 161 | const strategy = strategies[prop] || strategies.default; |
| 162 | if (prop == 'bdbzzqse') { | 162 | if (['zgzqse', 'bdbzzqse'].includes(prop)) { |
| 163 | let title = strategy(label) | 163 | let title = strategy(label) ? strategy(label) : '' |
| 164 | if (row.jedw == 2) { | 164 | if (strategy(label) && row.jedw == 2) { |
| 165 | title = title + '万元' | 165 | title = title + '万元' |
| 166 | } else if (row.jedw == 1) { | 166 | } else if (strategy(label) && row.jedw == 1) { |
| 167 | title = title + '元' | 167 | title = title + '元' |
| 168 | } | 168 | } |
| 169 | return title | 169 | return title |
| 170 | } else if (prop == 'dymj' && row.mjdw) { | 170 | } else if (prop == 'dymj' && row.mjdw) { |
| 171 | let arr = store.getters.dictData['A7'].filter(item => item.dcode === row.mjdw); | 171 | let arr = store.getters.dictData['A7'].filter(item => item.dcode === row.mjdw); |
| 172 | if (strategy(label)) { | ||
| 172 | return strategy(label) + arr[0].dname | 173 | return strategy(label) + arr[0].dname |
| 173 | } else { | 174 | } else { |
| 175 | return strategy(label) | ||
| 176 | } | ||
| 177 | } else { | ||
| 174 | return strategy(label); | 178 | return strategy(label); |
| 175 | } | 179 | } |
| 176 | }, | 180 | }, | ... | ... |
-
Please register or sign in to post a comment