高章伟
2023-04-04 ecf60bb0cd5a04ce38120302be4cf55fd3c3a27b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
({
    loadSimilarProperties : function(component) {
        var property = component.get("v.property");
        var action = component.get("c.getSimilarProperties");
        action.setStorable();
        action.setParams({
            propertyId: property.Id,
            price: property.Price__c,
            bedrooms: property.Beds__c,
            searchCriteria: component.get("v.searchCriteria")
        });
        action.setCallback(this, function(response){
            component.set("v.similarProperties", response.getReturnValue());
        });
        $A.enqueueAction(action);
    },
})