修复巡检结果时,没有deviceName的问题
This commit is contained in:
parent
01fed80784
commit
8587b14906
@ -525,8 +525,8 @@ namespace YunDa.Server.ISMSTcp.Services
|
||||
private async Task ExecutePlan(SecondaryCircuitInspectionItemOutputEx itemEx)
|
||||
{
|
||||
|
||||
string func2 = "";
|
||||
string data2 = "";
|
||||
//string func2 = "";
|
||||
//string data2 = "";
|
||||
try
|
||||
{
|
||||
var item = itemEx.Item;
|
||||
@ -554,7 +554,6 @@ namespace YunDa.Server.ISMSTcp.Services
|
||||
var engine = new Jint.Engine();
|
||||
engine.Execute(item.CalculationExpression);
|
||||
|
||||
func2 = item.CalculationExpression;
|
||||
|
||||
ObjectInstance? saveObj = null;
|
||||
|
||||
@ -632,7 +631,6 @@ namespace YunDa.Server.ISMSTcp.Services
|
||||
|
||||
var js = $"JSON.parse('{json.Replace("'", "\\'")}')";
|
||||
|
||||
data2 = json;
|
||||
|
||||
var jsObj = engine.Evaluate(js).ToObject();
|
||||
|
||||
|
||||
@ -97,6 +97,7 @@ namespace YunDa.Server.ISMSTcp.Services
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string DeviceName { get; set; } = string.Empty;
|
||||
public int? DispatcherAddress { get; set; } = null;
|
||||
public double Value { get; set; }
|
||||
public string ValueStr { get; set; } = string.Empty;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user