mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交修改
This commit is contained in:
@@ -149,7 +149,7 @@
|
|||||||
show-word-limit
|
show-word-limit
|
||||||
:rows="3"
|
:rows="3"
|
||||||
v-model="courseInfo.summary"
|
v-model="courseInfo.summary"
|
||||||
placeholder="请尽量填写课程简介(限255字以内),用于列表中显示,可以让用户更容易了解课程信息">
|
placeholder="请尽量填写课程简介,用于列表中显示,可以让用户更容易了解课程信息">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -258,9 +258,9 @@
|
|||||||
<el-form-item label="目标人群" required>
|
<el-form-item label="目标人群" required>
|
||||||
<el-input maxlength="50" v-model="courseInfo.forUsers" show-word-limit placeholder="目标人群(限50字以内)"></el-input>
|
<el-input maxlength="50" v-model="courseInfo.forUsers" show-word-limit placeholder="目标人群(限50字以内)"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="受众">
|
<el-form-item label="受众"><!--:disabled="item.disabled"-->
|
||||||
<el-select value-key="key" style="width: 100%;" v-model="courseCrowds" filterable multiple placeholder="请选择">
|
<el-select value-key="key" style="width: 100%;" v-model="courseCrowds" filterable multiple placeholder="请选择">
|
||||||
<el-option v-for="item in userGroupList" :key="item.key" :label="item.value" :value="item"></el-option>
|
<el-option v-for="item in userGroupList" :key="item.key" :label="item.value" :value="item"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="课程价值"><el-input maxlength="200" v-model="courseInfo.value" show-word-limit placeholder="课程价值(限200字以内)"></el-input></el-form-item>
|
<el-form-item label="课程价值"><el-input maxlength="200" v-model="courseInfo.value" show-word-limit placeholder="课程价值(限200字以内)"></el-input></el-form-item>
|
||||||
@@ -303,10 +303,10 @@
|
|||||||
<el-input
|
<el-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
maxlength="150"
|
maxlength="255"
|
||||||
:rows="5"
|
:rows="5"
|
||||||
v-model="courseInfo.summary"
|
v-model="courseInfo.summary"
|
||||||
placeholder="请尽量填写课程简介(限255字以内),用于列表中显示,可以让用户更容易了解课程信息">
|
placeholder="请尽量填写课程简介,用于列表中显示,可以让用户更容易了解课程信息">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- v-if="!weike.onlyRequired" -->
|
<!-- v-if="!weike.onlyRequired" -->
|
||||||
@@ -843,14 +843,25 @@ export default {
|
|||||||
let crowdList=[];
|
let crowdList=[];
|
||||||
if(result.crowds && result.crowds.length>0){
|
if(result.crowds && result.crowds.length>0){
|
||||||
result.crowds.forEach(crowd=>{
|
result.crowds.forEach(crowd=>{
|
||||||
crowdList.push({
|
let newCrowd={
|
||||||
key:crowd.groupId,
|
key:crowd.groupId,
|
||||||
value:crowd.groupName,
|
value:crowd.groupName,
|
||||||
|
disabled:false,
|
||||||
text:''
|
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;
|
this.courseCrowds=crowdList;
|
||||||
|
//反向看userGroupList是否有
|
||||||
|
|
||||||
//课程图片
|
//课程图片
|
||||||
if (this.courseInfo.coverImg != '') {
|
if (this.courseInfo.coverImg != '') {
|
||||||
this.courseCoverurl = this.fileUrl+this.courseInfo.coverImg;
|
this.courseCoverurl = this.fileUrl+this.courseInfo.coverImg;
|
||||||
@@ -1311,7 +1322,7 @@ export default {
|
|||||||
if (this.sysTypeList.length > 2) {
|
if (this.sysTypeList.length > 2) {
|
||||||
this.courseInfo.sysType3 = this.sysTypeList[2]; //三级的id
|
this.courseInfo.sysType3 = this.sysTypeList[2]; //三级的id
|
||||||
}
|
}
|
||||||
|
|
||||||
//受众的处理
|
//受众的处理
|
||||||
let crowds=[];
|
let crowds=[];
|
||||||
this.courseCrowds.forEach(item=>{
|
this.courseCrowds.forEach(item=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user