From a77b6862ba044dd281e08404d522ce3f40f547f1 Mon Sep 17 00:00:00 2001 From: 17351662861 Date: Fri, 16 May 2025 10:59:56 +0800 Subject: [PATCH] 123 --- .../ViewModels/PrintControlViewModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RIZO_Application/Modules/RIZO_Application.Modules.ModuleName/ViewModels/PrintControlViewModel.cs b/RIZO_Application/Modules/RIZO_Application.Modules.ModuleName/ViewModels/PrintControlViewModel.cs index 1218ccf..b52c146 100644 --- a/RIZO_Application/Modules/RIZO_Application.Modules.ModuleName/ViewModels/PrintControlViewModel.cs +++ b/RIZO_Application/Modules/RIZO_Application.Modules.ModuleName/ViewModels/PrintControlViewModel.cs @@ -114,6 +114,8 @@ namespace RIZO_Application.Modules.ModuleName.ViewModels var Intersect = printParameters.Where(x => subString.Contains(x.Key)).ToDictionary( x=>x.Key,x=>x.Value ); + _eventAggregator.GetEvent().Publish($"模板变量: {string.Join(", ", subString)}"); + _eventAggregator.GetEvent().Publish($"匹配的变量: {string.Join(", ", Intersect.Select(x => $"{x.Key}={x.Value}"))}"); // 执行打印 bool printSuccess = _printHelper.PrintLabel( templatePath: printDto.Path,