|
@@ -86,8 +86,10 @@ |
|
@@ -86,8 +86,10 @@ |
86
|
textField: "text",
|
86
|
textField: "text",
|
87
|
required: false,
|
87
|
required: false,
|
88
|
prompt: "请选择状态",
|
88
|
prompt: "请选择状态",
|
89
|
- data: [{text: "请选择状态", value: "8"}, {text: "进行中", value: "1"}, {text: "已下架", value: "0"}]
|
89
|
+ data: [{text: "请选择状态", value: "8"}, {text: "进行中", value: "1"}, {text: "待上架", value: "3"},{text: "已下架", value: "0"}]
|
90
|
});
|
90
|
});
|
|
|
91
|
+ //初次加载 设置默认选中的
|
|
|
92
|
+ $("#statusParam").combobox('select', '1');
|
91
|
|
93
|
|
92
|
$("#isOfficialParam").combobox({
|
94
|
$("#isOfficialParam").combobox({
|
93
|
valueField: "value",
|
95
|
valueField: "value",
|
|
@@ -142,11 +144,9 @@ |
|
@@ -142,11 +144,9 @@ |
142
|
fit: true,
|
144
|
fit: true,
|
143
|
fitColumns: true,
|
145
|
fitColumns: true,
|
144
|
striped: true,
|
146
|
striped: true,
|
145
|
- /*queryParams: {
|
|
|
146
|
- rewardName: $("#rewardName1").textbox("getValue"),
|
|
|
147
|
- status: $("#rewardstatus1").combobox("getValue"),
|
|
|
148
|
- type: $("#rewardtype1").combobox("getValue")
|
|
|
149
|
- },*/
|
147
|
+ queryParams: {
|
|
|
148
|
+ status: $("#statusParam").combobox("getValue")
|
|
|
149
|
+ },
|
150
|
url: serverContextPath + "/grassTopicManage/getGrassTopicList",
|
150
|
url: serverContextPath + "/grassTopicManage/getGrassTopicList",
|
151
|
method: 'POST',
|
151
|
method: 'POST',
|
152
|
loadFilter: function (data) {
|
152
|
loadFilter: function (data) {
|
|
@@ -213,8 +213,10 @@ |
|
@@ -213,8 +213,10 @@ |
213
|
formatter: function (value, rowData, rowIndex) {
|
213
|
formatter: function (value, rowData, rowIndex) {
|
214
|
if (value == 1) {
|
214
|
if (value == 1) {
|
215
|
return "进行中";
|
215
|
return "进行中";
|
216
|
- } else {
|
|
|
217
|
- return "下架";
|
216
|
+ } else if(value == 3) {
|
|
|
217
|
+ return "待上架";
|
|
|
218
|
+ }else{
|
|
|
219
|
+ "下架";
|
218
|
}
|
220
|
}
|
219
|
}
|
221
|
}
|
220
|
|
222
|
|
|
@@ -225,15 +227,16 @@ |
|
@@ -225,15 +227,16 @@ |
225
|
width: 40,
|
227
|
width: 40,
|
226
|
align: "center",
|
228
|
align: "center",
|
227
|
formatter: function (value, rowData, rowIndex) {
|
229
|
formatter: function (value, rowData, rowIndex) {
|
|
|
230
|
+
|
228
|
var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px;background-color: #31b0d5' index='" + rowIndex + "'>编辑</a>";
|
231
|
var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px;background-color: #31b0d5' index='" + rowIndex + "'>编辑</a>";
|
229
|
- var changeStatus = "<a role='changeStatus' style='margin-left:10px;background-color: #ffa951' changedStatus='0' dataId='" + rowData.id + "' index='" + rowIndex + "'>下架</a>";
|
|
|
230
|
- ;
|
|
|
231
|
- if (rowData.status == 0) {
|
|
|
232
|
- changeStatus = "<a role='changeStatus' style='margin-left:10px;background-color: #c4ddff' changedStatus='1' dataId='" + rowData.id + "' index='" + rowIndex + "'>上架</a>";
|
|
|
233
|
- }
|
232
|
+ var changeStatus = "<a role='changeStatus' style='margin-left:10px;background-color: #c4ddff' changedStatus='1' dataId='" + rowData.id + "' index='" + rowIndex + "'>上架</a>";
|
234
|
|
233
|
|
235
|
- str += changeStatus;
|
234
|
+ if (rowData.status == 1) {
|
|
|
235
|
+ str = "";//进行中的话题不可编辑
|
|
|
236
|
+ changeStatus = "<a role='changeStatus' style='margin-left:10px;background-color: #ffa951' changedStatus='0' dataId='" + rowData.id + "' index='" + rowIndex + "'>下架</a>";
|
236
|
|
237
|
|
|
|
238
|
+ }
|
|
|
239
|
+ str += changeStatus;
|
237
|
// str += "<a role='' style='margin-left:10px;background-color: #ffa951' changedStatus='1' dataId='" + rowData.id + "' index='" + rowIndex + "'>复制链接</a>" ;
|
240
|
// str += "<a role='' style='margin-left:10px;background-color: #ffa951' changedStatus='1' dataId='" + rowData.id + "' index='" + rowIndex + "'>复制链接</a>" ;
|
238
|
|
241
|
|
239
|
return str ;
|
242
|
return str ;
|