Browse Source

新增连麦开关

1
mo 3 years ago
parent
commit
aa21ed8939

+ 7 - 1
src/views/liveClassManager/liveClassDetail.vue

@@ -95,7 +95,13 @@
             align="center"
             prop="totalViewTime"
             label="观看时长"
-          ></el-table-column>
+          >
+          <template slot-scope="scope">
+            <div>
+              {{scope.row.totalViewTime}}分钟
+            </div>
+          </template>
+          </el-table-column>
         </el-table>
         <pagination
           sync

+ 15 - 1
src/views/liveClassManager/newLiveClass.vue

@@ -201,6 +201,20 @@
             </el-radio-group>
           </el-form-item>
         </el-row>
+            <el-row class="row">
+          <el-form-item
+            prop="roomConfig.whether_mic"
+            label-width="120px"
+            class="mline"
+            label="允许连麦"
+            :rules="[{ required: true, message: '是否允许连麦' }]"
+          >
+            <el-radio-group v-model="form.roomConfig.whether_mic">
+              <el-radio :label="0">是</el-radio>
+              <el-radio :label="1">否</el-radio>
+            </el-radio-group>
+          </el-form-item>
+        </el-row>
       </el-form>
       <el-row class="row">
         <el-button type="primary" @click="preLook">预览</el-button>
@@ -236,7 +250,7 @@ export default {
         liveStartTime: "",
         liveRemark: "",
         preTemplate: null,
-        roomConfig: { whether_like: 0, whether_chat: 0, whether_video: 0 },
+        roomConfig: { whether_like: 0, whether_chat: 0, whether_video: 0, whether_mic:0},
         checkList: [],
       },
       remoteLoading: false,

+ 2 - 2
vue.config.js

@@ -19,8 +19,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // let target = 'http://192.168.3.251:8000' // 何国威
 // let target = 'http://192.168.3.250:8000' //邹璇
 // let target = 'http://192.168.3.119:8000' //勇哥
-let target = 'http://dev.dayaedu.com' // 开发环境
-// let target = 'https://test.dayaedu.com' //测试环境
+// let target = 'http://dev.dayaedu.com' // 开发环境
+let target = 'https://test.dayaedu.com' //测试环境
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {
   /**