Prechádzať zdrojové kódy

九州,总后台系统配置增加配置App看课功能

cgp 23 hodín pred
rodič
commit
6a6217cd69
1 zmenil súbory, kde vykonal 28 pridanie a 0 odobranie
  1. 28 0
      src/views/system/config/config.vue

+ 28 - 0
src/views/system/config/config.vue

@@ -2541,6 +2541,21 @@
         </div>
       </el-tab-pane>
 
+      <el-tab-pane label="APP看课配置" name="courseAppConfig.config">
+        <el-form ref="form35" :model="form35" :rules="rules35" label-width="300px">
+          <el-form-item label="是否开启app看课">
+            <el-radio-group v-model="form35.view_course_app">
+              <el-radio :label="1">是</el-radio>
+              <el-radio :label="0">否</el-radio>
+            </el-radio-group>
+          </el-form-item>
+        </el-form>
+
+        <div class="footer">
+          <el-button type="primary" @click="submitForm35">提 交</el-button>
+        </div>
+      </el-tab-pane>
+
     </el-tabs>
 
 
@@ -2738,6 +2753,7 @@ export default {
       form32:{},
       form33:{},
       form34:{},
+      form35:{},
       storeProductScrmColumns:[],
       storeScrmColumns: [],
       photoArr: [],
@@ -2796,6 +2812,7 @@ export default {
       rules26: {},
       rules33: {},
       rules34: {},
+      rules35: {},
     }
   },
   created() {
@@ -3149,6 +3166,9 @@ export default {
         if(key=="im.config"){
           this.form34 =JSON.parse(response.data.configValue);
         }
+        if(key=="courseAppConfig.config"){
+          this.form35 =JSON.parse(response.data.configValue);
+        }
         if(key == 'vc.config'){
            if(!!response.data){
           this.configId = response.data.configId
@@ -3473,6 +3493,14 @@ export default {
         }
       });
     },
+    submitForm35(){
+      var param={configId:this.configId,configName : "APP看课配置", configKey: this.configKey,configValue:JSON.stringify(this.form35)}
+      updateConfigByKey(param).then(response => {
+        if (response.code === 200) {
+          this.msgSuccess("修改成功");
+        }
+      });
+    },
     submitForm32(){
       const param = { configId: this.configId, configName : "直播源配置", configKey: this.configKey, configValue: JSON.stringify(this.form32) }
       console.log(param)