mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
优化投诉建议编辑不刷新bug
This commit is contained in:
parent
416179de8b
commit
78cdb2ba7e
@ -9,8 +9,7 @@
|
|||||||
context: ''
|
context: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function() {},
|
||||||
},
|
|
||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
vc.on('editComplaint', 'openEditComplaintModal', function(_params) {
|
vc.on('editComplaint', 'openEditComplaintModal', function(_params) {
|
||||||
vc.component.refreshEditComplaintInfo();
|
vc.component.refreshEditComplaintInfo();
|
||||||
@ -24,8 +23,7 @@
|
|||||||
return vc.validate.validate({
|
return vc.validate.validate({
|
||||||
editComplaintInfo: vc.component.editComplaintInfo
|
editComplaintInfo: vc.component.editComplaintInfo
|
||||||
}, {
|
}, {
|
||||||
'editComplaintInfo.typeCd': [
|
'editComplaintInfo.typeCd': [{
|
||||||
{
|
|
||||||
limit: "required",
|
limit: "required",
|
||||||
param: "",
|
param: "",
|
||||||
errInfo: "投诉类型不能为空"
|
errInfo: "投诉类型不能为空"
|
||||||
@ -36,8 +34,7 @@
|
|||||||
errInfo: "投诉类型格式错误"
|
errInfo: "投诉类型格式错误"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'editComplaintInfo.complaintName': [
|
'editComplaintInfo.complaintName': [{
|
||||||
{
|
|
||||||
limit: "required",
|
limit: "required",
|
||||||
param: "",
|
param: "",
|
||||||
errInfo: "投诉人不能为空"
|
errInfo: "投诉人不能为空"
|
||||||
@ -48,8 +45,7 @@
|
|||||||
errInfo: "投诉人不能大于200位"
|
errInfo: "投诉人不能大于200位"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'editComplaintInfo.tel': [
|
'editComplaintInfo.tel': [{
|
||||||
{
|
|
||||||
limit: "required",
|
limit: "required",
|
||||||
param: "",
|
param: "",
|
||||||
errInfo: "投诉电话不能为空"
|
errInfo: "投诉电话不能为空"
|
||||||
@ -60,8 +56,7 @@
|
|||||||
errInfo: "投诉电话格式错误"
|
errInfo: "投诉电话格式错误"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'editComplaintInfo.context': [
|
'editComplaintInfo.context': [{
|
||||||
{
|
|
||||||
limit: "required",
|
limit: "required",
|
||||||
param: "",
|
param: "",
|
||||||
errInfo: "投诉内容不能为空"
|
errInfo: "投诉内容不能为空"
|
||||||
@ -72,13 +67,11 @@
|
|||||||
errInfo: "投诉状态超过4000位"
|
errInfo: "投诉状态超过4000位"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'editComplaintInfo.complaintId': [
|
'editComplaintInfo.complaintId': [{
|
||||||
{
|
|
||||||
limit: "required",
|
limit: "required",
|
||||||
param: "",
|
param: "",
|
||||||
errInfo: "投诉ID不能为空"
|
errInfo: "投诉ID不能为空"
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
editComplaint: function() {
|
editComplaint: function() {
|
||||||
@ -89,8 +82,7 @@
|
|||||||
vc.http.post(
|
vc.http.post(
|
||||||
'editComplaint',
|
'editComplaint',
|
||||||
'update',
|
'update',
|
||||||
JSON.stringify(vc.component.editComplaintInfo),
|
JSON.stringify(vc.component.editComplaintInfo), {
|
||||||
{
|
|
||||||
emulateJSON: true
|
emulateJSON: true
|
||||||
},
|
},
|
||||||
function(json, res) {
|
function(json, res) {
|
||||||
@ -99,6 +91,7 @@
|
|||||||
//关闭model
|
//关闭model
|
||||||
$('#editComplaintModel').modal('hide');
|
$('#editComplaintModel').modal('hide');
|
||||||
vc.emit('complaintManage', 'listComplaint', {});
|
vc.emit('complaintManage', 'listComplaint', {});
|
||||||
|
vc.emit('myAuditComplaints', 'list', {});
|
||||||
vc.toast("修改成功");
|
vc.toast("修改成功");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user