Authored by 姜敏

反馈管理--uid为0时不可回、发

... ... @@ -111,9 +111,10 @@ var g = new common.grid({
}, {
display: '操作',
render: function (item) {
console.log("item.uid",item.uid);
var HtmArr = [];
//已发送,已回复,则不可再“回”
if (item.status == 2) {
//已发送,已回复,uid为0,则不可再“回”、“发”
if (item.status == 2 || item.uid=='0') {
HtmArr.push('<a data-index="' + item.__index + '" href="JavaScript:;" class="btn btn-info btn-xs reply" disabled="true">回</a>');
HtmArr.push('<a data-index="' + item.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs publish" disabled="true">发</a>');
}
... ... @@ -127,7 +128,6 @@ var g = new common.grid({
else {
HtmArr.push('<a data-index="' + item.__index + '" href="JavaScript:;" class="btn btn-success btn-xs setHot">热</a>');
}
HtmArr.push('<a data-index="' + item.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs delete">删</a>');
return HtmArr.join('');
}
... ...