Browse Source

新增公司主域名配置

Long 2 weeks ago
parent
commit
28e51e1b72
1 changed files with 10 additions and 4 deletions
  1. 10 4
      src/views/system/config/config.vue

+ 10 - 4
src/views/system/config/config.vue

@@ -332,6 +332,9 @@
                <el-input-number  v-model="form18.answerIntegral" :min="1"    ></el-input-number>
              </el-tooltip>
            </el-form-item>
+           <el-form-item label="主域名">
+            <el-input  v-model="form18.courseDomainName" label="主域名"></el-input>
+           </el-form-item>
            <div class="line"></div>
            <div style="float:right;margin-right:20px">
              <el-button type="primary" @click="submitForm18">提交</el-button>
@@ -601,14 +604,17 @@ export default {
             }
            if(key=="course.config"){
              this.configId=response.data.configId;
+             this.configKey=response.data.configKey;
              this.form18 =JSON.parse(response.data.configValue);
            }
            if(key=="redPacket.config"){
              this.configId=response.data.configId;
+             this.configKey=response.data.configKey;
              this.form19 =JSON.parse(response.data.configValue);
            }
            if(key=="store.appShow"){
              this.configId=response.data.configId;
+             this.configKey=response.data.configKey;
              this.form10 =JSON.parse(response.data.configValue);
            }
         });
@@ -688,7 +694,7 @@ export default {
       });
     },
     submitForm7(){
-      var param={configId:this.configId,configValue:JSON.stringify(this.form7)}
+      var param={configId:this.configId,configKey:this.configKey,configValue:JSON.stringify(this.form7)}
       updateConfigByKey(param).then(response => {
         if (response.code === 200) {
           this.msgSuccess("修改成功");
@@ -696,7 +702,7 @@ export default {
       });
     },
     submitForm18(){
-      var param={configId:this.configId,configValue:JSON.stringify(this.form18)}
+      var param={configId:this.configId,configKey:this.configKey,configValue:JSON.stringify(this.form18)}
       updateConfigByKey(param).then(response => {
         if (response.code === 200) {
           this.msgSuccess("修改成功");
@@ -704,7 +710,7 @@ export default {
       });
     },
     submitForm19(){
-      var param={configId:this.configId,configValue:JSON.stringify(this.form19)}
+      var param={configId:this.configId,configKey:this.configKey,configValue:JSON.stringify(this.form19)}
       updateConfigByKey(param).then(response => {
         if (response.code === 200) {
           this.msgSuccess("修改成功");
@@ -712,7 +718,7 @@ export default {
       });
     },
     submitForm10(){
-      var param={configId:this.configId,configValue:JSON.stringify(this.form10)}
+      var param={configId:this.configId,configKey:this.configKey,configValue:JSON.stringify(this.form10)}
       updateConfigByKey(param).then(response => {
         if (response.code === 200) {
           this.msgSuccess("修改成功");