{"Message":"重构GItee仓库绑定版本逻辑","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/项目版本管理"},{"State":1,"Type":1,"Name":"PCPage/任务版本详情"},{"State":1,"Type":1,"Name":"PCPage/项目岗位配置"},{"State":1,"Type":1,"Name":"PCPage/任务-任务信息"},{"State":1,"Type":1,"Name":"PCPage/新增任务"},{"State":1,"Type":1,"Name":"PCPage/新增报工"},{"State":1,"Type":1,"Name":"PCPage/个人中心-基本信息"},{"State":1,"Type":8,"Name":"ApplicationSetting"},{"State":1,"Type":7,"Name":"Table/Git仓库表"},{"State":1,"Type":15,"Name":"ServerCommand/GitCallback"},{"State":1,"Type":7,"Name":"Table/Git_事件记录"},{"State":1,"Type":1,"Name":"PCPage/选择Git仓库"},{"State":1,"Type":15,"Name":"ServerCommand/同步一个仓库到表"},{"State":1,"Type":15,"Name":"ServerCommand/搜索仓库"},{"State":1,"Type":15,"Name":"ServerCommand/从Gitee提取报工"},{"State":1,"Type":15,"Name":"ServerCommand/获取某仓库分支"},{"State":1,"Type":1,"Name":"PCPage/分支选择"},{"State":1,"Type":1,"Name":"PCPage/完善Gitee资料"},{"State":1,"Type":15,"Name":"ServerCommand/同步仓库的所有提交"},{"State":3,"Type":15,"Name":"ServerCommand/在线获取仓库某日提交数据"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-18 11:35:20 +08:00
parent 843bcd1808
commit bf6fcdc9db
22 changed files with 1625 additions and 975 deletions

View File

@@ -412,62 +412,34 @@
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "选择行",
"ID": "4049a4c0873e46968fa2e60b5a0cf1fa"
"ParameterName": "获取选择行",
"ID": "24e84bcc483f49b187c012654e45accd"
},
{
"$type": "xTools.Commands.xGetTableSelectRows, xTools",
"TableName": "仓库虚拟表格",
"ToParameter": "选择行数组"
},
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择行数组"
},
"SampleJson": "[\r\n {\r\n \"行号\": 1,\r\n \"ID\": 7,\r\n \"仓库ID\": 33487312,\r\n \"空间路径名\": \"cuckooent\",\r\n \"空间名称\": \"超哥\",\r\n \"仓库路径名\": \"pms\",\r\n \"仓库名称\": \"PMS\",\r\n \"仓库地址\": \"https://gitee.com/cuckooent/pms.git\",\r\n \"仓库描述\": \"新的PMS软件开发项目管理系统\",\r\n \"仓库成员\": \"linxi6432,tyfeikele,cuckooent\",\r\n \"创建人\": \"超哥\",\r\n \"创建人头像\": \"https://foruda.gitee.com/avatar/1677043949039184563/5267986_cuckooent_1646218684.png\",\r\n \"默认分支\": \"master\",\r\n \"hook_api_url\": \"https://gitee.com/api/v5/repos/cuckooent/pms/hooks\"\r\n }\r\n]",
"ToParameter": "选择行数组"
},
{
"$type": "Forguncy.Model.RunJavaScriptCommand, ServerDesignerCommon",
"JavaScript": "var obj = JSON.parse(Forguncy.CommandHelper.getVariableValue(\"选择行数组\"))[0];\r\nForguncy.CommandHelper.setVariableValue(\"选择行\", obj)\r\n",
"ID": "34f47449d1ec4f669acb748841bc9c7d"
"JavaScript": "var list = Forguncy.CommandHelper.getVariableValue(\"选择行数组\");\r\nForguncy.CommandHelper.setVariableValue(\"获取选择行\", list[0])\r\n",
"ID": "3d5487119b54458881c60d0a84302467",
"Disabled": true
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "当前用户",
"ParameterValue": "%CurrentUser%",
"ID": "8635f75ce2e0426e88fe92b6c229c420"
},
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "获取某仓库分支",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "用户名",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!当前用户"
}
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "仓库ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择行.仓库ID"
}
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "分支列表",
"ResultTo": {
"SerializeProperty": "分支列表"
},
"Remark": "[\r\n{\"分支名称\":\"\",\"最后更新时间\":\"\",\"最后更新人\":\"\"}\r\n]"
}
],
"CheckDataValidation": false
"ID": "5fe02f5cda1540ba8f29f1a6e18278cd"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -479,250 +451,12 @@
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=code"
"SerializeProperty": "=选择Git仓库!选择行数组.0.仓库ID"
}
]
},
"value": "0"
},
"CommandList": [
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=选择Git仓库!分支列表.length"
}
]
},
"value": "1"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "分支名称",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择行.默认分支"
},
"ID": "3dd5369fe9fd4892bdfee20ba2131fbe"
}
],
"ID": "257e23b2-b871-400a-93e5-1d792bd51951"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ShowPopupCommand, ServerDesignerCommon",
"PopupDisplayMode": 2,
"ClosePopupCallbackCommand": {
"Commands": [
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=选择Git仓库!是否为确定"
}
]
},
"value": "1"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "选择行",
"ID": "53bebf01431e4b7e82a8cfd58e82c73c"
},
{
"$type": "xTools.Commands.xGetTableSelectRows, xTools",
"TableName": "仓库虚拟表格",
"ToParameter": "选择行数组"
},
{
"$type": "Forguncy.Model.RunJavaScriptCommand, ServerDesignerCommon",
"JavaScript": "var obj = JSON.parse(Forguncy.CommandHelper.getVariableValue(\"选择行数组\"))[0];\r\nForguncy.CommandHelper.setVariableValue(\"选择行\", obj)\r\n",
"ID": "7ee2d7095b2242b8820e6fec22c26e70"
},
{
"$type": "CollectionOperationKit.ClientSideObjectOp, CollectionOperationKit",
"Operation": 3,
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择行"
},
"OperationParamaterName": "默认分支",
"OperationParamaterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择分支"
},
"OutParamaterName": "选择行"
},
{
"$type": "Forguncy.Model.ClosePopupCommand, ServerDesignerCommon",
"ClosePopupReturnValues": [
{
"Name": "仓库信息",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择行"
}
}
]
}
],
"ID": "3431661f-4c41-4efa-9cd0-e66bcdfb9506"
}
]
}
],
"ParamProperties": {
"IsOK": "是否为确定",
"选择分支": "选择分支"
}
},
"PageName": "分支选择",
"PassValues": [
{
"Source": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!分支列表"
},
"TargetCell": {
"SerializeProperty": "=分支选择!分支列表"
}
},
{
"Source": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择行.默认分支"
},
"TargetCell": {
"SerializeProperty": "=分支选择!分支名称"
}
}
]
}
],
"ID": "f2b89cca-2e74-40f2-8dec-95934e7a4cfb"
}
]
}
],
"ID": "649c3709-5700-4049-ba5b-31c8b3507be4"
},
{
"CommandList": [
{
"$type": "ElementUI.Commands.ShowMessageBox, ElementUI",
"Title": "提示",
"Message": "请手动输入要绑定的分支名称",
"Type": "info",
"ConfirmButtonText": "确定",
"ShowCancelButton": true,
"CancelButtonText": "取消",
"ShowClose": false,
"DialogResult": "按钮结果",
"AdvancedSettings": {
"ShowInput": true,
"InputPlaceholder": "例如master",
"InputBoxResult": "输入分支名称"
}
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=按钮结果"
}
]
},
"value": "confrim"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "分支名称",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!输入分支名称"
},
"ID": "1db9e1be3657414792ff0d00e24a51c2"
}
],
"ID": "8c47bdd1-0d3a-4345-b103-7b590c75f681"
}
]
}
],
"ID": "aee54461-fcf8-4fa4-a126-87426f830e53"
}
]
},
{
"$type": "CollectionOperationKit.ClientSideObjectOp, CollectionOperationKit",
"Operation": 3,
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择行"
},
"OperationParamaterName": "默认分支",
"OperationParamaterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!分支名称"
},
"OutParamaterName": "选择行"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=选择Git仓库!选择行.分支名称"
}
]
},
"value": "%Null%",
"compareType": 1
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
"cellLocations": [
{
"SerializeProperty": "=选择Git仓库!选择行.仓库ID"
}
]
},
"value": "%Null%",
"compareType": 1
}
]
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
@@ -732,28 +466,28 @@
"Name": "仓库信息",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!选择行"
"SerializeProperty": "=选择Git仓库!选择行数组.0"
}
}
]
}
],
"ID": "72e1b1a3-a27f-40d1-b82a-32b6c1154544"
"ID": "28dab77c-d68f-408e-9091-8a54412bf111"
},
{
"CommandList": [
{
"$type": "Notiflix_Forguncy.Notify_Command, Notiflix_Forguncy",
"FourStandardStyle": "warning",
"Message": "请选择要绑定的仓库和分支"
"Message": "请选择要绑定的仓库"
}
],
"ID": "4cd8c98c-cd50-4905-bccb-83e1a5ea1aa3"
"ID": "25a440fc-022c-48cd-a056-14c5d38f76dc"
}
]
}
],
"ID": "e131d3e0-3e54-4ae3-8ecd-4d74f1021cfc"
"ID": "dc3b81b1-0b8d-4c1b-bcec-b8fc01566c73"
},
{
"CommandList": [
@@ -763,7 +497,7 @@
"Message": "请选择一个仓库"
}
],
"ID": "94236f0f-4de0-4996-9fd8-ea11251fae99"
"ID": "52850c0a-6041-4950-83d1-28f067d5439a"
}
]
}
@@ -786,6 +520,12 @@
"Command": {
"$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands",
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "当前用户",
"ParameterValue": "%CurrentUser%",
"ID": "aed1031562b343e1a1f19aef74b7bbaa"
},
{
"$type": "Forguncy.Model.UpdateListviewCommand, ServerDesignerCommon",
"ListviewName": "仓库虚拟表格",
@@ -813,6 +553,8 @@
"仓库成员": "仓库成员",
"创建人": "创建人",
"创建人头像": "创建人头像",
"默认分支": "默认分支",
"hook_api_url": "hook_api_url",
"行号": "行号"
}
},
@@ -931,11 +673,11 @@
"ColumnName": "默认分支"
},
{
"GUID": "0880909f-adde-4b4a-b1d5-c5c147d1cbab",
"GUID": "0b184db5-4b78-4f78-8194-11eeb7a7b0fa",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "hook_api_url",
"GUID": "898d75ab-e56d-4367-97df-96c036c6b403"
"GUID": "c341fccf-5444-49ca-83c4-70bfc6b99c33"
},
"ColumnName": "hook_api_url"
},
@@ -963,6 +705,7 @@
},
"TemplateKey": "BlackWhite",
"IsSingleSelection": true,
"CommitDataWithCommand": true,
"DoNotLoadDataWhenLoadPage": true
}
},
@@ -1075,7 +818,7 @@
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "当前用户",
"ParameterValue": "%CurrentUser%",
"ID": "65852367dd294d6688e6a8ebb921bd21"
"ID": "4a18a11998494c7f8f6715d1e1735688"
},
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
@@ -1200,7 +943,7 @@
},
{
"ListViewColumnCell": "hook_api_url",
"PropertyName": "hooks_url"
"PropertyName": "hook_api_url"
},
{
"ListViewColumnCell": "默认分支",
@@ -1211,10 +954,10 @@
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=选择Git仓库!仓库列表"
},
"SampleJson": "[\r\n {\r\n \"ID\": 28499535,\r\n \"空间路径名\": \"GridStudio\",\r\n \"空间名称\": \"罗田县格友软件开发工作室\",\r\n \"仓库路径名\": \"lodop-plugin-application-demo\",\r\n \"仓库名称\": \"LODOP插件应用DEMO\",\r\n \"仓库地址\": \"https://gitee.com/GridStudio/lodop-plugin-application-demo.git\",\r\n \"仓库描述\": \"活字格前端插件\",\r\n \"仓库成员\": \"cuckooent\",\r\n \"创建人\": \"超哥\",\r\n \"创建人头像\": \"https://foruda.gitee.com/avatar/1677043949039184563/5267986_cuckooent_1646218684.png\",\r\n \"hooks_url\":\"\",\r\n \"默认分支\":\"\"\r\n }\r\n]\r\n"
"SampleJson": "[\r\n {\r\n \"ID\": 28499535,\r\n \"空间路径名\": \"GridStudio\",\r\n \"空间名称\": \"罗田县格友软件开发工作室\",\r\n \"仓库路径名\": \"lodop-plugin-application-demo\",\r\n \"仓库名称\": \"LODOP插件应用DEMO\",\r\n \"仓库地址\": \"https://gitee.com/GridStudio/lodop-plugin-application-demo.git\",\r\n \"仓库描述\": \"活字格前端插件\",\r\n \"仓库成员\": \"cuckooent\",\r\n \"创建人\": \"超哥\",\r\n \"创建人头像\": \"https://foruda.gitee.com/avatar/1677043949039184563/5267986_cuckooent_1646218684.png\",\r\n \"hook_api_url\":\"\",\r\n \"默认分支\":\"\"\r\n }\r\n]\r\n"
}
],
"ID": "2510eaf3-cc7a-4078-a243-a8283989cbc0"
"ID": "52e16d7a-c680-4c10-a00f-b497198384fd"
},
{
"CommandList": [
@@ -1229,7 +972,7 @@
"BtnText": "知道了"
}
],
"ID": "fa393b76-6e11-4093-8b6c-2a6a35a8e74c"
"ID": "eb9eed33-e69a-4542-bf2e-88f8fd5d5147"
}
]
},
@@ -1727,14 +1470,14 @@
}
},
"Spans": [
"3,1,21,39",
"24,1,1,39",
"1,36,1,4",
"26,9,1,4",
"26,13,1,4",
"26,5,1,4",
"1,1,1,34",
"26,17,1,3"
"26,17,1,3",
"3,1,21,39",
"1,1,1,34"
],
"PageInfo": {
"$type": "Forguncy.Model.Pages.NormalPage, ServerDesignerCommon",
@@ -1792,4 +1535,4 @@
"Formula": "选择Git仓库!$R$27"
}
]
}//fOv0xPbMxp8Xio0UI+Yf4K/A8pnAzEtigqLjKeKn+cCkGkJD06UG+Tc6eJ3zBv2/5Guy7mwNKKLo9gkKoUtW55tqpoJ8Ke/Ouzf0bFm3j2yBedt0qdUjACJDblu43YECVIcCe12s7h/V8usb0ofRJ6mvRIrtaCS1VkcfL9Sccbgo/HnS9PsR6Wk8WmD8Z721IL9nz5tFAHQr0xHXn4gZBIwSpVrtaLBtGNH4Ak+G8bqwy7nqIQ+PEZRqsdIC6rU6VWS+Yr+xbmLnJShLhX2LU/3LK8mjuK5k4RCdug1S0dKmd9XeUedcF6eVXfXLZmjpDfMg9uZsTmkuckHWYUnBetnMp0csrcN5lXKMaOwUM/afO6oQb1FLznnCGEUggfQd4AzeYtk0kiSMrx1cmRSMDPIG5D2SplLBwcoKhLZjQRs7jICPiPXohIqeBcMWc4QrBXikW6e/EcZaAubWZQoZFL5NE5jGKadw0CTffDi4eXXgAyoPJe0PUAUwDsWea9U+bpLSfnmI29ERq/kCvdu2ud8+2kB362AtPzpmZIV7/xrFp4tHQvH3DxRLjASztoddD5xDbN3tsB20aO/2v95fERlH5lZtIxIY0GkAEmzbeUHwPTdXHDfTYNvYJYUDNxBWTiKFEA5EGEvCdXh9n9yaeT7fwVtwRd5MZJePXeswi/d6U2TyImA11smDBQhVLm6ISBEhrE2Hd4n3064IqjvSiSQc5MEROqmC+deGJ9KFDO33QiyFVc8tdKvneke559EcS9u66DqnDYJk4n27NfLjtjaCyON5h0lxgprbJaqvlsmIMc5FXtbgOTXn69aBaCH/8stPzBL73sO37ZEQYBAZ94XiLb2mbPy3mXLD7hez/8zQ2PUUjXginCW5eH9ex4o3LQqvO2logRzicgcaeKjHFQ==|920
}//DNsU5+JPTR/vIzTIbEhtU01m6vaomWBlR3eNPtBA1N5Gkf8qwrIfDYLI0dFz2fVxSZzLB0IxrRtP8VsmTPdXdqU72geOYFS/cXJ128+P1VwS/4Gpw/x1hkXf18Bo6P6xl6PS4KmUIlho7rgz8NUa9ai8OigevSvkHMxotwwS28BmHDDpqoFjMaM9rjV6O23Z7vjh4QXWkXIPqtvif5QqZ+5NX6sCOQ8ObOuCRF7rerHGEde9aO6keKP8Us2UbDJNm9zD2EhaD4tmBAQrlRRlgAzis5YcVYM/KVr6FQBWCsMwl7cOFJ3lgMHmIFuVNC4SUsrfeYXVaryGDC89mPgOZX2MZ/05Ycb9yP/EC/T2h8t7EePYgMORivQh+LwV/mOtjRRrGxwpMiWsYc/I0ahshyUbIKtdr4m4h4jc0/sZElKe7xAcuPy+uQ5edJN4WWtY0ZhqMo6Bh3UE2fU3RClIlqoNGttuVJfS5RIUNgtLWUBw+A+b8eY0oVQXbegIT2hOe27SHNkh4ajvUGyubzEAw/t8USLLZmJOsp7W/vpm0UTZY27wkvzrhqGpV+fZgA8W0u7xNbaTMnLeXEFqX1Bz8n/fvbNF40jBeuIpSFpFDUjptX0jJp0TrzkDPeNQT0cXHuodkXf7hrJxf49kNe7uyEJGCs8z439EDD2OQJMmJmKg8HmtC/zmuigGbwo030Z8eVq435c1MnI6knAHIvaJ3napN1laKtZjJSwcXyvg8E/ILUFPHLG0gfFyuzk2e0kqSFR3j6olrXl49Dr3qpRk/KiDiBTkJVrEPhQPTKXBr1JbAtYNWdoqJuGwuBglDT/Pl1qAqi3cZRmVkHcf4iJR9BheH0BxKq2gKxBI0peLD57vDbUg5y8I/2NAwZILIKsueupzK0Kl0neWuVOyy6ypPA==|920