Showing
1 changed file
with
13 additions
and
2 deletions
@@ -58,6 +58,17 @@ var g = new common.grid({ | @@ -58,6 +58,17 @@ var g = new common.grid({ | ||
58 | display: '调性分', | 58 | display: '调性分', |
59 | name: "brandTonality" | 59 | name: "brandTonality" |
60 | }, { | 60 | }, { |
61 | + display: '状态', | ||
62 | + name: "status", | ||
63 | + render: function(item) { | ||
64 | + if(item.status==1){ | ||
65 | + var name ="开启" ; | ||
66 | + }else { | ||
67 | + var name ="关闭" ; | ||
68 | + } | ||
69 | + return name; | ||
70 | + } | ||
71 | + }, { | ||
61 | display: '创建时间', | 72 | display: '创建时间', |
62 | name: "createTime", | 73 | name: "createTime", |
63 | render: function(item) { | 74 | render: function(item) { |
@@ -92,7 +103,7 @@ $('tbody').on('click', '.close-brand', function() { | @@ -92,7 +103,7 @@ $('tbody').on('click', '.close-brand', function() { | ||
92 | var item = g.rows[$(this).data("index")]; | 103 | var item = g.rows[$(this).data("index")]; |
93 | 104 | ||
94 | common.util.__ajax({ | 105 | common.util.__ajax({ |
95 | - url: '/brand/edit', | 106 | + url: '/brand/updateStatus', |
96 | data: { | 107 | data: { |
97 | id: item.id, | 108 | id: item.id, |
98 | status: 0 | 109 | status: 0 |
@@ -110,7 +121,7 @@ $('tbody').on('click', '.close-brand', function() { | @@ -110,7 +121,7 @@ $('tbody').on('click', '.close-brand', function() { | ||
110 | $('tbody').on('click', '.open-brand', function() { | 121 | $('tbody').on('click', '.open-brand', function() { |
111 | var item = g.rows[$(this).data("index")]; | 122 | var item = g.rows[$(this).data("index")]; |
112 | common.util.__ajax({ | 123 | common.util.__ajax({ |
113 | - url: '/brand/edit', | 124 | + url: '/brand/updateStatus', |
114 | data: { | 125 | data: { |
115 | id: item.id, | 126 | id: item.id, |
116 | status: 1 | 127 | status: 1 |
-
Please register or login to post a comment