Przeglądaj źródła

localhost amended to 192 link

master
JannekeDL 5 lat temu
rodzic
commit
db4990dda8

+ 1
- 1
src/components/user/loginPage.vue Wyświetl plik

104
     Login() {
104
     Login() {
105
       console.log(this.username + this.password);
105
       console.log(this.username + this.password);
106
       axios
106
       axios
107
-        .post('http://localhost:57260/api/register/authenticate', {
107
+        .post('http://192.168.6.188:5000/api/register/authenticate', {
108
           username: this.username,
108
           username: this.username,
109
           password: this.password,
109
           password: this.password,
110
         })
110
         })

+ 14
- 14
src/store/modules/property/property.js Wyświetl plik

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

+ 10
- 10
src/store/modules/property/propertyAdmin.js Wyświetl plik

79
   actions: {
79
   actions: {
80
     getUserDefinedGroups({ commit }) {
80
     getUserDefinedGroups({ commit }) {
81
       axios
81
       axios
82
-        .get('http://localhost:57260/Property/UserDefinedGroup')
82
+        .get('http://192.168.6.188:5000/Property/UserDefinedGroup')
83
         .then(result => commit('setUserDefinedGroups', result.data))
83
         .then(result => commit('setUserDefinedGroups', result.data))
84
         .catch(console.error);
84
         .catch(console.error);
85
     },
85
     },
86
     getUserDefinedGroup({ commit }, id) {
86
     getUserDefinedGroup({ commit }, id) {
87
       axios
87
       axios
88
-        .get(`http://localhost:57260/Property/UserDefinedGroup/${id}`)
88
+        .get(`http://192.168.6.188:5000/Property/UserDefinedGroup/${id}`)
89
         .then(result => commit('setUserDefinedGroup', result.data))
89
         .then(result => commit('setUserDefinedGroup', result.data))
90
         .catch(console.error);
90
         .catch(console.error);
91
     },
91
     },
92
     getUserFields({ commit }, groupId) {
92
     getUserFields({ commit }, groupId) {
93
       axios
93
       axios
94
-        .get(`http://localhost:57260/Property/UserDefinedField/group/${groupId}`)
94
+        .get(`http://192.168.6.188:5000/Property/UserDefinedField/group/${groupId}`)
95
         .then(result => commit('setUserFields', result.data))
95
         .then(result => commit('setUserFields', result.data))
96
         .catch(console.error);
96
         .catch(console.error);
97
     },
97
     },
98
     getUserField({ commit }, id) {
98
     getUserField({ commit }, id) {
99
       axios
99
       axios
100
-        .get(`http://localhost:57260/Property/UserDefinedField/${id}`)
100
+        .get(`http://192.168.6.188:5000/Property/UserDefinedField/${id}`)
101
         .then(result => commit('setUserField', result.data))
101
         .then(result => commit('setUserField', result.data))
102
         .catch(console.error);
102
         .catch(console.error);
103
     },
103
     },
104
     saveUserDefinedGroup({ commit }, item) {
104
     saveUserDefinedGroup({ commit }, item) {
105
       axios
105
       axios
106
-        .post('http://localhost:57260/Property/UserDefinedGroup', item)
106
+        .post('http://192.168.6.188:5000/Property/UserDefinedGroup', item)
107
         .then(response => commit('addUserDefinedGroups', response.data))
107
         .then(response => commit('addUserDefinedGroups', response.data))
108
         .catch(console.error);
108
         .catch(console.error);
109
     },
109
     },
110
     updateUserDefinedGroup({ commit }, item) {
110
     updateUserDefinedGroup({ commit }, item) {
111
       axios
111
       axios
112
-        .put('http://localhost:57260/Property/UserDefinedGroup', item)
112
+        .put('http://192.168.6.188:5000/Property/UserDefinedGroup', item)
113
         .then(response => commit('updateUserDefinedGroups', response.data))
113
         .then(response => commit('updateUserDefinedGroups', response.data))
114
         .catch(console.error);
114
         .catch(console.error);
115
     },
115
     },
116
     saveUserField({ commit }, item) {
116
     saveUserField({ commit }, item) {
117
       axios
117
       axios
118
-        .post('http://localhost:57260/Property/UserDefinedField', item)
118
+        .post('http://192.168.6.188:5000/Property/UserDefinedField', item)
119
         .then(response => commit('addUserField', response.data))
119
         .then(response => commit('addUserField', response.data))
120
         .catch(console.error);
120
         .catch(console.error);
121
     },
121
     },
122
     updateUserField({ commit }, item) {
122
     updateUserField({ commit }, item) {
123
       axios
123
       axios
124
-        .put('http://localhost:57260/Property/UserDefinedField', item)
124
+        .put('http://192.168.6.188:5000/Property/UserDefinedField', item)
125
         .then(response => commit('updateUserFields', response.data))
125
         .then(response => commit('updateUserFields', response.data))
126
         .catch(console.error);
126
         .catch(console.error);
127
     },
127
     },
128
     deleteUserDefinedGroup({ commit }, id) {
128
     deleteUserDefinedGroup({ commit }, id) {
129
       axios
129
       axios
130
-        .delete(`http://localhost:57260/Property/UserDefinedGroup/${id}`)
130
+        .delete(`http://192.168.6.188:5000/Property/UserDefinedGroup/${id}`)
131
         .then(result => commit('removeUserDefinedGroup', id))
131
         .then(result => commit('removeUserDefinedGroup', id))
132
         .catch(console.error);
132
         .catch(console.error);
133
     },
133
     },
134
     deleteUserField({ commit }, id) {
134
     deleteUserField({ commit }, id) {
135
       axios
135
       axios
136
-        .delete(`http://localhost:57260/Property/UserDefinedField/${id}`)
136
+        .delete(`http://192.168.6.188:5000/Property/UserDefinedField/${id}`)
137
         .then(result => commit('removeUserField', id))
137
         .then(result => commit('removeUserField', id))
138
         .catch(console.error);
138
         .catch(console.error);
139
     },
139
     },

+ 1
- 1
src/store/modules/property/propertyLists.js Wyświetl plik

14
   actions: {
14
   actions: {
15
     getProperties({ commit }, item) {
15
     getProperties({ commit }, item) {
16
       axios
16
       axios
17
-        .get(`http://localhost:57260/Property/property/${item.propertyType}/${item.user}`)
17
+        .get(`http://192.168.6.188:5000/Property/property/${item.propertyType}/${item.user}`)
18
         .then(result => commit('setProperties', result.data))
18
         .then(result => commit('setProperties', result.data))
19
         .catch(console.error);
19
         .catch(console.error);
20
     },
20
     },

+ 5
- 5
src/store/modules/property/propertyTypes.js Wyświetl plik

37
   actions: {
37
   actions: {
38
     getPropertyTypes({ commit }) {
38
     getPropertyTypes({ commit }) {
39
       axios
39
       axios
40
-        .get('http://localhost:57260/Property/PropertyType')
40
+        .get('http://192.168.6.188:5000/Property/PropertyType')
41
         .then(result => commit('setPropertyTypes', result.data))
41
         .then(result => commit('setPropertyTypes', result.data))
42
         .catch(console.error);
42
         .catch(console.error);
43
     },
43
     },
44
     getPropertyType({ commit }, id) {
44
     getPropertyType({ commit }, id) {
45
       axios
45
       axios
46
-        .get(`http://localhost:57260/Property/PropertyType/${id}`)
46
+        .get(`http://192.168.6.188:5000/Property/PropertyType/${id}`)
47
         .then(result => commit('setPropertyType', result.data))
47
         .then(result => commit('setPropertyType', result.data))
48
         .catch(console.error);
48
         .catch(console.error);
49
     },
49
     },
50
     savePropertyType({ commit }, item) {
50
     savePropertyType({ commit }, item) {
51
       axios
51
       axios
52
-        .post('http://localhost:57260/Property/PropertyType', item)
52
+        .post('http://192.168.6.188:5000/Property/PropertyType', item)
53
         .then(result => commit('addToPropertyTypes', result.data))
53
         .then(result => commit('addToPropertyTypes', result.data))
54
         .catch(console.error);
54
         .catch(console.error);
55
     },
55
     },
56
     updatePropertyType({ commit }, item) {
56
     updatePropertyType({ commit }, item) {
57
       axios
57
       axios
58
-        .put('http://localhost:57260/Property/PropertyType', item)
58
+        .put('http://192.168.6.188:5000/Property/PropertyType', item)
59
         .then(result => commit('updatePropertyTypes', item))
59
         .then(result => commit('updatePropertyTypes', item))
60
         .catch(console.error);
60
         .catch(console.error);
61
     },
61
     },
64
     },
64
     },
65
     deletePropertyType({ commit }, id) {
65
     deletePropertyType({ commit }, id) {
66
       axios
66
       axios
67
-        .delete(`http://localhost:57260/Property/PropertyType/${id}`)
67
+        .delete(`http://192.168.6.188:5000/Property/PropertyType/${id}`)
68
         .then(result => commit('removePropertyType', id))
68
         .then(result => commit('removePropertyType', id))
69
         .catch(console.error);
69
         .catch(console.error);
70
     },
70
     },

+ 3
- 3
src/store/modules/searchTab.js Wyświetl plik

22
   actions: {
22
   actions: {
23
     getProvince({ commit }) {
23
     getProvince({ commit }) {
24
       axios
24
       axios
25
-        .get('http://localhost:57260/region/province')
25
+        .get('http://192.168.6.188:5000/region/province')
26
         .then(result => commit('setProvince', result.data))
26
         .then(result => commit('setProvince', result.data))
27
         .catch(console.error);
27
         .catch(console.error);
28
     },
28
     },
29
     getCities({ commit }, item) {
29
     getCities({ commit }, item) {
30
       axios
30
       axios
31
-        .get(`http://localhost:57260/region/city/getby/${item.province}`)
31
+        .get(`http://192.168.6.188:5000/region/city/getby/${item.province}`)
32
         .then(result => commit('setCities', result.data));
32
         .then(result => commit('setCities', result.data));
33
     },
33
     },
34
     getSuburbs({ commit }, item) {
34
     getSuburbs({ commit }, item) {
35
       axios
35
       axios
36
-        .get(`http://localhost:57260/region/Suburb/${item.province}/${item.city}`)
36
+        .get(`http://192.168.6.188:5000/region/Suburb/${item.province}/${item.city}`)
37
         .then(result => commit('setSuburbs', result.data));
37
         .then(result => commit('setSuburbs', result.data));
38
     },
38
     },
39
   },
39
   },

+ 8
- 8
src/store/modules/user/register.js Wyświetl plik

86
     //   commit,
86
     //   commit,
87
     // }, id) {
87
     // }, id) {
88
     //   axios
88
     //   axios
89
-    //     .get(`http://localhost:57260/api/user/${id}`)
89
+    //     .get(`http://192.168.6.188:5000/api/user/${id}`)
90
     //     .then(result => commit('setIndividual', result.data))
90
     //     .then(result => commit('setIndividual', result.data))
91
     //     .catch(console.error);
91
     //     .catch(console.error);
92
     // },
92
     // },
94
     //   commit,
94
     //   commit,
95
     // }, id) {
95
     // }, id) {
96
     //   axios
96
     //   axios
97
-    //     .get(`http://localhost:57260/api/agency/${id}`)
97
+    //     .get(`http://192.168.6.188:5000/api/agency/${id}`)
98
     //     .then(result => commit('setAgency', result.data))
98
     //     .then(result => commit('setAgency', result.data))
99
     //     .catch(console.error);
99
     //     .catch(console.error);
100
     // },
100
     // },
103
       commit,
103
       commit,
104
     }, item) {
104
     }, item) {
105
       axios
105
       axios
106
-        .post('http://localhost:57260/api/register/register', item)
106
+        .post('http://192.168.6.188:5000/api/register/register', item)
107
         .then(result => commit('addIndividual', result.data))
107
         .then(result => commit('addIndividual', result.data))
108
         .catch(console.error);
108
         .catch(console.error);
109
     },
109
     },
111
       commit,
111
       commit,
112
     }, item) {
112
     }, item) {
113
       axios
113
       axios
114
-        .post('http://localhost:57260/api/register/registeragency', item)
114
+        .post('http://192.168.6.188:5000/api/register/registeragency', item)
115
         .then(result => commit('addAgency', result.data))
115
         .then(result => commit('addAgency', result.data))
116
         .catch(console.error);
116
         .catch(console.error);
117
     },
117
     },
119
     //   commit,
119
     //   commit,
120
     // }, item) {
120
     // }, item) {
121
     //   axios
121
     //   axios
122
-    //     .put('http://localhost:57260/api/individual', item)
122
+    //     .put('http://192.168.6.188:5000/api/individual', item)
123
     //     .then(result => commit('updateIndividual', item))
123
     //     .then(result => commit('updateIndividual', item))
124
     //     .catch(console.error);
124
     //     .catch(console.error);
125
     // },
125
     // },
127
     //   commit,
127
     //   commit,
128
     // }, item) {
128
     // }, item) {
129
     //   axios
129
     //   axios
130
-    //     .put('http://localhost:57260/api/agency', item)
130
+    //     .put('http://192.168.6.188:5000/api/agency', item)
131
     //     .then(result => commit('updateAgency', item))
131
     //     .then(result => commit('updateAgency', item))
132
     //     .catch(console.error);
132
     //     .catch(console.error);
133
     // },
133
     // },
145
     //   commit,
145
     //   commit,
146
     // }, id) {
146
     // }, id) {
147
     //   axios
147
     //   axios
148
-    //     .delete(`http://localhost:57260/api/individual/${id}`)
148
+    //     .delete(`http://192.168.6.188:5000/api/individual/${id}`)
149
     //     .then(result => commit('removeIndividual', id))
149
     //     .then(result => commit('removeIndividual', id))
150
     //     .catch(console.error);
150
     //     .catch(console.error);
151
     // },
151
     // },
153
     //   commit,
153
     //   commit,
154
     // }, id) {
154
     // }, id) {
155
     //   axios
155
     //   axios
156
-    //     .delete(`http://localhost:57260/api/agency/${id}`)
156
+    //     .delete(`http://192.168.6.188:5000/api/agency/${id}`)
157
     //     .then(result => commit('removeAgency', id))
157
     //     .then(result => commit('removeAgency', id))
158
     //     .catch(console.error);
158
     //     .catch(console.error);
159
     // },
159
     // },

Ładowanie…
Anuluj
Zapisz