|
|
@ -73,7 +73,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
<!-- |
|
|
|
|
|
|
|
|
<!-- |
|
|
<template v-else-if="col.bodyType === 'select'"> |
|
|
<template v-else-if="col.bodyType === 'select'"> |
|
|
<div class="flex flex1"> |
|
|
<div class="flex flex1"> |
|
|
<HandleFormItem :fieldKey="prefixKey + '_' + col.prop + '_' + rowIndex" |
|
|
<HandleFormItem :fieldKey="prefixKey + '_' + col.prop + '_' + rowIndex" |
|
|
@ -811,6 +811,14 @@ export default { |
|
|
this.localDataSource.splice(rowIndex, 1); |
|
|
this.localDataSource.splice(rowIndex, 1); |
|
|
this.$emit('row-delete', rowIndex); |
|
|
this.$emit('row-delete', rowIndex); |
|
|
}, |
|
|
}, |
|
|
|
|
|
deleteRows(rowsIndex) { |
|
|
|
|
|
rowsIndex.sort((a, b) => b - a); |
|
|
|
|
|
rowsIndex.forEach(index => { |
|
|
|
|
|
this.localDataSource.splice(index, 1); |
|
|
|
|
|
this.$emit('row-delete', index); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
// 更新数据方法,可在formData变更时调用,也可由父组件调用 |
|
|
// 更新数据方法,可在formData变更时调用,也可由父组件调用 |
|
|
updateDataSource(dataSource = []) { |
|
|
updateDataSource(dataSource = []) { |
|
|
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource)); |
|
|
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource)); |
|
|
|