...
|
...
|
@@ -57,6 +57,17 @@ var g = new common.grid({ |
|
|
}, {
|
|
|
display: '调性分',
|
|
|
name: "brandTonality"
|
|
|
}, {
|
|
|
display: '状态',
|
|
|
name: "status",
|
|
|
render: function(item) {
|
|
|
if(item.status==1){
|
|
|
var name ="开启" ;
|
|
|
}else {
|
|
|
var name ="关闭" ;
|
|
|
}
|
|
|
return name;
|
|
|
}
|
|
|
}, {
|
|
|
display: '创建时间',
|
|
|
name: "createTime",
|
...
|
...
|
@@ -92,7 +103,7 @@ $('tbody').on('click', '.close-brand', function() { |
|
|
var item = g.rows[$(this).data("index")];
|
|
|
|
|
|
common.util.__ajax({
|
|
|
url: '/brand/edit',
|
|
|
url: '/brand/updateStatus',
|
|
|
data: {
|
|
|
id: item.id,
|
|
|
status: 0
|
...
|
...
|
@@ -110,7 +121,7 @@ $('tbody').on('click', '.close-brand', function() { |
|
|
$('tbody').on('click', '.open-brand', function() {
|
|
|
var item = g.rows[$(this).data("index")];
|
|
|
common.util.__ajax({
|
|
|
url: '/brand/edit',
|
|
|
url: '/brand/updateStatus',
|
|
|
data: {
|
|
|
id: item.id,
|
|
|
status: 1
|
...
|
...
|
|