|
|
@@ -554,11 +554,18 @@ $(document).ready(() => {
|
|
|
|
|
|
$('[name=sf-tab]').click(function() {
|
|
|
const content = this.getAttribute('href');
|
|
|
- if (content === '#sf-contract') {
|
|
|
- self.contractSpread.refresh();
|
|
|
- }
|
|
|
- if (content === '#sf-tender') self.spread.refresh();
|
|
|
+ setTimeout(function() {
|
|
|
+ if (content === '#sf-contract') self.contractSpread.refresh();
|
|
|
+ if (content === '#sf-tender') self.spread.refresh();
|
|
|
+ }, 200);
|
|
|
});
|
|
|
+ // 说是bootstrap v4有,但是不生效
|
|
|
+ // $('#sf-contract').on('shown.bs.tab', function() {
|
|
|
+ // self.contractSpread.refresh();
|
|
|
+ // });
|
|
|
+ // $('#sf-tender').on('shown.bs.tab', function() {
|
|
|
+ // self.spread.refresh();
|
|
|
+ // });
|
|
|
|
|
|
$('#sf-select-all').click(function() {
|
|
|
for (const n of self.selectTree.nodes) {
|