|
@@ -72,7 +72,7 @@ export default {
|
|
|
{ label: '单选', value: 'SIGIN' },
|
|
|
{ label: '多选', value: 'MANY' }
|
|
|
],
|
|
|
- attributes: { disabled: this.formData.id ? true : false },
|
|
|
+ attributes: { disabled: this.formData.categoryId ? true : false },
|
|
|
formItemAttributes: {
|
|
|
label: '选项属性',
|
|
|
prop: 'typeOption',
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
// { label: '增减参考金额', value: 'DED' },
|
|
|
{ label: '其他', value: 'OTHER' }
|
|
|
],
|
|
|
- attributes: { disabled: this.formData.id ? true : false },
|
|
|
+ attributes: { disabled: this.formData.categoryId ? true : false },
|
|
|
formItemAttributes: {
|
|
|
label: '属性类型',
|
|
|
prop: 'typeAttribute',
|
|
@@ -180,7 +180,7 @@ export default {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
;[serviceCategoryAdd, serviceCategoryUpdate]
|
|
|
- [this.formData.id ? 1 : 0]({
|
|
|
+ [this.formData.categoryId ? 1 : 0]({
|
|
|
...this.formData,
|
|
|
// imgUrl: this.formData.imgUrl.map(item => item.imgUrl).join(','),
|
|
|
// ...(() => {
|