227 lines
4.6 KiB
XML
227 lines
4.6 KiB
XML
|
|
{
|
|
"widgettype":"VBox",
|
|
"options":{"cheight":40,"width":"100%"},
|
|
"subwidgets":[{
|
|
"id":"pipeline_capacity_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"产线容量表",
|
|
|
|
|
|
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_pipeline_capacity.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_pipeline_capacity.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_pipeline_capacity.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_pipeline_capacity.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"id"
|
|
],
|
|
"alters": {
|
|
"pipeline_id": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_search_pipeline_id.dspy')}}"
|
|
},
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{
|
|
"value": "active",
|
|
"text": "生效中"
|
|
},
|
|
{
|
|
"value": "disabled",
|
|
"text": "已停用"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "主键",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "主键"
|
|
},
|
|
{
|
|
"name": "pipeline_id",
|
|
"title": "产线ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"label": "产线ID",
|
|
"uitype": "code",
|
|
"valueField": "pipeline_id",
|
|
"textField": "pipeline_id_text",
|
|
"params": {
|
|
"dbname": "{{'sage'}}",
|
|
"table": "pipelines",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "pipeline_id",
|
|
"textField": "pipeline_id_text"
|
|
},
|
|
"dataurl": "{{entire_url('../api/get_search_pipeline_id.dspy')}}"
|
|
},
|
|
{
|
|
"name": "max_concurrent",
|
|
"title": "最大并发数",
|
|
"type": "int",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "最大并发数"
|
|
},
|
|
{
|
|
"name": "daily_limit",
|
|
"title": "每日限额",
|
|
"type": "int",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "每日限额"
|
|
},
|
|
{
|
|
"name": "monthly_limit",
|
|
"title": "每月限额",
|
|
"type": "int",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "每月限额"
|
|
},
|
|
{
|
|
"name": "today_usage",
|
|
"title": "今日用量",
|
|
"type": "int",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "今日用量"
|
|
},
|
|
{
|
|
"name": "month_usage",
|
|
"title": "本月用量",
|
|
"type": "int",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "本月用量"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 20,
|
|
"default": "active",
|
|
"label": "状态",
|
|
"uitype": "code",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"params": {
|
|
"dbname": "{{'sage'}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"cond": "parentid='capacity_status'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}",
|
|
"data": [
|
|
{
|
|
"value": "active",
|
|
"text": "生效中"
|
|
},
|
|
{
|
|
"value": "disabled",
|
|
"text": "已停用"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "所属组织",
|
|
"type": "str",
|
|
"length": 32,
|
|
"default": "0",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "所属组织"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "更新时间"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"data_filter":{
|
|
"AND": [
|
|
{
|
|
"field": "pipeline_id",
|
|
"op": "=",
|
|
"var": "filter_pipeline_id"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"op": "=",
|
|
"var": "filter_status"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[]
|
|
|
|
}]
|
|
} |