parent
035281ba06
commit
e6205e6602
|
@ -61,10 +61,11 @@
|
|||
title="继承自产品物模型的数据不支持修改"
|
||||
>
|
||||
<!-- <ModelButton :disabled="true"/>-->
|
||||
<j-button :disabled="true" type="link" style="padding-left: 0;">
|
||||
<AIcon type="SettingOutlined" />
|
||||
配置
|
||||
</j-button>
|
||||
<j-button :disabled="true" type="link" >
|
||||
<AIcon type="SettingOutlined" />
|
||||
配置
|
||||
</j-button>
|
||||
|
||||
</j-tooltip>
|
||||
<PermissionButton
|
||||
v-else
|
||||
|
@ -93,7 +94,7 @@
|
|||
title="继承自产品物模型的数据不支持修改"
|
||||
>
|
||||
<!-- <ModelButton :disabled="true"/>-->
|
||||
<j-button :disabled="true" type="link" style="padding-left: 0;">
|
||||
<j-button :disabled="true" type="link">
|
||||
<AIcon type="SettingOutlined" />
|
||||
配置
|
||||
</j-button>
|
||||
|
@ -116,30 +117,29 @@
|
|||
</j-tag>
|
||||
</template>
|
||||
<template #other="{ data }">
|
||||
<j-tooltip
|
||||
<!-- <j-tooltip
|
||||
v-if="target === 'device' && productNoEdit.id?.includes?.(data.record.id)"
|
||||
title="继承自产品物模型的数据不支持修改"
|
||||
>
|
||||
> -->
|
||||
<!-- <ModelButton :disabled="true"/>-->
|
||||
<j-button :disabled="true" type="link" style="padding-left: 0;">
|
||||
<!-- <j-button :disabled="true" type="link" style="padding-left: 0;">
|
||||
<AIcon type="SettingOutlined" />
|
||||
配置
|
||||
</j-button>
|
||||
</j-tooltip>
|
||||
</j-button> -->
|
||||
<!-- </j-tooltip> -->
|
||||
<PermissionButton
|
||||
v-else
|
||||
:has-permission="`${permission}:update`"
|
||||
type="link"
|
||||
key="setting"
|
||||
:tooltip="target === 'device' && productNoEdit.id?.includes?.(data.record.id) ? {
|
||||
title: '继承自产品物模型的数据不支持删除',
|
||||
} : undefined"
|
||||
>
|
||||
<OtherSetting
|
||||
v-model:value="data.record.expands"
|
||||
:id="data.record.id"
|
||||
:disabled="target === 'device' && productNoEdit.id?.includes?.(data.record.id)"
|
||||
:record="data.record"
|
||||
:tooltip="target === 'device' && productNoEdit.id?.includes?.(data.record.id) ? {
|
||||
title: '继承自产品物模型的数据不支持删除',
|
||||
} : undefined"
|
||||
:type="data.record.valueType.type"
|
||||
/>
|
||||
</PermissionButton>
|
||||
|
|
|
@ -637,7 +637,7 @@ const handleImport = async () => {
|
|||
data[data?.type === 'copy' ? 'copy' : 'import'] ||
|
||||
'{}',
|
||||
);
|
||||
if(data?.type === 'import'){
|
||||
if(data?.type !== 'copy'){
|
||||
Object.keys(_object).forEach((i:any)=>{
|
||||
const map = new Map()
|
||||
_object[i].forEach((item:any)=>(
|
||||
|
|
Loading…
Reference in New Issue