|
@@ -75,7 +75,7 @@ export default {
|
|
{ label: '单选', value: 'SIGIN' },
|
|
{ label: '单选', value: 'SIGIN' },
|
|
{ label: '多选', value: 'MANY' }
|
|
{ label: '多选', value: 'MANY' }
|
|
],
|
|
],
|
|
- attributes: { disabled: this.formData.id ? true : false },
|
|
|
|
|
|
+ attributes: { disabled: this.formData.id || this.formData.typeAttribute == 'SPEC' ? true : false },
|
|
formItemAttributes: {
|
|
formItemAttributes: {
|
|
label: '选项属性',
|
|
label: '选项属性',
|
|
prop: 'typeOption',
|
|
prop: 'typeOption',
|
|
@@ -96,6 +96,13 @@ export default {
|
|
label: '属性类型',
|
|
label: '属性类型',
|
|
prop: 'typeAttribute',
|
|
prop: 'typeAttribute',
|
|
rules: [...required]
|
|
rules: [...required]
|
|
|
|
+ },
|
|
|
|
+ events: {
|
|
|
|
+ change: val => {
|
|
|
|
+ if (val == 'SPEC') {
|
|
|
|
+ this.formData.typeOption = 'SIGIN'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|