浏览代码

直播配置页面

yfh 3 周之前
父节点
当前提交
c0aa0f9c0f
共有 1 个文件被更改,包括 34 次插入1 次删除
  1. 34 1
      src/views/system/config/config.vue

+ 34 - 1
src/views/system/config/config.vue

@@ -2451,7 +2451,22 @@
           </div>
         </el-form>
       </el-tab-pane>
-
+      <el-tab-pane label="直播配置" name="living.config">
+        <el-form ref="form32" :model="form32" label-width="150px">
+          <el-form-item label="类型" prop="app">
+            <el-radio-group v-model="form32.app">
+              <el-radio label="live">直播</el-radio>
+            </el-radio-group>
+          </el-form-item>
+          <el-form-item label="直播流链接" prop="domain">
+            <el-input v-model="form32.domain" label="请输入domain"></el-input>
+          </el-form-item>
+          <br>
+          <div class="footer">
+            <el-button type="primary" @click="submitForm32">提 交</el-button>
+          </div>
+        </el-form>
+      </el-tab-pane>
     </el-tabs>
 
 
@@ -2643,6 +2658,7 @@ export default {
         ],
 
       },
+      form32:{},
       storeProductScrmColumns:[],
       storeScrmColumns: [],
       photoArr: [],
@@ -3044,6 +3060,14 @@ export default {
           this.form30 = {...this.form30, ...JSON.parse(response.data.configValue)}
           }
         }
+        if(key == 'living.config'){
+          if(!!response.data){
+            this.configId = response.data.configId
+            this.configKey = response.data.configKey
+            this.form32 = {...this.form32, ...JSON.parse(response.data.configValue)}
+            console.log(this.form32 );
+          }
+        }
       })
     },
     /** 提交按钮 */
@@ -3332,6 +3356,15 @@ export default {
       console.log(this.form27.pass_columns)
 
     },
+    submitForm32(){
+      const param = { configId: this.configId, configName : "直播源配置", configKey: this.configKey, configValue: JSON.stringify(this.form32) }
+      console.log(param)
+      updateConfigByKey(param).then(response => {
+        if (response.code === 200) {
+          this.msgSuccess('修改成功')
+        }
+      })
+    },
     submitForm24() {
       this.$refs['form24'].validate(valid => {
         if (valid) {