一元化

This commit is contained in:
wuxw 2022-08-10 23:38:25 +08:00
parent 4a9bfb0455
commit d54cce142b
6 changed files with 24 additions and 28 deletions

View File

@ -26,9 +26,8 @@
unitId:vc.component.deleteUnitInfo._currentUnitId,
communityId:vc.getCurrentCommunity().communityId
}
vc.http.post(
'deleteUnit',
'delete',
vc.http.apiPost(
'/unit.deleteUnit',
JSON.stringify(param),
{
emulateJSON:true

View File

@ -11,18 +11,18 @@
seq: '',
}
},
watch: {
"editFloorInfo.floorNum": { //深度监听,可监听到对象、数组的变化
handler(val, oldVal) {
if (vc.notNull(val)) {
vc.component.editFloorInfo.floorName = vc.component.editFloorInfo.floorNum + "号楼";
} else {
vc.component.editFloorInfo.floorName = "";
}
},
deep: true
}
},
// watch: {
// "editFloorInfo.floorNum": { //深度监听,可监听到对象、数组的变化
// handler(val, oldVal) {
// if (vc.notNull(val)) {
// vc.component.editFloorInfo.floorName = vc.component.editFloorInfo.floorNum + "号楼";
// } else {
// vc.component.editFloorInfo.floorName = "";
// }
// },
// deep: true
// }
// },
_initMethod: function () {
},
_initEvent: function () {
@ -98,9 +98,9 @@
}
vc.component.editFloorInfo.errorInfo = "";
vc.component.editFloorInfo.communityId = vc.getCurrentCommunity().communityId;
vc.http.post(
'editFloor',
'changeFloor',
$that.editFloorInfo.name = $that.editFloorInfo.floorName;
vc.http.apiPost(
'/floor.editFloor',
JSON.stringify(vc.component.editFloorInfo), {
emulateJSON: true
},

View File

@ -63,9 +63,8 @@
communityId: vc.getCurrentCommunity().communityId
}
}
vc.http.get(
'editRoom',
'loadUnits',
vc.http.apiGet(
'/unit.queryUnits',
param,
function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);

View File

@ -208,9 +208,8 @@
vc.toast(vc.validate.errInfo);
return;
}
vc.http.post(
'editRoom',
'update',
vc.http.apiPost(
'/room.updateRoom',
JSON.stringify(vc.component.editShopsInfo), {
emulateJSON: true
},

View File

@ -16,9 +16,8 @@
doOwnerExitRoom:function(){
vc.component.exitRoomInfo.communityId = vc.getCurrentCommunity().communityId;
vc.http.post(
'ownerExitRoom',
'exit',
vc.http.apiPost(
'/room.exitRoom',
JSON.stringify(vc.component.exitRoomInfo),
{
emulateJSON:true

View File

@ -24,7 +24,7 @@
roomId: '',
state: '',
section: '',
roomType: '',
roomType: '1010301',
roomSubType: '',
flag: ''
},