fix(系统设置): 修复成员展示标签编辑失效问题

This commit is contained in:
xinxin.wu 2024-08-15 15:18:17 +08:00 committed by 刘瑞斌
parent 1ec24a72ac
commit 9cb1d6e2f8
2 changed files with 17 additions and 14 deletions

View File

@ -138,19 +138,22 @@
</slot> </slot>
</template> </template>
<template v-else-if="item.isTag || item.isStringTag"> <template v-else-if="item.isTag || item.isStringTag">
<template <slot :name="item.slotName" v-bind="{ record, rowIndex, column, columnConfig: item }">
v-if="!record[item.dataIndex as string] || (Array.isArray(record[item.dataIndex as string]) && record[item.dataIndex as string].length === 0)" <template
> v-if="!record[item.dataIndex as string] || (Array.isArray(record[item.dataIndex as string]) && record[item.dataIndex as string].length === 0)"
<slot :name="item.slotName" v-bind="{ record, rowIndex, column, columnConfig: item }"> - </slot> >
</template> -
<MsTagGroup </template>
v-else <template v-else>
:is-string-tag="item.isStringTag" <MsTagGroup
:tag-list="record[item.dataIndex as string]" :is-string-tag="item.isStringTag"
type="primary" :tag-list="record[item.dataIndex as string]"
theme="outline" type="primary"
:tag-position="item.tagPosition" theme="outline"
/> :tag-position="item.tagPosition"
/>
</template>
</slot>
</template> </template>
<template v-else-if="item.slotName === SpecialColumnEnum.OPERATION"> <template v-else-if="item.slotName === SpecialColumnEnum.OPERATION">
<slot name="operation" v-bind="{ record, rowIndex, columnConfig: item }" /> <slot name="operation" v-bind="{ record, rowIndex, columnConfig: item }" />

View File

@ -61,7 +61,7 @@
})" })"
value-key="id" value-key="id"
label-key="name" label-key="name"
class="w-full" class="w-full max-w-[300px]"
allow-clear allow-clear
:multiple="true" :multiple="true"
:at-least-one="true" :at-least-one="true"