Преглед на файлове

localhost amended to 192 link

master
JannekeDL преди 5 години
родител
ревизия
db4990dda8

+ 1
- 1
src/components/user/loginPage.vue Целия файл

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

+ 14
- 14
src/store/modules/property/property.js Целия файл

@@ -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
     },

+ 10
- 10
src/store/modules/property/propertyAdmin.js Целия файл

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

+ 1
- 1
src/store/modules/property/propertyLists.js Целия файл

@@ -14,7 +14,7 @@ export default {
14 14
   actions: {
15 15
     getProperties({ commit }, item) {
16 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 18
         .then(result => commit('setProperties', result.data))
19 19
         .catch(console.error);
20 20
     },

+ 5
- 5
src/store/modules/property/propertyTypes.js Целия файл

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

+ 3
- 3
src/store/modules/searchTab.js Целия файл

@@ -22,18 +22,18 @@ export default {
22 22
   actions: {
23 23
     getProvince({ commit }) {
24 24
       axios
25
-        .get('http://localhost:57260/region/province')
25
+        .get('http://192.168.6.188:5000/region/province')
26 26
         .then(result => commit('setProvince', result.data))
27 27
         .catch(console.error);
28 28
     },
29 29
     getCities({ commit }, item) {
30 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 32
         .then(result => commit('setCities', result.data));
33 33
     },
34 34
     getSuburbs({ commit }, item) {
35 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 37
         .then(result => commit('setSuburbs', result.data));
38 38
     },
39 39
   },

+ 8
- 8
src/store/modules/user/register.js Целия файл

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

Loading…
Отказ
Запис