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
ba94de61
Commit
ba94de61
authored
Nov 22, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
23ead798
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
5 deletions
+63
-5
ListTable.vue
src/components/hotel/list/ListTable.vue
+6
-2
hotelCard.vue
src/components/hotel/list/hotelCard.vue
+49
-0
HotelOrder.vue
src/pages/hotel/HotelOrder.vue
+7
-2
routes.ts
src/router/routes.ts
+1
-1
No files found.
src/components/hotel/list/ListTable.vue
View file @
ba94de61
...
...
@@ -22,7 +22,10 @@
<
template
v-slot:body=
"props"
>
<q-tr
:props=
"props"
>
<q-td>
<div
class=
"ellipsis-3-lines"
style=
"padding: 7px 16px;width: 200px;white-space: break-spaces;"
>
{{
props
.
row
.
HotelName
}}
</div>
<div
class=
"ellipsis-3-lines cursor-pointer reactive"
style=
"padding: 7px 16px;width: 200px;white-space: break-spaces;"
>
{{
props
.
row
.
HotelName
}}
<!--
<hotelCard
class=
"absolute"
style=
"left: 0;top: 20px;"
></hotelCard>
-->
</div>
</q-td>
<q-td>
<div
class=
"td-item"
>
{{
$t
(
'hotel.table.price'
)
}}
</div>
...
...
@@ -93,8 +96,9 @@ import { useI18n } from 'vue-i18n'
import
HotelPriceList
from
'./HotelPriceList.vue'
import
TableOperation
from
"./TableOperation.vue"
import
SamplePriceList
from
'./SamplePriceList.vue'
import
hotelCard
from
'./hotelCard.vue'
export
default
defineComponent
({
components
:
{
HotelPriceList
,
TableOperation
,
SamplePriceList
},
components
:
{
HotelPriceList
,
TableOperation
,
SamplePriceList
,
hotelCard
},
name
:
'list-table'
,
setup
()
{
const
$q
=
useQuasar
()
...
...
src/components/hotel/list/hotelCard.vue
0 → 100644
View file @
ba94de61
<
template
>
<q-card
class=
"bg-white q-pb-md column"
>
121
</q-card>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
reactive
,
toRefs
,
provide
,
onMounted
,
inject
,
watch
,
onBeforeUnmount
,
computed
}
from
'vue'
import
{
useI18n
}
from
'vue-i18n'
import
useScrollModule
from
'../../../module/scrollbar/scrollModule'
import
{
DirtionmaryHelper
}
from
'../../../config/dictionary'
import
message
from
'../../../utils/message'
import
{
ApiResult
}
from
'../../../@types/enumHelper'
import
HotelService
from
'../../../api/hotel'
import
{
moneyFormat
}
from
'../../../utils/tools'
import
{
useQuasar
}
from
'quasar'
export
default
defineComponent
({
props
:
{},
setup
(
props
,
context
)
{
const
orderstatus
=
inject
(
DirtionmaryHelper
.
HOTEL_CAR_ORDER_STATUS
)
as
any
const
cars
=
inject
(
DirtionmaryHelper
.
HOTEL_CAR_LIST
)
as
any
const
editor
=
inject
(
DirtionmaryHelper
.
HOTEL_UPDATEHOTEL_CAR
)
as
any
const
{
t
}
=
useI18n
()
const
TCNumRef
=
ref
(
null
)
as
any
const
ContactNameRef
=
ref
(
null
)
as
any
const
ContactNumberRef
=
ref
(
null
)
as
any
const
$q
=
useQuasar
()
const
data
=
reactive
({
})
data
.
scrollStyle
=
useScrollModule
().
scrollStyle
const
info
=
ref
(
null
)
const
panning
=
ref
(
false
)
// 今天购买数量
watch
(
cars
.
value
,
(
n
,
o
)
=>
{
methods
.
getMoney
()
})
const
methods
=
{
}
return
{
...
toRefs
(
data
),
cars
,
TCNumRef
,
ContactNameRef
,
ContactNumberRef
,
...
methods
,
moneyFormat
,
info
,
panning
,}
}
})
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/pages/hotel/HotelOrder.vue
View file @
ba94de61
...
...
@@ -8,7 +8,8 @@
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
inject
,
provide
,
reactive
,
toRefs
}
from
'vue'
;
import
{
defineComponent
,
inject
,
provide
,
reactive
,
toRefs
,
onMounted
}
from
'vue'
;
import
{
currentRouter
}
from
'src/router'
import
useMetaModule
from
'../../module/meta/metaModule'
import
{
useI18n
}
from
'vue-i18n'
import
{
DirtionmaryHelper
}
from
'../../config/dictionary'
;
...
...
@@ -37,13 +38,17 @@ export default defineComponent({
ContactName
:
''
,
ContactNumber
:
''
})
search
.
OrderId
=
currentRouter
.
currentRoute
.
value
.
params
.
orderId
provide
(
DirtionmaryHelper
.
HOTEL_ORDER_SEARCH
,
search
)
const
menu
=
inject
(
DirtionmaryHelper
.
MENU_KEYS
)
as
any
menu
.
value
=
3
const
data
=
reactive
({})
const
methods
=
{}
onMounted
(()
=>
{
console
.
log
(
currentRouter
.
currentRoute
.
value
.
params
.
OrderId
,
'===='
)
})
return
{...
toRefs
(
data
),...
methods
,
search
}
}
})
...
...
src/router/routes.ts
View file @
ba94de61
...
...
@@ -7,7 +7,7 @@ const routes: RouteRecordRaw[] = [
children
:
[
{
path
:
''
,
component
:
()
=>
import
(
'pages/Index.vue'
)
},
{
path
:
'/hotel'
,
component
:
()
=>
import
(
'pages/hotel/HotelList.vue'
)
},
{
path
:
'/hotel/order'
,
component
:
()
=>
import
(
'pages/hotel/HotelOrder.vue'
)
},
{
path
:
'/hotel/order
/:orderId?
'
,
component
:
()
=>
import
(
'pages/hotel/HotelOrder.vue'
)
},
{
path
:
'/hotel/modify/:orderId'
,
component
:
()
=>
import
(
'pages/hotel/ModifyHotelOrder.vue'
)
},
{
path
:
'/personal'
,
component
:
()
=>
import
(
'pages/personal/personal.vue'
)}
]
...
...
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