fix: get_module_dbname returns pipeline for all modules

This commit is contained in:
yumoqing 2026-07-18 23:48:23 +08:00
parent 827bbb80b4
commit 801bff63ea
3 changed files with 21 additions and 5 deletions

View File

@ -89,7 +89,7 @@
"valueField": "pipeline_id",
"textField": "pipeline_id_text",
"params": {
"dbname": "{{get_module_dbname('pipeline_core')}}",
"dbname": "{{'sage'}}",
"table": "pipelines",
"tblvalue": "id",
"tbltext": "name",

View File

@ -87,7 +87,7 @@
"valueField": "pipeline_id",
"textField": "pipeline_id_text",
"params": {
"dbname": "{{get_module_dbname('pipeline_core')}}",
"dbname": "{{'sage'}}",
"table": "pipelines",
"tblvalue": "id",
"tbltext": "name",

View File

@ -18,6 +18,16 @@
"css":"card",
"toolbar":{
"tools":[
{
"name":"publish",
"label":"发布",
"selected_row":true
}
]
},
"editable":{
"new_data_url":"{{entire_url('add_pipelines.dspy')}}",
@ -98,7 +108,7 @@
"valueField": "pipeline_type",
"textField": "pipeline_type_text",
"params": {
"dbname": "{{get_module_dbname('pipeline_core')}}",
"dbname": "{{{{get_module_dbname('pipeline_core')}}}}",
"table": "appcodes_kv",
"tblvalue": "k",
"tbltext": "v",
@ -131,7 +141,7 @@
"valueField": "status",
"textField": "status_text",
"params": {
"dbname": "{{get_module_dbname('pipeline_core')}}",
"dbname": "{{{{get_module_dbname('pipeline_core')}}}}",
"table": "appcodes_kv",
"tblvalue": "k",
"tbltext": "v",
@ -222,7 +232,13 @@
"cache_limit":5
}
,"binds":[]
,"binds":[{
"wid":"self",
"event":"publish",
"actiontype":"script",
"target":"self",
"script":"var d=this.select_row.user_data;fetch('{{entire_url('../api/pipeline_publish.dspy')}}',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'pipeline_id='+encodeURIComponent(d.id)}).then(function(r){return r.json()}).then(function(r){if(r.success){this.render({})}else{bricks.show_error({title:'发布失败',message:r.message||'未知错误'})}}.bind(this))"
}]
}]
}