|
@@ -142,48 +142,48 @@ export default {
|
142
|
142
|
actions: {
|
143
|
143
|
getProperty({ commit }, id) {
|
144
|
144
|
axios
|
145
|
|
- .get(`http://localhost:57260/Property/Property/${id}`)
|
|
145
|
+ .get(`http://192.168.6.188:5000/Property/Property/${id}`)
|
146
|
146
|
.then(result => commit('setProperty', result.data))
|
147
|
147
|
.catch(console.error);
|
148
|
148
|
},
|
149
|
149
|
getPropertyImages({ commit }, id) {
|
150
|
150
|
axios
|
151
|
|
- .get(`http://localhost:57260/property/PropertyImage/getpropertyimages/${id}`)
|
|
151
|
+ .get(`http://192.168.6.188:5000/property/PropertyImage/getpropertyimages/${id}`)
|
152
|
152
|
.then(result => commit('setPropertyImages', result.data))
|
153
|
153
|
.catch(console.error);
|
154
|
154
|
},
|
155
|
155
|
getPropertyTypes({ commit }, propertyType) {
|
156
|
156
|
axios
|
157
|
|
- .get(`http://localhost:57260/Property/PropertyType/type/${propertyType}`)
|
|
157
|
+ .get(`http://192.168.6.188:5000/Property/PropertyType/type/${propertyType}`)
|
158
|
158
|
.then(result => commit('setPropertyTypes', result.data))
|
159
|
159
|
.catch(console.error);
|
160
|
160
|
},
|
161
|
161
|
getPropertyTypesRes({ commit }) {
|
162
|
162
|
axios
|
163
|
|
- .get('http://localhost:57260/Property/PropertyType/type/Residential')
|
|
163
|
+ .get('http://192.168.6.188:5000/Property/PropertyType/type/Residential')
|
164
|
164
|
.then(result => commit('setPropertyTypesRes', result.data))
|
165
|
165
|
.catch(console.error);
|
166
|
166
|
},
|
167
|
167
|
getPropertyTypesCom({ commit }) {
|
168
|
168
|
axios
|
169
|
|
- .get('http://localhost:57260/Property/PropertyType/type/Commercial')
|
|
169
|
+ .get('http://192.168.6.188:5000/Property/PropertyType/type/Commercial')
|
170
|
170
|
.then(result => commit('setPropertyTypesCom', result.data))
|
171
|
171
|
.catch(console.error);
|
172
|
172
|
},
|
173
|
173
|
getPropertyOverviewFields({ commit }) {
|
174
|
174
|
axios
|
175
|
|
- .get('http://localhost:57260/Property/PropertyFields/Property Overview')
|
|
175
|
+ .get('http://192.168.6.188:5000/Property/PropertyFields/Property Overview')
|
176
|
176
|
.then(response => commit('setPropertyOverviewFields', response.data));
|
177
|
177
|
},
|
178
|
178
|
getPropertyFields({ commit }, propertyType) {
|
179
|
179
|
axios
|
180
|
|
- .get(`http://localhost:57260/property/propertyfields/Propertytype/${propertyType}`)
|
|
180
|
+ .get(`http://192.168.6.188:5000/property/propertyfields/Propertytype/${propertyType}`)
|
181
|
181
|
.then(response => commit('setPropertyFields', response.data));
|
182
|
182
|
},
|
183
|
183
|
getPropertySavedOverviewFields({ commit }, id) {
|
184
|
184
|
axios
|
185
|
185
|
.get(
|
186
|
|
- `http://localhost:57260/Property/PropertyFields/GetSavedValues/Residential/Property Overview/${id}`,
|
|
186
|
+ `http://192.168.6.188:5000/Property/PropertyFields/GetSavedValues/Residential/Property Overview/${id}`,
|
187
|
187
|
)
|
188
|
188
|
.then(response => commit('setPropertyOverviewFields', response.data))
|
189
|
189
|
.catch(console.error);
|
|
@@ -191,34 +191,34 @@ export default {
|
191
|
191
|
getPropertySavedFields({ commit }, item) {
|
192
|
192
|
axios
|
193
|
193
|
.get(
|
194
|
|
- `http://localhost:57260/Property/PropertyFields/GetSavedValues/${item.type}/All/${item.id}`,
|
|
194
|
+ `http://192.168.6.188:5000/Property/PropertyFields/GetSavedValues/${item.type}/All/${item.id}`,
|
195
|
195
|
)
|
196
|
196
|
.then(response => commit('setPropertyFields', response.data))
|
197
|
197
|
.catch(console.error);
|
198
|
198
|
},
|
199
|
199
|
saveProperty({ commit }, item) {
|
200
|
200
|
axios
|
201
|
|
- .post('http://localhost:57260/Property/Property', item)
|
|
201
|
+ .post('http://192.168.6.188:5000/Property/Property', item)
|
202
|
202
|
.then(result => commit('updateCurrentProperty', result.data))
|
203
|
203
|
.catch(console.error);
|
204
|
204
|
},
|
205
|
205
|
searchPropertiesParams({ commit }, item) {
|
206
|
206
|
axios
|
207
|
207
|
.get(
|
208
|
|
- `http://localhost:57260/Property/Property/Search/${item.type}/${item.propertyType}/${item.province}/${item.city}/${item.suburb}/${item.propType}`,
|
|
208
|
+ `http://192.168.6.188:5000/Property/Property/Search/${item.type}/${item.propertyType}/${item.province}/${item.city}/${item.suburb}/${item.propType}`,
|
209
|
209
|
)
|
210
|
210
|
.then(response => commit('updateSearch', response.data))
|
211
|
211
|
.catch(console.error);
|
212
|
212
|
},
|
213
|
213
|
searchPropertiesKeyword({ commit }, item) {
|
214
|
214
|
axios
|
215
|
|
- .get(`http://localhost:57260/Property/Property/Search/${item.keyword}`)
|
|
215
|
+ .get(`http://192.168.6.188:5000/Property/Property/Search/${item.keyword}`)
|
216
|
216
|
.then(response => commit('updateSearch', response.data))
|
217
|
217
|
.catch(console.error);
|
218
|
218
|
},
|
219
|
219
|
searchLatestProperties({ commit }) {
|
220
|
220
|
axios
|
221
|
|
- .get('http://localhost:57260/property/property/latestProperties')
|
|
221
|
+ .get('http://192.168.6.188:5000/property/property/latestProperties')
|
222
|
222
|
.then(response => commit('setLatestProperties', response.data))
|
223
|
223
|
.catch(console.error);
|
224
|
224
|
},
|
|
@@ -230,7 +230,7 @@ export default {
|
230
|
230
|
},
|
231
|
231
|
getPropertyEditDisplay({ commit }, id) {
|
232
|
232
|
axios
|
233
|
|
- .get(`http://localhost:57260/Property/Property/GetEditDisplay/${id}`)
|
|
233
|
+ .get(`http://192.168.6.188:5000/Property/Property/GetEditDisplay/${id}`)
|
234
|
234
|
.then(response => commit('setPropertyEditDisplay', response.data))
|
235
|
235
|
.catch(console.error);
|
236
|
236
|
},
|