风险矩阵配置删除二次确认添加

This commit is contained in:
2026-08-31 16:05:42 +08:00
parent 83132dc31c
commit bc629e9189
+14 -3
View File
@@ -1177,9 +1177,20 @@ onMounted(() => {
<label v-for="(item, i) in dimForm.l" :key="'l' + i" class="text-center text-xs text-slate-400"> <label v-for="(item, i) in dimForm.l" :key="'l' + i" class="text-center text-xs text-slate-400">
<div class="flex items-center justify-center gap-2 mb-1"> <div class="flex items-center justify-center gap-2 mb-1">
{{ item.key }} {{ item.key }}
<NButton v-if="dimForm.l.length > 5" text type="error" @click="deleteL(i)"> <NPopconfirm
<Icon icon="akar-icons:circle-minus" class="size-16px" /> v-if="dimForm.l.length > 5"
</NButton> positive-text="确定"
:positiveButtonProps="{ size: 'tiny' }"
:negativeButtonProps="{ size: 'tiny' }"
@positive-click="deleteL(i)"
>
<template #trigger>
<NButton text type="error">
<Icon icon="akar-icons:circle-minus" class="size-16px" />
</NButton>
</template>
确定删除吗
</NPopconfirm>
</div> </div>
<NInput v-model:value="item.label" size="small" class="mt-0.5 text-center text-xs" /> <NInput v-model:value="item.label" size="small" class="mt-0.5 text-center text-xs" />
</label> </label>