mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 06:09:11 +08:00
49 lines
1.6 KiB
JavaScript
49 lines
1.6 KiB
JavaScript
(function(vc, vm) {
|
|
|
|
vc.extends({
|
|
data: {
|
|
reSubmitComplaintInfo: {
|
|
msg: "",
|
|
complaintId: '',
|
|
taskId: '',
|
|
state: '',
|
|
remark: ''
|
|
}
|
|
},
|
|
_initMethod: function() {
|
|
|
|
},
|
|
_initEvent: function() {
|
|
vc.on('ReSubmitComplaint', 'openReSubmitComplaintModal', function(_params) {
|
|
|
|
vc.copyObject(_params, vc.component.reSubmitComplaintInfo);
|
|
$('#reSubmitComplaintModel').modal('show');
|
|
|
|
});
|
|
},
|
|
methods: {
|
|
reSubmitComplaint: function() {
|
|
$that.reSubmitComplaintInfo.communityId = vc.getCurrentCommunity().communityId;
|
|
//发送get请求
|
|
vc.http.apiPost('/complaint.auditComplaint',
|
|
JSON.stringify($that.reSubmitComplaintInfo), {
|
|
emulateJSON: true
|
|
},
|
|
function(json, res) {
|
|
vc.toast("处理成功");
|
|
vc.emit('myAuditComplaints', 'list', {});
|
|
$('#reSubmitComplaintModel').modal('hide');
|
|
},
|
|
function(errInfo, error) {
|
|
console.log('请求失败处理');
|
|
vc.toast("处理失败:" + errInfo);
|
|
}
|
|
);
|
|
},
|
|
closeReSubmitComplaintModel: function() {
|
|
$('#reSubmitComplaintModel').modal('hide');
|
|
}
|
|
}
|
|
});
|
|
|
|
})(window.vc, window.vc.component); |