修复清单管理table的row-key写成变量报错

pull/3/head
LiuJiaNan 2024-02-29 10:37:01 +08:00
parent 13b86add48
commit 077432b715
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@
ref="tableRef"
v-model:pagination="pagination"
:data="list"
:row-key="name === 'risk' ? LISTMANAGER_ID : CUSTOM_ID"
:row-key="name === 'risk' ? 'LISTMANAGER_ID' : 'CUSTOM_ID'"
@get-data="fnGetDataTransfer"
>
<el-table-column reserve-selection type="selection" width="55" />

View File

@ -174,7 +174,7 @@ const props = defineProps({
default: () => ({}),
},
whetherHazards: {
type: String,
type: [String, Number],
required: true,
default: "",
},

View File

@ -92,7 +92,7 @@
ref="tableRef"
v-model:pagination="pagination"
:data="list"
:row-key="name === 'risk' ? LISTMANAGER_ID : CUSTOM_ID"
:row-key="name === 'risk' ? 'LISTMANAGER_ID' : 'CUSTOM_ID'"
@get-data="fnGetDataTransfer"
>
<el-table-column reserve-selection type="selection" width="55" />