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

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

上级 cf0ae4f9
...@@ -354,11 +354,11 @@ export default { ...@@ -354,11 +354,11 @@ export default {
price: "图书价格", price: "图书价格",
type: "图书类型", type: "图书类型",
booknumber: "图书数量", booknumber: "图书数量",
icon: "图标",
sailstate: "图书销售状态", sailstate: "图书销售状态",
lendouttime: "借出日期", lendouttime: "借出日期",
returntime: "归还日期", returntime: "归还日期",
tag: "标签", tag: "标签",
icon: "图书封面",
subtext: "图书描述", subtext: "图书描述",
createman: "建立人", createman: "建立人",
createdate: "建立时间", createdate: "建立时间",
......
...@@ -353,11 +353,11 @@ export default { ...@@ -353,11 +353,11 @@ export default {
price: "图书价格", price: "图书价格",
type: "图书类型", type: "图书类型",
booknumber: "图书数量", booknumber: "图书数量",
icon: "图标",
sailstate: "图书销售状态", sailstate: "图书销售状态",
lendouttime: "借出日期", lendouttime: "借出日期",
returntime: "归还日期", returntime: "归还日期",
tag: "标签", tag: "标签",
icon: "图书封面",
subtext: "图书描述", subtext: "图书描述",
createman: "建立人", createman: "建立人",
createdate: "建立时间", createdate: "建立时间",
......
...@@ -121,13 +121,6 @@ ...@@ -121,13 +121,6 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.icon.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='icon' :itemRules="this.rules().icon" class='' :caption="$t('entities.ibizbook.main_form.details.icon')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.icon.error" :isEmptyCaption="false" labelPos="LEFT">
<app-image-upload :multiple="false" :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='icon' :value="data.icon" :disabled="detailsModel.icon.disabled" :uploadparams='{}' :exportparams='{}' ></app-image-upload>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.sailstate.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }"> <i-col v-show="detailsModel.sailstate.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='sailstate' :itemRules="this.rules().sailstate" class='' :caption="$t('entities.ibizbook.main_form.details.sailstate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sailstate.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='sailstate' :itemRules="this.rules().sailstate" class='' :caption="$t('entities.ibizbook.main_form.details.sailstate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sailstate.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -183,7 +176,14 @@ ...@@ -183,7 +176,14 @@
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.subtext.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.icon.visible" :style="{}" :sm="{ span: 8, offset: 1 }" :md="{ span: 8, offset: 1 }" :lg="{ span: 8, offset: 1 }" :xl="{ span: 8, offset: 1 }">
<app-form-item name='icon' :itemRules="this.rules().icon" class='' :caption="$t('entities.ibizbook.main_form.details.icon')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.icon.error" :isEmptyCaption="false" labelPos="LEFT">
<app-image-upload :multiple="false" :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='icon' :value="data.icon" :disabled="detailsModel.icon.disabled" :uploadparams='{}' :exportparams='{}' ></app-image-upload>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.subtext.visible" :style="{}" :sm="{ span: 15, offset: 0 }" :md="{ span: 15, offset: 0 }" :lg="{ span: 15, offset: 0 }" :xl="{ span: 15, offset: 0 }">
<app-form-item name='subtext' :itemRules="this.rules().subtext" class='' :caption="$t('entities.ibizbook.main_form.details.subtext')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.subtext.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='subtext' :itemRules="this.rules().subtext" class='' :caption="$t('entities.ibizbook.main_form.details.subtext')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.subtext.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.subtext" :textareaId="this.$util.createUUID()" :disabled="detailsModel.subtext.disabled" type='textarea' textareaStyle="height:200px;" ></input-box> <input-box v-model="data.subtext" :textareaId="this.$util.createUUID()" :disabled="detailsModel.subtext.disabled" type='textarea' textareaStyle="height:200px;" ></input-box>
...@@ -658,11 +658,11 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -658,11 +658,11 @@ export default class MainBase extends Vue implements ControlInterface {
price: null, price: null,
type: null, type: null,
booknumber: null, booknumber: null,
icon: null,
sailstate: null, sailstate: null,
lendouttime: null, lendouttime: null,
returntime: null, returntime: null,
tag: null, tag: null,
icon: null,
subtext: null, subtext: null,
createman: null, createman: null,
createdate: null, createdate: null,
...@@ -747,10 +747,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -747,10 +747,6 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.booknumber.required, type: 'number', message: '图书数量 值不能为空', trigger: 'change' }, { required: this.detailsModel.booknumber.required, type: 'number', message: '图书数量 值不能为空', trigger: 'change' },
{ required: this.detailsModel.booknumber.required, type: 'number', message: '图书数量 值不能为空', trigger: 'blur' }, { required: this.detailsModel.booknumber.required, type: 'number', message: '图书数量 值不能为空', trigger: 'blur' },
], ],
icon: [
{ required: this.detailsModel.icon.required, type: 'string', message: '图标 值不能为空', trigger: 'change' },
{ required: this.detailsModel.icon.required, type: 'string', message: '图标 值不能为空', trigger: 'blur' },
],
sailstate: [ sailstate: [
{ required: this.detailsModel.sailstate.required, type: 'string', message: '图书销售状态 值不能为空', trigger: 'change' }, { required: this.detailsModel.sailstate.required, type: 'string', message: '图书销售状态 值不能为空', trigger: 'change' },
{ required: this.detailsModel.sailstate.required, type: 'string', message: '图书销售状态 值不能为空', trigger: 'blur' }, { required: this.detailsModel.sailstate.required, type: 'string', message: '图书销售状态 值不能为空', trigger: 'blur' },
...@@ -767,6 +763,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -767,6 +763,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.tag.required, type: 'string', message: '标签 值不能为空', trigger: 'change' }, { required: this.detailsModel.tag.required, type: 'string', message: '标签 值不能为空', trigger: 'change' },
{ required: this.detailsModel.tag.required, type: 'string', message: '标签 值不能为空', trigger: 'blur' }, { required: this.detailsModel.tag.required, type: 'string', message: '标签 值不能为空', trigger: 'blur' },
], ],
icon: [
{ required: this.detailsModel.icon.required, type: 'string', message: '图书封面 值不能为空', trigger: 'change' },
{ required: this.detailsModel.icon.required, type: 'string', message: '图书封面 值不能为空', trigger: 'blur' },
],
subtext: [ subtext: [
{ required: this.detailsModel.subtext.required, type: 'string', message: '图书描述 值不能为空', trigger: 'change' }, { required: this.detailsModel.subtext.required, type: 'string', message: '图书描述 值不能为空', trigger: 'change' },
{ required: this.detailsModel.subtext.required, type: 'string', message: '图书描述 值不能为空', trigger: 'blur' }, { required: this.detailsModel.subtext.required, type: 'string', message: '图书描述 值不能为空', trigger: 'blur' },
...@@ -929,8 +929,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -929,8 +929,6 @@ export default class MainBase extends Vue implements ControlInterface {
type: new FormItemModel({ caption: '图书类型', detailType: 'FORMITEM', name: 'type', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) type: new FormItemModel({ caption: '图书类型', detailType: 'FORMITEM', name: 'type', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
booknumber: new FormItemModel({ caption: '图书数量', detailType: 'FORMITEM', name: 'booknumber', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) booknumber: new FormItemModel({ caption: '图书数量', detailType: 'FORMITEM', name: 'booknumber', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
icon: new FormItemModel({ caption: '图标', detailType: 'FORMITEM', name: 'icon', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
sailstate: new FormItemModel({ caption: '图书销售状态', detailType: 'FORMITEM', name: 'sailstate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) sailstate: new FormItemModel({ caption: '图书销售状态', detailType: 'FORMITEM', name: 'sailstate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -939,6 +937,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -939,6 +937,8 @@ export default class MainBase extends Vue implements ControlInterface {
returntime: new FormItemModel({ caption: '归还日期', detailType: 'FORMITEM', name: 'returntime', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 }) returntime: new FormItemModel({ caption: '归还日期', detailType: 'FORMITEM', name: 'returntime', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
tag: new FormItemModel({ caption: '标签', detailType: 'FORMITEM', name: 'tag', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) tag: new FormItemModel({ caption: '标签', detailType: 'FORMITEM', name: 'tag', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
icon: new FormItemModel({ caption: '图书封面', detailType: 'FORMITEM', name: 'icon', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
subtext: new FormItemModel({ caption: '图书描述', detailType: 'FORMITEM', name: 'subtext', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) subtext: new FormItemModel({ caption: '图书描述', detailType: 'FORMITEM', name: 'subtext', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -1133,18 +1133,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1133,18 +1133,6 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'booknumber', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'booknumber', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 icon 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.icon')
onIconChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'icon', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 sailstate 值 * 监控表单属性 sailstate 值
* *
...@@ -1193,6 +1181,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1193,6 +1181,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'tag', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'tag', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 icon 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.icon')
onIconChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'icon', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 subtext 值 * 监控表单属性 subtext 值
* *
......
...@@ -90,11 +90,6 @@ export default class MainModel { ...@@ -90,11 +90,6 @@ export default class MainModel {
prop: 'booknumber', prop: 'booknumber',
dataType: 'INT', dataType: 'INT',
}, },
{
name: 'icon',
prop: 'icon',
dataType: 'TEXT',
},
{ {
name: 'sailstate', name: 'sailstate',
prop: 'sailstate', prop: 'sailstate',
...@@ -115,6 +110,11 @@ export default class MainModel { ...@@ -115,6 +110,11 @@ export default class MainModel {
prop: 'tag', prop: 'tag',
dataType: 'LONGTEXT', dataType: 'LONGTEXT',
}, },
{
name: 'icon',
prop: 'icon',
dataType: 'TEXT',
},
{ {
name: 'subtext', name: 'subtext',
prop: 'subtext', prop: 'subtext',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册