持续优化
This commit is contained in:
@@ -34,6 +34,7 @@ const dealTypeList = ref([
|
||||
},
|
||||
])
|
||||
const deal_types = ref([])
|
||||
const std_price_arr = ['balance','consume']
|
||||
// 生命周期
|
||||
onMounted(() => {
|
||||
queryParams.value.id = parseInt(route.params.user_id)
|
||||
@@ -47,6 +48,15 @@ async function getDealMoneyList() {
|
||||
tableData.value = res.data.records
|
||||
total.value = res.data.total
|
||||
console.log(res.data)
|
||||
for(let item of tableData.value) {
|
||||
for(let prop in item) {
|
||||
if(std_price_arr.includes(prop)) {
|
||||
// console.log(111)
|
||||
item[prop] = Number((item[prop]/100).toFixed(2))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
function onSubmit() {
|
||||
|
Reference in New Issue
Block a user