Showing
2 changed files
with
15 additions
and
1 deletions
@@ -55,6 +55,19 @@ toast.prototype.inputHelper = function (id) { | @@ -55,6 +55,19 @@ toast.prototype.inputHelper = function (id) { | ||
55 | } | 55 | } |
56 | 56 | ||
57 | /** | 57 | /** |
58 | + * 强制刷新缓存中的值 | ||
59 | + */ | ||
60 | +toast.prototype.inputFocusHelper = function (id, value) { | ||
61 | + | ||
62 | + util.__setInput(id, value); | ||
63 | + | ||
64 | + this.cache[id] = value; | ||
65 | + | ||
66 | + | ||
67 | + return this.cache[id]; | ||
68 | +} | ||
69 | + | ||
70 | +/** | ||
58 | * 支持Select筛选项 | 71 | * 支持Select筛选项 |
59 | * @param eles_id | 72 | * @param eles_id |
60 | */ | 73 | */ |
@@ -112,7 +112,8 @@ var t = new common.tab2({ | @@ -112,7 +112,8 @@ var t = new common.tab2({ | ||
112 | 112 | ||
113 | pageSkn = []; | 113 | pageSkn = []; |
114 | g.init("/goods/netsale/getList"); | 114 | g.init("/goods/netsale/getList"); |
115 | - $("#tab").val(activeTab); | 115 | + refreshHelper.inputFocusHelper("tab", activeTab); |
116 | + window.location.href = window.location.href.replace(/tab=\d/, 'tab=' + activeTab); | ||
116 | }, | 117 | }, |
117 | columns: [{ | 118 | columns: [{ |
118 | name: "0", | 119 | name: "0", |
-
Please register or login to post a comment