|
@@ -267,7 +267,17 @@ li.chouzhen.first:before {
|
|
|
<a-input
|
|
|
v-decorator="[
|
|
|
'channelCode',
|
|
|
- { rules: [{ required: true, message: '请填写渠道号' }] }
|
|
|
+ {
|
|
|
+ rules: [
|
|
|
+ { required: true, message: '请填写渠道号' },
|
|
|
+ {
|
|
|
+ min: 1,
|
|
|
+ max: 20,
|
|
|
+ message: '渠道号不能超过20个字符',
|
|
|
+ trigger: 'blur'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
]"
|
|
|
allow-clear
|
|
|
id="channelCode"
|
|
@@ -291,7 +301,17 @@ li.chouzhen.first:before {
|
|
|
<a-input
|
|
|
v-decorator="[
|
|
|
'channelName',
|
|
|
- { rules: [{ required: true, message: '请填写渠道号' }] }
|
|
|
+ {
|
|
|
+ rules: [
|
|
|
+ { required: true, message: '请填写渠道号' },
|
|
|
+ {
|
|
|
+ min: 1,
|
|
|
+ max: 50,
|
|
|
+ message: '渠道号名称不能超过50个字符',
|
|
|
+ trigger: 'blur'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
]"
|
|
|
allow-clear
|
|
|
id="channelName"
|
|
@@ -406,7 +426,7 @@ li.chouzhen.first:before {
|
|
|
'isHaveItem',
|
|
|
{
|
|
|
rules: [{ required: true, message: '是否关联单品必选' }],
|
|
|
- initialValue: 1
|
|
|
+ initialValue: 0
|
|
|
}
|
|
|
]"
|
|
|
>
|
|
@@ -420,7 +440,7 @@ li.chouzhen.first:before {
|
|
|
<a-col :span="16">
|
|
|
<a-form-item label="使用层级">
|
|
|
<a-radio-group
|
|
|
- disabled
|
|
|
+
|
|
|
button-style="solid"
|
|
|
v-decorator="[
|
|
|
'usageLevel',
|
|
@@ -441,7 +461,7 @@ li.chouzhen.first:before {
|
|
|
<a-col :span="16">
|
|
|
<a-form-item label="是否循环使用">
|
|
|
<a-radio-group
|
|
|
- disabled
|
|
|
+
|
|
|
button-style="solid"
|
|
|
v-decorator="[
|
|
|
'isCycle',
|
|
@@ -632,13 +652,13 @@ export default {
|
|
|
let z = /-/g
|
|
|
let a = /\//g
|
|
|
let d = /\./g
|
|
|
- if (value === '' || value === undefined || value === 0 || value === '0') {
|
|
|
+ if (value === '' || value === undefined || value === 0 || value === '0') {
|
|
|
callback('编号必须填写')
|
|
|
} else if (value.match(d)) {
|
|
|
callback('请填写正确编号')
|
|
|
} else if (value.match(a)) {
|
|
|
callback('请填写正确编号')
|
|
|
- } else if (value.match(z)&&value.match(z).length > 1) {
|
|
|
+ } else if (value.match(z) && value.match(z).length > 1) {
|
|
|
callback('请填写正确编号')
|
|
|
} else if (value.startsWith('-') || value.endsWith('-')) {
|
|
|
callback('请填写正确编号')
|
|
@@ -752,7 +772,7 @@ export default {
|
|
|
},
|
|
|
goBack() {
|
|
|
localStorage.removeItem('channelInfo')
|
|
|
- this.$router.replace('/autoLaunch/channelManage')
|
|
|
+ this.$router.replace('/autoLaunch/channelAdmin')
|
|
|
this.$bus.$emit('remove', '/autoLaunch/createChannelIndex')
|
|
|
|
|
|
this.$bus.$emit('remove', '/autoLaunch/createChannelIndex?accountId=' + this.$route.query.accountId)
|