- 修复文件权限 (600→644) - 删除调试日志 (global_func.py) - 添加 CRUD 生成的 wwwroot 文件 (pipeline_core/dist/ops) - 添加 mysql.ddl.sql 文件 - 更新 pyproject.toml 配置 - 添加 showcase 模块安装 (build.sh) - 更新 index.ui (sidebar toggle + 管理按钮) - 设置 start.sh/stop.sh 可执行权限 - 添加 wwwroot 符号链接 (appbase/rbac/pipeline_sdlc) - 更新 .gitignore (排除 pkgs/bricks/pipeline.pid)
240 lines
4.7 KiB
XML
240 lines
4.7 KiB
XML
|
|
{
|
|
"widgettype":"VBox",
|
|
"options":{"cheight":40,"width":"100%"},
|
|
"subwidgets":[{
|
|
"id":"distributors_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"分销商表",
|
|
|
|
|
|
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_distributors.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_distributors.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_distributors.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_distributors.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"id",
|
|
"api_key",
|
|
"remarks"
|
|
],
|
|
"cwidth": {}
|
|
},
|
|
|
|
|
|
"editexclouded":[
|
|
"id",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "主键",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "主键"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "分销商名称",
|
|
"type": "str",
|
|
"length": 200,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "分销商名称"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "关联组织ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "关联组织ID"
|
|
},
|
|
{
|
|
"name": "contact_name",
|
|
"title": "联系人",
|
|
"type": "str",
|
|
"length": 50,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "联系人"
|
|
},
|
|
{
|
|
"name": "contact_phone",
|
|
"title": "联系电话",
|
|
"type": "str",
|
|
"length": 20,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "联系电话"
|
|
},
|
|
{
|
|
"name": "contact_email",
|
|
"title": "联系邮箱",
|
|
"type": "str",
|
|
"length": 100,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "联系邮箱"
|
|
},
|
|
{
|
|
"name": "api_key",
|
|
"title": "API密钥",
|
|
"type": "str",
|
|
"length": 200,
|
|
"cwidth": 18,
|
|
"uitype": "password",
|
|
"datatype": "str",
|
|
"label": "API密钥"
|
|
},
|
|
{
|
|
"name": "commission_rate",
|
|
"title": "佣金比例%",
|
|
"type": "double",
|
|
"length": 5,
|
|
"dec": 2,
|
|
"default": "0",
|
|
"cwidth": 5,
|
|
"uitype": "float",
|
|
"datatype": "double",
|
|
"label": "佣金比例%"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 20,
|
|
"default": "active",
|
|
"label": "状态",
|
|
"uitype": "code",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pipeline_dist')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"cond": "parentid='distributor_status'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "agreement_start",
|
|
"title": "协议开始日",
|
|
"type": "date",
|
|
"length": 0,
|
|
"uitype": "date",
|
|
"datatype": "date",
|
|
"label": "协议开始日"
|
|
},
|
|
{
|
|
"name": "agreement_end",
|
|
"title": "协议结束日",
|
|
"type": "date",
|
|
"length": 0,
|
|
"uitype": "date",
|
|
"datatype": "date",
|
|
"label": "协议结束日"
|
|
},
|
|
{
|
|
"name": "remarks",
|
|
"title": "备注",
|
|
"type": "text",
|
|
"length": 0,
|
|
"uitype": "text",
|
|
"datatype": "text",
|
|
"label": "备注"
|
|
},
|
|
{
|
|
"name": "created_by",
|
|
"title": "创建人",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "创建人"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "创建时间"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "更新时间"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"data_filter":{
|
|
"name": "",
|
|
"status": ""
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[]
|
|
|
|
}]
|
|
} |