解决飞行器设备报错

This commit is contained in:
hr121 2025-08-01 14:39:47 +08:00
parent b5b1d4ce5b
commit 5ab577c0a9

View File

@ -216,9 +216,9 @@
<template slot-scope="scope"> <template slot-scope="scope">
{{ {{
scope.row.useType === 0 scope.row.useType === 0
? "载物" ? "载物行"
: scope.row.useType === 1 : scope.row.useType === 1
? "载人" ? "载人行"
: "其他" : "其他"
}} }}
</template> </template>
@ -320,7 +320,7 @@ export default {
name: undefined, name: undefined,
}, },
initData: (crud, data) => { initData: (crud, data) => {
crud.page.total = data.total; crud.page.total = Number(data.total);
// id // id
const records = data.records || []; const records = data.records || [];
crud.data = records.map(item => ({ crud.data = records.map(item => ({