{ "id":"organization_tbl", "widgettype":"Tabular", "options":{ "width":"100%", "height":"100%", "title":"机构", "toolbar":{ "tools": [ { "selected_row": true, "name": "orgtypes", "icon": "{{entire_url('/imgs/orgtypes.svg')}}", "label": "机构类型" } ] }, "css":"card", "editor":{ "binds": [ { "wid": "province_id", "event": "changed", "actiontype": "script", "target": "city_id", "script": "this.loadData({cond:'parentid=\\''+params.province_id+'\\''})" }, { "wid": "city_id", "event": "changed", "actiontype": "script", "target": "distinct_id", "script": "this.loadData({cond:'parentid=\\'' + params.city_id+ '\\''})" } ] }, "editable":{ "new_data_url":"{{entire_url('add_organization.dspy')}}", "delete_data_url":"{{entire_url('delete_organization.dspy')}}", "update_data_url":"{{entire_url('update_organization.dspy')}}" }, "data_url":"{{entire_url('./get_organization.dspy')}}", "data_method":"GET", "data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}}, "row_options":{ "browserfields": { "exclouded": [ "id" ], "alters": {} }, "editexclouded":[ "id" ], "fields":[ { "name": "id", "title": "机构编码", "type": "str", "length": 32, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "机构编码" }, { "name": "orgname", "title": "机构名称", "type": "str", "length": 255, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "机构名称" }, { "name": "orgabbr", "title": "机构简称", "type": "str", "length": 100, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "机构简称" }, { "name": "alias_name", "title": "机构别名", "type": "str", "length": 255, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "机构别名" }, { "name": "contactor", "title": "联系人", "type": "str", "length": 32, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "联系人" }, { "name": "contactor_phone", "title": "联系人电话", "type": "str", "length": 100, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "联系人电话" }, { "name": "province_id", "title": "所在省id", "type": "str", "length": 32, "label": "所在省id", "uitype": "code", "valueField": "province_id", "textField": "province_id_text", "params": { "dbname": "{{get_module_dbname('rbac')}}", "table": "appcodes_kv", "tblvalue": "k", "tbltext": "v", "valueField": "province_id", "textField": "province_id_text", "cond": "parentid='chnaddr'" }, "dataurl": "{{entire_url('/appbase/get_code.dspy')}}" }, { "name": "city_id", "title": "所在城市id", "type": "str", "length": 32, "label": "所在城市id", "uitype": "code", "valueField": "city_id", "textField": "city_id_text", "params": { "dbname": "{{get_module_dbname('rbac')}}", "table": "appcodes_kv", "tblvalue": "k", "tbltext": "v", "valueField": "city_id", "textField": "city_id_text", "cond": "parentid='city'" }, "dataurl": "{{entire_url('/appbase/get_code.dspy')}}" }, { "name": "distinct_id", "title": "所在地区id", "type": "str", "length": 32, "label": "所在地区id", "uitype": "code", "valueField": "distinct_id", "textField": "distinct_id_text", "params": { "dbname": "{{get_module_dbname('rbac')}}", "table": "appcodes_kv", "tblvalue": "k", "tbltext": "v", "valueField": "distinct_id", "textField": "distinct_id_text", "cond": "parentid='distinct'" }, "dataurl": "{{entire_url('/appbase/get_code.dspy')}}" }, { "name": "emailaddress", "title": "邮箱", "type": "str", "length": 256, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "邮箱" }, { "name": "address", "title": "地址", "type": "str", "length": 400, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "地址" }, { "name": "main_business", "title": "主营业务描述", "type": "str", "length": 1000, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "主营业务描述" }, { "name": "orgcode", "title": "组织结构代码", "type": "str", "length": 100, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "组织结构代码" }, { "name": "license_img", "title": "营业执照", "type": "str", "length": 400, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "营业执照" }, { "name": "id_img", "title": "身份证", "type": "str", "length": 400, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "身份证" }, { "name": "parentid", "title": "父机构id", "type": "str", "length": 32, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "父机构id" }, { "name": "org_type", "title": "机构类型", "type": "str", "length": 32, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "机构类型" }, { "name": "sitename", "title": "网站域名", "type": "str", "length": 300, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "网站域名" } ] }, "page_rows":160, "cache_limit":5 } ,"binds":[ { "wid": "self", "event": "orgtypes", "actiontype": "urlwidget", "target": "PopupWindow", "popup_options": { "title": "机构类型", "icon": "{{entire_url('/appbase/get_icon.dspy')}}?id=orgtypes", "resizable": true, "height": "70%", "width": "70%" }, "params_mapping": { "mapping": { "id": "orgid", "referer_widget": "referer_widget" }, "need_other": false }, "options": { "method": "POST", "params": {}, "url": "{{entire_url('../orgtypes')}}" } } ] }