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

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

上级 89a5b70c
......@@ -256,8 +256,6 @@ export default {
srfsourcekey: "",
ibizbookname: "非空",
author: "包含大写字母",
subtext: "包含小写字母",
icon: "正则式",
ibizbookid: "图书标识",
price: "数值范围",
type: "字符长度",
......
......@@ -255,8 +255,6 @@ export default {
srfsourcekey: "",
ibizbookname: "非空",
author: "包含大写字母",
subtext: "包含小写字母",
icon: "正则式",
ibizbookid: "图书标识",
price: "数值范围",
type: "字符长度",
......
......@@ -32,34 +32,6 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.subtext.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='subtext' :itemRules="this.rules().subtext" class='' :caption="$t('entities.ibizbook.rulesform_form.details.subtext')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.subtext.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.subtext"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.subtext.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.icon.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='icon' :itemRules="this.rules().icon" class='' :caption="$t('entities.ibizbook.rulesform_form.details.icon')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.icon.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.icon"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.icon.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
</row>
......@@ -529,8 +501,6 @@ export default class RulesFormBase extends Vue implements ControlInterface {
srfsourcekey: null,
ibizbookname: null,
author: null,
subtext: null,
icon: null,
ibizbookid: null,
price: null,
type: null,
......@@ -597,16 +567,6 @@ export default class RulesFormBase extends Vue implements ControlInterface {
{ required: this.detailsModel.author.required, type: 'string', message: '包含大写字母 值不能为空', trigger: 'blur' },
{ pattern: /[A-Z]+/, message: '内容必须由26个英文字母的大写组成的字符串', trigger: 'change' },
],
subtext: [
{ required: this.detailsModel.subtext.required, type: 'string', message: '包含小写字母 值不能为空', trigger: 'change' },
{ required: this.detailsModel.subtext.required, type: 'string', message: '包含小写字母 值不能为空', trigger: 'blur' },
{ pattern: /[A-Za-z]+/, message: '内容必须为26个英文字母组成的字符串', trigger: 'change' },
],
icon: [
{ required: this.detailsModel.icon.required, type: 'string', message: '正则式 值不能为空', trigger: 'change' },
{ required: this.detailsModel.icon.required, type: 'string', message: '正则式 值不能为空', trigger: 'blur' },
{ pattern: /[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+/, message: '内容必须为电子邮件格式', trigger: 'change' },
],
price: [
{ required: this.detailsModel.price.required, type: 'number', message: '数值范围 值不能为空', trigger: 'change' },
{ required: this.detailsModel.price.required, type: 'number', message: '数值范围 值不能为空', trigger: 'blur' },
......@@ -847,10 +807,6 @@ export default class RulesFormBase extends Vue implements ControlInterface {
ibizbookname: new FormItemModel({ caption: '非空', detailType: 'FORMITEM', name: 'ibizbookname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
,
author: new FormItemModel({ caption: '包含大写字母', detailType: 'FORMITEM', name: 'author', 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 })
,
icon: new FormItemModel({ caption: '正则式', detailType: 'FORMITEM', name: 'icon', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizbookid: new FormItemModel({ caption: '图书标识', detailType: 'FORMITEM', name: 'ibizbookid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -986,30 +942,6 @@ export default class RulesFormBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'author', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 subtext 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof RulesFormBase
*/
@Watch('data.subtext')
onSubtextChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'subtext', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 icon 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof RulesFormBase
*/
@Watch('data.icon')
onIconChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'icon', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizbookid 值
*
......@@ -1153,8 +1085,6 @@ export default class RulesFormBase extends Vue implements ControlInterface {
}
......
......@@ -65,16 +65,6 @@ export default class RulesFormModel {
prop: 'author',
dataType: 'TEXT',
},
{
name: 'subtext',
prop: 'subtext',
dataType: 'TEXT',
},
{
name: 'icon',
prop: 'icon',
dataType: 'TEXT',
},
{
name: 'ibizbookid',
prop: 'ibizbookid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册