Authored by ZhongW

去除字段

... ... @@ -19,7 +19,7 @@ module.exports = function (app){
app.post("/unionType/updateUnionType","unionType_updateUnionType");
//修改状态
app.post("/unionType/updateStatus","unionType_updateStatus");
/* app.post("/unionType/updateStatus","unionType_updateStatus");*/
//列表
app.post("/unionType/getUnionTypeUrls","unionType_getUnionTypeUrls");
... ...
... ... @@ -37,14 +37,14 @@ module.exports={
]
},
updateStatus:{
/* updateStatus:{
title:"修改状态",
url:"/unionType/updateStatus",
params:[
{name: 'id', type: 'Number'},
{name: 'status', type: 'String'}
]
},
},*/
getUnionTypeUrls:{
title:"获取链接",
... ...
... ... @@ -42,11 +42,11 @@ var g = new common.grid({
var HtmArr = [];
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-modify">编辑</a>');
if (items.status == 0) {
/*if (items.status == 0) {
HtmArr.push('<a data-index="' + items.__index + '" data-type="1" href="JavaScript:;" class="btn btn-danger btn-xs switch-status">关闭</a>');
} else {
HtmArr.push('<a data-index="' + items.__index + '" data-type="0" href="JavaScript:;" class="btn btn-success btn-xs switch-status">开启</a>');
}
}*/
return HtmArr.join('');
}}
... ...