forked from integrated_whb/integrated_whb_vue
修复清单管理table的row-key写成变量报错
parent
13b86add48
commit
077432b715
|
@ -85,7 +85,7 @@
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
:data="list"
|
:data="list"
|
||||||
:row-key="name === 'risk' ? LISTMANAGER_ID : CUSTOM_ID"
|
:row-key="name === 'risk' ? 'LISTMANAGER_ID' : 'CUSTOM_ID'"
|
||||||
@get-data="fnGetDataTransfer"
|
@get-data="fnGetDataTransfer"
|
||||||
>
|
>
|
||||||
<el-table-column reserve-selection type="selection" width="55" />
|
<el-table-column reserve-selection type="selection" width="55" />
|
||||||
|
|
|
@ -174,7 +174,7 @@ const props = defineProps({
|
||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
whetherHazards: {
|
whetherHazards: {
|
||||||
type: String,
|
type: [String, Number],
|
||||||
required: true,
|
required: true,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
:data="list"
|
:data="list"
|
||||||
:row-key="name === 'risk' ? LISTMANAGER_ID : CUSTOM_ID"
|
:row-key="name === 'risk' ? 'LISTMANAGER_ID' : 'CUSTOM_ID'"
|
||||||
@get-data="fnGetDataTransfer"
|
@get-data="fnGetDataTransfer"
|
||||||
>
|
>
|
||||||
<el-table-column reserve-selection type="selection" width="55" />
|
<el-table-column reserve-selection type="selection" width="55" />
|
||||||
|
|
Loading…
Reference in New Issue