style:登记薄
Showing
1 changed file
with
14 additions
and
4 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-12-20 17:31:14 | 4 | * @LastEditTime: 2024-01-18 11:21:59 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="tableBox"> | 7 | <div class="tableBox"> |
| ... | @@ -74,7 +74,7 @@ | ... | @@ -74,7 +74,7 @@ |
| 74 | <el-link v-if="['zxywh', 'ywh'].includes(item.prop)" | 74 | <el-link v-if="['zxywh', 'ywh'].includes(item.prop)" |
| 75 | @click="handleSelectYwh(row, row[item.prop])" | 75 | @click="handleSelectYwh(row, row[item.prop])" |
| 76 | type="primary">{{ row[item.prop] }}</el-link> | 76 | type="primary">{{ row[item.prop] }}</el-link> |
| 77 | <span v-if="!['qszt','ywh', 'zxywh'].includes(item.prop)">{{ getLable(item.prop,row[item.prop]) }}</span> | 77 | <span v-if="!['qszt','ywh', 'zxywh'].includes(item.prop)">{{ getLable(item.prop,row[item.prop],row) }}</span> |
| 78 | </p> | 78 | </p> |
| 79 | 79 | ||
| 80 | <el-tooltip | 80 | <el-tooltip |
| ... | @@ -139,7 +139,7 @@ | ... | @@ -139,7 +139,7 @@ |
| 139 | }; | 139 | }; |
| 140 | }, | 140 | }, |
| 141 | methods: { | 141 | methods: { |
| 142 | getLable (prop, label) { | 142 | getLable (prop, label, row) { |
| 143 | const ztObj = { | 143 | const ztObj = { |
| 144 | 0: '否', | 144 | 0: '否', |
| 145 | 1: '是' | 145 | 1: '是' |
| ... | @@ -158,9 +158,19 @@ | ... | @@ -158,9 +158,19 @@ |
| 158 | }, | 158 | }, |
| 159 | default: (label) => label | 159 | default: (label) => label |
| 160 | }; | 160 | }; |
| 161 | |||
| 162 | const strategy = strategies[prop] || strategies.default; | 161 | const strategy = strategies[prop] || strategies.default; |
| 162 | if (prop == 'bdbzzqse') { | ||
| 163 | console.log(row); | ||
| 164 | let title = '' | ||
| 165 | if (row.jedw == 2) { | ||
| 166 | title = strategy(label) + '万元' | ||
| 167 | } else if (row.jedw == 1) { | ||
| 168 | title = strategy(label) + '元' | ||
| 169 | } | ||
| 170 | return title | ||
| 171 | } else { | ||
| 163 | return strategy(label); | 172 | return strategy(label); |
| 173 | } | ||
| 164 | }, | 174 | }, |
| 165 | openPrint () { | 175 | openPrint () { |
| 166 | this.render = true; | 176 | this.render = true; | ... | ... |
-
Please register or sign in to post a comment