Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SwitchRoom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fz2907
SwitchRoom
Commits
cad4e93f
Commit
cad4e93f
authored
2 years ago
by
fz2907
Browse files
Options
Downloads
Patches
Plain Diff
Main offer UI done
parent
e11e9ad7
No related branches found
Branches containing commit
No related tags found
3 merge requests
!27
Sprint 1 done
,
!20
WishListPage and OfferPage UI done.
,
!11
from sprint 1 to my local
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FrontendFolder/switch-room/src/components/OfferPage.vue
+9
-39
9 additions, 39 deletions
FrontendFolder/switch-room/src/components/OfferPage.vue
FrontendFolder/switch-room/src/models/OfferFormModel.ts
+2
-2
2 additions, 2 deletions
FrontendFolder/switch-room/src/models/OfferFormModel.ts
with
11 additions
and
41 deletions
FrontendFolder/switch-room/src/components/OfferPage.vue
+
9
−
39
View file @
cad4e93f
...
...
@@ -16,7 +16,7 @@
</el-form-item>
<el-form-item
label=
"Zip Code"
prop=
"_zipCode"
>
<el-col
:span=
"2"
>
<el-input
v-model=
"ruleForm._zipCode"
/>
<el-input
v-model=
"ruleForm._zipCode"
placeholder=
"24061.."
/>
</el-col>
</el-form-item>
<el-form-item
label=
"Space Type"
prop=
"_spaceType"
>
...
...
@@ -130,57 +130,27 @@ const ruleForm = reactive(new OfferFormModel());
const
rules
=
reactive
<
FormRules
>
({
_spaceLocateCity
:
[
{
required
:
true
,
message
:
"
Please input Activity name
"
,
trigger
:
"
blur
"
},
{
min
:
3
,
max
:
5
,
message
:
"
Length should be 3 to 5
"
,
trigger
:
"
blur
"
},
],
region
:
[
{
required
:
true
,
message
:
"
Please select Activity zone
"
,
trigger
:
"
change
"
,
},
],
count
:
[
{
required
:
true
,
message
:
"
Please
select Activity count
"
,
trigger
:
"
change
"
,
message
:
"
Please
give your space location
"
,
trigger
:
"
blur
"
,
},
{
min
:
0
,
max
:
20
,
message
:
"
Length should be 0 to 20
"
,
trigger
:
"
blur
"
},
],
date1
:
[
_zipCode
:
[
{
type
:
"
date
"
,
required
:
true
,
message
:
"
Please
pick a dat
e
"
,
trigger
:
"
change
"
,
message
:
"
Please
give your zip code of your spac
e
"
,
trigger
:
"
blur
"
,
},
],
date2
:
[
_spaceType
:
[
{
type
:
"
date
"
,
required
:
true
,
message
:
"
Please
pick a tim
e
"
,
message
:
"
Please
select your space typ
e
"
,
trigger
:
"
change
"
,
},
],
type
:
[
{
type
:
"
array
"
,
required
:
true
,
message
:
"
Please select at least one activity type
"
,
trigger
:
"
change
"
,
},
],
resource
:
[
{
required
:
true
,
message
:
"
Please select activity resource
"
,
trigger
:
"
change
"
,
},
],
desc
:
[
{
required
:
true
,
message
:
"
Please input activity form
"
,
trigger
:
"
blur
"
},
],
});
const
submitForm
=
async
(
formEl
:
FormInstance
|
undefined
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
FrontendFolder/switch-room/src/models/OfferFormModel.ts
+
2
−
2
View file @
cad4e93f
export
class
OfferFormModel
{
private
readonly
_offerId
:
number
;
private
readonly
_userId
:
number
;
public
_zipCode
:
number
;
public
_zipCode
:
number
|
string
;
public
_spaceType
:
string
;
public
_otherSpaceType
:
string
;
public
_spaceLocateCity
:
string
;
...
...
@@ -15,7 +15,7 @@ export class OfferFormModel {
constructor
(
offerId
=
-
1
,
userId
=
-
1
,
zipCode
=
-
1
,
zipCode
=
""
,
spaceType
=
""
,
otherSpaceType
=
""
,
spaceLocateCity
=
""
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment