fix: 参数配置默认idnex+1
This commit is contained in:
@@ -828,8 +828,10 @@ function arrayAddInit(data: any[], dataRule: any) {
|
|||||||
for (const row of from.record) {
|
for (const row of from.record) {
|
||||||
const value = row.value;
|
const value = row.value;
|
||||||
if (row.name === 'index') {
|
if (row.name === 'index') {
|
||||||
if (value !== '') {
|
if (len !== 0 && value !== '') {
|
||||||
newIndex = parseInt(value) + 1;
|
newIndex = parseInt(value) + 1;
|
||||||
|
} else {
|
||||||
|
newIndex = parseInt(value);
|
||||||
}
|
}
|
||||||
if (isNaN(newIndex)) {
|
if (isNaN(newIndex)) {
|
||||||
newIndex = 0;
|
newIndex = 0;
|
||||||
@@ -1366,7 +1368,7 @@ onMounted(() => {
|
|||||||
</a-button>
|
</a-button>
|
||||||
<!--特殊字段拓展显示-->
|
<!--特殊字段拓展显示-->
|
||||||
<span v-if="text.name === 'dnnList'">
|
<span v-if="text.name === 'dnnList'">
|
||||||
({{ text.value.map((s: any) => s.dnn).join() }})
|
({{ text.value?.map((s: any) => s.dnn).join() }})
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user