mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-11-30 03:07:40 +08:00
fix: change get_Table to get_table
This commit is contained in:
parent
cb483a22b4
commit
f5eda5a3b3
@ -45,7 +45,7 @@
|
||||
post_data/2,
|
||||
get_filehome/1,
|
||||
test/0,
|
||||
get_Tabledata/2
|
||||
get_tabledata/2
|
||||
]).
|
||||
|
||||
%%--------------------------------------------------------------------
|
||||
@ -697,7 +697,7 @@ get_attrs(Attrs, ImageUrl, Heigh, Width, ClassName, X) ->
|
||||
X
|
||||
end.
|
||||
|
||||
get_Tabledata(Parameter, Avgdatas) ->
|
||||
get_tabledata(Parameter, Avgdatas) ->
|
||||
Keys = binary:split(Parameter, <<$,>>, [global, trim]),
|
||||
lists:foldl(fun(Avg, {Acc1, Num}) ->
|
||||
Data =
|
||||
|
@ -233,7 +233,7 @@ do_request(post_generatereport, #{<<"id">> := TaskId}, #{<<"sessionToken">> := _
|
||||
end,
|
||||
%% 采样参数
|
||||
Parameter = maps:get(<<"parameter">>, Param, <<"flow,power,head,rotate,pressure_in,pressure_out,conversion_flow,conversion_head,conversion_power,effect">>),
|
||||
{Tabledata, _} = dgiot_evidence:get_Tabledata(Parameter, Avgdatas),
|
||||
{Tabledata, _} = dgiot_evidence:get_tabledata(Parameter, Avgdatas),
|
||||
Acc ++ [#{
|
||||
<<"type">> => <<"dynamicTable">>,
|
||||
<<"source">> => Sources,
|
||||
|
Loading…
Reference in New Issue
Block a user