{ "type" : "page", "title" : "用户登录操作信息", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_SYS_USERLOGINFO_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "USERORGID", "label" : "所属公司", "type" : "picker", "clearable" : true, "source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${orgId}" }, { "name" : "ACCOUNT", "label" : "账号", "type" : "input-text" }, { "name" : "NAME", "label" : "姓名", "type" : "input-text" }, { "name" : "LOGINCOUNT", "label" : "登录次数", "hidden" : true, "type" : "input-number", "precision" : 0, "step" : 1 }, { "name" : "LOGCOUNT", "label" : "操作数量", "hidden" : true, "type" : "input-number", "precision" : 0, "step" : 1 }, { "name" : "OPTIMES", "label" : "登录操作时间", "required" : true, "type" : "input-datetime-range" } ] }, "columns" : [ { "name" : "VIEW_SYS_USERLOGINFO_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "ORGNAME", "label" : "所属公司", "width" : 200 }, { "name" : "ACCOUNT", "label" : "账号", "width" : 200 }, { "name" : "NAME", "label" : "姓名", "width" : 200 }, { "name" : "DISPLAYNAME", "label" : "显示名", "width" : 200, "toggled" : false }, { "name" : "LOGINCOUNT", "label" : "登录次数", "width" : 200 }, { "name" : "LOGCOUNT", "label" : "操作数量", "width" : 200 } ], "headerToolbar" : [ { "type" : "button", "id" : "查看登录记录", "label" : "查看登录记录", "icon" : "fa fa-history", "disabledOn" : "${!selectedItems || selectedItems.length !== 1}", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "登录记录", "size" : "lg", "data" : { "USERID" : "${selectedItems[0].VIEW_SYS_USERLOGINFO_ID}", "LOGINTIME" : "${OPTIMES}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/edc05980-022b-45a2-8aea-9619e07615ae?format=amis" }, "actions" : [ { "type" : "button", "actionType" : "close", "label" : "关闭" } ] } }, "pagination" ], "primaryField" : "VIEW_SYS_USERLOGINFO_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "324388a6-ace2-43fc-ac53-dc57c9a0573f" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "324388a6-ace2-43fc-ac53-dc57c9a0573f" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }