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

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

上级 00098596
......@@ -183,7 +183,7 @@ export default {
ibizbookid: "图书标识",
ibizbookname: "非空",
author: "图书作者",
press: "图书出版社",
press: "右包含",
price: "数值范围",
type: "字符长度",
booknumber: "左包含",
......
......@@ -182,7 +182,7 @@ export default {
ibizbookid: "图书标识",
ibizbookname: "非空",
author: "图书作者",
press: "图书出版社",
press: "右包含",
price: "数值范围",
type: "字符长度",
booknumber: "左包含",
......
......@@ -604,8 +604,10 @@ export default class RulesFormBase extends Vue implements ControlInterface {
{ required: this.detailsModel.author.required, type: 'string', message: '图书作者 值不能为空', trigger: 'blur' },
],
press: [
{ required: this.detailsModel.press.required, type: 'string', message: '图书出版社 值不能为空', trigger: 'change' },
{ required: this.detailsModel.press.required, type: 'string', message: '图书出版社 值不能为空', trigger: 'blur' },
{ required: this.detailsModel.press.required, type: 'string', message: '右包含 值不能为空', trigger: 'change' },
{ required: this.detailsModel.press.required, type: 'string', message: '右包含 值不能为空', trigger: 'blur' },
{validator:(rule:any, value:any)=>{return this.verifyDeRules("press").isPast},message: this.verifyDeRules("press").infoMessage, trigger: 'change' },
{validator:(rule:any, value:any)=>{return this.verifyDeRules("press").isPast},message: this.verifyDeRules("press").infoMessage, trigger: 'blur' },
],
price: [
{ required: this.detailsModel.price.required, type: 'number', message: '数值范围 值不能为空', trigger: 'change' },
......@@ -632,8 +634,7 @@ export default class RulesFormBase extends Vue implements ControlInterface {
icon: [
{ required: this.detailsModel.icon.required, type: 'string', message: '正则式 值不能为空', trigger: 'change' },
{ required: this.detailsModel.icon.required, type: 'string', message: '正则式 值不能为空', trigger: 'blur' },
{validator:(rule:any, value:any)=>{return this.verifyDeRules("icon").isPast},message: this.verifyDeRules("icon").infoMessage, trigger: 'change' },
{validator:(rule:any, value:any)=>{return this.verifyDeRules("icon").isPast},message: this.verifyDeRules("icon").infoMessage, trigger: 'blur' },
{ pattern: /[^\\\/\:\*\?\"\<\>\|]+(\[^\\\/\:\*\?\"\<\>\|]+)*/, message: '内容不能包括/、\、?、*、<、>、:', trigger: 'change' },
],
lendouttime: [
{ required: this.detailsModel.lendouttime.required, type: 'string', message: '借出日期 值不能为空', trigger: 'change' },
......@@ -685,17 +686,6 @@ export default class RulesFormBase extends Vue implements ControlInterface {
]
},
],
icon:[
{
type:"REGEX",
condOP:"",
ruleInfo:"",
isKeyCond:false,
isNotMode:true,
regExCode:/[\u4e00-\u9fa5]{0,}$/,
deName:"icon",
},
],
type:[
{
type:"STRINGLENGTH",
......@@ -735,6 +725,17 @@ export default class RulesFormBase extends Vue implements ControlInterface {
deName:"booknumber",
},
],
press:[
{
type:"SIMPLE",
condOP:"RIGHTLIKE",
ruleInfo:"必须右包含出版社",
isKeyCond:false,
paramValue:"出版社",
isNotMode:false,
deName:"press",
},
],
};
/**
......@@ -856,7 +857,7 @@ export default class RulesFormBase extends Vue implements ControlInterface {
,
author: new FormItemModel({ caption: '图书作者', detailType: 'FORMITEM', name: 'author', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
press: new FormItemModel({ caption: '图书出版社', detailType: 'FORMITEM', name: 'press', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
press: new FormItemModel({ caption: '右包含', detailType: 'FORMITEM', name: 'press', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
price: new FormItemModel({ caption: '数值范围', detailType: 'FORMITEM', name: 'price', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册