{ "type" : "page", "title" : "公司污染源", "body" : { "type" : "grid", "columns" : [ { "md" : 3, "body" : { "type" : "input-tree", "name" : "tree", "showOutline" : true, "initiallyOpen" : true, "virtualThreshold" : 100000, "className" : "eip4-treegrid-tree", "id" : "treegrid_tree", "source" : "/api/template/3ccd2705-ae8f-450f-9537-8e2e19fac5c7/tree" } }, { "md" : 9, "body" : { "type" : "crud", "id" : "treegrid_crud", "syncLocation" : false, "api" : "/api/template/treegrid?treeRef=3ccd2705-ae8f-450f-9537-8e2e19fac5c7&gridTable=PM_POLLUTIONLISTITEM&rcol=POLLUTIONID&node=${tree}&page=${page}&perPage=${perPage}", "selectable" : true, "checkOnItemClick" : true, "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/6e8dd341-5063-41b2-a841-72e8a2439e5a?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_POLLUTIONLISTITEM/defaults?templateId=6e8dd341-5063-41b2-a841-72e8a2439e5a" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_POLLUTIONLISTITEM_ADD?__egtpl=6e8dd341-5063-41b2-a841-72e8a2439e5a", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "修改", "label" : "修改", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "修改", "size" : "lg", "data" : { "&" : "${selectedItems[0]}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/6e8dd341-5063-41b2-a841-72e8a2439e5a?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_POLLUTIONLISTITEM_LOAD?__egtpl=6e8dd341-5063-41b2-a841-72e8a2439e5a", "data" : { "PM_POLLUTIONLISTITEM_ID" : "${PM_POLLUTIONLISTITEM_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_POLLUTIONLISTITEM_UPDATE?__egtpl=6e8dd341-5063-41b2-a841-72e8a2439e5a", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "删除", "label" : "删除", "level" : "danger", "actionType" : "ajax", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_POLLUTIONLISTITEM_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_POLLUTIONLISTITEM_ID|join:','}" } } }, { "type" : "button", "id" : "查看", "label" : "查看", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "查看", "size" : "lg", "data" : { "&" : "${selectedItems[0]}", "__readonly" : true }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/6e8dd341-5063-41b2-a841-72e8a2439e5a?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_POLLUTIONLISTITEM_LOAD?__egtpl=6e8dd341-5063-41b2-a841-72e8a2439e5a", "data" : { "PM_POLLUTIONLISTITEM_ID" : "${PM_POLLUTIONLISTITEM_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "移动", "label" : "移动", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "移动", "size" : "lg", "data" : { "&" : "${selectedItems[0]}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/6df40f31-a3c3-4a51-8152-d5492623d535?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_POLLUTIONLISTITEM_LOAD?__egtpl=6df40f31-a3c3-4a51-8152-d5492623d535", "data" : { "PM_POLLUTIONLISTITEM_ID" : "${PM_POLLUTIONLISTITEM_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_POLLUTIONLISTITEM_UPDATE?__egtpl=6df40f31-a3c3-4a51-8152-d5492623d535", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "项目污染源清单", "label" : "项目污染源清单", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "项目污染源清单", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/a5661675-2a63-401a-a52a-6b1f008ed95f?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "type" : "button", "id" : "公司污染源清单", "label" : "公司污染源清单", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "公司污染源清单", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/f3526816-5498-48f2-929d-3029381995ab?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_POLLUTIONLISTITEM_ID", "filter" : { "title" : "查询", "body" : [ { "name" : "POLLUTIONID", "label" : "作业过程或活动", "type" : "tree-select", "clearable" : true, "source" : "/api/template/3ccd2705-ae8f-450f-9537-8e2e19fac5c7/tree", "searchable" : true }, { "name" : "POLLUTIONPROPERTY", "label" : "环境因素", "type" : "input-text" }, { "name" : "TROUBLE", "label" : "环境影响", "type" : "input-text" }, { "name" : "TENSE", "label" : "时态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_POLLUTION_TENSE" }, { "name" : "POLLUTIONSTATUS", "label" : "状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/DANGER_STATUS" }, { "name" : "POLLUTIONGRADE", "label" : "污染级别", "type" : "select", "clearable" : true, "source" : "/api/picker/PM_POLLUTIONRISKLEVEL/list?perPage=500" }, { "name" : "EVALUATIONMETHOD", "label" : "评价方法", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/evaluationmethod" }, { "name" : "SCORE", "label" : "得分", "type" : "input-number", "precision" : 2 }, { "name" : "CONTROLMEASURE", "label" : "建议控制措施", "type" : "input-text" } ] }, "columns" : [ { "name" : "PM_POLLUTIONLISTITEM_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "POLLUTIONID_DISPLAY__", "label" : "作业过程或活动", "width" : 200, "toggled" : false }, { "name" : "POLLUTIONPROPERTY", "label" : "环境因素", "width" : 200 }, { "name" : "TROUBLE", "label" : "环境影响", "width" : 200 }, { "name" : "TENSE", "label" : "时态", "width" : 200, "type" : "mapping", "map" : { "0" : "过去" } }, { "name" : "POLLUTIONSTATUS", "label" : "状态", "width" : 200 }, { "name" : "POLLUTIONGRADE_DISPLAY__", "label" : "污染级别", "width" : 200 }, { "name" : "EVALUATIONMETHOD", "label" : "评价方法", "width" : 200, "type" : "mapping", "map" : { "1" : "定性评价", "2" : "定量评价" } }, { "name" : "SCORE", "label" : "得分", "width" : 200 }, { "name" : "CONTROLMEASURE", "label" : "建议控制措施", "width" : 200 } ] } } ] } }