|
|
|
@ -136,7 +136,12 @@ |
|
|
|
|
<template #suffix> % </template> |
|
|
|
|
</el-input> |
|
|
|
|
</div> |
|
|
|
|
<Icon icon="ep:remove-filled" class="text-red-500 ml-20px" @click="handleRemove(index)" /> |
|
|
|
|
<Icon |
|
|
|
|
v-if="index > 0" |
|
|
|
|
icon="ep:remove-filled" |
|
|
|
|
class="text-red-500 ml-20px" |
|
|
|
|
@click="handleRemove(index)" |
|
|
|
|
/> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
@ -304,14 +309,7 @@ const resetForm = () => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function handleAddRules() { |
|
|
|
|
formData.value.rules.push({ |
|
|
|
|
ruleParam1: '2', |
|
|
|
|
ruleParam2: '1', |
|
|
|
|
ruleParam3: 0, |
|
|
|
|
ruleParam4: '1', |
|
|
|
|
ruleParam5: '1', |
|
|
|
|
ruleParam6: 0 |
|
|
|
|
}) |
|
|
|
|
formData.value.rules.push(formData.value.rules[0]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['success']) |
|
|
|
|