|
|
@@ -25,8 +25,8 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="产品分类" prop="prodClass">
|
|
|
- <el-select v-model="editForm.prodClass" placeholder="请选择产品分类" style="width: 100%">
|
|
|
- <el-option v-for="item in classOptions" :key="item.value" :label="item.value" :value="item.value" />
|
|
|
+ <el-select v-model="editForm.prodClass" clearable placeholder="请选择产品分类" style="width: 100%">
|
|
|
+ <el-option v-for="item in classOptions" :key="item.value" :label="item.value" :value="item.key" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -129,7 +129,7 @@
|
|
|
this.dialogFormVisible = true
|
|
|
},
|
|
|
getOptions() {
|
|
|
- Promise.all([this.getDicts('product_type')])
|
|
|
+ Promise.all([this.getDicts('sys_product_line')])
|
|
|
.then(([productType]) => {
|
|
|
this.classOptions = productType.data.values || []
|
|
|
})
|
|
|
@@ -166,7 +166,7 @@
|
|
|
this.$baseMessage(msg, 'success', 'vab-hey-message-success')
|
|
|
}
|
|
|
this.$emit('fetch-data')
|
|
|
- this.editVisible = false
|
|
|
+ this.dialogFormVisible = false
|
|
|
}
|
|
|
})
|
|
|
},
|