提交 840d7637 编写于 作者: zhangpingchuan's avatar zhangpingchuan

zpc

上级 5803670e
<${ctrl.getCodeName()}${ctrl.getName()}></${ctrl.getCodeName()}${ctrl.getName()}>
\ No newline at end of file
<${ctrl.getCodeName()}${ctrl.getName()} :formData="formData"></${ctrl.getCodeName()}${ctrl.getName()}>
\ No newline at end of file
......@@ -5,6 +5,7 @@ ${P.getPartCode(item,'FORM').code}
<script>
export default {
name: "${ctrl.getCodeName()}${ctrl.getName()}",
props:['formData'],
data() {
return {
form:this.$form.createForm(this),
......@@ -15,7 +16,8 @@ export default {
</#list>
</#if>
},
activeGroup:[<#if ctrl.getAllPSDEFormDetails()??><#list ctrl.getAllPSDEFormDetails() as formitem><#if formitem.getDetailType() == "GROUPPANEL">"${formitem.getName()}",</#if></#list></#if>]
activeGroup:[<#if ctrl.getAllPSDEFormDetails()??><#list ctrl.getAllPSDEFormDetails() as formitem><#if formitem.getDetailType() == "GROUPPANEL">"${formitem.getName()}",</#if></#list></#if>],
data:this.formData
};
},
methods: {
......
<Input />
\ No newline at end of file
<a-input v-decorator="['${item.name}',{rules: [{ required: <#if item.isAllowEmpty??&&item.isAllowEmpty()??&&item.isAllowEmpty() == true>false<#else>true</#if>, message: '<#if item.getInputTip?? && item.getInputTip()??>${item.getInputTip()}</#if>'}]}]"/>
\ No newline at end of file
<span>{this.data.${item.name}}</span>
\ No newline at end of file
<span>{{this.data.${item.name}}}</span>
\ No newline at end of file
......@@ -28,6 +28,23 @@ export default {
</#if>
</#list>
</#if>
},
data(){
return {
formData:{
"bookname":"test1",
"input":"文本test",
"label":"标签test",
"group1":"书籍基本信息test",
"formpage1":"基本信息test",
"createman":"建立人test",
"createdate":"建立时间test",
"updateman":"更新人test",
"updatedate":"更新时间test",
"group2":"操作信息test",
"formpage2":"其它test"
}
}
}
}
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册