提交 b0186327 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [TrainSys,网页端]

上级 75857eb9
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -895,7 +895,7 @@ ...@@ -895,7 +895,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
......
...@@ -495,7 +495,7 @@ ...@@ -495,7 +495,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -579,7 +579,7 @@ ...@@ -579,7 +579,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -1186,7 +1186,7 @@ ...@@ -1186,7 +1186,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
......
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -483,7 +483,7 @@ ...@@ -483,7 +483,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -1090,7 +1090,7 @@ ...@@ -1090,7 +1090,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -373,7 +373,7 @@ ...@@ -373,7 +373,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
...@@ -471,7 +471,7 @@ ...@@ -471,7 +471,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -491,7 +491,7 @@ ...@@ -491,7 +491,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -551,7 +551,7 @@ ...@@ -551,7 +551,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
......
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
......
...@@ -297,7 +297,7 @@ ...@@ -297,7 +297,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -377,7 +377,7 @@ ...@@ -377,7 +377,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
...@@ -471,7 +471,7 @@ ...@@ -471,7 +471,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -491,7 +491,7 @@ ...@@ -491,7 +491,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -551,7 +551,7 @@ ...@@ -551,7 +551,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
...@@ -589,7 +589,7 @@ ...@@ -589,7 +589,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -609,7 +609,7 @@ ...@@ -609,7 +609,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -669,7 +669,7 @@ ...@@ -669,7 +669,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
......
...@@ -1616,7 +1616,7 @@ ...@@ -1616,7 +1616,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -1700,7 +1700,7 @@ ...@@ -1700,7 +1700,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -2385,7 +2385,7 @@ ...@@ -2385,7 +2385,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
...@@ -1414,7 +1414,7 @@ ...@@ -1414,7 +1414,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "COLLAPSE", "fullCodeName" : "COLLAPSE",
"name" : "折叠", "name" : "折叠",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Collapse', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Collapse', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Collapse', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "COLLAPSE", "uIActionTag" : "COLLAPSE",
...@@ -1498,7 +1498,7 @@ ...@@ -1498,7 +1498,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "EXPAND", "fullCodeName" : "EXPAND",
"name" : "展开", "name" : "展开",
"scriptCode" : "\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});", "scriptCode" : "\r\nconst grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Expand', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Expand', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\n\r\nview.callUIAction('Expand', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "EXPAND", "uIActionTag" : "EXPAND",
...@@ -2183,7 +2183,7 @@ ...@@ -2183,7 +2183,7 @@
"frontProcessType" : "OTHER", "frontProcessType" : "OTHER",
"fullCodeName" : "TOGGLE", "fullCodeName" : "TOGGLE",
"name" : "切换", "name" : "切换",
"scriptCode" : "if (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});", "scriptCode" : "const grid = view.getController('grid');\r\nif (grid) {\r\n const selectedData = grid.state.selectedData;\r\n const group = selectedData.find(x => x.isGroupData);\r\n view.callUIAction('Toggle', {id: group.srfkey});\r\n return;\r\n}\r\nif (data.length > 0) {\r\n const option = data[0];\r\n if (option.srfnodeid) {\r\n view.callUIAction('Toggle', {id: option.srfnodeid});\r\n return;\r\n }\r\n}\r\nview.callUIAction('Toggle', {id: params.srfgroupid});",
"timeout" : 60000, "timeout" : 60000,
"uIActionMode" : "FRONT", "uIActionMode" : "FRONT",
"uIActionTag" : "TOGGLE", "uIActionTag" : "TOGGLE",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册