{ "type" : "page", "title" : "采集用户信息", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_USER_KQ_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "NAME", "label" : "姓名", "type" : "input-text" }, { "name" : "MOBILE", "label" : "手机", "type" : "input-text" }, { "name" : "USERORGID", "label" : "组织", "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "STATE", "label" : "状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/USERSTATE" }, { "name" : "MASTERDEPARTDISPLAY", "label" : "主部门名称", "type" : "input-text" }, { "name" : "MASTERPOSITIONDISPLAY", "label" : "主岗位名称", "type" : "input-text" }, { "name" : "ISCOLLECTED", "label" : "是否采集信息", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "ISSEND", "label" : "是否已下发", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "VIEW_USER_KQ_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "NAME", "label" : "姓名", "width" : 100 }, { "name" : "MOBILE", "label" : "手机", "width" : 100 }, { "name" : "USERORGID_DISPLAY__", "label" : "组织", "width" : 200 }, { "name" : "MASTERDEPARTDISPLAY", "label" : "主部门名称", "width" : 200 }, { "name" : "MASTERPOSITIONDISPLAY", "label" : "主岗位名称", "width" : 200 }, { "name" : "ISCOLLECTED", "label" : "是否采集信息", "width" : 80, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "CCID", "label" : "考勤号码", "width" : 80 }, { "name" : "DEVSTEXT", "label" : "已下发考勤设备", "width" : 200 } ], "headerToolbar" : [ { "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/7ca66a9b-9eef-43a8-8710-bfc9cdc7baa4?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_USER_KQ_LOAD?__egtpl=7ca66a9b-9eef-43a8-8710-bfc9cdc7baa4", "data" : { "VIEW_USER_KQ_ID" : "${VIEW_USER_KQ_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/VIEW_USER_KQ_COLLECTEDANDSEND?__egtpl=7ca66a9b-9eef-43a8-8710-bfc9cdc7baa4", "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/9012c5ba-3b62-44bf-adef-3e9dcb6c5379?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_USER_KQ_LOAD?__egtpl=9012c5ba-3b62-44bf-adef-3e9dcb6c5379", "data" : { "VIEW_USER_KQ_ID" : "${VIEW_USER_KQ_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/VIEW_USER_KQ_SEND?__egtpl=9012c5ba-3b62-44bf-adef-3e9dcb6c5379", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "批量下发", "label" : "批量下发", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "批量下发", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/e6de9258-7260-4cae-9fc2-6057fd92e457?format=amis", "api" : { "method" : "get", "url" : "/api/form/VIEW_USER_KQ/defaults?templateId=e6de9258-7260-4cae-9fc2-6057fd92e457" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/VIEW_USER_KQ_SENDBATCH?__egtpl=e6de9258-7260-4cae-9fc2-6057fd92e457", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "VIEW_USER_KQ_ID" } }