455 lines
15 KiB
JSON
455 lines
15 KiB
JSON
{
|
||
"Rows": {
|
||
"RowColumnAttachedInfos": {
|
||
"0": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 343.0,
|
||
"Mode": 1
|
||
}
|
||
},
|
||
"1": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
}
|
||
},
|
||
"InLogicalVisibleIndexes": [
|
||
1
|
||
],
|
||
"Count": 2,
|
||
"DefaultSize": 343.0
|
||
},
|
||
"Cols": {
|
||
"RowColumnAttachedInfos": {
|
||
"0": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"1": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"2": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"3": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"4": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"5": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"6": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"7": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"8": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"9": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"10": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"11": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"13": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"14": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0,
|
||
"Mode": 2,
|
||
"MinLength": {
|
||
"Unit": 1
|
||
},
|
||
"MaxLength": {
|
||
"Value": 1.0
|
||
}
|
||
}
|
||
},
|
||
"20": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"21": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"22": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"23": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"24": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"25": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"26": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
},
|
||
"27": {
|
||
"GridRowColumnDefinition": {
|
||
"DesignLengthInPixel": 32.0
|
||
}
|
||
}
|
||
},
|
||
"Count": 28,
|
||
"DefaultSize": 32.0
|
||
},
|
||
"AttachInfos": {
|
||
"0,0": {
|
||
"CssName": "chat-box",
|
||
"CellType": {
|
||
"$type": "Forguncy.RepeaterCellType, ServerDesignerCommon",
|
||
"TemplatePageName": "21293af3013f474faf264d978cf3501",
|
||
"DataSourceType": 1,
|
||
"DataSource": {
|
||
"$type": "ServerDesignerCommon.Model.BindingDataSourceModel, ServerDesignerCommon",
|
||
"TableName": "对话历史",
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "a52ce194-348e-4ff0-b199-62c773aa61eb",
|
||
"BindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "ID",
|
||
"GUID": "f0811285-23e4-4455-a6e8-7460a42891cd"
|
||
},
|
||
"ColumnName": "ID"
|
||
},
|
||
{
|
||
"GUID": "989dbb68-230a-4662-b3c5-db0a9e48d4b5",
|
||
"BindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "主题",
|
||
"GUID": "522bc8e8-206b-4c8f-a571-758debb2da4e"
|
||
},
|
||
"ColumnName": "主题"
|
||
},
|
||
{
|
||
"GUID": "6809b4e4-8034-4520-af98-ebf547ea19a2",
|
||
"BindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "角色",
|
||
"GUID": "8ba1dafa-12a9-4763-9a47-c6217afaa7f6"
|
||
},
|
||
"ColumnName": "角色"
|
||
},
|
||
{
|
||
"GUID": "ad041167-a99e-41f4-af02-fc4b0c956366",
|
||
"BindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "内容",
|
||
"GUID": "f8dd0041-3fd6-49fc-a1f7-80a2cb5e0721"
|
||
},
|
||
"ColumnName": "内容"
|
||
},
|
||
{
|
||
"GUID": "8fb9bc46-dc95-42a5-a489-cb653758fb70",
|
||
"BindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "用户名",
|
||
"GUID": "4ce37189-0536-4ff8-b82e-4fd474cf5ab0"
|
||
},
|
||
"ColumnName": "用户名"
|
||
},
|
||
{
|
||
"GUID": "5e0c2b1e-48b8-47fa-abd8-00b3e8278988",
|
||
"BindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "图片",
|
||
"GUID": "778c1975-9da9-4a33-bb03-48557cf1f33a"
|
||
},
|
||
"ColumnName": "图片"
|
||
},
|
||
{
|
||
"GUID": "ffdb5fe1-4187-4653-a809-a8fd5ceaac07",
|
||
"BindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "附件",
|
||
"GUID": "341087d6-11d1-4c70-a74b-ec44337794a3"
|
||
},
|
||
"ColumnName": "附件"
|
||
},
|
||
{
|
||
"GUID": "64a319ab-8ee5-42ff-84b3-388f8d9f4324",
|
||
"BindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "FGC_CreateDate",
|
||
"GUID": "1bc0eec5-ca8a-44bd-b0db-6900eebd93ca"
|
||
},
|
||
"ColumnName": "创建日期"
|
||
},
|
||
{
|
||
"GUID": "779b971c-3dfc-45c5-98d2-210fe134935b",
|
||
"Formula": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=IF(聊天列表!角色=\"assistant\",0,1)"
|
||
},
|
||
"ColumnName": "是否自己"
|
||
}
|
||
],
|
||
"OrderBySqlCondition": {
|
||
"OrderByColumns": [
|
||
{
|
||
"ColumnBindingInfo": {
|
||
"TableName": "对话历史",
|
||
"ColumnName": "FGC_CreateDate",
|
||
"GUID": "0075eb66-9f70-4097-a695-dfa288a92e3d"
|
||
},
|
||
"Order": 0
|
||
}
|
||
]
|
||
},
|
||
"IsListviewDataSource": true,
|
||
"CustomColumns": []
|
||
},
|
||
"DataSourceListviewName": "图文列表表格1",
|
||
"DetailTableSetting": {
|
||
"$type": "Forguncy.Model.DetailListViewInfo, ServerDesignerCommon",
|
||
"ColumnOfDetailTable": "主题",
|
||
"MasterTable": "对话主题",
|
||
"ColumnOfMasterTable": "ID",
|
||
"DataCommitType": 2
|
||
}
|
||
}
|
||
},
|
||
"1,0": {
|
||
"BindingInfo": {
|
||
"TableName": "对话主题",
|
||
"ColumnName": "ID",
|
||
"GUID": "085ad918-ba54-4ee3-9769-9b4b7b54323e"
|
||
}
|
||
}
|
||
},
|
||
"StyleDatas": {
|
||
"Styles": [
|
||
{
|
||
"HorizontalAlignment": 0
|
||
}
|
||
],
|
||
"Types": {
|
||
"Strs": [
|
||
"Center",
|
||
"Body"
|
||
]
|
||
},
|
||
"CellStyles": {
|
||
"0,0": 0
|
||
},
|
||
"SheetStyle": {
|
||
"FontFamily": 1
|
||
}
|
||
},
|
||
"Spans": [
|
||
"0,0,1,28",
|
||
"1,0,1,3"
|
||
],
|
||
"PageInfo": {
|
||
"$type": "Forguncy.Model.Pages.UserControlPage, ServerDesignerCommon",
|
||
"PropertyDefinitions": [
|
||
{
|
||
"Name": "主题"
|
||
}
|
||
],
|
||
"CommandDefinitions": [],
|
||
"MethodDefinitions": [
|
||
{
|
||
"Name": "添加一条消息",
|
||
"Params": [
|
||
{
|
||
"Name": "用户名"
|
||
},
|
||
{
|
||
"Name": "全名"
|
||
},
|
||
{
|
||
"Name": "角色"
|
||
},
|
||
{
|
||
"Name": "内容"
|
||
},
|
||
{
|
||
"Name": "日期"
|
||
},
|
||
{
|
||
"Name": "是否自己消息"
|
||
}
|
||
],
|
||
"Commands": [
|
||
{
|
||
"$type": "Forguncy.Model.UpdateListviewCommand, ServerDesignerCommon",
|
||
"ListviewName": "图文列表表格1",
|
||
"UpdateType": 1,
|
||
"UpdateValues": [
|
||
{
|
||
"Column": "角色",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=聊天列表!角色"
|
||
}
|
||
},
|
||
{
|
||
"Column": "用户名",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=聊天列表!用户名"
|
||
}
|
||
},
|
||
{
|
||
"Column": "内容",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=聊天列表!内容"
|
||
}
|
||
},
|
||
{
|
||
"Column": "创建日期",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=聊天列表!日期"
|
||
}
|
||
},
|
||
{
|
||
"Column": "是否自己",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=聊天列表!是否自己消息"
|
||
}
|
||
}
|
||
],
|
||
"BreakpointIdentity": "9a051842-fda6-4e55-a447-2e945d3a6213"
|
||
},
|
||
{
|
||
"$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",
|
||
"BreakpointIdentity": "1e0e2c1d-0b16-482d-bf86-a58794bbe4b2"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"Name": "更新消息内容",
|
||
"Params": [
|
||
{
|
||
"Name": "角色"
|
||
},
|
||
{
|
||
"Name": "内容"
|
||
}
|
||
],
|
||
"Commands": [
|
||
{
|
||
"$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,
|
||
"SpecifiedRowCondition": {
|
||
"$type": "Forguncy.Model.UpdateListviewCondition, ServerDesignerCommon",
|
||
"Column": "ID",
|
||
"value": "%Null%"
|
||
},
|
||
"BreakpointIdentity": "c94956c1-b12c-44af-a8bf-cd28526434b4"
|
||
},
|
||
{
|
||
"$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",
|
||
"BreakpointIdentity": "cbbe7a1b-a54f-486a-8c74-ce8d0e944690"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"Name": "保存到数据库",
|
||
"Commands": [
|
||
{
|
||
"$type": "Forguncy.Model.UpdateListviewCommand, ServerDesignerCommon",
|
||
"ListviewName": "图文列表表格1",
|
||
"UpdateType": 3,
|
||
"BreakpointIdentity": "dab720fe-84f7-4943-b745-a488c4b66364"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"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",
|
||
"BreakpointIdentity": "948c17a8-2106-4789-9927-5c21d8e6968a"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"PageLoadedCommandList": []
|
||
},
|
||
"PrintInfo": {
|
||
"PaperSize": {},
|
||
"Margin": {}
|
||
}
|
||
}//e6Knf2+5wN7pT9aZP6prYIAEsC6wA32TRQNtxiKD3gL4E4++kxY4pdiPlxKVUs+IseEWez89z4CirP1npiVsjxlA8v8ouZqg8xia5AJSxOWz+tc3et8+IzQvX3Jp1Im6a9z/45LqvwnrfJ9xlLwobp9+Ilt9wmvC9GLRxmrinfaDJsQoHhXCxj0v4kK8epD7Ce5z2Qwuuv89bAN5kyCS5hvdO/M/sZVu3yT++1xyvl86adLrG/mXe+g3eHjWzmAwyKENNkLZBtFvFir8Kax6U3IDhQEu9vjum/cMy5UK7rTzFHeDlgpN/8hMZIf45ri71kSGEuySGyPF20GsQWvYf/uxIVdwO/gG7Nhhzyl6erMoX75H34j2UjY/W8Ik7M/8u4O7/h6N8N8eBxy3/w8MhO3gANqm57PP6yIviQhA5f/jrT+oT/IVA9IFPF4DhrwRkibydFta2S9TlM3jCM2kEAMryhlciy1KiVLI4ACa+1K6Z7r5XTtr0tr9ClLTcFw2UOZkZc8syt/Tqmac31yGScmITJwBf0ykZ3X4msUlgvg/LmzI78vkJEkBTowyGBrhb4YofuzqwZahibs9kpJH/GFPkNpmy8iQNh69AagezcDZ492d1BrgyFkjwziCaJ9/+DJMpR8MiTzs4p4fVqrHnd0F18eoGDeCCABnUiGbopFFgF/9/rWUskXcPqyt+YmiHzOBKQUxdGH6XRbfBn9vHF9qG2M+xY9nkemdOqM8LRk/Ht05CbvMYgu4186JdETnkz0hdd6Om6n+QlQcAlsvmwoT3VQLaynw1M4VqdrZ4x6ttp+8Rl20w0py+W3nlhKhRgq7euhE4bS3uBp2KQ5iD7Ro/P6c1T01YbJhbz69Pfn2DDeduxH3O4usKNAUSbkQ+Hk7yINunLJe1x/TBT7Fkg==|920 |