소스 검색

modified redme

master
Kobus 5 년 전
부모
커밋
b8b3356bae
3개의 변경된 파일247개의 추가작업 그리고 222개의 파일을 삭제
  1. 42
    18
      README.md
  2. 3
    1
      src/components/timeshare/sell/sellPage.vue
  3. 202
    203
      src/router/index.js

+ 42
- 18
README.md 파일 보기

@@ -36,24 +36,48 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
36 36
 
37 37
 ### Structure
38 38
 
39
-├── index.html
40
-├── main.js
41
-├── assets
42
-│ └── staticData
43
-│ ├── alertTypes.js
44
-│ ├── itemsPerPage.js
45
-│ ├── maritalStatus.js
46
-│  
47
-├── components
48
-│ ├── App.vue
49
-│ └── ...
50
-└── store
51
-├── index.js # where we assemble modules and export the store
52
-├── actions.js # root actions
53
-├── mutations.js # root mutations
54
-└── modules
55
-├── cart.js # cart module
56
-└── products.js # products module
39
+#### To Get All Classes
40
+
41
+http://localhost:57260/api/info/getAllClasses
42
+
43
+#### To Get Property from Class
44
+
45
+http://localhost:57260/api/info/UnivateProperties_API.Model.Users.User
46
+
47
+#### To Add Template
48
+
49
+http://localhost:57260/api/template
50
+{
51
+"Name": "WeekAuthorized",
52
+"Subject": "[Resort][unit] [Module]",
53
+"Body": "<h4>Dear [Username]</h4><p>Your week information has been confirmed.</p><p>Please log on to the Uni-Vate Website and publish your week.</p><p>This will allow all websites users to view your Week.</p><h4>Thank you</h4><h4><b>Uni-Vate Properties</b></h4>",
54
+"PlaceHolders": [
55
+{
56
+"Name": "[Resort]",
57
+"BoundTo": "ResortName",
58
+"BoundToClass": "UnivateProperties_API.Model.Timeshare.TimeshareWeek",
59
+"BoundToClassDisplay": "TimeshareWeek",
60
+},
61
+{
62
+"Name": "[Unit]",
63
+"BoundTo": "UnitNumber",
64
+"BoundToClass": "UnivateProperties_API.Model.Timeshare.TimeshareWeek",
65
+"BoundToClassDisplay": "TimeshareWeek",
66
+},
67
+{
68
+"Name": "[Module]",
69
+"BoundTo": "Module",
70
+"BoundToClass": "UnivateProperties_API.Model.Timeshare.TimeshareWeek",
71
+"BoundToClassDisplay": "TimeshareWeek",
72
+},
73
+{
74
+"Name": "[Username]",
75
+"BoundTo": "Username",
76
+"BoundToClass": "UnivateProperties_API.Model.Users.User",
77
+"BoundToClassDisplay": "User",
78
+}
79
+]
80
+}
57 81
 
58 82
 ### Tender Weeks
59 83
 

+ 3
- 1
src/components/timeshare/sell/sellPage.vue 파일 보기

@@ -565,7 +565,9 @@ export default {
565 565
   },
566 566
   methods: {
567 567
     submitSale() {
568
-      this.saveWeek(this.sellItem);
568
+      if (this.isLoggedIn) {
569
+        this.saveWeek(this.sellItem);
570
+      } else this.$router.push('/user/login');
569 571
     },
570 572
     previewFiles(event) {
571 573
       console.log(event.target.files);

+ 202
- 203
src/router/index.js 파일 보기

@@ -58,208 +58,207 @@ export default new Router({
58 58
       y: 0,
59 59
     };
60 60
   },
61
-  routes: [
62
-    {
63
-      path: '/',
64
-      name: 'Home',
65
-      component: HomePage,
66
-    },
67
-    {
68
-      path: '/about/us',
69
-      name: 'aboutus',
70
-      component: AboutUs,
71
-    },
72
-    {
73
-      path: '/about/timeshare',
74
-      name: 'abouttimeshare',
75
-      component: AboutTimeshare,
76
-    },
77
-    {
78
-      path: '/communication/template',
79
-      name: 'template',
80
-      component: TemplatePage,
81
-    },
82
-    {
83
-      path: '/timeshare/sell',
84
-      name: 'TimeshareSell',
85
-      component: TimeshareSell,
86
-    },
87
-    {
88
-      path: '/timeshare/buy',
89
-      name: 'TimeshareBuy',
90
-      component: TimeshareBuy,
91
-    },
92
-    {
93
-      path: '/timeshare/faq',
94
-      name: 'TimeshareFAQ',
95
-      component: TimeshareFAQ,
96
-    },
97
-    {
98
-      path: '/timeshare/myWeeks',
99
-      name: 'MyWeeks',
100
-      component: MyWeeksPage,
101
-    },
102
-    {
103
-      path: '/user/login',
104
-      name: 'Login',
105
-      component: Login,
106
-    },
107
-    {
108
-      path: '/user/updateProfileInfo',
109
-      name: 'UpdateInfo',
110
-      component: UpdateInfo,
111
-    },
112
-    {
113
-      path: '/user/register',
114
-      name: 'PrivateIndividual',
115
-      component: PrivateIndividual,
116
-    },
117
-    {
118
-      path: '/user/registeragency',
119
-      name: 'Agency',
120
-      component: Agency,
121
-    },
122
-    {
123
-      path: '/property/property/:id',
124
-      name: 'PropertyPage',
125
-      component: PropertyPage,
126
-    },
127
-    {
128
-      path: '/property/:propertyUsageType/search',
129
-      name: 'PropertySearch',
130
-      component: PropertySearch,
131
-    },
132
-    {
133
-      path: '/property/search',
134
-      name: 'PropertySearchTab',
135
-      component: PropertySearch,
136
-    },
137
-    {
138
-      path: '/property/new/:saleType',
139
-      name: 'PropertyNew',
140
-      component: PropertyEdit,
141
-    },
142
-    {
143
-      path: '/property/new/:propertyUsageType/:saleType',
144
-      name: 'PropertyNewFromSearch',
145
-      component: PropertyEdit,
146
-    },
147
-    {
148
-      path: '/property/edit/:id/:propType/:saleType',
149
-      name: 'PropertyEdit',
150
-      component: PropertyEdit,
151
-    },
152
-    {
153
-      path: '/property/admin/list/:by',
154
-      name: 'PropertyListAdmin',
155
-      component: PropertyList,
156
-    },
157
-    {
158
-      path: '/propertyTypes/list',
159
-      name: 'PropertyTypeList',
160
-      component: PropertyTypeList,
161
-    },
162
-    {
163
-      path: '/propertyType/new',
164
-      name: 'PropertyTypeNew',
165
-      component: PropertyType,
166
-    },
167
-    {
168
-      path: '/propertyType/:id',
169
-      name: 'PropertyTypeEdit',
170
-      component: PropertyType,
171
-    },
172
-    {
173
-      path: '/userDefinedGroups/list',
174
-      name: 'UserDefinedGroupsList',
175
-      component: UserDefinedGroups,
176
-    },
177
-    {
178
-      path: '/userDefinedGroups/userDefinedGroup/:id',
179
-      name: 'UserDefinedGroupEdit',
180
-      component: UserDefinedGroup,
181
-    },
182
-    {
183
-      path: '/userDefinedGroups/userDefinedGroup',
184
-      name: 'UserDefinedGroupNew',
185
-      component: UserDefinedGroup,
186
-    },
187
-    {
188
-      path: '/status/list',
189
-      name: 'StatusList',
190
-      component: Status,
191
-    },
192
-    {
193
-      path: '/status/timeshareAdmin',
194
-      name: 'TimeshareAdmin',
195
-      component: timeshareAdminPage,
196
-    },
197
-    {
198
-      path: '/status/tenderWeekAdmin',
199
-      name: 'TenderWeekAdmin',
200
-      component: tenderWeekAdminPage,
201
-    },
202
-    {
203
-      path: '/status/userManagementPage',
204
-      name: 'userManagementPage',
205
-      component: userManagementPage,
206
-    },
207
-    {
208
-      path: '/status/agentUserManagementPage',
209
-      name: 'agentManagementPage',
210
-      component: agentManagementPage,
211
-    },
212
-    {
213
-      path: '/status/changeLogPage',
214
-      name: 'changeLogPage',
215
-      component: changeLogPage,
216
-    },
217
-    {
218
-      path: '/unitConfiguration/list',
219
-      name: 'UnitConfiguration',
220
-      component: UnitConfiguration,
221
-    },
222
-    {
223
-      path: '/contactus',
224
-      name: 'ContactUs',
225
-      component: ContactUs,
226
-    },
227
-    {
228
-      path: '/privacypolicy',
229
-      name: 'PrivacyPolicy',
230
-      component: PrivacyPolicy,
231
-    },
232
-    {
233
-      path: '/resort/:resortCode',
234
-      name: 'ResortPage',
235
-      component: ResortPage,
236
-      props: true,
237
-    },
238
-    {
239
-      path: '/resort/:resortCode/:weekId',
240
-      name: 'UnitPage',
241
-      component: UnitPage,
242
-      props: true,
243
-    },
244
-    {
245
-      path: '/MakeOffer',
246
-      name: 'MakeOffer',
247
-      component: MakeOffer,
248
-    },
249
-    {
250
-      path: '/Offers',
251
-      name: 'Offers',
252
-      component: Offer,
253
-    },
254
-    {
255
-      path: '/timeshare/search',
256
-      name: 'TimeshareSearch',
257
-      component: TimeshareSearch,
258
-    },
259
-    {
260
-      path: '/searchLog',
261
-      name: 'SearchLog',
262
-      component: searchLog,
263
-    },
61
+  routes: [{
62
+    path: '/',
63
+    name: 'Home',
64
+    component: HomePage,
65
+  },
66
+  {
67
+    path: '/about/us',
68
+    name: 'aboutus',
69
+    component: AboutUs,
70
+  },
71
+  {
72
+    path: '/about/timeshare',
73
+    name: 'abouttimeshare',
74
+    component: AboutTimeshare,
75
+  },
76
+  {
77
+    path: '/communication/template',
78
+    name: 'template',
79
+    component: TemplatePage,
80
+  },
81
+  {
82
+    path: '/timeshare/sell',
83
+    name: 'TimeshareSell',
84
+    component: TimeshareSell,
85
+  },
86
+  {
87
+    path: '/timeshare/buy',
88
+    name: 'TimeshareBuy',
89
+    component: TimeshareBuy,
90
+  },
91
+  {
92
+    path: '/timeshare/faq',
93
+    name: 'TimeshareFAQ',
94
+    component: TimeshareFAQ,
95
+  },
96
+  {
97
+    path: '/timeshare/myWeeks',
98
+    name: 'MyWeeks',
99
+    component: MyWeeksPage,
100
+  },
101
+  {
102
+    path: ' ',
103
+    name: 'Login',
104
+    component: Login,
105
+  },
106
+  {
107
+    path: '/user/updateProfileInfo',
108
+    name: 'UpdateInfo',
109
+    component: UpdateInfo,
110
+  },
111
+  {
112
+    path: '/user/register',
113
+    name: 'PrivateIndividual',
114
+    component: PrivateIndividual,
115
+  },
116
+  {
117
+    path: '/user/registeragency',
118
+    name: 'Agency',
119
+    component: Agency,
120
+  },
121
+  {
122
+    path: '/property/property/:id',
123
+    name: 'PropertyPage',
124
+    component: PropertyPage,
125
+  },
126
+  {
127
+    path: '/property/:propertyUsageType/search',
128
+    name: 'PropertySearch',
129
+    component: PropertySearch,
130
+  },
131
+  {
132
+    path: '/property/search',
133
+    name: 'PropertySearchTab',
134
+    component: PropertySearch,
135
+  },
136
+  {
137
+    path: '/property/new/:saleType',
138
+    name: 'PropertyNew',
139
+    component: PropertyEdit,
140
+  },
141
+  {
142
+    path: '/property/new/:propertyUsageType/:saleType',
143
+    name: 'PropertyNewFromSearch',
144
+    component: PropertyEdit,
145
+  },
146
+  {
147
+    path: '/property/edit/:id/:propType/:saleType',
148
+    name: 'PropertyEdit',
149
+    component: PropertyEdit,
150
+  },
151
+  {
152
+    path: '/property/admin/list/:by',
153
+    name: 'PropertyListAdmin',
154
+    component: PropertyList,
155
+  },
156
+  {
157
+    path: '/propertyTypes/list',
158
+    name: 'PropertyTypeList',
159
+    component: PropertyTypeList,
160
+  },
161
+  {
162
+    path: '/propertyType/new',
163
+    name: 'PropertyTypeNew',
164
+    component: PropertyType,
165
+  },
166
+  {
167
+    path: '/propertyType/:id',
168
+    name: 'PropertyTypeEdit',
169
+    component: PropertyType,
170
+  },
171
+  {
172
+    path: '/userDefinedGroups/list',
173
+    name: 'UserDefinedGroupsList',
174
+    component: UserDefinedGroups,
175
+  },
176
+  {
177
+    path: '/userDefinedGroups/userDefinedGroup/:id',
178
+    name: 'UserDefinedGroupEdit',
179
+    component: UserDefinedGroup,
180
+  },
181
+  {
182
+    path: '/userDefinedGroups/userDefinedGroup',
183
+    name: 'UserDefinedGroupNew',
184
+    component: UserDefinedGroup,
185
+  },
186
+  {
187
+    path: '/status/list',
188
+    name: 'StatusList',
189
+    component: Status,
190
+  },
191
+  {
192
+    path: '/status/timeshareAdmin',
193
+    name: 'TimeshareAdmin',
194
+    component: timeshareAdminPage,
195
+  },
196
+  {
197
+    path: '/status/tenderWeekAdmin',
198
+    name: 'TenderWeekAdmin',
199
+    component: tenderWeekAdminPage,
200
+  },
201
+  {
202
+    path: '/status/userManagementPage',
203
+    name: 'userManagementPage',
204
+    component: userManagementPage,
205
+  },
206
+  {
207
+    path: '/status/agentUserManagementPage',
208
+    name: 'agentManagementPage',
209
+    component: agentManagementPage,
210
+  },
211
+  {
212
+    path: '/status/changeLogPage',
213
+    name: 'changeLogPage',
214
+    component: changeLogPage,
215
+  },
216
+  {
217
+    path: '/unitConfiguration/list',
218
+    name: 'UnitConfiguration',
219
+    component: UnitConfiguration,
220
+  },
221
+  {
222
+    path: '/contactus',
223
+    name: 'ContactUs',
224
+    component: ContactUs,
225
+  },
226
+  {
227
+    path: '/privacypolicy',
228
+    name: 'PrivacyPolicy',
229
+    component: PrivacyPolicy,
230
+  },
231
+  {
232
+    path: '/resort/:resortCode',
233
+    name: 'ResortPage',
234
+    component: ResortPage,
235
+    props: true,
236
+  },
237
+  {
238
+    path: '/resort/:resortCode/:weekId',
239
+    name: 'UnitPage',
240
+    component: UnitPage,
241
+    props: true,
242
+  },
243
+  {
244
+    path: '/MakeOffer',
245
+    name: 'MakeOffer',
246
+    component: MakeOffer,
247
+  },
248
+  {
249
+    path: '/Offers',
250
+    name: 'Offers',
251
+    component: Offer,
252
+  },
253
+  {
254
+    path: '/timeshare/search',
255
+    name: 'TimeshareSearch',
256
+    component: TimeshareSearch,
257
+  },
258
+  {
259
+    path: '/searchLog',
260
+    name: 'SearchLog',
261
+    component: searchLog,
262
+  },
264 263
   ],
265 264
 });

Loading…
취소
저장