diff --git a/system/Tnb.Systems/System/DataInterfaceService.cs b/system/Tnb.Systems/System/DataInterfaceService.cs
index b1d66fc8..5b3829fa 100644
--- a/system/Tnb.Systems/System/DataInterfaceService.cs
+++ b/system/Tnb.Systems/System/DataInterfaceService.cs
@@ -354,6 +354,51 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
return JsEngineUtil.CallFunction(scriptStr, output.ToJsonString(CommonConst.options));//此处时间非时间戳
}
}
+
+ ///
+ /// 不走js脚本
+ ///
+ ///
+ ///
+ ///
+ public async Task PreviewWithOutJs(string id, [FromBody] DataInterfacePreviewInput input)
+ {
+ _configId = _userManager.TenantId;
+ _dbName = _userManager.TenantDbName;
+ object output = null;
+ var info = await GetInfo(id);
+ var dicParameters = new Dictionary();
+ if (input.paramList.IsNotEmptyOrNull() && input.paramList.Count > 0)
+ {
+ dicParameters = input.paramList.ToDictionary(x => x.field, y => y.defaultValue);
+ }
+ if (!string.IsNullOrEmpty(info.Path) && !info.Path.StartsWith("http"))
+ {
+ info.Path = $"{App.HttpContext.Request.Scheme}://{App.HttpContext.Request.Host}{info.Path}";
+ }
+ VerifyRequired(info, dicParameters);
+ ReplaceParameterValue(info, dicParameters);
+ if (info?.DataType == 1)
+ {
+ output = await GetData(info);
+ }
+ else if (info?.DataType == 2)
+ {
+ output = info.Query.ToObject