...
|
...
|
@@ -86,8 +86,10 @@ |
|
|
textField: "text",
|
|
|
required: false,
|
|
|
prompt: "请选择状态",
|
|
|
data: [{text: "请选择状态", value: "8"}, {text: "进行中", value: "1"}, {text: "已下架", value: "0"}]
|
|
|
data: [{text: "请选择状态", value: "8"}, {text: "进行中", value: "1"}, {text: "待上架", value: "3"},{text: "已下架", value: "0"}]
|
|
|
});
|
|
|
//初次加载 设置默认选中的
|
|
|
$("#statusParam").combobox('select', '1');
|
|
|
|
|
|
$("#isOfficialParam").combobox({
|
|
|
valueField: "value",
|
...
|
...
|
@@ -142,11 +144,9 @@ |
|
|
fit: true,
|
|
|
fitColumns: true,
|
|
|
striped: true,
|
|
|
/*queryParams: {
|
|
|
rewardName: $("#rewardName1").textbox("getValue"),
|
|
|
status: $("#rewardstatus1").combobox("getValue"),
|
|
|
type: $("#rewardtype1").combobox("getValue")
|
|
|
},*/
|
|
|
queryParams: {
|
|
|
status: $("#statusParam").combobox("getValue")
|
|
|
},
|
|
|
url: serverContextPath + "/grassTopicManage/getGrassTopicList",
|
|
|
method: 'POST',
|
|
|
loadFilter: function (data) {
|
...
|
...
|
@@ -213,8 +213,10 @@ |
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (value == 1) {
|
|
|
return "进行中";
|
|
|
} else {
|
|
|
return "下架";
|
|
|
} else if(value == 3) {
|
|
|
return "待上架";
|
|
|
}else{
|
|
|
"下架";
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -225,15 +227,16 @@ |
|
|
width: 40,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
|
|
|
var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px;background-color: #31b0d5' index='" + rowIndex + "'>编辑</a>";
|
|
|
var changeStatus = "<a role='changeStatus' style='margin-left:10px;background-color: #ffa951' changedStatus='0' dataId='" + rowData.id + "' index='" + rowIndex + "'>下架</a>";
|
|
|
;
|
|
|
if (rowData.status == 0) {
|
|
|
changeStatus = "<a role='changeStatus' style='margin-left:10px;background-color: #c4ddff' changedStatus='1' dataId='" + rowData.id + "' index='" + rowIndex + "'>上架</a>";
|
|
|
}
|
|
|
var changeStatus = "<a role='changeStatus' style='margin-left:10px;background-color: #c4ddff' changedStatus='1' dataId='" + rowData.id + "' index='" + rowIndex + "'>上架</a>";
|
|
|
|
|
|
str += changeStatus;
|
|
|
if (rowData.status == 1) {
|
|
|
str = "";//进行中的话题不可编辑
|
|
|
changeStatus = "<a role='changeStatus' style='margin-left:10px;background-color: #ffa951' changedStatus='0' dataId='" + rowData.id + "' index='" + rowIndex + "'>下架</a>";
|
|
|
|
|
|
}
|
|
|
str += changeStatus;
|
|
|
// str += "<a role='' style='margin-left:10px;background-color: #ffa951' changedStatus='1' dataId='" + rowData.id + "' index='" + rowIndex + "'>复制链接</a>" ;
|
|
|
|
|
|
return str ;
|
...
|
...
|
|