Authored by mlge

标签、话题 前端contectPath修改

... ... @@ -16,7 +16,7 @@
</div>
<script>
$(function () {
$.post(contextPath + "/grassLabelManage/getAllGrassLabelInfo", function (data) {
$.post(serverContextPath + "/grassLabelManage/getAllGrassLabelInfo", function (data) {
//数据填到框框里面
// debugger
if(data.code ==200){
... ...
... ... @@ -46,7 +46,7 @@
textField : "groupName",
required:false,
prompt: "请选择分组",
url : contextPath + "/labelGroupManage/getAllLabelGroupInfo",
url : serverContextPath + "/labelGroupManage/getAllLabelGroupInfo",
loadFilter: function (data) {
var data = defaultLoadFilter(data);
data.unshift({'id': '', 'groupName': '--请选择分组--'});
... ...
... ... @@ -80,7 +80,7 @@
textField : "groupName",
required:false,
prompt: "请选择分组",
url : contextPath + "/labelGroupManage/getAllLabelGroupInfo",
url : serverContextPath + "/labelGroupManage/getAllLabelGroupInfo",
loadFilter: function (data) {
var data = defaultLoadFilter(data);
data.unshift({'id': '', 'groupName': '--请选择分组--'});
... ... @@ -123,7 +123,7 @@
status: $("#rewardstatus1").combobox("getValue"),
type: $("#rewardtype1").combobox("getValue")
},*/
url: contextPath + "/grassLabelManage/getGrassLabelList",
url: serverContextPath + "/grassLabelManage/getGrassLabelList",
method: 'POST',
loadFilter: function (data) {
var tmp = defaultLoadFilter(data);
... ... @@ -196,7 +196,7 @@
index = $(this).attr("index");
$.messager.confirm("确认", "确认删除该分组吗?", function (flag) {
if(flag){
$.post(contextPath + "/grassLabelManage/deleteGrassLabel", {
$.post(serverContextPath + "/grassLabelManage/deleteGrassLabel", {
id : close_id,
groupId: group_id
}, function(data) {
... ... @@ -252,7 +252,7 @@
$("#activityAddForm").form("submit", {
url: contextPath + "/grassLabelManage/addUpGrassLabel",
url: serverContextPath + "/grassLabelManage/addUpGrassLabel",
onSubmit: function (param) {
if(data != null){
param.id = data.id;
... ...
... ... @@ -83,7 +83,7 @@
width: 171,
height: 120,
realInputName: "topicImageUrl",
url: contextPath + '/fileupload/uploadFile',
url: serverContextPath + '/fileupload/uploadFile',
queryParams: {
bucket: "activity"
},
... ...
... ... @@ -123,7 +123,7 @@
status: $("#rewardstatus1").combobox("getValue"),
type: $("#rewardtype1").combobox("getValue")
},*/
url: contextPath + "/grassTopicManage/getGrassTopicList",
url: serverContextPath + "/grassTopicManage/getGrassTopicList",
method: 'POST',
loadFilter: function (data) {
var tmp = defaultLoadFilter(data);
... ... @@ -295,7 +295,7 @@
iconCls : "icon-save",
handler:function(){
$("#activityAddForm").form("submit", {
url: contextPath + "/grassTopicManage/addUpGrassTopic",
url: serverContextPath + "/grassTopicManage/addUpGrassTopic",
onSubmit: function (param) {
if(data != null){
param.id = data.id;
... ... @@ -385,7 +385,7 @@
status : data.status
};
$.post(contextPath + "/grassTopicManage/addUpGrassTopic", param,function (data) {
$.post(serverContextPath + "/grassTopicManage/addUpGrassTopic", param,function (data) {
//数据填到框框里面
// debugger
if(data.code ==200){
... ...