Authored by chenchao

single json as param

... ... @@ -7,7 +7,7 @@ var $ = require('jquery'),
*/
window.NETSALEDATA= window.ViewModel.data;
console.log(window.NETSALEDATA);
require("./fragement/_edit_promotions");
var promotionEdit=require("./fragement/_edit_promotions");
var ENUM = {
status: {
'0': '已下架',
... ... @@ -55,7 +55,7 @@ var t = new common.tab2({
}else if(columnname === ENUM.tabName[4].en) {
// 加载促销列表
var html_promotions=$(grid_promotions.el).html();
var html_promotions=$(promotionEdit.param.el).html();
$("#tab_body").html(html_promotions);
grid_promotions.init("/promotionInfo/list");
}else if(columnname === ENUM.tabName[5].en) {
... ...
var $ = require('jquery'),
common = require('../../../../common/common');
var grid_promotions = new common.grid({
var param={
el: '#basicTable_promotion',
size: 10,
parms: function() {
... ... @@ -56,4 +55,5 @@ var grid_promotions = new common.grid({
return name;
}
}]
})
\ No newline at end of file
};
var grid_promotions = new common.grid(param);
\ No newline at end of file
... ...