Browse Source

fix: 请求返回时的数据刷新问题

pull/1/head
Zhenfei.Li 4 years ago
parent
commit
953fbc63d7
  1. 2
      pom.xml
  2. 12
      src/main/resources/com/fr/plugin/pack/req.js

2
pom.xml

@ -53,7 +53,7 @@
</plugin>
</plugins>
<outputDirectory>
/Users/jonas/Desktop/代码/FineBI5.1/env/WebReport/WEB-INF/plugins/plugin-com.fr.plugin.pack.request-0.0.1/classes
/Users/leezerofly/env/direct-bi/WEB-INF/plugins/plugin-com.fr.plugin.pack.request-0.0.1/classes
</outputDirectory>
</build>

12
src/main/resources/com/fr/plugin/pack/req.js

@ -16,6 +16,9 @@
BI.each(handlers, function (wId, handler) {
handler.next(config);
});
widgets = {};
handlers = {};
count = 0;
} else {
BI.asyncAjax({
url: "widgets/data",
@ -34,14 +37,15 @@
});
});
},
complete: BI.emptyFn,
complete: function () {
widgets = {};
handlers = {};
count = 0;
},
opt: {},
version: "url"
});
}
widgets = {};
handlers = {};
count = 0;
}, 300);
// 不通过改写bi组件的方式去做,工作量太大且可维护性太差。使用巧妙的办法,直接通过拦截所有data请求,将其打包成一个请求发送到后端。

Loading…
Cancel
Save