|
@@ -211,6 +211,16 @@
|
|
|
<el-form-item label="课程封面" prop="imgUrl">
|
|
|
<ImageUpload v-model="form.imgUrl" type="image" :num="10" :width="150" :height="150"/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="关联公司" prop="tags">
|
|
|
+ <el-select v-model="companyIds" multiple placeholder="请选择公司" filterable clearable style="width: 90%;">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in companyOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -523,6 +533,7 @@ export default {
|
|
|
};
|
|
|
this.tags = [];
|
|
|
this.subCategoryOptions = []
|
|
|
+ this.companyIds = []
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
@@ -596,6 +607,7 @@ export default {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
|
|
|
+ this.form.companyIds = this.companyIds.toString()
|
|
|
// 私域课程
|
|
|
this.form.isPrivate = 1
|
|
|
if (this.form.courseId != null) {
|