Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
bigwood
Commits
3f01643f
Commit
3f01643f
authored
Nov 18, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
dee49704
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
ListCar.vue
src/components/hotel/list/ListCar.vue
+2
-0
ListTable.vue
src/components/hotel/list/ListTable.vue
+8
-0
dictionary.ts
src/config/dictionary.ts
+5
-0
HotelList.vue
src/pages/hotel/HotelList.vue
+2
-0
No files found.
src/components/hotel/list/ListCar.vue
View file @
3f01643f
...
...
@@ -125,6 +125,7 @@ import { useQuasar } from 'quasar'
export
default
defineComponent
({
props
:
{},
setup
(
props
,
context
)
{
const
orderstatus
=
inject
(
DirtionmaryHelper
.
HOTEL_CAR_ORDER_STATUS
)
as
Boolean
const
cars
=
inject
(
DirtionmaryHelper
.
HOTEL_CAR_LIST
)
as
any
const
editor
=
inject
(
DirtionmaryHelper
.
HOTEL_UPDATEHOTEL_CAR
)
as
any
const
{
t
}
=
useI18n
()
...
...
@@ -225,6 +226,7 @@ export default defineComponent({
message
.
successMsg
(
`
${
t
(
'success'
)}
`
)
localStorage
.
removeItem
(
DirtionmaryHelper
.
HOTEL_HOTELCARS_CACHE
)
cars
.
value
=
[]
orderstatus
.
value
=
true
context
.
emit
(
'success'
)
}
else
{
message
.
errorMsg
(
r
.
data
.
message
)
...
...
src/components/hotel/list/ListTable.vue
View file @
3f01643f
...
...
@@ -99,6 +99,7 @@ export default defineComponent({
setup
()
{
const
$q
=
useQuasar
()
const
{
t
}
=
useI18n
()
const
orderstatus
=
inject
(
DirtionmaryHelper
.
HOTEL_CAR_ORDER_STATUS
)
as
Boolean
const
search
=
inject
(
DirtionmaryHelper
.
HOTEL_QUERY_PARAM
)
as
any
const
updateHotel
=
inject
(
DirtionmaryHelper
.
HOTEL_UPDATEHOTEL_CAR
)
as
any
watch
(
search
,
(
n
,
o
)
=>
{
...
...
@@ -113,6 +114,13 @@ export default defineComponent({
data
.
orderSubmitItemObj
=
null
data
.
orderSubmitObj
=
null
}
methods
.
initHotels
()
})
watch
(
orderstatus
,(
n
,
o
)
=>
{
if
(
orderstatus
.
value
==
true
){
methods
.
initHotels
()
orderstatus
.
value
=
false
}
})
const
data
=
reactive
({
...
...
src/config/dictionary.ts
View file @
3f01643f
...
...
@@ -43,5 +43,10 @@ class DirtionmaryHelper {
* 要修改的酒店預訂對象
*/
static
readonly
HOTEL_UPDATEHOTEL_CAR
=
"hotelupdatecar"
/**
* 酒店訂單確定下單狀態
*/
static
readonly
HOTEL_CAR_ORDER_STATUS
=
"hotelcarorderstatus"
}
export
{
userDictionmary
,
DirtionmaryHelper
}
src/pages/hotel/HotelList.vue
View file @
3f01643f
...
...
@@ -48,6 +48,8 @@ export default defineComponent({
provide
(
DirtionmaryHelper
.
HOTEL_CAR_LIST
,
HotelCarList
)
const
updateObj
=
ref
<
any
>
({})
provide
(
DirtionmaryHelper
.
HOTEL_UPDATEHOTEL_CAR
,
updateObj
)
const
orderstatus
=
ref
(
false
)
provide
(
DirtionmaryHelper
.
HOTEL_CAR_ORDER_STATUS
,
orderstatus
)
const
menu
=
inject
(
DirtionmaryHelper
.
MENU_KEYS
)
as
any
menu
.
value
=
2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment