فهرست منبع

添加IM相关配置

xgb 6 روز پیش
والد
کامیت
563100dc53
1فایلهای تغییر یافته به همراه15 افزوده شده و 1 حذف شده
  1. 15 1
      src/views/system/config/config.vue

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

@@ -2527,7 +2527,7 @@
         </el-form>
 
         <div class="footer">
-          <el-button type="primary" @click="submitForm31">提  交</el-button>
+          <el-button type="primary" @click="submitForm34">提  交</el-button>
         </div>
       </el-tab-pane>
 
@@ -2725,6 +2725,7 @@ export default {
       form31:{},
       form32:{},
       form33:{},
+      form34:{},
       storeProductScrmColumns:[],
       storeScrmColumns: [],
       photoArr: [],
@@ -2781,6 +2782,8 @@ export default {
       rules21: {},
       rules25: {},
       rules26: {},
+      rules33: {},
+      rules34: {},
     }
   },
   created() {
@@ -3131,6 +3134,9 @@ export default {
           console.log("----------"+response.data.configValue)
           this.form33 =JSON.parse(response.data.configValue);
         }
+        if(key=="im.config"){
+          this.form34 =JSON.parse(response.data.configValue);
+        }
         if(key == 'vc.config'){
            if(!!response.data){
           this.configId = response.data.configId
@@ -3447,6 +3453,14 @@ export default {
         }
       });
     },
+    submitForm34(){
+      var param={configId:this.configId,configValue:JSON.stringify(this.form34)}
+      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)