提交 a3e636c3 编写于 作者: Mosher's avatar Mosher

update: 更新表单多数据部件(表格) --- u2

上级 36f94216
...@@ -68,6 +68,7 @@ ${item.render.code} ...@@ -68,6 +68,7 @@ ${item.render.code}
<#assign content> <#assign content>
<#if item.getContentType() == 'GRID'> <#if item.getContentType() == 'GRID'>
:localmode='true' :localmode='true'
fetchAction="FetchDefaultTemp"
</#if> </#if>
<#if item.getContentType() == 'FORM'> <#if item.getContentType() == 'FORM'>
:autosave="${item.getContentPSControl().isEnableAutoSave()?c}" :autosave="${item.getContentPSControl().isEnableAutoSave()?c}"
......
...@@ -68,11 +68,11 @@ ${ctrl.render.code} ...@@ -68,11 +68,11 @@ ${ctrl.render.code}
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
circle circle
@click="newRow" @click="newRow([{}])"
></el-button> ></el-button>
</template> </template>
<template #default="{ row, column, $index }"> <template #default="{ row, column, $index }">
<div class="repeater-grid-column"> <div class="grid-column__localaction__content">
<span class="grid-column__localaction__index">{{ <span class="grid-column__localaction__index">{{
$index + 1 $index + 1
}}</span> }}</span>
...@@ -907,7 +907,7 @@ ${gridColumn.getName()} ...@@ -907,7 +907,7 @@ ${gridColumn.getName()}
} }
const data: any = response.data; const data: any = response.data;
this.totalrow = response.total; this.totalrow = response.total;
this.items = JSON.parse(JSON.stringify(data)); this.items = JSON.parse(JSON.stringify(data)) || [];
// 清空selections,gridItemsModel // 清空selections,gridItemsModel
// this.selections = []; // this.selections = [];
this.gridItemsModel = []; this.gridItemsModel = [];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册