diff --git a/.collaboration b/.collaboration index 265a7b40..8ce39d72 100644 --- a/.collaboration +++ b/.collaboration @@ -9,47 +9,17 @@ }, { "ModuleName": "Table/FGC_订单记录", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329288+08:00", "ModuleType": 7, - "ToRemoveFiles": [ - "Tables\\FGC_页面模板文件夹\\联动页\\FGC_订单记录.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "Table/FGC_订单明细表", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.532953+08:00", "ModuleType": 7, - "ToRemoveFiles": [ - "Tables\\FGC_页面模板文件夹\\联动页\\FGC_订单明细表.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "Table/FGC_商品表", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329561+08:00", "ModuleType": 7, - "ToRemoveFiles": [ - "Tables\\FGC_页面模板文件夹\\联动页\\FGC_商品表.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { @@ -102,16 +72,7 @@ }, { "ModuleName": "TableView/项目任务树视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329628+08:00", - "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\项目\\项目任务树视图.json" - ] + "ModuleType": 23 }, { "ModuleName": "Tables/任务", @@ -223,137 +184,47 @@ }, { "ModuleName": "TableView/用户信息视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329682+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\用户信息视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "TableView/用户组织关系视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329696+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\用户组织关系视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "TableView/用户角色关系视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329711+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\用户角色关系视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "TableView/组织信息视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329729+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\组织信息视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "TableView/组织级别视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329754+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\组织级别视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "TableView/角色信息视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329768+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\角色信息视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "TableView/角色分类关系视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329782+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\角色分类关系视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "TableView/角色拥有权限视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329798+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\角色拥有权限视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "TableView/角色组织关系视图", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329812+08:00", "ModuleType": 23, - "ToRemoveFiles": [ - "Tables\\用户\\角色组织关系视图.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { @@ -394,17 +265,7 @@ }, { "ModuleName": "Table/message_test", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329839+08:00", "ModuleType": 7, - "ToRemoveFiles": [ - "Tables\\汇报\\message_test.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { @@ -445,18 +306,7 @@ }, { "ModuleName": "Table/对话主题", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5329875+08:00", - "ModuleType": 7, - "ToRemoveFiles": [ - "Tables\\AI助手\\对话主题.json", - "ForguncyDB.sqlite3" - ], - "ExclusiveType": 0 + "ModuleType": 7 }, { "ModuleName": "Table/对话历史", @@ -1048,19 +898,7 @@ }, { "ModuleName": "PCPage/首页", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:38:38.0100879+08:00", - "ModuleType": 1, - "ToRemoveFiles": [ - "Pages\\首页\\首页.json", - "Pages\\首页\\首页.rd", - "Pages\\2d17eefef7c5473fbc54f0c5820a6c1.json", - "Pages\\2d17eefef7c5473fbc54f0c5820a6c1.rd" - ] + "ModuleType": 1 }, { "ModuleName": "PCPage/AI欢迎页", @@ -1068,17 +906,7 @@ }, { "ModuleName": "PCPage/对话页面", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:52:53.6155817+08:00", - "ModuleType": 1, - "ToRemoveFiles": [ - "Pages\\首页\\对话页面.json", - "Pages\\首页\\对话页面.rd" - ] + "ModuleType": 1 }, { "ModuleName": "MasterPCPage/FGC_母版页", @@ -1114,33 +942,11 @@ }, { "ModuleName": "UserControlPage/聊天起泡", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T11:22:25.8048056+08:00", - "ModuleType": 31, - "ToRemoveFiles": [ - "UserControlPages\\聊天起泡.json", - "UserControlPages\\聊天起泡.rd" - ] + "ModuleType": 31 }, { "ModuleName": "UserControlPage/聊天列表", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:54:51.1148188+08:00", - "ModuleType": 31, - "ToRemoveFiles": [ - "UserControlPages\\聊天列表.json", - "UserControlPages\\聊天列表.rd", - "Pages\\21293af3013f474faf264d978cf3501.json", - "Pages\\21293af3013f474faf264d978cf3501.rd" - ] + "ModuleType": 31 }, { "ModuleName": "ServerCommands/任务", @@ -1680,19 +1486,7 @@ }, { "ModuleName": "CustomLibrary", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T11:52:39.8164053+08:00", - "ModuleType": 12, - "ToRemoveFiles": [ - "CustomLibraries.json", - "UserFile\\BaseCss.css", - "UserFile\\CustomFormula.js", - "UserFile\\echart.js" - ] + "ModuleType": 12 }, { "ModuleName": "MapJsonFile", @@ -1704,19 +1498,7 @@ }, { "ModuleName": "Upload", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:45:53.5333211+08:00", - "ModuleType": 26, - "ToRemoveFiles": [ - "Upload\\485a297c-1ba3-42a6-afe8-c2409d9f01fe_app-logo2.png", - "Upload\\485a297c-1ba3-42a6-afe8-c2409d9f01fe_app-logo2.small.png", - "Upload\\a78dd055-76a1-433b-b6a1-70cff99fd6fb_app-logo2.png", - "Upload\\a78dd055-76a1-433b-b6a1-70cff99fd6fb_app-logo2.small.png" - ] + "ModuleType": 26 }, { "ModuleName": "PublishConfiguration", @@ -1724,40 +1506,7 @@ }, { "ModuleName": "Plugin", - "State": 1, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T12:10:13.5536692+08:00", - "ModuleType": 40, - "ToRemoveFiles": [ - "Plugin\\Echarts图表-10_0_2_0.zip", - "Plugin\\Editormd-6_0_102_0.zip", - "Plugin\\Forguncy.CustomMenu.zip", - "Plugin\\Forguncy.PassListviewDataCommand.zip", - "Plugin\\JSON 序列化和反序列化-10_0_2_0.zip", - "Plugin\\JSON数据源-10_0_2_0.zip", - "Plugin\\Lottie动画插图-9_0_103_0.zip", - "Plugin\\Notiflix-9_0_103_0.zip", - "Plugin\\OPENAIFORGUNCY.zip", - "Plugin\\PC组件包-ElementPlus-10_0_2_0.zip", - "Plugin\\SqlServerWrapper.zip", - "Plugin\\Tiny富文本编辑器-10_0_2_0.zip", - "Plugin\\xTools快速开发工具包-9_0_4_0.zip", - "Plugin\\加载动画-10_0_2_0.zip", - "Plugin\\增强关闭页面-9_0_6.zip", - "Plugin\\复制到剪贴板-7_0_3_0.zip", - "Plugin\\客户端缓存操作工具库-8_0_0_0.zip", - "Plugin\\富文本编辑器-10_0_2_0.zip", - "Plugin\\对象与集合操作工具-8_0_0_0.zip", - "Plugin\\支持预览的附件上传-10_0_2_0.zip", - "Plugin\\甘特图-10_0_2_0.zip", - "Plugin\\用户管理命令 V2-10_0_2_0.zip", - "Plugin\\表格报表-10_0_2_0.zip", - "Plugin\\设置当前行命令-10_0_2_0.zip", - "Plugin\\设置焦点命令-10_0_2_0.zip" - ] + "ModuleType": 40 }, { "ModuleName": "PublishSetting", @@ -1781,32 +1530,14 @@ }, { "ModuleName": "ServerCommands/AI", - "State": 3, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:46:30.6873355+08:00", "ModuleType": 20 }, { "ModuleName": "ServerCommand/AI对话", - "State": 3, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:46:59.1370055+08:00", "ModuleType": 15 }, { "ModuleName": "Notification/AI流消息", - "State": 3, - "LockedBy": { - "UserName": "SHAMUSPC\\NINGMEI", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-04-27T10:50:27.7884683+08:00", "ModuleType": 34 } ] \ No newline at end of file diff --git a/ForguncyDB.sqlite3 b/ForguncyDB.sqlite3 index 1102ddc3..060a70d6 100644 Binary files a/ForguncyDB.sqlite3 and b/ForguncyDB.sqlite3 differ diff --git a/Notifications/AI流消息.json b/Notifications/AI流消息.json new file mode 100644 index 00000000..d3ec2561 --- /dev/null +++ b/Notifications/AI流消息.json @@ -0,0 +1,25 @@ +{ + "Name": "AI流消息", + "Params": [ + { + "Name": "角色" + }, + { + "Name": "内容" + } + ], + "PermissionData": { + "$type": "Forguncy.RbacPermission.Core.Impl.ServerNotification.ServerNotificationPermissionData, Forguncy.RbacPermission.Core", + "permissionResource": { + "$type": "Forguncy.RbacPermission.Core.Impl.ServerNotification.ServerNotificationPermissionResource, Forguncy.RbacPermission.Core" + }, + "permissionBindings": [ + { + "$type": "Forguncy.RbacPermission.Core.Impl.ServerNotification.ServerNotificationPermissionBinding, Forguncy.RbacPermission.Core", + "roleNames": [ + "FGC_LoginUser" + ] + } + ] + } +} \ No newline at end of file diff --git a/Pages/21293af3013f474faf264d978cf3501.json b/Pages/21293af3013f474faf264d978cf3501.json index f58518a0..ba66a3b1 100644 --- a/Pages/21293af3013f474faf264d978cf3501.json +++ b/Pages/21293af3013f474faf264d978cf3501.json @@ -3,21 +3,27 @@ "RowColumnAttachedInfos": { "0": { "GridRowColumnDefinition": { - "DesignLengthInPixel": 103.0 + "DesignLengthInPixel": 103.0, + "Mode": 1 + } + }, + "1": { + "GridRowColumnDefinition": { + "DesignLengthInPixel": 15.0 } } }, "InLogicalVisibleIndexes": [ - 1, 2, 3, 4, 5, 6, 7, - 8 + 8, + 9 ], - "Count": 9 + "Count": 10 }, "Cols": { "RowColumnAttachedInfos": { @@ -47,47 +53,48 @@ "Name": "姓名", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "='21293af3013f474faf264d978cf3501'!A5" + "SerializeProperty": "='21293af3013f474faf264d978cf3501'!A6" } }, { "Name": "聊天内容", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "='21293af3013f474faf264d978cf3501'!A3" + "SerializeProperty": "='21293af3013f474faf264d978cf3501'!A4" } }, { "Name": "头像", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "='21293af3013f474faf264d978cf3501'!A4" + "SerializeProperty": "='21293af3013f474faf264d978cf3501'!A5" } }, { "Name": "我方消息", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "='21293af3013f474faf264d978cf3501'!A6" + "SerializeProperty": "='21293af3013f474faf264d978cf3501'!A7" } } - ] + ], + "OverflowMode": 2 }, "TemplateCellSource": "内容" }, - "1,0": { + "2,0": { "TemplateCellSource": "角色" }, - "2,0": { + "3,0": { "TemplateCellSource": "内容" }, - "3,0": { + "4,0": { "TemplateCellSource": "用户名" }, - "4,0": { + "5,0": { "TemplateCellSource": "用户名_全名" }, - "5,0": { + "6,0": { "TemplateCellSource": "是否自己" } }, @@ -109,4 +116,4 @@ "PaperSize": {}, "Margin": {} } -}//GLQAn5g/0JLvBD4u4JKhq9hyqIvK5hYl78pw4TVuT1mewC+tjFZ8LNcVkOf5AT5XtVJ4ZhDiCQUAQyR1MU0JZmamen8ODJAvIhQ3QMy+0GBGgpBN3eR4iYLTFfDZXCT1n5MiuqTAYIaB9mxDwyxDPFR7XqVQ9f38bnMU1hogmB2YcS5ntFn93zfD5YFCD/qTVVmJRoT+CkeOLzqVGznv3Fswzu+90jhgder2D6/1bMU0vZNOB0LSHdgkAh4IZ1Xp5LQhOuYAiNmUCeBbVXo6mxW8yG+KbvQmwYzJhv67tmc4fVKK+JhLLp6eACIqms0JHziTUyTAjOLJq0+ZNQxBMIhQUVubyBcG0JRf+tgDsph1lO0F7XC4dyJU/b0Mpn+6AoVmB2kSopAoHYThBEnzHGw1LjTgACF6vzBkUzvxjDzW9qEa8eoEi4jtyQMbzqw6PxZhTMC/3po1ttFol2+kdVovi1L0LmzjOst8LUNZu79KrACVDRKCrysPqoQKcMi79aXKRz08gHvY45jrhj7l4mSXIFHYB977cJnI8io+nYf5Zacrnzs2pap4KOXP+Xk+UfMS1X5Wpp8Ik5uOZR0Af1D/nM3IsypczVRAyGtgDlmeeqIPVGjhwOs7WN7ICKVcnOFyqjrjqsogM9CGUAXUGGs9Z/mn9EG6ZZmBWPa3PlYBv9O4m36I4hkVKW6M3v4u++lHzRV3aOyhsxgSSDmHncn61/NN6/gA0iEZ3cYc7gxQVM46rPlnhFBoWJkWrkiATj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ozOQ==|920 \ No newline at end of file diff --git a/Pages/21293af3013f474faf264d978cf3501.rd b/Pages/21293af3013f474faf264d978cf3501.rd index aa4b3508..3fe264ae 100644 --- a/Pages/21293af3013f474faf264d978cf3501.rd +++ b/Pages/21293af3013f474faf264d978cf3501.rd @@ -1,5 +1,5 @@ { "PageType": 2, "ColumnCount": 1, - "RowCount": 9 + "RowCount": 10 } \ No newline at end of file diff --git a/Pages/2d17eefef7c5473fbc54f0c5820a6c1.json b/Pages/2d17eefef7c5473fbc54f0c5820a6c1.json index 06e075b0..02caaf38 100644 --- a/Pages/2d17eefef7c5473fbc54f0c5820a6c1.json +++ b/Pages/2d17eefef7c5473fbc54f0c5820a6c1.json @@ -16,9 +16,18 @@ "GridRowColumnDefinition": { "DesignLengthInPixel": 15.0 } + }, + "3": { + "GridRowColumnDefinition": { + "DesignLengthInPixel": 21.0, + "IsHidden": true + } } }, - "Count": 3, + "InLogicalVisibleIndexes": [ + 3 + ], + "Count": 4, "DefaultSize": 15.0 }, "Cols": { @@ -34,12 +43,17 @@ } }, "2": { + "GridRowColumnDefinition": { + "DesignLengthInPixel": 24.0 + } + }, + "3": { "GridRowColumnDefinition": { "DesignLengthInPixel": 15.0 } } }, - "Count": 3, + "Count": 4, "DefaultSize": 15.0 }, "Values": { @@ -49,6 +63,59 @@ "1,1": { "CssName": "ec-label", "TemplateCellSource": "主题" + }, + "1,2": { + "CssName": "hover-btn", + "CellType": { + "$type": "Forguncy.ImageCellType, ServerDesignerCommon", + "CommandList": [ + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "对话历史", + "UpdateType": "delete", + "ShowConfirm": false, + "ReloadAfterSucceed": false, + "RowsToUpdate": 1, + "RowsToUpdateCondition": { + "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", + "ColumnBindingInfo": { + "TableName": "对话历史", + "ColumnName": "主题", + "GUID": "12415933-84ea-429a-ab35-a22401060a8f" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "='2d17eefef7c5473fbc54f0c5820a6c1'!B4" + } + }, + "NextUpdateDataTableCommand": { + "TableName": "对话主题", + "UpdateType": "delete", + "ShowConfirm": false, + "RowsToUpdate": 1, + "RowsToUpdateCondition": { + "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", + "ColumnBindingInfo": { + "TableName": "对话主题", + "ColumnName": "ID", + "GUID": "eec4f62d-e4b1-4f53-8849-c6889fd40cd1" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "='2d17eefef7c5473fbc54f0c5820a6c1'!B4" + } + } + } + } + ], + "Size": 14, + "ImagePath": "Application/034_close_delete_2.svg", + "BuiltIn": true, + "Color": "Accent 5 60" + } + }, + "3,1": { + "TemplateCellSource": "ID" } }, "StyleDatas": { @@ -66,7 +133,10 @@ ] }, "CellStyles": { - "1,1": 0 + "1,1": 0, + "1,2": 0, + "2,1": 0, + "2,2": 0 }, "SheetStyle": { "FontFamily": 1 @@ -80,4 +150,4 @@ "PaperSize": {}, "Margin": {} } -}//Niqx7xadGhQiEobj/mcCHEW5UrLVIvVrS4eZJkWSlnZGealpdqqTXYld78mRTqJRgdijw+4zelXznPnOVQIpznDjB4FhGdLl/YhQh83dkyAFPzTcEJKfXtI6e/L2dd/fRAk1/wxWuB3H3gUkkk1R6UgZKBD7dpRmjnQPBmndZH1ct0gIQ0+LrJDJmRbGYpPvyJhOibgoHKSq6EuuMI5RSkKuh59UtiqTdqy694sPcS29V5/4L2FYNhNh8e+t55KxOZPY9+AkBgz4GaJTON4nQdMuRYllM7CrQ3gifoqS9yBCo+6v9wX5LaEy2OBPJPsgpUw5/LbEj1F1trv2wWcUOa28iCXW+zwsbD0rh/GmSikzAh1ts9Ns5Yz6Mru5qJQVytQEVeaEHoQjHaKuAOvpcy0HqSDahKT6Ka8djQmtJVHlVL0G0B12OF0L7Kt46USfukgPylKMjeoE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s/uElhUe6AABOJiIFaTusxoTAQwAyZClZ6qSzQPjROMAISQ4yjGiBPA4OZiN9jDIb+9gGzHsIHfDVdKoOPPgY7agVqMC5N53ya5S0bi46MrtN8dWnSp078MPT/5xU51Y8KClBQF04IHeTJNTOZD1n/0xRNoZ3QgIpQ4soRuwdENd3J0Odc37uAHj14vGl+jL/HwVFPSQjyV9s+ME81bGK2SelGy37giA4G+BIFUo/b1VRy+qZx8BT5+pENO9OIboTCDkcCpWYLUtzr/ZOtXnpmrl51QXp5KdsVe5VgJDvXluGw==|920 \ No newline at end of file diff --git a/Pages/2d17eefef7c5473fbc54f0c5820a6c1.rd b/Pages/2d17eefef7c5473fbc54f0c5820a6c1.rd index 7ec9107c..8b8e787f 100644 --- a/Pages/2d17eefef7c5473fbc54f0c5820a6c1.rd +++ b/Pages/2d17eefef7c5473fbc54f0c5820a6c1.rd @@ -1,5 +1,5 @@ { "PageType": 2, - "ColumnCount": 3, - "RowCount": 3 + "ColumnCount": 4, + "RowCount": 4 } \ No newline at end of file diff --git a/Pages/首页/对话页面.json b/Pages/首页/对话页面.json index 882c1c9a..1fe375e6 100644 --- a/Pages/首页/对话页面.json +++ b/Pages/首页/对话页面.json @@ -153,7 +153,8 @@ "SerializeProperty": "=对话页面!当前主题" } } - ] + ], + "OverflowMode": 1 } } }, @@ -172,6 +173,175 @@ ], "PageInfo": { "$type": "Forguncy.Model.Pages.NormalPage, ServerDesignerCommon", + "PageLoadedCommandList": [ + { + "$type": "Forguncy.Model.SubscribeNotificationCommand, ServerDesignerCommon", + "Name": "AI流消息", + "CommandList": [ + { + "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", + "ConditionAndCommandPairList": [ + { + "Condition": { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", + "cellLocations": [ + { + "SerializeProperty": "=内容" + } + ] + }, + "value": "strat" + }, + "CommandList": [ + { + "$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon", + "TargetPageElement": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=对话页面!聊天列表组件" + }, + "TargetType": "Forguncy.UserControlPageCellType, ServerDesignerCommon, Version=10.0.2.0, Culture=neutral, PublicKeyToken=967100671921c115", + "MethodName": "CallUserControlPageMethod", + "ParameterValues": { + "userControlMethodData": { + "$type": "Forguncy.UserControlPageMethodData, ServerDesignerCommon", + "UserControlPageName": "聊天列表", + "MethodName": "更新消息内容", + "ParameterValues": [ + { + "Name": "角色", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=对话页面!角色" + } + }, + { + "Name": "内容", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=\"\"" + } + } + ], + "Returns": [] + } + } + } + ], + "ID": "a9e55f86-c2bc-4c28-aec3-3ed614d9943d" + }, + { + "Condition": { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", + "cellLocations": [ + { + "SerializeProperty": "=内容" + } + ] + }, + "value": "done" + }, + "CommandList": [ + { + "$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon", + "TargetPageElement": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=对话页面!聊天列表组件" + }, + "TargetType": "Forguncy.UserControlPageCellType, ServerDesignerCommon, Version=10.0.2.0, Culture=neutral, PublicKeyToken=967100671921c115", + "MethodName": "CallUserControlPageMethod", + "ParameterValues": { + "userControlMethodData": { + "$type": "Forguncy.UserControlPageMethodData, ServerDesignerCommon", + "UserControlPageName": "聊天列表", + "MethodName": "保存到数据库", + "ParameterValues": [], + "Returns": [] + } + } + }, + { + "$type": "Forguncy.Model.RunJavaScriptCommand, ServerDesignerCommon", + "JavaScript": "Forguncy.Page.reloadBindingData();\r\n", + "ID": "e46465a3de474b6e9093daf090f87877" + } + ], + "ID": "6f207ea1-55a1-4980-bfbe-44c05734dca4" + }, + { + "CommandList": [ + { + "$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon", + "TargetPageElement": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=对话页面!聊天列表组件" + }, + "TargetType": "Forguncy.UserControlPageCellType, ServerDesignerCommon, Version=10.0.2.0, Culture=neutral, PublicKeyToken=967100671921c115", + "MethodName": "CallUserControlPageMethod", + "ParameterValues": { + "userControlMethodData": { + "$type": "Forguncy.UserControlPageMethodData, ServerDesignerCommon", + "UserControlPageName": "聊天列表", + "MethodName": "更新消息内容", + "ParameterValues": [ + { + "Name": "角色", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=对话页面!角色" + } + }, + { + "Name": "内容", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=对话页面!内容" + } + } + ], + "Returns": [] + } + } + } + ], + "ID": "dca0123a-5c20-41b5-869a-10ce3aa2d9f1" + } + ] + } + ], + "ID": "a5f3d65373ae434091a53c85f615aab3" + }, + { + "$type": "AsycCommandList.AsycCommandListCommand, AsycCommandList", + "CommandList": [ + { + "$type": "xTools.Commands.xDelayed, xTools", + "Millisecond": "1000" + }, + { + "$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon", + "TargetPageElement": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=对话页面!聊天列表组件" + }, + "TargetType": "Forguncy.UserControlPageCellType, ServerDesignerCommon, Version=10.0.2.0, Culture=neutral, PublicKeyToken=967100671921c115", + "MethodName": "CallUserControlPageMethod", + "ParameterValues": { + "userControlMethodData": { + "$type": "Forguncy.UserControlPageMethodData, ServerDesignerCommon", + "UserControlPageName": "聊天列表", + "MethodName": "滚动到底部", + "ParameterValues": [], + "Returns": [] + } + } + } + ] + } + ], "PermissionData": { "$type": "Forguncy.RbacPermission.Core.Impl.Page.PagePermissionData, Forguncy.RbacPermission.Core", "permissionResource": { @@ -199,4 +369,4 @@ "Formula": "对话页面!$A$1" } ] -}//dXekz8zUZ4IkcVVUWN3+Lh3r2uxMEGUQFM1+bpFafz8n/OfDmL/ypMlsoe/2Q2ymRaVoOjcn30XYpujIR561oZCdU+IWdrOUcZeZY/D6RDgqNfRFDWGh/tSKkJeX08BrVOy92wduMuQiakVzevos+S40qFovb8y8HqkPqDaql1QtM+Q2rCjPQdpPctVPBj2NhfnQxsv3rTQ1cycoyHK/+Ec+UHHYXwDVo7C9+XrU8NGAQSbDCtf1Iduxknl/pKP5PAEdoy+z3wr9rEcJ0b2WgM/KGHeXKc1tczup4CV09Pzew8NmGD9m5kFzlPiBL7mOQXJYOSa6PzKxdDGgEsKHOUatluiOraAbciU6M8Uffkrr2mn2DHbbKSx5SGEHYWZ0DvQhyxnI5Mp2y1ejts3YDBRvsmoooNi71FWjWtIYQFwjh/7oNEkK/lWrxiPmqR8f6P7LtEzZkNlUYoM0kGocb/8U90twO4hXN5F2aIQ35iXmUkk0VaYwYCOQcVVl6MhPLX3KaxJul/IjXCCtSZDgufr/eco08kHFF60sMUUBj5rTUpKc8PBFSrfeHl15pH/76zreM6EBULpWWN3mobkMgUgOfkWEpZxWQt6Ny2byJ9C09/OBwjipa+dmLT0QTjNuBSN1HR8mUU8BhYDiG9bnXlFESBnMU+nzTFAz/IIkL566kMFoT+EdH2sLuHgEUirAyLWpqCsaUf/XaUT+dKa4q2nXLAJbBmrEkPWp7YjX0o0QIF/etZenVGDwp+jFKl+ox/HaUTaoweuwYM/YV5G1DN+l7EBVEwNuoWSE6h66owgPWKr34f85DxULH6Jl7acWCURYCFd5501I9FJovdklEC3Yhl0UxnlUIus22EWREvYPTmbki6p0L2iUgXfGX2dUQ5Gc0OzbiBTBuykyBNNw4w==|920 \ No newline at end of file +}//m1ytkL5C/9ATqSJE3qNOKH4bO0EfAPb8vuuBQRdfiRnfv972blqQ4utXn6lmQhRzn3o9Q0DFO3Qc5fTtNE7qsjZasFpWc9hLw4YZaXr+hycRD1KyZLyPuwsUnfXyCbQDtElmyVdtHOiiMFjW/icDadbsbBpKIaBnmgIOaFzSbz6PjJeYdj3UdVVPGiTf+cRH8jMwSvC74bAoXDIDe1hLt/MQUvK5CJ/VIzwk0Z7QL+A2Alat59g+O1HCAFqkS21PkKuakp4uehdBGdDH+eQEIxXHrZ/druwVFNBxoPTl1F8nCRnloyX3rnyUCIETh6nBlvldAbmZIBLsMjTeCYREkZO7NeXQk4Q0JDiGb0ryGvFGcSgXpVf/Ar7beBi8VAfTB/dAtMLAanyDW/Z/zJa1Fe+Q09T0b7i6JtJdGTKzyJPGWfgdW1CKdWM4eele125IXL0JWGBuaLe3Fug8f25XPSttTYOgZMuD9Z753Ct1n98tjKOJHAqGmT2Vkqt87h8pLEsg6hPV/vtr5DeNrS7RQEPY/42J36lSsd/6pDqP3+KkMIzFPC0WtYwwLu37CWGwEUmGZfjvE0NvBRuYVikHioCG68RzEo56vN31PpppGUkj7Q8WGjtp26KoxnnMGUPE5AJZdhO6IkWXGascBXXiUJTMej/jMBQ4P0gTGFdquK1yWP+H/eLvhfC8wsjar3+4eIra4+Lc4ZNKrHnphFjxHTi7WSD/hRvEgwlfN6Poc5+muLYoRcIPdU3rCVpRRevC1oO13HoPWqJS9t83JTxfNzhXa0N8+HIM4FsnH1kvdnbrhpjttBwnv8/qHpK46iVN8dcvp1ES0XoNDpwZ5bxL5w/6J5CTDQNk1lJnU++eaB9m2JVdIv3svHJ/To80RkJgu10DVmxorq/QI/vE4V2i1w==|920 \ No newline at end of file diff --git a/Pages/首页/首页.json b/Pages/首页/首页.json index 3abe967c..12c2fb0d 100644 --- a/Pages/首页/首页.json +++ b/Pages/首页/首页.json @@ -344,7 +344,7 @@ ] } ], - "ID": "063712d4-9119-44e8-bc07-af24523d126a" + "ID": "297eae8f-5e51-4c59-8a48-82772bee9ce4" }, { "CommandList": [ @@ -364,7 +364,7 @@ ] } ], - "ID": "3992f681-8cf6-4378-b304-16bd9d2512f5" + "ID": "3e3420a1-8d7b-46e2-a864-0c9dac0bee98" } ] } @@ -475,6 +475,42 @@ "UseCellForeColor": true } }, + "2,32": { + "CellType": { + "$type": "Forguncy.ImageCellType, ServerDesignerCommon", + "CommandList": [ + { + "$type": "Forguncy.Model.SetCellPropertyCommand, ServerDesignerCommon", + "PropertyItemsList": [ + { + "TargetCells": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=首页!对话子页面" + }, + "Value": "对话页面" + } + ] + }, + { + "$type": "Forguncy.Model.SetRowColumnLayoutCommand, ServerDesignerCommon", + "PropertyItemsList": [ + { + "Location": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=首页!B:D,首页!AG:AG" + }, + "Value": true + } + ] + } + ], + "ToolTip": "清空记录", + "Size": 18, + "ImagePath": "Application/156_processCentre_1.svg", + "BuiltIn": true, + "UseCellForeColor": true + } + }, "16,4": { "CssName": "fade-in animation-delay-1", "CellType": { @@ -486,13 +522,12 @@ "Commands": { "Commands": [ { - "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", - "ParameterName": "aaaa", - "ParameterValue": { + "$type": "Notiflix_Forguncy.Block_Command, Notiflix_Forguncy", + "Cell": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=首页!内容" + "SerializeProperty": "=首页!对话子页面" }, - "ID": "3780e8d9f7dd410b87c0294ddea65dba" + "Title": "加载中" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", @@ -511,30 +546,6 @@ "value": "%Null%" }, "CommandList": [ - { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "对话主题", - "UpdateType": "add", - "ShowConfirm": false, - "UpdateBindingValues": [ - { - "BindingInfo": { - "TableName": "对话主题", - "ColumnName": "用户", - "GUID": "5e6ad134-0fed-4457-b235-efa146f849f0" - }, - "Value": "%CurrentUser%" - }, - { - "BindingInfo": { - "TableName": "对话主题", - "ColumnName": "主题", - "GUID": "4f600f47-db1e-4e63-aeab-70ec147631ed" - }, - "Value": "新发起的聊天" - } - ] - }, { "$type": "Forguncy.Model.SetCellPropertyCommand, ServerDesignerCommon", "PropertyItemsList": [ @@ -551,7 +562,7 @@ ] } ], - "ID": "0c0f375a-d6c4-4baa-803a-55a0dd6063a9" + "ID": "31257ad1-3225-4c1a-b20e-eeceaba583b9" } ] }, @@ -602,7 +613,7 @@ "Millisecond": "1000" } ], - "ID": "6a5b6585-d001-4c5d-8f30-dcb7369010b0" + "ID": "8a2c66f8-57a4-417b-9c87-8de9cae5274c" } ] }, @@ -642,14 +653,14 @@ "Name": "用户名", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=首页!母版_当前用户" + "SerializeProperty": "=FGC_母版页!母版_当前用户" } }, { "Name": "全名", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=首页!母版_当前用户姓名" + "SerializeProperty": "=FGC_母版页!母版_当前用户姓名" } }, { @@ -675,20 +686,90 @@ "Value": "1" } ], - "Returns": [], - "MethodResultErrorCodeTo": { - "SerializeProperty": "code" - }, - "MethodResultMessageTo": { - "SerializeProperty": "msg" + "Returns": [] + } + } + }, + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "对话主题", + "ShowConfirm": false + }, + { + "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", + "ServerCommandName": "AI对话", + "Parameters": [ + { + "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", + "ParamName": "主题ID", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=首页!当前主题" } } + ], + "RequestAsync": true, + "CheckDataValidation": false + }, + { + "$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon", + "TargetPageElement": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=对话页面!聊天列表组件" + }, + "TargetType": "Forguncy.UserControlPageCellType, ServerDesignerCommon, Version=10.0.2.0, Culture=neutral, PublicKeyToken=967100671921c115", + "MethodName": "CallUserControlPageMethod", + "ParameterValues": { + "userControlMethodData": { + "$type": "Forguncy.UserControlPageMethodData, ServerDesignerCommon", + "UserControlPageName": "聊天列表", + "MethodName": "添加一条消息", + "ParameterValues": [ + { + "Name": "用户名", + "Value": "assistant" + }, + { + "Name": "全名", + "Value": "AI助手" + }, + { + "Name": "角色", + "Value": "assistant" + }, + { + "Name": "内容", + "Value": "思考中..." + }, + { + "Name": "日期", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=NOW()" + } + }, + { + "Name": "是否自己消息", + "Value": "0" + } + ], + "Returns": [] + } } } ], - "ID": "180823c4-4e16-49c5-8eb1-779349de25c3" + "ID": "b8b4752f-7056-4765-8f68-8b888a749c22" } ] + }, + { + "$type": "Notiflix_Forguncy.Block_Command, Notiflix_Forguncy", + "FunctionName": "remove", + "Cell": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=首页!对话子页面" + }, + "Title": "加载中" } ], "ParamProperties": { @@ -734,12 +815,16 @@ "Foreground": 2 }, { - "Background": 3, - "FontFamily": 4, + "FontFamily": 3, + "Foreground": 2 + }, + { + "Background": 4, + "FontFamily": 3, "BorderLeft": 1 }, { - "FontFamily": 4, + "FontFamily": 3, "FontSize": 13.333333333333332 } ], @@ -748,8 +833,8 @@ "Center", "Background 1 -15", "Background 1 -50", - "#FFFFFF00", "Body", + "#FFFFFF00", "black" ], "Borders": [ @@ -766,6 +851,7 @@ "1,2": 1, "1,32": 2, "2,2": 1, + "2,32": 3, "3,2": 1, "4,2": 1, "5,2": 1, @@ -782,12 +868,12 @@ "16,2": 1, "17,1": 0, "17,2": 0, - "18,12": 3, - "18,32": 4, - "19,12": 3 + "18,12": 4, + "18,32": 5, + "19,12": 4 }, "SheetStyle": { - "FontFamily": 4 + "FontFamily": 3 } }, "Spans": [ @@ -856,6 +942,10 @@ { "Name": "当前主题", "Formula": "首页!$M$19" + }, + { + "Name": "主题列表", + "Formula": "首页!$B$2" } ] -}//Bcrr2BYKP1LWy8bvHtikGev0aFbjlS6zMqlG9NF5zPNEJoO1pXCJKVKpzAwY4dz87mJquNMQBOAbGh0IpGKci/ztgkJ5PLvhMqt9fYBtEpBhYff/h5a8/o3gOHL3pFnni60BjL07DtqCc7hzSgZbHTz4/eWi5eXY7B/eDSPULNcJGFzq/6r7Rni1oygmvCtirRuBkGZbILlh79mi0QCn0+bpAPR9cK+XtmRT1IXO28ieC0GAwiVgrHhRO6gzMASwz0taBCQ1CaUkLuBfNjgloBKAR21cQ2iTMMMwOLBAgINIwpXzLPZZYc9mVVnBkW2QyeAGeB2qoOr5YyFqyxpXkD61btuN6Df7caUGFuYgMW/Srk8yb15jjhEkdZE+xfH5Ras1DMRlU9+czhQdBRzoo5jgoRgA5jPIJtptpSjQGDwJKfhnVtRDjwKd005FVHv+kvytb70MoG+GBXABAEGi3MJBxnWuuub+jlWG1MHVQdqNQjKa//JPwgYd8jQ7wCEejuJGH6IpmAMYShEXVar3maDf8aEnQgS9B+d/OgXO7KV2s3sV4UtEVVF5MNToMz54KSoYWkxKr8zLh0C91QqI1ZZGMdQ3e4NuM7hCu0qsQ1qZuChtxan2vqJzlAgT8ItRrtA4vu8ifX24R2lFfFvQXX1fsGzesffG7+zIMqMC4auB21wgAKHzOziXoT0/IFV4Nvq9DJuFkYoUqrQ8CehlLquQ2U64vnRRWDh7R6Q79dkUZJtKEcUyp0sj76Rg96xwQd9/hw3CYIuklICVajXR4KzZ5NGW0PcwuAZY9fw+zpN+xHS1e0A22nNRxSOozrV112ZQ+YKWrS/J7elzee70lEWhe9OfG4wW9YMbsGWRvRBaByGYggTxPv1QBPOpTNF4G364PWWGNafp/3TPWWWXuQ==|920 \ No newline at end of file +}//IhHrQgs2q9NJGBcKrZYhj1I+zO0ZS2svdcNmI+kow3c+0NN+hpF0RKnF3eo40v+y+LlmI8Fcoqu9PeoQtSP2ZhjGogARfXcYG3bJQXpnLFMGPlwaN79FuunUunrVJ+nGQYJS575cdEZI998RRdjeFQhbohqO4ScsBJpob88nKs5Gc16xujdwhizGbw++13DpUbIjjzIswJ7Kz/mEfnBCd5DJyGuYCyZzAI3Sw9740EihO+8Q34Jz+qr80nJdfnudAogk2hz9FObxuJh/h6nVPhms2yaveSxa/Q5/1n8wokmU5ZhFyelKc3zZHcGIDyiCnSVaoVheGW5h0uwOY/aoA2DNqSiLZayaAI6u29UWMm4FS1CJC79Kc7UgYpOaCr60XmMbFeaUabCZDoSTyO1Y/O+jhB1OIjC09HY/WPuw20vMqlgmAOGrOdr9w17Tm9kTDFx4PQIDyj1JAxYdzmXvZexrpjRiu4Atubzwiva3DrIEdRzakfhSFyyVOgnHg8rnmj8EpBsLNxs4L5x50y3aNq4NZwFaPdtjy4QRKZTylvXQONkOIlVJj6F+y03J/7hunb96iv1jfjafYwrsr3SCECHIT+5xmshVQpDmTOvJq7C72EpTMSe/4l6t1Nabmbietyawb+EjHsPwyJ1Q2j+UpHRm1phOzpr+SOv9U46QgfEREnETGCLxxyVrDNbH01B2rOEIXnoFEXKkoMijRKiRwtrH06SjSrv8Z1kSpesQDgoqhrdJm4Mn/M78uJThoAAf/q9hiW9x4kvIW81j+wPA6Zf53bVnXBabhEMosLlcNgy5pW25+lYBtIe/X6qh9jKWfmbIPHZ28BmnNrbH2kAmdPTfZhSzwmtowB5UDCuApnFwesTIgMKuwzfNhl2xin9D4B++mmAEAvGXrspp3sCBGw==|920 \ No newline at end of file diff --git a/Pages/首页/首页.rd b/Pages/首页/首页.rd index 0942d3da..0f80d975 100644 --- a/Pages/首页/首页.rd +++ b/Pages/首页/首页.rd @@ -10,6 +10,10 @@ { "Name": "当前主题", "Formula": "首页!$M$19" + }, + { + "Name": "主题列表", + "Formula": "首页!$B$2" } ] } \ No newline at end of file diff --git a/Plugin/异步运行命令-9_0_103_0.zip b/Plugin/异步运行命令-9_0_103_0.zip new file mode 100644 index 00000000..a288fdd5 Binary files /dev/null and b/Plugin/异步运行命令-9_0_103_0.zip differ diff --git a/ServerCommands/AI/AI对话.json b/ServerCommands/AI/AI对话.json new file mode 100644 index 00000000..e2267157 --- /dev/null +++ b/ServerCommands/AI/AI对话.json @@ -0,0 +1,370 @@ +{ + "Name": "AI对话", + "Enabled": true, + "Triggers": [ + { + "$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon", + "Permission": { + "PermissionData": { + "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core", + "permissionResource": { + "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core" + }, + "permissionBindings": [ + { + "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core", + "roleNames": [ + "FGC_LoginUser" + ] + } + ] + } + }, + "Parameters": [ + { + "Name": "主题ID", + "DataValidationInfo": { + "IgnoreBlank": false + }, + "TestData": "2" + } + ], + "InvokeTriggerTestData": { + "UserName": "Administrator" + } + } + ], + "Commands": [ + { + "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", + "ParameterName": "主题信息", + "TableValue": { + "TableName": "对话主题", + "TableValueType": 1, + "BindingInfos": [ + { + "GUID": "a9b60d4b-d619-4d43-b6f0-b94a360cadbc", + "BindingInfo": { + "TableName": "对话主题", + "ColumnName": "ID", + "GUID": "83a31143-581e-4afc-8910-2826889e35af" + }, + "ColumnName": "ID" + }, + { + "GUID": "5ce898a4-1e9b-47df-ba38-92acdf04fcb0", + "BindingInfo": { + "TableName": "对话主题", + "ColumnName": "主题", + "GUID": "7ec162b4-dcd0-4cc1-87a3-3b9c711e09f4" + }, + "ColumnName": "主题" + } + ], + "SqlCondition": { + "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", + "ColumnBindingInfo": { + "TableName": "对话主题", + "ColumnName": "ID", + "GUID": "c7b1e947-30c5-4550-ab96-3458a2f0d10a" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=主题ID" + } + }, + "NullFormulaValueQueryPolicy": 0 + }, + "ID": "227381e6e4ba4eea943dd8ac970fd44e" + }, + { + "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", + "ConditionAndCommandPairList": [ + { + "Condition": { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", + "ParamObject": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=主题信息" + } + }, + "value": "%Null%" + }, + "CommandList": [ + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "对话主题", + "UpdateType": "add", + "ShowConfirm": false, + "UpdateBindingValues": [ + { + "BindingInfo": { + "TableName": "对话主题", + "ColumnName": "用户", + "GUID": "1041a413-15a6-41d2-b7cd-6c4c93a9ec6a" + }, + "Value": "%CurrentUser%" + }, + { + "BindingInfo": { + "TableName": "对话主题", + "ColumnName": "主题", + "GUID": "c1419f50-4e91-4e36-ad86-99086a9ae013" + }, + "Value": "新创建的主题" + } + ], + "ParamNameToSaveNewRowValue": "主题信息" + } + ], + "ID": "b6caa162-8b3b-49bc-a40a-b047750a5c2e" + } + ] + }, + { + "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", + "ParameterName": "当前用户", + "ParameterValue": "%CurrentUser%", + "ID": "9adec28510a64178b629bf740173d72f" + }, + { + "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", + "ParameterName": "消息记录", + "TableValue": { + "TableName": "对话历史", + "BindingInfos": [ + { + "GUID": "05c68ac8-2b71-4abd-99e0-e6e0f4d195b1", + "BindingInfo": { + "TableName": "对话历史", + "ColumnName": "角色", + "GUID": "2b8d2f47-f447-4851-b920-3f8917ed16e3" + }, + "ColumnName": "role" + }, + { + "GUID": "7847e49c-4254-499b-ac14-cbc81ed29335", + "BindingInfo": { + "TableName": "对话历史", + "ColumnName": "内容", + "GUID": "e9fe5d96-47d4-49b9-aa7a-a5b3ed984c7b" + }, + "ColumnName": "content" + }, + { + "GUID": "009b02ae-8ac0-4699-8446-28f0df518ecb", + "BindingInfo": { + "TableName": "对话历史", + "ColumnName": "图片", + "GUID": "c3d18449-c1a4-4754-abd8-0edc49309d48" + }, + "ColumnName": "img" + } + ], + "SqlCondition": { + "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", + "ColumnBindingInfo": { + "TableName": "对话历史", + "ColumnName": "主题", + "GUID": "f7d70ba9-3871-4633-a196-b8967915305b" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=主题ID" + } + }, + "OrderBySqlCondition": { + "OrderByColumns": [ + { + "ColumnBindingInfo": { + "TableName": "对话历史", + "ColumnName": "FGC_CreateDate", + "GUID": "834fe33b-50ff-4c97-9211-aa91de5726c0" + }, + "Order": 0 + } + ] + } + }, + "ID": "ee09c660717e4658aad9d1f056d4a294" + }, + { + "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", + "ConditionAndCommandPairList": [ + { + "Condition": { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", + "ParamObject": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=消息记录.Count" + } + }, + "value": "0", + "compareType": 2 + }, + "CommandList": [ + { + "$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon", + "NotificationName": "AI流消息", + "SendType": 1, + "UserNames": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=当前用户" + }, + "Params": [ + { + "Name": "角色" + }, + { + "Name": "内容", + "Value": "strat" + } + ], + "ID": "33b6a7ea5aeb40d78695440299de376e" + }, + { + "$type": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY", + "URL": "https://openai.api2d.net", + "APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh", + "IsDataSource": "json", + "MessageJSON": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=消息记录" + }, + "Parameter": { + "Model": 42, + "Temperature": 1.0, + "TopP": 1.0, + "MaxTokens": 1000, + "SystemContent": "你是一个乐于助人的智能助手,请您为我解答我提出的问题。", + "Response_format": "text", + "Stream": true + }, + "Tools": [], + "ResultTo": "result", + "CommandList": [ + { + "$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon", + "NotificationName": "AI流消息", + "SendType": 1, + "UserNames": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=当前用户" + }, + "Params": [ + { + "Name": "角色", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=result.role" + } + }, + { + "Name": "内容", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=result.content" + } + } + ], + "ID": "4d179a9d07d24f95bdeaf92d55da33db" + } + ] + }, + { + "$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon", + "NotificationName": "AI流消息", + "SendType": 1, + "UserNames": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=当前用户" + }, + "Params": [ + { + "Name": "角色" + }, + { + "Name": "内容", + "Value": "done" + } + ], + "ID": "0cf23e921fd44b7bad72bad1d0446d31" + }, + { + "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", + "ConditionAndCommandPairList": [ + { + "Condition": { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", + "ParamObject": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=主题信息.主题" + } + }, + "value": "新创建的主题" + }, + "CommandList": [ + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "对话主题", + "ShowConfirm": false, + "RowsToUpdate": 1, + "RowsToUpdateCondition": { + "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", + "ColumnBindingInfo": { + "TableName": "对话主题", + "ColumnName": "ID", + "GUID": "665e9b45-d556-43f1-be2f-3344a1529679" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=主题信息.ID" + } + }, + "UpdateBindingValues": [ + { + "BindingInfo": { + "TableName": "对话主题", + "ColumnName": "主题", + "GUID": "d5b820d6-2ce8-404d-b278-811dd721fb59" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=LEFT(消息记录.0.content,12)" + } + } + ] + } + ], + "ID": "27c93fbc-33bb-40ea-9f2d-dbd260839673" + } + ] + }, + { + "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", + "ErrorCode": "0", + "Message": "回答完毕" + } + ], + "ID": "72b71a55-4c52-4bc6-bce8-cfedcf9d5d60" + }, + { + "CommandList": [ + { + "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", + "ErrorCode": "400", + "Message": "请输入消息" + } + ], + "ID": "5488984c-21bd-408f-9016-fff233aad4c8" + } + ] + } + ] +} \ No newline at end of file diff --git a/Tables/AI助手/对话主题.json b/Tables/AI助手/对话主题.json index 472f4f6a..65f512ce 100644 --- a/Tables/AI助手/对话主题.json +++ b/Tables/AI助手/对话主题.json @@ -6,19 +6,22 @@ "Required": true, "Unique": true, "AutoIncrement": true, - "DatabaseColumnType": "System.Int64", + "DatabaseColumnType": "bigint", "MaxLength": -1, "Name": "ID", "ColumnType": "System.Int64, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, { "$type": "Forguncy.SaveLoad.UserBindingColumnSaveData, ServerDesignerCommon", - "DatabaseColumnType": "System.String", + "DatabaseColumnType": "nvarchar", + "MaxLength": -1, "Name": "用户", "ColumnType": "System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, { "$type": "Forguncy.SaveLoad.BindingColumnSaveData, ServerDesignerCommon", + "DatabaseColumnType": "nvarchar", + "MaxLength": -1, "Name": "主题", "ColumnType": "System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, @@ -43,6 +46,13 @@ "Name": "FGC_LastModifyDate" } ], + "ExternalDatabaseInfo": { + "DataBaseType": "6db454c0-531c-4395-9122-921a18942902", + "AllowModifySchema": true, + "ConnectionId": "业务表", + "SourceTableName": "对话主题", + "SourceTableSchema": "dbo" + }, "PrimaryKey": [ "ID" ], diff --git a/Tables/项目/项目任务树视图.json b/Tables/项目/项目任务树视图.json index 349722bc..f2b76912 100644 --- a/Tables/项目/项目任务树视图.json +++ b/Tables/项目/项目任务树视图.json @@ -11,18 +11,17 @@ }, { "$type": "Forguncy.SaveLoad.BindingColumnSaveData, ServerDesignerCommon", - "Required": true, - "DatabaseColumnType": "bigint", + "DatabaseColumnType": "varchar", "MaxLength": -1, "Name": "ID", - "ColumnType": "System.Int64, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" + "ColumnType": "System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, { "$type": "Forguncy.SaveLoad.BindingColumnSaveData, ServerDesignerCommon", - "DatabaseColumnType": "bigint", + "DatabaseColumnType": "varchar", "MaxLength": -1, "Name": "PID", - "ColumnType": "System.Int64, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" + "ColumnType": "System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, { "$type": "Forguncy.SaveLoad.BindingColumnSaveData, ServerDesignerCommon", @@ -37,7 +36,7 @@ "ConnectionId": "业务表", "SourceTableName": "项目任务树视图", "SourceTableSchema": "dbo", - "CreateViewSql": "SELECT\r\n[类型] ='项目',\r\n[ID],\r\n[PID]=NULL,\r\n[项目名称] AS [名称]\r\nFROM 项目表\r\n\r\nUNION ALL\r\n\r\nSELECT\r\n[类型] ='任务',\r\n[ID],\r\n[项目ID] AS [PID],\r\n[任务名称] AS [名称]\r\nFROM 任务表", + "CreateViewSql": "SELECT\r\n[类型] ='项目',\r\n[ID]='项目' + CAST([ID] AS VARCHAR(10)),\r\n[PID]=NULL,\r\n[项目名称] AS [名称]\r\nFROM 项目表\r\n\r\nUNION ALL\r\n\r\nSELECT\r\n[类型] ='任务',\r\nCAST([ID] AS VARCHAR(10)) AS [ID],\r\nPID=ISNULL(CAST(父任务ID AS varchar(10)), '项目' + CAST([项目ID] AS VARCHAR(10))),\r\n[任务名称] AS [名称]\r\nFROM 任务表", "ViewInfo": { "ViewName": "项目任务树视图", "IsUpdatable": true, diff --git a/UserControlPages/聊天列表.json b/UserControlPages/聊天列表.json index c6d3cbf9..a3b0261e 100644 --- a/UserControlPages/聊天列表.json +++ b/UserControlPages/聊天列表.json @@ -4,13 +4,7 @@ "0": { "GridRowColumnDefinition": { "DesignLengthInPixel": 343.0, - "Mode": 2, - "MinLength": { - "Unit": 1 - }, - "MaxLength": { - "Value": 1.0 - } + "Mode": 1 } }, "1": { @@ -151,6 +145,7 @@ }, "AttachInfos": { "0,0": { + "CssName": "chat-box", "CellType": { "$type": "Forguncy.RepeaterCellType, ServerDesignerCommon", "TemplatePageName": "21293af3013f474faf264d978cf3501", @@ -389,12 +384,20 @@ } } ] + }, + { + "$type": "Forguncy.Model.RunJavaScriptCommand, ServerDesignerCommon", + "JavaScript": "var $chatBox = $('.chat-box');\r\n\r\n // 查找第一个可滚动的父元素\r\n var $scrollableParent = $chatBox.parents().filter(function() {\r\n var overflowY = $(this).css('overflow-y');\r\n return (overflowY === 'scroll' || overflowY === 'auto') && this.scrollHeight > this.clientHeight;\r\n }).first();\r\n\r\n if ($scrollableParent.length) {\r\n // 如果找到了可滚动的父元素,平滑滚动到底部\r\n var scrollHeight = $scrollableParent.prop('scrollHeight');\r\n $scrollableParent.animate({\r\n scrollTop: scrollHeight\r\n }, 1000); // 1000毫秒内滚动到底部,可以根据需要调整这个时间\r\n }", + "ID": "e7a2e459ccdd44f097e80445afdf4d63" } ] }, { "Name": "更新消息内容", "Params": [ + { + "Name": "角色" + }, { "Name": "内容" } @@ -404,12 +407,23 @@ "$type": "Forguncy.Model.UpdateListviewCommand, ServerDesignerCommon", "ListviewName": "图文列表表格1", "UpdateValues": [ + { + "Column": "角色", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=聊天列表!角色" + } + }, { "Column": "内容", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=聊天列表!内容" } + }, + { + "Column": "是否自己", + "Value": "0" } ], "UpdateRowType": 1, @@ -418,14 +432,38 @@ "Column": "ID", "value": "%Null%" } + }, + { + "$type": "Forguncy.Model.RunJavaScriptCommand, ServerDesignerCommon", + "JavaScript": "var $chatBox = $('.chat-box');\r\n\r\n // 查找第一个可滚动的父元素\r\n var $scrollableParent = $chatBox.parents().filter(function() {\r\n var overflowY = $(this).css('overflow-y');\r\n return (overflowY === 'scroll' || overflowY === 'auto') && this.scrollHeight > this.clientHeight;\r\n }).first();\r\n\r\n if ($scrollableParent.length) {\r\n // 如果找到了可滚动的父元素,平滑滚动到底部\r\n var scrollHeight = $scrollableParent.prop('scrollHeight');\r\n $scrollableParent.animate({\r\n scrollTop: scrollHeight\r\n }, 1000); // 1000毫秒内滚动到底部,可以根据需要调整这个时间\r\n }", + "ID": "daf92f9a2c0f49fcac06c37a40d18ca1" + } + ] + }, + { + "Name": "保存到数据库", + "Commands": [ + { + "$type": "Forguncy.Model.UpdateListviewCommand, ServerDesignerCommon", + "ListviewName": "图文列表表格1", + "UpdateType": 3 + } + ] + }, + { + "Name": "滚动到底部", + "Commands": [ + { + "$type": "Forguncy.Model.RunJavaScriptCommand, ServerDesignerCommon", + "JavaScript": "var $chatBox = $('.chat-box');\r\n\r\n// 查找第一个可滚动的父元素\r\nvar $scrollableParent = $chatBox.parents().filter(function () {\r\n var overflowY = $(this).css('overflow-y');\r\n return (overflowY === 'scroll' || overflowY === 'auto') && this.scrollHeight > this.clientHeight;\r\n}).first();\r\n\r\nif ($scrollableParent.length) {\r\n // 如果找到了可滚动的父元素,平滑滚动到底部\r\n var scrollHeight = $scrollableParent.prop('scrollHeight');\r\n $scrollableParent.animate({\r\n scrollTop: scrollHeight\r\n }, 1000); // 1000毫秒内滚动到底部,可以根据需要调整这个时间\r\n}", + "ID": "7e96faa054974439b742c856c769db02" } ] } - ], - "PageLoadedCommandList": [] + ] }, "PrintInfo": { "PaperSize": {}, "Margin": {} } -}//WS+/O/lDXgGTZIH/OJezENd5LSj2r8Sw7X10K5x2+1OQ9U1ABHZfOZi4JJ3A0VRq0Xx1NQicAUqTKpi10WCCz8iFO+Gafd7qHqrzrQR84GRN5lWIlxbP+lQz7v4cUFZ9pJ+Mx1grNsJtvP36Cue4trNftYJnses1UmOeRG32xf4AdzX0EJVjRLybOrG7KfE8IS+9L8c3B0Xu1sC2ilR0Y38OaydPKdRFReTeE0X3AAgsXLfw+SVn8GDd3mqm6qtookFwxYeSCaavmgi0t8RQJrinaM0zjDYw9qPgBmCHBaaeevmsKsfIgoQJ0bRSCvIPL1argfh8064BMsfYZTOfDGVts6z60Zxy7aWJc1YKDqBhZXKtOUWbjl4WQgc2nHIqQ7NJ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SgKj2GOSMKUrNhBMYwQblVadepy/eAZXT7Hz6QXny1Jzn1HqqLS7174gDjBE+mHiGrDfXjdEjuyTb3+yyxOC6WisAd90Szvi+6AsA2icatUu2hdOt6HxgPbgDJcAL/DA2AVF1GjuQsX5tugKWTvxC8Pe0Z1PR7LnCdrlpB5OL69D7K54ODfsYkt5KDTwGE9fhyTYPHlpi2oJTszo4kLb68MUlu8oBJ79N5ZX29836h/AU3IFdJPUugl1G6EdT1chJDJqOActOFPlShE7IU2Wi1SGawStoaxIcoeRA4WnXyKAPbmPDjXP8AOGQO8mFaMKyDpCNbtLBGaR5+PSolk1r9u4WXgf+yaHSXtUZScuE0DZWWZia/orK32orttFJQubmw==|920 \ No newline at end of file diff --git a/UserControlPages/聊天起泡.json b/UserControlPages/聊天起泡.json index 98a35674..3d658e1c 100644 --- a/UserControlPages/聊天起泡.json +++ b/UserControlPages/聊天起泡.json @@ -202,6 +202,11 @@ }, "4,3": { "CssName": "", + "CellType": { + "$type": "editormdPlugin.editormdPlugin, editormdPlugin", + "Toolbar": true, + "Pren": true + }, "TemplateCellSource": "聊天内容" }, "4,9": { @@ -264,8 +269,8 @@ } }, "Spans": [ - "4,3,1,3", - "4,9,1,3" + "4,9,1,3", + "4,3,1,3" ], "PageInfo": { "$type": "Forguncy.Model.Pages.UserControlPage, ServerDesignerCommon", @@ -294,106 +299,66 @@ "ConditionAndCommandPairList": [ { "Condition": { - "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", - "param": { - "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", - "cellLocations": [ - { - "SerializeProperty": "=属性名" - } - ] - }, - "value": "我方消息" + "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", + "SubConditions": [ + { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", + "cellLocations": [ + { + "SerializeProperty": "=属性名" + } + ] + }, + "value": "我方消息" + }, + { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", + "cellLocations": [ + { + "SerializeProperty": "=新值" + } + ] + }, + "value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=聊天起泡!原值" + }, + "compareType": 1 + } + ] }, "CommandList": [ { - "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", - "ConditionAndCommandPairList": [ + "$type": "Forguncy.Model.SetRowColumnLayoutCommand, ServerDesignerCommon", + "PropertyItemsList": [ { - "Condition": { - "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", - "SubConditions": [ - { - "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", - "param": { - "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", - "cellLocations": [ - { - "SerializeProperty": "=新值" - } - ] - }, - "value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=聊天起泡!原值" - }, - "compareType": 1 - }, - { - "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", - "param": { - "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", - "cellLocations": [ - { - "SerializeProperty": "=新值" - } - ] - }, - "value": "1" - } - ] + "Location": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=聊天起泡!I:O" }, - "CommandList": [ - { - "$type": "Forguncy.Model.SetRowColumnLayoutCommand, ServerDesignerCommon", - "PropertyItemsList": [ - { - "Location": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=聊天起泡!I:O" - }, - "Value": true - }, - { - "Location": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=聊天起泡!A:G" - }, - "Value": false - } - ] - } - ], - "ID": "09ba45c6-3e4a-4171-a81a-486e2963b85b" + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=聊天起泡!新值" + } }, { - "CommandList": [ - { - "$type": "Forguncy.Model.SetRowColumnLayoutCommand, ServerDesignerCommon", - "PropertyItemsList": [ - { - "Location": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=聊天起泡!I:O" - }, - "Value": false - }, - { - "Location": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=聊天起泡!A:G" - }, - "Value": true - } - ] - } - ], - "ID": "5774174d-caab-4ccb-a95b-52e1693d74f8" + "Location": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=聊天起泡!A:G" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=NOT(聊天起泡!新值)" + } } ] } ], - "ID": "d5b12aaa-c4da-4985-aedf-3e8dbdf9fd69" + "ID": "d5ce9355-01d3-48ab-9ca2-94f17f758137" } ] } @@ -437,4 +402,4 @@ "Size": "115,42" } ] -}//KkRrXwEn20GnJ7Yqbgc/2VQIcb/d+r6aN8tYqqtVW2hAJt6I2BlMvhIhPMOMMssRFTZR2ZuX0F6d95i4yEglTXlgNd4JRm7StYdqsU8N5Gm9YIZvkf9picZ/KyVhlBq2mF3TpNYZq5YT/PPdZQUp51miDkHHMqGWMgdvwX4UZCO71vJq2DTCSwl7oO5UV3TnPIzA6c74g7eEc2EprW9EX5X8d3BDZFXJnKW1uHiP/cpE9EPhFyiitG3WjEvh9/AOgxk1lp8E8FJQkitXZgA70xt6QDZPd2ZBYHMR1K7qUx7Y0qaj+h+usWKxWb4xrZKA4Fmikqchar4bMJeRnLWEGGkhVOyl8Dg9lvCUgqsgOdFq9ycPMn57j5LqDvDTkNV3VmQM9XC3O9ixu2v3iAht4hGq16KS3iKKtLsht4tyWcSgtF3gbsZu38UgAyicXUk75coghGza9rNiuIbHzv711PZEyPP1VHNSQIkyBxmylRw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nmbij9VW+++iTqrN42venjiJQmm+Kcp2O/n05sYPFGWMzrq2bZFGLbJzUppFfZauz+O4YI2cB0G9hoVe3i0He83t6HeiA87Ur0Gg+3u1kv27T84zsH1BjDrK77wZ17nKbtfp6Lt4w+rWcISKJoBq2k+8NzHqGGyvXnfplPEzki1vWfJUKzww9wvMmeW0xu4QwJDMiJsX3RraesPICXO/16gJPqWz8I68pS3TEfDUGhuBxZbbvJ0SE3rtuoJ+UwbMJBbR4JY+TF/dG+DgMxlKzQ==|920 \ No newline at end of file diff --git a/UserFile/BaseCss.css b/UserFile/BaseCss.css index 5d937857..58b434a0 100644 --- a/UserFile/BaseCss.css +++ b/UserFile/BaseCss.css @@ -167,4 +167,14 @@ /* 应用动画的CSS类 */ .rotate-slow { animation: rotate-and-fade 10s linear infinite; /* 持续时间10秒,线性速率,无限循环 */ +} + +/* 图文列表中按钮 */ +.repeater-item:hover .hover-btn { + transition: all 0.5s; + opacity: 1; +} + +.repeater-item .hover-btn { + opacity: 0; } \ No newline at end of file