{ "type" : "page", "title" : "文件监控", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_OA_FILEMONITORING_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "FILENUMBER", "label" : "文件编号", "type" : "input-text" }, { "name" : "FILENAME", "label" : "文件名称", "type" : "input-text" }, { "name" : "FILECLASS", "label" : "文件类别", "type" : "input-text" }, { "name" : "FILETYPE", "label" : "文件类型", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OA_FILE_TYPE" }, { "name" : "SIGNTYPE", "label" : "字号类别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OA_FILESEND_SIGNTYPE" }, { "name" : "CREATEUSER", "label" : "拟稿人", "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" }, { "name" : "CREATEDATE", "label" : "拟稿日期", "type" : "input-date-range" }, { "name" : "ISUSED", "label" : "是否有效", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OA_FILERECEIVE_ZUOFEI" } ] }, "columns" : [ { "name" : "VIEW_OA_FILEMONITORING_ID", "label" : "主键", "width" : 100, "toggled" : false }, { "name" : "FILENUMBER", "label" : "文件编号", "width" : 150 }, { "name" : "FILENAME", "label" : "文件名称", "width" : 300 }, { "name" : "FILECLASS", "label" : "文件类别", "width" : 50 }, { "name" : "FILETYPE", "label" : "文件类型", "width" : 50, "type" : "mapping", "map" : { "1" : " ", "2" : "工程管理", "3" : "财税管理", "4" : "人事、劳务", "5" : "会议通知", "6" : "经营、造价", "7" : "其他" } }, { "name" : "SIGNTYPE", "label" : "字号类别", "width" : 50, "type" : "mapping", "map" : { "1" : "董字号", "2" : "工字号", "3" : "经字号", "4" : "党字号", "5" : "安字号", "6" : "联合行文" } }, { "name" : "CREATEUSER_DISPLAY__", "label" : "拟稿人", "width" : 80 }, { "name" : "CREATEDATE", "label" : "拟稿日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ISUSED", "label" : "是否有效", "width" : 80, "type" : "mapping", "map" : { "1" : "有效", "2" : "无效" } } ], "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/abe0bbc8-8865-4143-b543-89e992c3cd68?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_OA_FILEMONITORING_LOAD?__egtpl=abe0bbc8-8865-4143-b543-89e992c3cd68", "data" : { "VIEW_OA_FILEMONITORING_ID" : "${VIEW_OA_FILEMONITORING_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "5a51c93c-a758-413a-b174-63b3ba05efaa" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } } }, { "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/b907b380-d3fe-46fa-a6df-36e78d6151c4?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_OA_FILEMONITORING_LOAD?__egtpl=b907b380-d3fe-46fa-a6df-36e78d6151c4", "data" : { "VIEW_OA_FILEMONITORING_ID" : "${VIEW_OA_FILEMONITORING_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "5a51c93c-a758-413a-b174-63b3ba05efaa" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } } }, "pagination" ], "primaryField" : "VIEW_OA_FILEMONITORING_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "5a51c93c-a758-413a-b174-63b3ba05efaa" } }, "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" : "5a51c93c-a758-413a-b174-63b3ba05efaa" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }