持续优化

This commit is contained in:
2023-04-18 14:33:31 +08:00
parent 8e853a51be
commit e7c6081ea6
10 changed files with 31 additions and 17 deletions

View File

@@ -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() {