-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/components/property/addCarModal/addCarModal.js b/public/components/property/addCarModal/addCarModal.js
index df62763ad..c5380e4d0 100644
--- a/public/components/property/addCarModal/addCarModal.js
+++ b/public/components/property/addCarModal/addCarModal.js
@@ -39,7 +39,7 @@
param,
function(json, res) {
var carTypes = JSON.parse(json);
- vc.component.carTypes = carTypes;
+ $that.carTypes = carTypes;
},
function(errInfo, error) {
console.log('请求失败处理');
@@ -56,7 +56,7 @@
methods: {
addCarValidate: function() {
return vc.validate.validate({
- addCarModelInfo: vc.component.addCarModelInfo
+ addCarModelInfo: $that.addCarModelInfo
}, {
'addCarModelInfo.carNum': [{
limit: "required",
@@ -100,13 +100,13 @@
},
saveAddCarInfo: function() {
let _carNumType = $that.addCarModelInfo.carNumType;
- if (!vc.component.addCarValidate()) {
+ if (!$that.addCarValidate()) {
//侦听回传
vc.toast(vc.validate.errInfo);
return;
}
- vc.component.addCarModelInfo.communityId = vc.getCurrentCommunity().communityId;
- vc.http.apiPost('owner.saveOwnerCarMember', JSON.stringify(vc.component.addCarModelInfo), {
+ $that.addCarModelInfo.communityId = vc.getCurrentCommunity().communityId;
+ vc.http.apiPost('owner.saveOwnerCarMember', JSON.stringify($that.addCarModelInfo), {
emulateJSON: true
},
function(json, res) {
@@ -114,7 +114,7 @@
if (_json.code == 0) {
//关闭model
$('#addCarModal').modal('hide');
- vc.component.clearAddCarModalInfo();
+ $that.clearAddCarModalInfo();
vc.emit('listOwnerCarMember', 'listOwnerCarData', {});
vc.emit('carDetailMember', 'notify',{});
vc.toast("添加成功");