fix: 修复物模型无法新增编辑标识
This commit is contained in:
parent
5209abce16
commit
d28fb618a2
|
@ -83,7 +83,7 @@
|
||||||
</template>
|
</template>
|
||||||
<template #other="{ data }">
|
<template #other="{ data }">
|
||||||
<j-tooltip
|
<j-tooltip
|
||||||
v-if="target === 'device' && productNoEdit.id?.includes?.(data.record._sortIndex)"
|
v-if="target === 'device' && productNoEdit.id?.includes?.(data.record.id)"
|
||||||
title="继承自产品物模型的数据不支持修改"
|
title="继承自产品物模型的数据不支持修改"
|
||||||
>
|
>
|
||||||
<!-- <ModelButton :disabled="true"/>-->
|
<!-- <ModelButton :disabled="true"/>-->
|
||||||
|
@ -96,9 +96,9 @@
|
||||||
v-else
|
v-else
|
||||||
v-model:value="data.record.expands"
|
v-model:value="data.record.expands"
|
||||||
:id="data.record.id"
|
:id="data.record.id"
|
||||||
:disabled="target === 'device' && productNoEdit.id?.includes?.(data.record._sortIndex)"
|
:disabled="target === 'device' && productNoEdit.id?.includes?.(data.record.id)"
|
||||||
:record="data.record"
|
:record="data.record"
|
||||||
:tooltip="target === 'device' && productNoEdit.id?.includes?.(data.record._sortIndex) ? {
|
:tooltip="target === 'device' && productNoEdit.id?.includes?.(data.record.id) ? {
|
||||||
title: '继承自产品物模型的数据不支持删除',
|
title: '继承自产品物模型的数据不支持删除',
|
||||||
} : undefined"
|
} : undefined"
|
||||||
:type="data.record.valueType.type"
|
:type="data.record.valueType.type"
|
||||||
|
@ -161,12 +161,12 @@
|
||||||
},
|
},
|
||||||
getPopupContainer: getPopupContainer
|
getPopupContainer: getPopupContainer
|
||||||
}"
|
}"
|
||||||
|
:disabled="target === 'device' && productNoEdit.id?.includes?.(data.record.id)"
|
||||||
:tooltip="{
|
:tooltip="{
|
||||||
placement: 'topRight',
|
placement: 'topRight',
|
||||||
getPopupContainer: getPopupContainer,
|
getPopupContainer: getPopupContainer,
|
||||||
title: target === 'device' && productNoEdit.id?.includes?.(data.record._sortIndex) ? '继承自产品物模型的数据不支持删除' :'删除',
|
title: target === 'device' && productNoEdit.id?.includes?.(data.record.id) ? '继承自产品物模型的数据不支持删除' :'删除',
|
||||||
}"
|
}"
|
||||||
:disabled="target === 'device' && productNoEdit.id?.includes?.(data.record._sortIndex)"
|
|
||||||
>
|
>
|
||||||
<AIcon type="DeleteOutlined" />
|
<AIcon type="DeleteOutlined" />
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
|
|
Loading…
Reference in New Issue