提交 e3ad1369 编写于 作者: ibizdev's avatar ibizdev

SYSTEM 发布系统代码

上级 2920823f
...@@ -73,6 +73,38 @@ export class EditForm implements OnInit { ...@@ -73,6 +73,38 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '实体标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '实体名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
entityname: [ entityname: [
{ type: 'string', message: '实体名称 值必须为字符串类型' }, { type: 'string', message: '实体名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体名称 值不能为空' }, { required: false, type: 'string', message: '实体名称 值不能为空' },
...@@ -93,6 +125,10 @@ export class EditForm implements OnInit { ...@@ -93,6 +125,10 @@ export class EditForm implements OnInit {
{ type: 'string', message: '更新时间 值必须为字符串类型' }, { type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' }, { required: false, type: 'string', message: '更新时间 值不能为空' },
], ],
entityid: [
{ type: 'string', message: '实体标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体标识 值不能为空' },
],
} }
/** /**
...@@ -102,11 +138,31 @@ export class EditForm implements OnInit { ...@@ -102,11 +138,31 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public detailsModel: any = { public detailsModel: any = {
entityname: new FormItemModel({ caption: '实体名称', detailType: 'FORMITEM', name: 'entityname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
group1: new FormGroupPanelModel({ caption: '实体基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) group1: new FormGroupPanelModel({ caption: '实体基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }) formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '实体标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '实体名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entityname: new FormItemModel({ caption: '实体名称', detailType: 'FORMITEM', name: 'entityname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -116,9 +172,7 @@ export class EditForm implements OnInit { ...@@ -116,9 +172,7 @@ export class EditForm implements OnInit {
, ,
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) entityid: new FormItemModel({ caption: '实体标识', detailType: 'FORMITEM', name: 'entityid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
, ,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }), form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
}; };
...@@ -220,5 +274,14 @@ export class EditForm implements OnInit { ...@@ -220,5 +274,14 @@ export class EditForm implements OnInit {
} }
} }
\ No newline at end of file
...@@ -73,6 +73,38 @@ export class EditForm implements OnInit { ...@@ -73,6 +73,38 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '实体2标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体2标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '实体2名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体2名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
entity2name: [ entity2name: [
{ type: 'string', message: '实体2名称 值必须为字符串类型' }, { type: 'string', message: '实体2名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体2名称 值不能为空' }, { required: false, type: 'string', message: '实体2名称 值不能为空' },
...@@ -93,6 +125,10 @@ export class EditForm implements OnInit { ...@@ -93,6 +125,10 @@ export class EditForm implements OnInit {
{ type: 'string', message: '更新时间 值必须为字符串类型' }, { type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' }, { required: false, type: 'string', message: '更新时间 值不能为空' },
], ],
entity2id: [
{ type: 'string', message: '实体2标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体2标识 值不能为空' },
],
} }
/** /**
...@@ -102,11 +138,31 @@ export class EditForm implements OnInit { ...@@ -102,11 +138,31 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public detailsModel: any = { public detailsModel: any = {
entity2name: new FormItemModel({ caption: '实体2名称', detailType: 'FORMITEM', name: 'entity2name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
group1: new FormGroupPanelModel({ caption: '实体2基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) group1: new FormGroupPanelModel({ caption: '实体2基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }) formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '实体2标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '实体2名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity2name: new FormItemModel({ caption: '实体2名称', detailType: 'FORMITEM', name: 'entity2name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -116,9 +172,7 @@ export class EditForm implements OnInit { ...@@ -116,9 +172,7 @@ export class EditForm implements OnInit {
, ,
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) entity2id: new FormItemModel({ caption: '实体2标识', detailType: 'FORMITEM', name: 'entity2id', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
, ,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }), form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
}; };
...@@ -220,5 +274,14 @@ export class EditForm implements OnInit { ...@@ -220,5 +274,14 @@ export class EditForm implements OnInit {
} }
} }
\ No newline at end of file
...@@ -73,6 +73,38 @@ export class EditForm implements OnInit { ...@@ -73,6 +73,38 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '实体3标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体3标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '实体3名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体3名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
formitem: [ formitem: [
{ type: 'string', message: '标签 值必须为字符串类型' }, { type: 'string', message: '标签 值必须为字符串类型' },
{ required: false, type: 'string', message: '标签 值不能为空' }, { required: false, type: 'string', message: '标签 值不能为空' },
...@@ -134,61 +166,77 @@ export class EditForm implements OnInit { ...@@ -134,61 +166,77 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public detailsModel: any = { public detailsModel: any = {
formitem: new FormItemModel({ caption: '标签', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
group1: new FormGroupPanelModel({ caption: '实体3基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) group1: new FormGroupPanelModel({ caption: '实体3基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formitem2: new FormItemModel({ caption: '新标签', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity3name: new FormItemModel({ caption: '实体3名称', detailType: 'FORMITEM', name: 'entity3name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
button1: new FormButtonModel({ caption: '', detailType: 'BUTTON', name: 'button1', visible: true, isShowCaption: true, form: this }) button1: new FormButtonModel({ caption: '', detailType: 'BUTTON', name: 'button1', visible: true, isShowCaption: true, form: this })
,
entity3id: new FormItemModel({ caption: '实体3标识', detailType: 'FORMITEM', name: 'entity3id', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
rawitem1: new FormRowItemModel({ caption: '', detailType: 'RAWITEM', name: 'rawitem1', visible: true, isShowCaption: true, form: this }) rawitem1: new FormRowItemModel({ caption: '', detailType: 'RAWITEM', name: 'rawitem1', visible: true, isShowCaption: true, form: this })
,
formitem1: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem3: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'formitem3', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel2: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel2: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formitem5: new FormItemModel({ caption: '密码', detailType: 'FORMITEM', name: 'formitem5', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel3: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel3: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
grouppanel4: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel4: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
grouppanel5: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel5', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel5: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel5', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formitem6: new FormItemModel({ caption: '密码', detailType: 'FORMITEM', name: 'formitem6', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel1: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel1: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }) formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel7: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel7', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel7: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel7', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
createdate: new FormItemModel({ caption: '建立时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel8: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel8', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel8: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel8', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel9: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel9', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel9: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel9', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
grouppanel6: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel6', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel6: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel6', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem4: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this }) formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '实体3标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '实体3名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem: new FormItemModel({ caption: '标签', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem2: new FormItemModel({ caption: '新标签', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity3name: new FormItemModel({ caption: '实体3名称', detailType: 'FORMITEM', name: 'entity3name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity3id: new FormItemModel({ caption: '实体3标识', detailType: 'FORMITEM', name: 'entity3id', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem1: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem3: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'formitem3', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem5: new FormItemModel({ caption: '密码', detailType: 'FORMITEM', name: 'formitem5', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem6: new FormItemModel({ caption: '密码', detailType: 'FORMITEM', name: 'formitem6', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
createdate: new FormItemModel({ caption: '建立时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem4: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }), form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
}; };
...@@ -310,6 +358,14 @@ export class EditForm implements OnInit { ...@@ -310,6 +358,14 @@ export class EditForm implements OnInit {
......
...@@ -73,6 +73,38 @@ export class EditForm implements OnInit { ...@@ -73,6 +73,38 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '实体4标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体4标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '实体4名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体4名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
entity4name: [ entity4name: [
{ type: 'string', message: '实体4名称 值必须为字符串类型' }, { type: 'string', message: '实体4名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体4名称 值不能为空' }, { required: false, type: 'string', message: '实体4名称 值不能为空' },
...@@ -93,6 +125,10 @@ export class EditForm implements OnInit { ...@@ -93,6 +125,10 @@ export class EditForm implements OnInit {
{ type: 'string', message: '更新时间 值必须为字符串类型' }, { type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' }, { required: false, type: 'string', message: '更新时间 值不能为空' },
], ],
entity4id: [
{ type: 'string', message: '实体4标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体4标识 值不能为空' },
],
} }
/** /**
...@@ -102,11 +138,31 @@ export class EditForm implements OnInit { ...@@ -102,11 +138,31 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public detailsModel: any = { public detailsModel: any = {
entity4name: new FormItemModel({ caption: '实体4名称', detailType: 'FORMITEM', name: 'entity4name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
group1: new FormGroupPanelModel({ caption: '实体4基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) group1: new FormGroupPanelModel({ caption: '实体4基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }) formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '实体4标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '实体4名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity4name: new FormItemModel({ caption: '实体4名称', detailType: 'FORMITEM', name: 'entity4name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -116,9 +172,7 @@ export class EditForm implements OnInit { ...@@ -116,9 +172,7 @@ export class EditForm implements OnInit {
, ,
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) entity4id: new FormItemModel({ caption: '实体4标识', detailType: 'FORMITEM', name: 'entity4id', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
, ,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }), form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
}; };
...@@ -220,5 +274,14 @@ export class EditForm implements OnInit { ...@@ -220,5 +274,14 @@ export class EditForm implements OnInit {
} }
} }
\ No newline at end of file
...@@ -73,6 +73,38 @@ export class EditForm implements OnInit { ...@@ -73,6 +73,38 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '实体5标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体5标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '实体5名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体5名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
entity5name: [ entity5name: [
{ type: 'string', message: '实体5名称 值必须为字符串类型' }, { type: 'string', message: '实体5名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体5名称 值不能为空' }, { required: false, type: 'string', message: '实体5名称 值不能为空' },
...@@ -93,6 +125,10 @@ export class EditForm implements OnInit { ...@@ -93,6 +125,10 @@ export class EditForm implements OnInit {
{ type: 'string', message: '更新时间 值必须为字符串类型' }, { type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' }, { required: false, type: 'string', message: '更新时间 值不能为空' },
], ],
entity5id: [
{ type: 'string', message: '实体5标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '实体5标识 值不能为空' },
],
} }
/** /**
...@@ -102,13 +138,33 @@ export class EditForm implements OnInit { ...@@ -102,13 +138,33 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public detailsModel: any = { public detailsModel: any = {
entity5name: new FormItemModel({ caption: '实体5名称', detailType: 'FORMITEM', name: 'entity5name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel1: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel1: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
group1: new FormGroupPanelModel({ caption: '实体5基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) group1: new FormGroupPanelModel({ caption: '实体5基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }) formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '实体5标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '实体5名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity5name: new FormItemModel({ caption: '实体5名称', detailType: 'FORMITEM', name: 'entity5name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -118,9 +174,7 @@ export class EditForm implements OnInit { ...@@ -118,9 +174,7 @@ export class EditForm implements OnInit {
, ,
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) entity5id: new FormItemModel({ caption: '实体5标识', detailType: 'FORMITEM', name: 'entity5id', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
, ,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }), form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
}; };
...@@ -223,5 +277,14 @@ export class EditForm implements OnInit { ...@@ -223,5 +277,14 @@ export class EditForm implements OnInit {
} }
} }
\ No newline at end of file
...@@ -78,6 +78,38 @@ export class EditForm implements OnInit { ...@@ -78,6 +78,38 @@ export class EditForm implements OnInit {
* @memberof AllEditorType * @memberof AllEditorType
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '示例名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
span: [ span: [
{ type: 'string', message: '标签 值必须为字符串类型' }, { type: 'string', message: '标签 值必须为字符串类型' },
{ required: false, type: 'string', message: '标签 值不能为空' }, { required: false, type: 'string', message: '标签 值不能为空' },
...@@ -158,6 +190,10 @@ export class EditForm implements OnInit { ...@@ -158,6 +190,10 @@ export class EditForm implements OnInit {
{ type: 'string', message: '文件上传 值必须为字符串类型' }, { type: 'string', message: '文件上传 值必须为字符串类型' },
{ required: false, type: 'string', message: '文件上传 值不能为空' }, { required: false, type: 'string', message: '文件上传 值不能为空' },
], ],
exampleid: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
} }
/** /**
...@@ -167,6 +203,38 @@ export class EditForm implements OnInit { ...@@ -167,6 +203,38 @@ export class EditForm implements OnInit {
* @memberof AllEditorType * @memberof AllEditorType
*/ */
public detailsModel: any = { public detailsModel: any = {
grouppanel1: new FormGroupPanelModel({ caption: '基础', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel3: new FormGroupPanelModel({ caption: '选择类', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel4: new FormGroupPanelModel({ caption: '时间类型', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel2: new FormGroupPanelModel({ caption: '多行输入框', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel5: new FormGroupPanelModel({ caption: '富文本文本编辑', detailType: 'GROUPPANEL', name: 'grouppanel5', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel6: new FormGroupPanelModel({ caption: '图片上传', detailType: 'GROUPPANEL', name: 'grouppanel6', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel7: new FormGroupPanelModel({ caption: '文件上传', detailType: 'GROUPPANEL', name: 'grouppanel7', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage1: new FormPageModel({ caption: '表单分页', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '示例名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
span: new FormItemModel({ caption: '标签', detailType: 'FORMITEM', name: 'span', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) span: new FormItemModel({ caption: '标签', detailType: 'FORMITEM', name: 'span', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
textbox: new FormItemModel({ caption: '文本框', detailType: 'FORMITEM', name: 'textbox', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) textbox: new FormItemModel({ caption: '文本框', detailType: 'FORMITEM', name: 'textbox', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
...@@ -174,8 +242,6 @@ export class EditForm implements OnInit { ...@@ -174,8 +242,6 @@ export class EditForm implements OnInit {
password: new FormItemModel({ caption: '密码输入框', detailType: 'FORMITEM', name: 'password', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) password: new FormItemModel({ caption: '密码输入框', detailType: 'FORMITEM', name: 'password', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
rawitem: new FormItemModel({ caption: '直接内容', detailType: 'FORMITEM', name: 'rawitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) rawitem: new FormItemModel({ caption: '直接内容', detailType: 'FORMITEM', name: 'rawitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel1: new FormGroupPanelModel({ caption: '基础', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
checkbox: new FormItemModel({ caption: '选项框', detailType: 'FORMITEM', name: 'checkbox', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) checkbox: new FormItemModel({ caption: '选项框', detailType: 'FORMITEM', name: 'checkbox', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -186,8 +252,6 @@ export class EditForm implements OnInit { ...@@ -186,8 +252,6 @@ export class EditForm implements OnInit {
listbox: new FormItemModel({ caption: '列表框', detailType: 'FORMITEM', name: 'listbox', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) listbox: new FormItemModel({ caption: '列表框', detailType: 'FORMITEM', name: 'listbox', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
formitem1: new FormItemModel({ caption: '单选项列表', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem1: new FormItemModel({ caption: '单选项列表', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel3: new FormGroupPanelModel({ caption: '选择类', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
datepicker: new FormItemModel({ caption: '时间选择', detailType: 'FORMITEM', name: 'datepicker', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) datepicker: new FormItemModel({ caption: '时间选择', detailType: 'FORMITEM', name: 'datepicker', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -202,26 +266,16 @@ export class EditForm implements OnInit { ...@@ -202,26 +266,16 @@ export class EditForm implements OnInit {
formitem9: new FormItemModel({ caption: '秒钟', detailType: 'FORMITEM', name: 'formitem9', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem9: new FormItemModel({ caption: '秒钟', detailType: 'FORMITEM', name: 'formitem9', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
formitem10: new FormItemModel({ caption: '无日期无秒钟', detailType: 'FORMITEM', name: 'formitem10', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem10: new FormItemModel({ caption: '无日期无秒钟', detailType: 'FORMITEM', name: 'formitem10', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel4: new FormGroupPanelModel({ caption: '时间类型', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
textrea: new FormItemModel({ caption: '多行输入框', detailType: 'FORMITEM', name: 'textrea', visible: true, isShowCaption: false, form: this, disabled: false, enableCond: 3 }) textrea: new FormItemModel({ caption: '多行输入框', detailType: 'FORMITEM', name: 'textrea', visible: true, isShowCaption: false, form: this, disabled: false, enableCond: 3 })
,
grouppanel2: new FormGroupPanelModel({ caption: '多行输入框', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formitem2: new FormItemModel({ caption: 'HTML编辑框', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: false, form: this, disabled: false, enableCond: 3 }) formitem2: new FormItemModel({ caption: 'HTML编辑框', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: false, form: this, disabled: false, enableCond: 3 })
,
grouppanel5: new FormGroupPanelModel({ caption: '富文本文本编辑', detailType: 'GROUPPANEL', name: 'grouppanel5', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formitem4: new FormItemModel({ caption: '图片上传', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: false, form: this, disabled: false, enableCond: 3 }) formitem4: new FormItemModel({ caption: '图片上传', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: false, form: this, disabled: false, enableCond: 3 })
,
grouppanel6: new FormGroupPanelModel({ caption: '图片上传', detailType: 'GROUPPANEL', name: 'grouppanel6', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formitem5: new FormItemModel({ caption: '文件上传', detailType: 'FORMITEM', name: 'formitem5', visible: true, isShowCaption: false, form: this, disabled: false, enableCond: 3 }) formitem5: new FormItemModel({ caption: '文件上传', detailType: 'FORMITEM', name: 'formitem5', visible: true, isShowCaption: false, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel7: new FormGroupPanelModel({ caption: '文件上传', detailType: 'GROUPPANEL', name: 'grouppanel7', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) exampleid: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'exampleid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formpage1: new FormPageModel({ caption: '表单分页', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
, ,
}; };
...@@ -331,6 +385,15 @@ export class EditForm implements OnInit { ...@@ -331,6 +385,15 @@ export class EditForm implements OnInit {
......
...@@ -86,6 +86,38 @@ export class EditForm implements OnInit { ...@@ -86,6 +86,38 @@ export class EditForm implements OnInit {
* @memberof DynamicLogicForm * @memberof DynamicLogicForm
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '示例名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
name: [ name: [
{ type: 'string', message: '名称 值必须为字符串类型' }, { type: 'string', message: '名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '名称 值不能为空' }, { required: false, type: 'string', message: '名称 值不能为空' },
...@@ -130,6 +162,10 @@ export class EditForm implements OnInit { ...@@ -130,6 +162,10 @@ export class EditForm implements OnInit {
{ type: 'string', message: '是否有小孩 值必须为字符串类型' }, { type: 'string', message: '是否有小孩 值必须为字符串类型' },
{ required: true, type: 'string', message: '是否有小孩 值不能为空' }, { required: true, type: 'string', message: '是否有小孩 值不能为空' },
], ],
exampleid: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
} }
/** /**
...@@ -139,6 +175,32 @@ export class EditForm implements OnInit { ...@@ -139,6 +175,32 @@ export class EditForm implements OnInit {
* @memberof DynamicLogicForm * @memberof DynamicLogicForm
*/ */
public detailsModel: any = { public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel2: new FormGroupPanelModel({ caption: '配偶信息', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel3: new FormGroupPanelModel({ caption: '子女信息', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel1: new FormGroupPanelModel({ caption: '家庭信息', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: false, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '示例名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
name: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) name: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
age: new FormItemModel({ caption: '年龄', detailType: 'FORMITEM', name: 'age', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) age: new FormItemModel({ caption: '年龄', detailType: 'FORMITEM', name: 'age', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
...@@ -146,16 +208,12 @@ export class EditForm implements OnInit { ...@@ -146,16 +208,12 @@ export class EditForm implements OnInit {
sex: new FormItemModel({ caption: '性别', detailType: 'FORMITEM', name: 'sex', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) sex: new FormItemModel({ caption: '性别', detailType: 'FORMITEM', name: 'sex', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
marriage: new FormItemModel({ caption: '婚否', detailType: 'FORMITEM', name: 'marriage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) marriage: new FormItemModel({ caption: '婚否', detailType: 'FORMITEM', name: 'marriage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
group1: new FormGroupPanelModel({ caption: '基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
spousename: new FormItemModel({ caption: '配偶姓名', detailType: 'FORMITEM', name: 'spousename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) spousename: new FormItemModel({ caption: '配偶姓名', detailType: 'FORMITEM', name: 'spousename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
spouseage: new FormItemModel({ caption: '配偶年龄', detailType: 'FORMITEM', name: 'spouseage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) spouseage: new FormItemModel({ caption: '配偶年龄', detailType: 'FORMITEM', name: 'spouseage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
spousesex: new FormItemModel({ caption: '配偶性别', detailType: 'FORMITEM', name: 'spousesex', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) spousesex: new FormItemModel({ caption: '配偶性别', detailType: 'FORMITEM', name: 'spousesex', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel2: new FormGroupPanelModel({ caption: '配偶信息', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
childrenname: new FormItemModel({ caption: '子女姓名', detailType: 'FORMITEM', name: 'childrenname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) childrenname: new FormItemModel({ caption: '子女姓名', detailType: 'FORMITEM', name: 'childrenname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -165,11 +223,7 @@ export class EditForm implements OnInit { ...@@ -165,11 +223,7 @@ export class EditForm implements OnInit {
, ,
childrenornot: new FormItemModel({ caption: '是否有小孩', detailType: 'FORMITEM', name: 'childrenornot', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) childrenornot: new FormItemModel({ caption: '是否有小孩', detailType: 'FORMITEM', name: 'childrenornot', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel3: new FormGroupPanelModel({ caption: '子女信息', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) exampleid: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'exampleid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel1: new FormGroupPanelModel({ caption: '家庭信息', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: false, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
, ,
}; };
...@@ -264,6 +318,25 @@ export class EditForm implements OnInit { ...@@ -264,6 +318,25 @@ export class EditForm implements OnInit {
if (Object.is(name, '') || Object.is(name, 'marriage')) {
let ret = false;
const _marriage = this.data.marriage;
if (this.$util.testCond(_marriage, 'EQ', '1')) {
ret = true;
}
this.detailsModel.grouppanel1.setVisible(ret);
}
...@@ -324,15 +397,5 @@ export class EditForm implements OnInit { ...@@ -324,15 +397,5 @@ export class EditForm implements OnInit {
} }
if (Object.is(name, '') || Object.is(name, 'marriage')) {
let ret = false;
const _marriage = this.data.marriage;
if (this.$util.testCond(_marriage, 'EQ', '1')) {
ret = true;
}
this.detailsModel.grouppanel1.setVisible(ret);
}
} }
} }
\ No newline at end of file
...@@ -71,6 +71,38 @@ export class EditForm implements OnInit { ...@@ -71,6 +71,38 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '示例名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
formitem: [ formitem: [
{ type: 'string', message: '表单项 值必须为字符串类型' }, { type: 'string', message: '表单项 值必须为字符串类型' },
{ required: false, type: 'string', message: '表单项 值不能为空' }, { required: false, type: 'string', message: '表单项 值不能为空' },
...@@ -131,6 +163,10 @@ export class EditForm implements OnInit { ...@@ -131,6 +163,10 @@ export class EditForm implements OnInit {
{ type: 'string', message: '表单项 值必须为字符串类型' }, { type: 'string', message: '表单项 值必须为字符串类型' },
{ required: false, type: 'string', message: '表单项 值不能为空' }, { required: false, type: 'string', message: '表单项 值不能为空' },
], ],
exampleid: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
} }
/** /**
...@@ -140,15 +176,7 @@ export class EditForm implements OnInit { ...@@ -140,15 +176,7 @@ export class EditForm implements OnInit {
* @memberof Main * @memberof Main
*/ */
public detailsModel: any = { public detailsModel: any = {
formitem: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem1: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
tabpage1: new FormTabPageModel({ caption: '分页面板', detailType: 'TABPAGE', name: 'tabpage1', visible: true, isShowCaption: true, form: this }) tabpage1: new FormTabPageModel({ caption: '分页面板', detailType: 'TABPAGE', name: 'tabpage1', visible: true, isShowCaption: true, form: this })
,
formitem2: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem3: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem3', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
tabpage2: new FormTabPageModel({ caption: '分页面板2', detailType: 'TABPAGE', name: 'tabpage2', visible: true, isShowCaption: true, form: this }) tabpage2: new FormTabPageModel({ caption: '分页面板2', detailType: 'TABPAGE', name: 'tabpage2', visible: true, isShowCaption: true, form: this })
, ,
...@@ -163,6 +191,36 @@ export class EditForm implements OnInit { ...@@ -163,6 +191,36 @@ export class EditForm implements OnInit {
iframe1: new FormIFrameModel({ caption: '', detailType: 'IFRAME', name: 'iframe1', visible: true, isShowCaption: true, form: this }) iframe1: new FormIFrameModel({ caption: '', detailType: 'IFRAME', name: 'iframe1', visible: true, isShowCaption: true, form: this })
, ,
grouppanel2: new FormGroupPanelModel({ caption: '分组面板2', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel2: new FormGroupPanelModel({ caption: '分组面板2', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel3: new FormGroupPanelModel({ caption: '栅格布局', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel4: new FormGroupPanelModel({ caption: 'Flex布局', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage1: new FormPageModel({ caption: '表单分页', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '示例名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem1: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem2: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem3: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem3', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
formitem4: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem4: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -179,8 +237,6 @@ export class EditForm implements OnInit { ...@@ -179,8 +237,6 @@ export class EditForm implements OnInit {
formitem10: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem10', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem10: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem10', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
formitem11: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem11', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem11: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem11', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel3: new FormGroupPanelModel({ caption: '栅格布局', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
formitem12: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem12', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem12: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem12', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -188,9 +244,7 @@ export class EditForm implements OnInit { ...@@ -188,9 +244,7 @@ export class EditForm implements OnInit {
, ,
formitem14: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem14', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem14: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem14', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel4: new FormGroupPanelModel({ caption: 'Flex布局', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) exampleid: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'exampleid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formpage1: new FormPageModel({ caption: '表单分页', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
, ,
}; };
...@@ -308,6 +362,15 @@ export class EditForm implements OnInit { ...@@ -308,6 +362,15 @@ export class EditForm implements OnInit {
......
...@@ -164,14 +164,6 @@ ...@@ -164,14 +164,6 @@
</div> </div>
<div nz-col [ngClass]="{ hidden: !detailsModel.iframe1.visible }" style='' [nzLg]="{ span: 24, offset: 0 }"> <div nz-col [ngClass]="{ hidden: !detailsModel.iframe1.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
<div style="height:0px;"></div> <div style="height:0px;"></div>
</div>
<div nz-col [ngClass]="{ hidden: !detailsModel.formitem11.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
<nz-form-item [nzFlex]="true" [ngClass]="[(detailsModel.formitem11.validateStatus == 'error') ? '' : 'no-error']">
<nz-form-label [nzRequired]="rules.formitem11[1].required" style="width: 70px;">表单项</nz-form-label>
<nz-form-control style="flex-grow: 1;" [nzValidateStatus]="detailsModel.formitem11.validateStatus" [nzErrorTip]="detailsModel.formitem11.error">
<input nz-input name="formitem11" [ngModel]="data.formitem11" [disabled]="detailsModel.formitem11.disabled" placeholder="请输入..." (ngModelChange)="onFormDataChange('formitem11', $event)" style=""/> </nz-form-control>
</nz-form-item >
</div> </div>
<div nz-col [ngClass]="{ hidden: !detailsModel.age.visible }" style='' [nzLg]="{ span: 24, offset: 0 }"> <div nz-col [ngClass]="{ hidden: !detailsModel.age.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
<nz-form-item [nzFlex]="true" [ngClass]="[(detailsModel.age.validateStatus == 'error') ? '' : 'no-error']"> <nz-form-item [nzFlex]="true" [ngClass]="[(detailsModel.age.validateStatus == 'error') ? '' : 'no-error']">
......
...@@ -73,6 +73,38 @@ export class EditForm implements OnInit { ...@@ -73,6 +73,38 @@ export class EditForm implements OnInit {
* @memberof Main2 * @memberof Main2
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '示例名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
formitem: [ formitem: [
{ type: 'string', message: '文本框 值必须为字符串类型' }, { type: 'string', message: '文本框 值必须为字符串类型' },
{ required: false, type: 'string', message: '文本框 值不能为空' }, { required: false, type: 'string', message: '文本框 值不能为空' },
...@@ -141,10 +173,6 @@ export class EditForm implements OnInit { ...@@ -141,10 +173,6 @@ export class EditForm implements OnInit {
{ type: 'string', message: '用户自定义 值必须为字符串类型' }, { type: 'string', message: '用户自定义 值必须为字符串类型' },
{ required: false, type: 'string', message: '用户自定义 值不能为空' }, { required: false, type: 'string', message: '用户自定义 值不能为空' },
], ],
formitem11: [
{ type: 'string', message: '表单项 值必须为字符串类型' },
{ required: false, type: 'string', message: '表单项 值不能为空' },
],
age: [ age: [
{ type: 'string', message: '年龄 值必须为字符串类型' }, { type: 'string', message: '年龄 值必须为字符串类型' },
{ required: false, type: 'string', message: '年龄 值不能为空' }, { required: false, type: 'string', message: '年龄 值不能为空' },
...@@ -265,6 +293,34 @@ export class EditForm implements OnInit { ...@@ -265,6 +293,34 @@ export class EditForm implements OnInit {
tabpanel1: new FormTabPanelModel({ caption: '', detailType: 'TABPANEL', name: 'tabpanel1', visible: true, isShowCaption: false, form: this, tabPages: [] }) tabpanel1: new FormTabPanelModel({ caption: '', detailType: 'TABPANEL', name: 'tabpanel1', visible: true, isShowCaption: false, form: this, tabPages: [] })
, ,
grouppanel2: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) grouppanel2: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
button1: new FormButtonModel({ caption: '', detailType: 'BUTTON', name: 'button1', visible: true, isShowCaption: true, form: this })
,
rawitem1: new FormRowItemModel({ caption: '', detailType: 'RAWITEM', name: 'rawitem1', visible: true, isShowCaption: true, form: this })
,
iframe1: new FormIFrameModel({ caption: '', detailType: 'IFRAME', name: 'iframe1', visible: true, isShowCaption: true, form: this })
,
grouppanel1: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage1: new FormPageModel({ caption: '表单分页', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
formpage2: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '示例名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
formitem: new FormItemModel({ caption: '文本框', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem: new FormItemModel({ caption: '文本框', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -299,14 +355,6 @@ export class EditForm implements OnInit { ...@@ -299,14 +355,6 @@ export class EditForm implements OnInit {
formitem15: new FormItemModel({ caption: '文件上传控件', detailType: 'FORMITEM', name: 'formitem15', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem15: new FormItemModel({ caption: '文件上传控件', detailType: 'FORMITEM', name: 'formitem15', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
formitem16: new FormItemModel({ caption: '用户自定义', detailType: 'FORMITEM', name: 'formitem16', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) formitem16: new FormItemModel({ caption: '用户自定义', detailType: 'FORMITEM', name: 'formitem16', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
button1: new FormButtonModel({ caption: '', detailType: 'BUTTON', name: 'button1', visible: true, isShowCaption: true, form: this })
,
rawitem1: new FormRowItemModel({ caption: '', detailType: 'RAWITEM', name: 'rawitem1', visible: true, isShowCaption: true, form: this })
,
iframe1: new FormIFrameModel({ caption: '', detailType: 'IFRAME', name: 'iframe1', visible: true, isShowCaption: true, form: this })
,
formitem11: new FormItemModel({ caption: '表单项', detailType: 'FORMITEM', name: 'formitem11', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
age: new FormItemModel({ caption: '年龄', detailType: 'FORMITEM', name: 'age', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) age: new FormItemModel({ caption: '年龄', detailType: 'FORMITEM', name: 'age', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -361,12 +409,6 @@ export class EditForm implements OnInit { ...@@ -361,12 +409,6 @@ export class EditForm implements OnInit {
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel1: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage1: new FormPageModel({ caption: '表单分页', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
formpage2: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this })
, ,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }), form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
}; };
...@@ -514,6 +556,13 @@ export class EditForm implements OnInit { ...@@ -514,6 +556,13 @@ export class EditForm implements OnInit {
......
...@@ -71,6 +71,38 @@ export class EditForm implements OnInit { ...@@ -71,6 +71,38 @@ export class EditForm implements OnInit {
* @memberof Main3 * @memberof Main3
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '示例名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
marriage: [ marriage: [
{ type: 'string', message: '婚否 值必须为字符串类型' }, { type: 'string', message: '婚否 值必须为字符串类型' },
{ required: true, type: 'string', message: '婚否 值不能为空' }, { required: true, type: 'string', message: '婚否 值不能为空' },
...@@ -115,6 +147,10 @@ export class EditForm implements OnInit { ...@@ -115,6 +147,10 @@ export class EditForm implements OnInit {
{ type: 'string', message: '是否有小孩 值必须为字符串类型' }, { type: 'string', message: '是否有小孩 值必须为字符串类型' },
{ required: false, type: 'string', message: '是否有小孩 值不能为空' }, { required: false, type: 'string', message: '是否有小孩 值不能为空' },
], ],
exampleid: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
} }
/** /**
...@@ -124,6 +160,32 @@ export class EditForm implements OnInit { ...@@ -124,6 +160,32 @@ export class EditForm implements OnInit {
* @memberof Main3 * @memberof Main3
*/ */
public detailsModel: any = { public detailsModel: any = {
grouppanel1: new FormGroupPanelModel({ caption: '基本信息', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel3: new FormGroupPanelModel({ caption: '配偶信息', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel4: new FormGroupPanelModel({ caption: '子女信息', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
grouppanel2: new FormGroupPanelModel({ caption: '家庭信息', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '示例名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
marriage: new FormItemModel({ caption: '婚否', detailType: 'FORMITEM', name: 'marriage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) marriage: new FormItemModel({ caption: '婚否', detailType: 'FORMITEM', name: 'marriage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
sex: new FormItemModel({ caption: '性别', detailType: 'FORMITEM', name: 'sex', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) sex: new FormItemModel({ caption: '性别', detailType: 'FORMITEM', name: 'sex', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
...@@ -131,16 +193,12 @@ export class EditForm implements OnInit { ...@@ -131,16 +193,12 @@ export class EditForm implements OnInit {
age: new FormItemModel({ caption: '年龄', detailType: 'FORMITEM', name: 'age', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) age: new FormItemModel({ caption: '年龄', detailType: 'FORMITEM', name: 'age', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
name: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) name: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel1: new FormGroupPanelModel({ caption: '基本信息', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
spousename: new FormItemModel({ caption: '配偶姓名', detailType: 'FORMITEM', name: 'spousename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) spousename: new FormItemModel({ caption: '配偶姓名', detailType: 'FORMITEM', name: 'spousename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
spousesex: new FormItemModel({ caption: '配偶性别', detailType: 'FORMITEM', name: 'spousesex', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) spousesex: new FormItemModel({ caption: '配偶性别', detailType: 'FORMITEM', name: 'spousesex', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
spouseage: new FormItemModel({ caption: '配偶年龄', detailType: 'FORMITEM', name: 'spouseage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) spouseage: new FormItemModel({ caption: '配偶年龄', detailType: 'FORMITEM', name: 'spouseage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel3: new FormGroupPanelModel({ caption: '配偶信息', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
, ,
childrenname: new FormItemModel({ caption: '子女姓名', detailType: 'FORMITEM', name: 'childrenname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) childrenname: new FormItemModel({ caption: '子女姓名', detailType: 'FORMITEM', name: 'childrenname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -150,11 +208,7 @@ export class EditForm implements OnInit { ...@@ -150,11 +208,7 @@ export class EditForm implements OnInit {
, ,
childrenornot: new FormItemModel({ caption: '是否有小孩', detailType: 'FORMITEM', name: 'childrenornot', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) childrenornot: new FormItemModel({ caption: '是否有小孩', detailType: 'FORMITEM', name: 'childrenornot', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
grouppanel4: new FormGroupPanelModel({ caption: '子女信息', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } }) exampleid: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'exampleid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
grouppanel2: new FormGroupPanelModel({ caption: '家庭信息', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', extractMode: 'ITEM', details: [] } })
,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
, ,
}; };
...@@ -256,6 +310,15 @@ export class EditForm implements OnInit { ...@@ -256,6 +310,15 @@ export class EditForm implements OnInit {
......
<form nz-form nz-row class="app-form"> <form nz-form nz-row class="app-form">
<div nz-row> <div nz-row>
<nz-tabset> <div nz-col [ngClass]="{ hidden: !detailsModel.formitem.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
</nz-tabset> <nz-form-item [nzFlex]="true" [ngClass]="[(detailsModel.formitem.validateStatus == 'error') ? '' : 'no-error']">
<nz-form-label [nzRequired]="rules.formitem[1].required" style="width: 130px;">IP地址输入框</nz-form-label>
<nz-form-control style="flex-grow: 1;" [nzValidateStatus]="detailsModel.formitem.validateStatus" [nzErrorTip]="detailsModel.formitem.error">
</nz-form-control>
</nz-form-item >
</div>
<div nz-col [ngClass]="{ hidden: !detailsModel.tabpanel1.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
<nz-tabset>
</nz-tabset>
</div>
<div nz-col [ngClass]="{ hidden: !detailsModel.formitem1.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
<nz-form-item [nzFlex]="true" [ngClass]="[(detailsModel.formitem1.validateStatus == 'error') ? '' : 'no-error']">
<nz-form-label [nzRequired]="rules.formitem1[1].required" style="width: 130px;">测试2</nz-form-label>
<nz-form-control style="flex-grow: 1;" [nzValidateStatus]="detailsModel.formitem1.validateStatus" [nzErrorTip]="detailsModel.formitem1.error">
<input nz-input name="formitem1" [ngModel]="data.formitem1" [disabled]="detailsModel.formitem1.disabled" placeholder="请输入..." (ngModelChange)="onFormDataChange('formitem1', $event)" style=""/> </nz-form-control>
</nz-form-item >
</div>
<div nz-col [ngClass]="{ hidden: !detailsModel.formitem2.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
<nz-form-item [nzFlex]="true" [ngClass]="[(detailsModel.formitem2.validateStatus == 'error') ? '' : 'no-error']">
<nz-form-label [nzRequired]="rules.formitem2[1].required" style="width: 130px;">测试3</nz-form-label>
<nz-form-control style="flex-grow: 1;" [nzValidateStatus]="detailsModel.formitem2.validateStatus" [nzErrorTip]="detailsModel.formitem2.error">
<input nz-input name="formitem2" [ngModel]="data.formitem2" [disabled]="detailsModel.formitem2.disabled" placeholder="请输入..." (ngModelChange)="onFormDataChange('formitem2', $event)" style=""/> </nz-form-control>
</nz-form-item >
</div>
<div nz-col [ngClass]="{ hidden: !detailsModel.formitem3.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
<nz-form-item [nzFlex]="true" [ngClass]="[(detailsModel.formitem3.validateStatus == 'error') ? '' : 'no-error']">
<nz-form-label [nzRequired]="rules.formitem3[1].required" style="width: 130px;">自定义</nz-form-label>
<nz-form-control style="flex-grow: 1;" [nzValidateStatus]="detailsModel.formitem3.validateStatus" [nzErrorTip]="detailsModel.formitem3.error">
<div style="">{{ data.formitem3 }}</div> </nz-form-control>
</nz-form-item >
</div>
<div nz-col [ngClass]="{ hidden: !detailsModel.formitem4.visible }" style='' [nzLg]="{ span: 24, offset: 0 }">
<nz-form-item [nzFlex]="true" [ngClass]="[(detailsModel.formitem4.validateStatus == 'error') ? '' : 'no-error']">
<nz-form-label [nzRequired]="rules.formitem4[1].required" style="width: 130px;">图片2</nz-form-label>
<nz-form-control style="flex-grow: 1;" [nzValidateStatus]="detailsModel.formitem4.validateStatus" [nzErrorTip]="detailsModel.formitem4.error">
<app-image-upload [value]="data.formitem4" [disabled]="detailsModel.formitem4.disabled" (onFormItemValueChange)="onFormDataChange('formitem4', $event)" style="overflow: auto;"></app-image-upload> </nz-form-control>
</nz-form-item >
</div>
</div> </div>
</form> </form>
\ No newline at end of file
...@@ -71,6 +71,62 @@ export class EditForm implements OnInit { ...@@ -71,6 +71,62 @@ export class EditForm implements OnInit {
* @memberof Main4 * @memberof Main4
*/ */
public rules: any = { public rules: any = {
srfupdatedate: [
{ type: 'string', message: '更新时间 值必须为字符串类型' },
{ required: false, type: 'string', message: '更新时间 值不能为空' },
],
srforikey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfkey: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
srfmajortext: [
{ type: 'string', message: '示例名称 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例名称 值不能为空' },
],
srftempmode: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfuf: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfdeid: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
srfsourcekey: [
{ type: 'string', message: ' 值必须为字符串类型' },
{ required: false, type: 'string', message: ' 值不能为空' },
],
formitem: [
{ type: 'string', message: 'IP地址输入框 值必须为字符串类型' },
{ required: false, type: 'string', message: 'IP地址输入框 值不能为空' },
],
formitem1: [
{ type: 'string', message: '测试2 值必须为字符串类型' },
{ required: false, type: 'string', message: '测试2 值不能为空' },
],
formitem2: [
{ type: 'string', message: '测试3 值必须为字符串类型' },
{ required: false, type: 'string', message: '测试3 值不能为空' },
],
formitem3: [
{ type: 'string', message: '自定义 值必须为字符串类型' },
{ required: false, type: 'string', message: '自定义 值不能为空' },
],
formitem4: [
{ type: 'string', message: '图片2 值必须为字符串类型' },
{ required: false, type: 'string', message: '图片2 值不能为空' },
],
exampleid: [
{ type: 'string', message: '示例标识 值必须为字符串类型' },
{ required: false, type: 'string', message: '示例标识 值不能为空' },
],
} }
/** /**
...@@ -80,7 +136,38 @@ export class EditForm implements OnInit { ...@@ -80,7 +136,38 @@ export class EditForm implements OnInit {
* @memberof Main4 * @memberof Main4
*/ */
public detailsModel: any = { public detailsModel: any = {
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [] }), tabpanel1: new FormTabPanelModel({ caption: '', detailType: 'TABPANEL', name: 'tabpanel1', visible: true, isShowCaption: false, form: this, tabPages: [] })
,
formpage1: new FormPageModel({ caption: '表单分页', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '示例名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem: new FormItemModel({ caption: 'IP地址输入框', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 })
,
formitem1: new FormItemModel({ caption: '测试2', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem2: new FormItemModel({ caption: '测试3', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem3: new FormItemModel({ caption: '自定义', detailType: 'FORMITEM', name: 'formitem3', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
formitem4: new FormItemModel({ caption: '图片2', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
exampleid: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'exampleid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
}; };
/** /**
...@@ -171,5 +258,21 @@ export class EditForm implements OnInit { ...@@ -171,5 +258,21 @@ export class EditForm implements OnInit {
*/ */
public formLogic(name: string, newVal: any, oldVal: any) { public formLogic(name: string, newVal: any, oldVal: any) {
} }
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册