一元化

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, unitId:vc.component.deleteUnitInfo._currentUnitId,
communityId:vc.getCurrentCommunity().communityId communityId:vc.getCurrentCommunity().communityId
} }
vc.http.post( vc.http.apiPost(
'deleteUnit', '/unit.deleteUnit',
'delete',
JSON.stringify(param), JSON.stringify(param),
{ {
emulateJSON:true emulateJSON:true

View File

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

View File

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

View File

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

View File

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

View File

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