|
@@ -145,6 +145,8 @@ interface QueueData {
|
|
queue_name: string
|
|
queue_name: string
|
|
queue_label: string
|
|
queue_label: string
|
|
queue_config: QueueConfig
|
|
queue_config: QueueConfig
|
|
|
|
+ name:string
|
|
|
|
+ code:string
|
|
}
|
|
}
|
|
interface ConfigData {
|
|
interface ConfigData {
|
|
id: number
|
|
id: number
|
|
@@ -206,6 +208,15 @@ function handleSaveLLMConfig() {
|
|
|
|
|
|
}
|
|
}
|
|
function handleSaveConfig(queue: QueueData) {
|
|
function handleSaveConfig(queue: QueueData) {
|
|
|
|
+
|
|
|
|
+ let params = {code:queue.code,name:queue.name,content:JSON.stringify(queue.queue_config)}
|
|
|
|
+ console.log('params',params)
|
|
|
|
+ setConfig(params).then(res => {
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
+ ElMessage.success("保存成功")
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
|
|
}
|
|
}
|
|
function handleSetLLMConfigDefault(item: LLMConfigItemData) {
|
|
function handleSetLLMConfigDefault(item: LLMConfigItemData) {
|
|
@@ -245,6 +256,8 @@ function loadQueues() {
|
|
var config: ConfigData = res.records[0] as ConfigData
|
|
var config: ConfigData = res.records[0] as ConfigData
|
|
var config_data: QueueConfig = JSON.parse(config.content) as QueueConfig
|
|
var config_data: QueueConfig = JSON.parse(config.content) as QueueConfig
|
|
data[index].queue_config = config_data
|
|
data[index].queue_config = config_data
|
|
|
|
+ data[index].name = config.name
|
|
|
|
+ data[index].code = config.code
|
|
if (data[index].queue_config != null) {
|
|
if (data[index].queue_config != null) {
|
|
if (data[index].queue_config.max_instance === undefined) {
|
|
if (data[index].queue_config.max_instance === undefined) {
|
|
data[index].queue_config.max_instance = 1
|
|
data[index].queue_config.max_instance = 1
|