|
|
@@ -27,7 +27,9 @@
|
|
|
ref="table"
|
|
|
:columns="cols"
|
|
|
:data="formData.items"
|
|
|
- style="padding-left:0;padding-right:0; min-height: 600px;"
|
|
|
+ :style="
|
|
|
+ `padding-left:0;padding-right:0;height:${formData.items.length ? formData.items.length * 34 + 55 : 400}px`
|
|
|
+ "
|
|
|
v-loading="loading.standardParam"
|
|
|
>
|
|
|
<template v-slot:target="{ row }">
|
|
|
@@ -117,9 +119,9 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
- <template v-slot:action="{ row, index }">
|
|
|
+ <template v-slot:action="{ row, $index }">
|
|
|
<el-form-item :show-message="false" label-width="0" style="margin-bottom:0">
|
|
|
- <el-button type="text" icon="el-icon-plus" @click="onAdd" v-if="index === formData.items.length - 1" />
|
|
|
+ <el-button type="text" icon="el-icon-plus" @click="onAdd" v-if="$index === formData.items.length - 1" />
|
|
|
<el-button type="text" icon="el-icon-delete" @click="() => onDel(row)" v-if="formData.items.length !== 1" />
|
|
|
</el-form-item>
|
|
|
</template>
|