|
@@ -771,6 +771,23 @@ export default {
|
|
|
},
|
|
|
rulesThis: this.rules,
|
|
|
rules: {
|
|
|
+ platform_order:[
|
|
|
+ {
|
|
|
+ trigger: 'change',
|
|
|
+ validator:(rule, value, callback) => {
|
|
|
+ const len = value.length
|
|
|
+ if (value === '' || !value) {
|
|
|
+ callback()
|
|
|
+ } else if (len < 0 || len > 255) {
|
|
|
+ callback(new Error('仅支持大写字母数字组合,多个编号使用逗号分隔(0~255位)!'))
|
|
|
+ } else if (/^(?=.*[A-Z])(?=.*\d)[A-Z\d]+(?:,[A-Z\d]+)*$/.test(value) == false) {
|
|
|
+ callback(new Error('仅支持大写字母数字组合,多个编号使用逗号分隔(0~255位)!'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
managerid: [
|
|
|
{
|
|
|
required: true,
|