feat(PrintConfig): 添加打印模板设计功能并优化相关视图
- 移除TestData字段的Required验证 - 将Template字段从textbox改为textarea以支持多行输入 - 添加打印模板设计界面,支持拖拽元素和自定义纸张 - 新增GetTemplateByName接口用于获取模板 - 优化视图布局,统一使用单列显示
This commit is contained in:
1 parent
48c63bb15d
commit
d89f6ffb3e
7 files changed
+208
-8
No files matched your search
@@ -7,6 +7,7 @@ using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web;
|
||||
using System.DirectoryServices.Protocols;
|
||||
using System.Web;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
@@ -236,5 +237,12 @@ namespace HHWMS.Web.Controllers
|
||||
var vm = Wtm.CreateVM<PrintConfigVM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
public IActionResult GetTemplateByName(string name)
|
||||
{
|
||||
var template = _unitWork.FindSingle<PrintConfig>(x => x.Name == name).Template;
|
||||
return JsonMore(template);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user