diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue
index c1b630d5..0856ac13 100644
--- a/src/components/Course/courseForm.vue
+++ b/src/components/Course/courseForm.vue
@@ -149,7 +149,7 @@
show-word-limit
:rows="3"
v-model="courseInfo.summary"
- placeholder="请尽量填写课程简介(限255字以内),用于列表中显示,可以让用户更容易了解课程信息">
+ placeholder="请尽量填写课程简介,用于列表中显示,可以让用户更容易了解课程信息">
@@ -258,9 +258,9 @@
-
+
-
+
@@ -303,10 +303,10 @@
+ placeholder="请尽量填写课程简介,用于列表中显示,可以让用户更容易了解课程信息">
@@ -843,14 +843,25 @@ export default {
let crowdList=[];
if(result.crowds && result.crowds.length>0){
result.crowds.forEach(crowd=>{
- crowdList.push({
+ let newCrowd={
key:crowd.groupId,
value:crowd.groupName,
+ disabled:false,
text:''
- })
+ }
+ crowdList.push(newCrowd);
+ let hasUG=$this.userGroupList.some(ug=>{
+ return ug.key==crowd.groupId;
+ });
+ if(!hasUG){
+ newCrowd.disabled=true;
+ $this.userGroupList.push(newCrowd);
+ }
});
}
this.courseCrowds=crowdList;
+ //反向看userGroupList是否有
+
//课程图片
if (this.courseInfo.coverImg != '') {
this.courseCoverurl = this.fileUrl+this.courseInfo.coverImg;
@@ -1311,7 +1322,7 @@ export default {
if (this.sysTypeList.length > 2) {
this.courseInfo.sysType3 = this.sysTypeList[2]; //三级的id
}
-
+
//受众的处理
let crowds=[];
this.courseCrowds.forEach(item=>{