|
@@ -44,6 +44,7 @@
|
|
|
filterable
|
|
|
:remote-method="remoteMethod"
|
|
|
:loading="remoteLoading"
|
|
|
+ @change="changeTeacher"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in teacherList"
|
|
@@ -101,6 +102,7 @@
|
|
|
<img src="./images/img1.png" alt="" />
|
|
|
<!-- v-model="form.preTemplate" -->
|
|
|
<div class="remberBox">
|
|
|
+ <div class="wrap"></div>
|
|
|
<el-checkbox
|
|
|
class="chioseBox"
|
|
|
:label="1"
|
|
@@ -117,6 +119,7 @@
|
|
|
<img src="./images/img2.png" alt="" />
|
|
|
<div class="remberBox">
|
|
|
<!-- v-model="form.preTemplate" -->
|
|
|
+ <div class="wrap"></div>
|
|
|
<el-checkbox
|
|
|
name="2"
|
|
|
class="chioseBox"
|
|
@@ -133,6 +136,7 @@
|
|
|
<div class="chioseItem" @click="setPreTemplate(3)">
|
|
|
<img src="./images/img3.png" alt="" />
|
|
|
<div class="remberBox">
|
|
|
+ <div class="wrap"></div>
|
|
|
<el-checkbox
|
|
|
class="chioseBox"
|
|
|
:label="3"
|
|
@@ -164,8 +168,8 @@
|
|
|
:rules="[{ required: true, message: '是否允许点赞' }]"
|
|
|
>
|
|
|
<el-radio-group v-model="form.roomConfig.whether_like">
|
|
|
- <el-radio :label="1">是</el-radio>
|
|
|
- <el-radio :label="0">否</el-radio>
|
|
|
+ <el-radio label="1">是</el-radio>
|
|
|
+ <el-radio label="0">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
@@ -178,8 +182,8 @@
|
|
|
:rules="[{ required: true, message: '是否允许聊天互动' }]"
|
|
|
>
|
|
|
<el-radio-group v-model="form.roomConfig.whether_chat">
|
|
|
- <el-radio :label="1">是</el-radio>
|
|
|
- <el-radio :label="0">否</el-radio>
|
|
|
+ <el-radio label="1">是</el-radio>
|
|
|
+ <el-radio label="0">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
@@ -189,11 +193,11 @@
|
|
|
label-width="120px"
|
|
|
class="mline"
|
|
|
label="保存直播回放"
|
|
|
- :rules="[{ required: true, message: '请选择允许点赞' }]"
|
|
|
+ :rules="[{ required: true, message: '是否保存直播回放' }]"
|
|
|
>
|
|
|
<el-radio-group v-model="form.roomConfig.whether_video">
|
|
|
- <el-radio :label="1">是</el-radio>
|
|
|
- <el-radio :label="0">否</el-radio>
|
|
|
+ <el-radio label="1">是</el-radio>
|
|
|
+ <el-radio label="0">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
@@ -232,7 +236,7 @@ export default {
|
|
|
liveStartTime: "",
|
|
|
liveRemark: "",
|
|
|
preTemplate: null,
|
|
|
- roomConfig: { whether_like: "", whether_chat: "", whether_video: "" },
|
|
|
+ roomConfig: { whether_like: "1", whether_chat: "1", whether_video: "1" },
|
|
|
checkList: [],
|
|
|
},
|
|
|
remoteLoading: false,
|
|
@@ -255,6 +259,13 @@ export default {
|
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push("/liveClassManager");
|
|
|
},
|
|
|
+ changeTeacher(val){
|
|
|
+ this.teacherList.forEach(item=>{
|
|
|
+ if(val == item.id){
|
|
|
+ this.form.speakerName = item.realName
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
preLook() {
|
|
|
console.log(this.form);
|
|
|
this.$refs.form.validate((flag) => {
|
|
@@ -265,15 +276,18 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
setPreTemplate(index) {
|
|
|
+ console.log('调用',index)
|
|
|
this.$set(this.form, "preTemplate", index);
|
|
|
if (this.checkList.indexOf(index) == -1) {
|
|
|
this.checkList.push(index);
|
|
|
} else {
|
|
|
this.checkList.splice(this.checkList.indexOf(index), 1);
|
|
|
}
|
|
|
+ console.log('调用结束',index)
|
|
|
this.bindCheckBox();
|
|
|
},
|
|
|
remoteMethod(query) {
|
|
|
+ this.teacherList = [];
|
|
|
if (query !== "") {
|
|
|
this.remoteLoading = true;
|
|
|
// 发请求搜索
|
|
@@ -405,13 +419,20 @@ export default {
|
|
|
height: 188px;
|
|
|
cursor: pointer;
|
|
|
.remberBox {
|
|
|
+ .wrap {
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ z-index: 100;
|
|
|
+ position: absolute;
|
|
|
+ // background-color: red;
|
|
|
+ }
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: flex-start;
|
|
|
margin-bottom: 30px;
|
|
|
padding-top: 10px;
|
|
|
align-items: center;
|
|
|
-
|
|
|
+ position: relative;
|
|
|
color: #6d7278;
|
|
|
font-size: 16px;
|
|
|
position: absolute;
|