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

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 64644a23
......@@ -3,19 +3,19 @@
<i-col v-show="detailsModel.container1.visible" :md="{ span: 24, offset: 0 }" :lg="{ span: 12, offset: 0 }" class="app-layoutpanel-container" style="width:;height:100%;">
<row style="height:100%;">
<i-col v-show="detailsModel.field1.visible" :md="{ span: 24, offset: 0 }" style="" class="app-layoutpanel-field">
<i-col v-show="detailsModel.author.visible" :md="{ span: 24, offset: 0 }" style="" class="app-layoutpanel-field">
<div class="item-field">
<app-panel-field
name='field1'
name='author'
labelPos='LEFT'
caption="作者"
:isEmptyCaption="false"
:error='detailsModel.field1.error'
:error='detailsModel.author.error'
:data='data'
:value='data.field1'
:itemRules="rules.field1">
:value='data.author'
:itemRules="rules.author">
<app-span :value="data.field1" name="field1" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> </app-span>
<app-span :value="data.author" name="author" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> </app-span>
</app-panel-field>
</div>
......@@ -23,19 +23,19 @@
</i-col>
<i-col v-show="detailsModel.field2.visible" :md="{ span: 24, offset: 0 }" style="" class="app-layoutpanel-field">
<i-col v-show="detailsModel.press.visible" :md="{ span: 24, offset: 0 }" style="" class="app-layoutpanel-field">
<div class="item-field">
<app-panel-field
name='field2'
name='press'
labelPos='LEFT'
caption="出版社"
:isEmptyCaption="false"
:error='detailsModel.field2.error'
:error='detailsModel.press.error'
:data='data'
:value='data.field2'
:itemRules="rules.field2">
:value='data.press'
:itemRules="rules.press">
<app-span :value="data.field2" name="field2" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> </app-span>
<app-span :value="data.press" name="press" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> </app-span>
</app-panel-field>
</div>
......@@ -43,19 +43,19 @@
</i-col>
<i-col v-show="detailsModel.field3.visible" :md="{ span: 24, offset: 0 }" style="" class="app-layoutpanel-field">
<i-col v-show="detailsModel.bookname.visible" :md="{ span: 24, offset: 0 }" style="" class="app-layoutpanel-field">
<div class="item-field">
<app-panel-field
name='field3'
name='bookname'
labelPos='LEFT'
caption="图书名"
caption="图书名"
:isEmptyCaption="false"
:error='detailsModel.field3.error'
:error='detailsModel.bookname.error'
:data='data'
:value='data.field3'
:itemRules="rules.field3">
:value='data.bookname'
:itemRules="rules.bookname">
<app-span :value="data.field3" name="field3" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> </app-span>
<app-span :value="data.bookname" name="bookname" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> </app-span>
</app-panel-field>
</div>
......@@ -298,11 +298,11 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof Usr4Base
*/
public detailsModel: any = {
field1: new PanelFieldModel({ caption: '作者', itemType: 'FIELD',visible: true, disabled: false, name: 'field1', panel: this })
author: new PanelFieldModel({ caption: '作者', itemType: 'FIELD',visible: true, disabled: false, name: 'author', panel: this })
,
field2: new PanelFieldModel({ caption: '出版社', itemType: 'FIELD',visible: true, disabled: false, name: 'field2', panel: this })
press: new PanelFieldModel({ caption: '出版社', itemType: 'FIELD',visible: true, disabled: false, name: 'press', panel: this })
,
field3: new PanelFieldModel({ caption: '图书名称', itemType: 'FIELD',visible: true, disabled: false, name: 'field3', panel: this })
bookname: new PanelFieldModel({ caption: '图书名', itemType: 'FIELD',visible: true, disabled: false, name: 'bookname', panel: this })
,
container1: new PanelContainerModel({ caption: '', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container1', panel: this })
,
......@@ -315,17 +315,17 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof Usr4Base
*/
public rules:any={
field1:[
author:[
{ required: false, type: 'string', message: '作者 值不能为空'},
{ required: false, type: 'string', message: '作者 值不能为空'}
],
field2:[
press:[
{ required: false, type: 'string', message: '出版社 值不能为空'},
{ required: false, type: 'string', message: '出版社 值不能为空'}
],
field3:[
{ required: false, type: 'string', message: '图书名 值不能为空'},
{ required: false, type: 'string', message: '图书名 值不能为空'}
bookname:[
{ required: false, type: 'string', message: '图书名 值不能为空'},
{ required: false, type: 'string', message: '图书名 值不能为空'}
],
};
......
......@@ -15,16 +15,16 @@ export default class Usr4Model {
public getDataItems(): any[] {
return [
{
name: 'field1',
name: 'author',
prop: 'author'
},
{
name: 'field2',
name: 'press',
prop: 'press'
},
{
name: 'field3',
prop: ' booknumber'
name: 'bookname',
prop: 'ibizbookname'
}
]
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册