浏览代码

声纹复刻新增豆包配置

lk 5 天之前
父节点
当前提交
6e090db07e
共有 1 个文件被更改,包括 31 次插入0 次删除
  1. 31 0
      src/views/system/config/config.vue

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

@@ -2451,6 +2451,19 @@
           </div>
         </el-form>
       </el-tab-pane>
+      <el-tab-pane label="声纹复刻配置" name="vc.config">
+        <el-form :model="form31" label-width="200px">
+          <el-form-item label="类型" prop="type">
+            <el-radio-group v-model="form31.type">
+              <el-radio :label="1">本地服务器</el-radio>
+              <el-radio :label="2">豆包</el-radio>
+            </el-radio-group>
+          </el-form-item>
+          <div class="footer">
+            <el-button type="primary" @click="submitForm31">提 交</el-button>
+          </div>
+        </el-form>
+      </el-tab-pane>
 
     </el-tabs>
 
@@ -2643,6 +2656,7 @@ export default {
         ],
 
       },
+      form31:{},
       storeProductScrmColumns:[],
       storeScrmColumns: [],
       photoArr: [],
@@ -3044,6 +3058,13 @@ export default {
           this.form30 = {...this.form30, ...JSON.parse(response.data.configValue)}
           }
         }
+        if(key == 'vc.config'){
+           if(!!response.data){
+          this.configId = response.data.configId
+          this.configKey = response.data.configKey
+          this.form31 = {...this.form31, ...JSON.parse(response.data.configValue)}
+          }
+        }
       })
     },
     /** 提交按钮 */
@@ -3328,6 +3349,16 @@ export default {
         }
       })
     },
+    submitForm31(){
+      const param = { configId: this.configId, configName : "声纹复刻配置", configKey: this.configKey, configValue: JSON.stringify(this.form31) }
+      console.log(param)
+      updateConfigByKey(param).then(response => {
+        if (response.code === 200) {
+          this.msgSuccess('修改成功')
+        }
+      })
+    },
+    
     formatColumns(){
       console.log(this.form27.pass_columns)