-- 采用的是JS不是动态参数,这样就能局部刷新
参数:a 值:if($a = 1, 0, if($a = 0, 2, 1))
参数:flag 值:1
//获取report0报表块
var re = _g().getWidgetByName("report0");
//获取参数值后加载报表
re.gotoPage(1, {a:a, b:'', c:'', d:'', e:'', flag:flag}, "lazy");
--升序
新值:
"<span>"+$$$+"</span><span style='width: 0;height: 0;border-left: 4px solid transparent;border-right: 4px solid transparent;border-bottom: 4px solid #47a8ea;position: relative; margin-left: 2px;top: -12px;'></span><span style='width: 0;height: 0;border-left: 4px solid transparent;border-right: 4px solid transparent;border-top: 4px solid #999;position: relative;margin-left: -8px;top: 13px;'></span>"
公式:
$a = 1 && $flag = 1
--降序
新值:
"<span>"+$$$+"</span><span style='width: 0;height: 0;border-left: 4px solid transparent;border-right: 4px solid transparent;border-bottom: 4px solid #999;position: relative; margin-left: 2px;top: -12px;'></span><span style='width: 0;height: 0;border-left: 4px solid transparent;border-right: 4px solid transparent;border-top: 4px solid #47a8ea;position: relative;margin-left: -8px;top: 13px;'></span>"
公式:
$a = 0 && $flag = 1
--无序
新值:
"<span>"+$$$+"</span><span style='width: 0;height: 0;border-left: 4px solid transparent;border-right: 4px solid transparent;border-bottom: 4px solid #999;position: relative; margin-left: 2px;top: -12px;'></span><span style='width: 0;height: 0;border-left: 4px solid transparent;border-right: 4px solid transparent;border-top: 4px solid #999;position: relative;margin-left: -8px;top: 13px;'></span>"
公式:
$flag <> 1 or $a = 2
-- 扩展后排序
switch($flag, 1, switch($a, 1, B2, 0, -B2, 2, 0), 2, switch($b, 1, D2, 0, -TOINTEGER(D2), 2, 0), 3, switch($c, 1, G2, 0, -G2, 2, 0), 4, switch($d, 1, L2, 0, -L2, 2, 0), 5, switch($e, 1, P2, 0, -P2, 2, 0))