fix: align resellerid code field valueField/textField with API response

This commit is contained in:
yumoqing 2026-07-09 13:55:45 +08:00
parent b6dd52ab6f
commit 475845261e

View File

@ -31,13 +31,13 @@
"exclouded": ["id"], "exclouded": ["id"],
"alters": { "alters": {
"status": {"uitype": "code", "data": [{"value": "active", "text": "启用"}, {"value": "inactive", "text": "停用"}]}, "status": {"uitype": "code", "data": [{"value": "active", "text": "启用"}, {"value": "inactive", "text": "停用"}]},
"resellerid": {"uitype": "code", "valueField": "resellerid", "textField": "resellerid_text"} "resellerid": {"uitype": "code", "valueField": "sub_distributor_id", "textField": "sub_distributor_id_text"}
}, },
"cwidths": {"domain": 20, "resellerid": 15, "status": 6, "created_at": 12} "cwidths": {"domain": 20, "resellerid": 15, "status": 6, "created_at": 12}
}, },
"fields": [ "fields": [
{"name": "domain", "type": "str", "length": 200, "cwidth": 20, "uitype": "str", "label": "域名"}, {"name": "domain", "type": "str", "length": 200, "cwidth": 20, "uitype": "str", "label": "域名"},
{"name": "resellerid", "type": "str", "length": 32, "cwidth": 15, "uitype": "code", "label": "分销商", "dataurl": "{{entire_url('/supplychain/api/get_search_sub_distributor_id.dspy')}}"}, {"name": "resellerid", "type": "str", "length": 32, "cwidth": 15, "uitype": "code", "label": "分销商", "valueField": "sub_distributor_id", "textField": "sub_distributor_id_text", "dataurl": "{{entire_url('/supplychain/api/get_search_sub_distributor_id.dspy')}}"},
{"name": "status", "type": "str", "length": 10, "cwidth": 6, "uitype": "code", "data": [{"value": "active", "text": "启用"}, {"value": "inactive", "text": "停用"}], "label": "状态"}, {"name": "status", "type": "str", "length": 10, "cwidth": 6, "uitype": "code", "data": [{"value": "active", "text": "启用"}, {"value": "inactive", "text": "停用"}], "label": "状态"},
{"name": "created_at", "type": "timestamp", "cwidth": 12, "uitype": "timestamp", "label": "创建时间"} {"name": "created_at", "type": "timestamp", "cwidth": 12, "uitype": "timestamp", "label": "创建时间"}
] ]