- create_validate.ui: 去掉callback_url/project_name,只保留vendor下拉,提交到rl_verify.dspy - rl_verify.dspy: 自动用orgid作为project_name,返回Message widget含h5_link - upload_asset.ui: 增加vendor下拉,vendor_group_id改为可选下拉(从已认证组合中选) - 新增get_org_groups.dspy: 返回当前org已认证的vendor_group_id列表 - rl_upload.dspy: 返回Message widget格式
153 lines
6.5 KiB
XML
153 lines
6.5 KiB
XML
{
|
||
"widgettype": "VBox",
|
||
"options": {
|
||
"width": "100%",
|
||
"padding": "16px"
|
||
},
|
||
"subwidgets": [
|
||
{
|
||
"widgettype": "HBox",
|
||
"options": {
|
||
"width": "100%",
|
||
"alignItems": "center",
|
||
"marginBottom": "16px"
|
||
},
|
||
"subwidgets": [
|
||
{
|
||
"widgettype": "Title4",
|
||
"options": {
|
||
"text": "上传素材",
|
||
"fontWeight": "600"
|
||
}
|
||
},
|
||
{
|
||
"widgettype": "Filler"
|
||
},
|
||
{
|
||
"widgettype": "Button",
|
||
"options": {
|
||
"label": "返回首页"
|
||
},
|
||
"binds": [
|
||
{
|
||
"wid": "self",
|
||
"event": "click",
|
||
"actiontype": "urlwidget",
|
||
"target": "app.rl_content",
|
||
"options": {
|
||
"url": "{{entire_url('index.ui')}}"
|
||
},
|
||
"mode": "replace"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"widgettype": "VScrollPanel",
|
||
"options": {
|
||
"height": "600px"
|
||
},
|
||
"subwidgets": [
|
||
{
|
||
"widgettype": "VBox",
|
||
"options": {
|
||
"padding": "16px",
|
||
"spacing": 12
|
||
},
|
||
"subwidgets": [
|
||
{
|
||
"widgettype": "Form",
|
||
"id": "upload_form",
|
||
"options": {
|
||
"submit_url": "{{entire_url('api/rl_upload.dspy')}}",
|
||
"fields": [
|
||
{
|
||
"uitype": "code",
|
||
"name": "vendor",
|
||
"label": "供应商",
|
||
"dataurl": "{{entire_url('api/get_vendor_list.dspy')}}",
|
||
"data_field": "value",
|
||
"text_field": "text",
|
||
"required": true
|
||
},
|
||
{
|
||
"uitype": "code",
|
||
"name": "vendor_group_id",
|
||
"label": "认证组合",
|
||
"dataurl": "{{entire_url('api/get_org_groups.dspy')}}",
|
||
"data_field": "value",
|
||
"text_field": "text",
|
||
"required": true
|
||
},
|
||
{
|
||
"uitype": "text",
|
||
"name": "source_url",
|
||
"label": "素材URL或base64",
|
||
"rows": 4,
|
||
"placeholder": "https://... 可公开访问的图片/视频URL\n或\ndata:image/png;base64,...",
|
||
"required": true
|
||
},
|
||
{
|
||
"uitype": "code",
|
||
"name": "asset_type",
|
||
"label": "素材类型",
|
||
"dataurl": "{{entire_url('api/get_asset_type_list.dspy')}}",
|
||
"data_field": "value",
|
||
"text_field": "text"
|
||
},
|
||
{
|
||
"uitype": "str",
|
||
"name": "name",
|
||
"label": "素材名称",
|
||
"placeholder": "可选,默认使用URL最后一部分"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"widgettype": "HBox",
|
||
"options": {
|
||
"gap": "12px",
|
||
"marginTop": "16px"
|
||
},
|
||
"subwidgets": [
|
||
{
|
||
"widgettype": "Button",
|
||
"options": {
|
||
"label": "上传"
|
||
},
|
||
"binds": [
|
||
{
|
||
"wid": "self",
|
||
"event": "click",
|
||
"actiontype": "script",
|
||
"target": "self",
|
||
"script": "var f=bricks.getWidgetById('upload_form',bricks.app);if(f)f.submit()"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"widgettype": "Button",
|
||
"options": {
|
||
"label": "重置"
|
||
},
|
||
"binds": [
|
||
{
|
||
"wid": "self",
|
||
"event": "click",
|
||
"actiontype": "script",
|
||
"target": "self",
|
||
"script": "var f=bricks.getWidgetById('upload_form',bricks.app);if(f)f.reset()"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|