From 17dbef0aabc33ed637aac9d8f74f499221a707c8 Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 22 Nov 2025 01:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Admin.WebApi/ZR.Admin.WebApi.csproj | 7 +- .../Liveforum/Dto/T_FeedbacksDto.cs | 15 +++ .../ILiveforumService/IT_FeedbacksService.cs | 1 + ZR.Service/Liveforum/T_FeedbacksService.cs | 7 +- ZR.Vue/src/api/liveforum/tfeedbacks.js | 12 +++ ZR.Vue/src/views/liveforum/tfeedbacks.vue | 99 ++++++++++++++++++- 6 files changed, 138 insertions(+), 3 deletions(-) diff --git a/ZR.Admin.WebApi/ZR.Admin.WebApi.csproj b/ZR.Admin.WebApi/ZR.Admin.WebApi.csproj index 5f30852..fe3bb7d 100644 --- a/ZR.Admin.WebApi/ZR.Admin.WebApi.csproj +++ b/ZR.Admin.WebApi/ZR.Admin.WebApi.csproj @@ -10,6 +10,12 @@ 1701;1702;1591,8603,8602,8604,8600,8618 + + + + + + @@ -29,7 +35,6 @@ - diff --git a/ZR.LiveForum.Model/Liveforum/Dto/T_FeedbacksDto.cs b/ZR.LiveForum.Model/Liveforum/Dto/T_FeedbacksDto.cs index 4208f90..e9b5cfa 100644 --- a/ZR.LiveForum.Model/Liveforum/Dto/T_FeedbacksDto.cs +++ b/ZR.LiveForum.Model/Liveforum/Dto/T_FeedbacksDto.cs @@ -72,4 +72,19 @@ namespace ZR.LiveForum.Model.Liveforum.Dto [ExcelColumn(Name = "反馈状态")] public string? StatusLabel { get; set; } } + + /// + /// 反馈回复对象 + /// + public class T_FeedbackReplyDto + { + [Required(ErrorMessage = "Id不能为空")] + public long Id { get; set; } + + [Required(ErrorMessage = "回复内容不能为空")] + public string Reply { get; set; } + + [Required(ErrorMessage = "反馈状态不能为空")] + public int Status { get; set; } + } } \ No newline at end of file diff --git a/ZR.Service/Liveforum/ILiveforumService/IT_FeedbacksService.cs b/ZR.Service/Liveforum/ILiveforumService/IT_FeedbacksService.cs index 5539407..92cfebf 100644 --- a/ZR.Service/Liveforum/ILiveforumService/IT_FeedbacksService.cs +++ b/ZR.Service/Liveforum/ILiveforumService/IT_FeedbacksService.cs @@ -16,6 +16,7 @@ namespace ZR.Service.Liveforum.ILiveforumService T_Feedbacks AddT_Feedbacks(T_Feedbacks parm); int UpdateT_Feedbacks(T_Feedbacks parm); + int Reply(T_FeedbackReplyDto parm); PagedInfo ExportList(T_FeedbacksQueryDto parm); } diff --git a/ZR.Service/Liveforum/T_FeedbacksService.cs b/ZR.Service/Liveforum/T_FeedbacksService.cs index 9413fa4..e1530b8 100644 --- a/ZR.Service/Liveforum/T_FeedbacksService.cs +++ b/ZR.Service/Liveforum/T_FeedbacksService.cs @@ -1,4 +1,4 @@ -using Infrastructure.Attribute; +using Infrastructure.Attribute; using Infrastructure.Extensions; using ZR.LiveForum.Model.Liveforum.Dto; using ZR.LiveForum.Model.Liveforum; @@ -100,5 +100,10 @@ namespace ZR.Service.Liveforum predicate = predicate.AndIF(parm.UserId != null, it => it.UserId == parm.UserId); return predicate; } + + public int Reply(T_FeedbackReplyDto parm) + { + throw new NotImplementedException(); + } } } \ No newline at end of file diff --git a/ZR.Vue/src/api/liveforum/tfeedbacks.js b/ZR.Vue/src/api/liveforum/tfeedbacks.js index 77388b7..363a508 100644 --- a/ZR.Vue/src/api/liveforum/tfeedbacks.js +++ b/ZR.Vue/src/api/liveforum/tfeedbacks.js @@ -35,6 +35,18 @@ export function updatetfeedbacks(data) { data: data, }) } + +/** + * 回复反馈记录 + * @param data + */ +export function replytfeedbacks(data) { + return request({ + url: 'liveforum/tfeedbacks/reply', + method: 'post', + data: data, + }) +} /** * 获取反馈记录详情 * @param {Id} diff --git a/ZR.Vue/src/views/liveforum/tfeedbacks.vue b/ZR.Vue/src/views/liveforum/tfeedbacks.vue index 9b872b4..5aaf012 100644 --- a/ZR.Vue/src/views/liveforum/tfeedbacks.vue +++ b/ZR.Vue/src/views/liveforum/tfeedbacks.vue @@ -61,6 +61,7 @@ @@ -166,13 +167,40 @@ {{ $t('btn.submit') }} + + + + + + + + + + + + + + + + + + + +