Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
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
Merge Requests
0
Merge Requests
0
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
Nguyễn Hải Sơn
quasar-web-base
Commits
eff70c5c
Commit
eff70c5c
authored
Apr 10, 2023
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0fe1b605
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
23 deletions
+10
-23
updateBooking.vue
src/components/booking/updateBooking.vue
+8
-22
index.vue
src/pages/danh-sach-booking/index.vue
+2
-1
No files found.
src/components/booking/updateBooking.vue
View file @
eff70c5c
...
@@ -77,17 +77,6 @@
...
@@ -77,17 +77,6 @@
</q-popup-proxy>
</q-popup-proxy>
</q-input> -->
</q-input> -->
<div
class=
"cols-6 q-mb-md"
>
<q-input
v-model=
"customer"
outlined
hide-bottom-space
dense
type=
"text"
label=
"Tên khách hàng"
/>
</div>
<div
class=
"cols-6 q-mb-md"
>
<div
class=
"cols-6 q-mb-md"
>
<q-input
<q-input
v-model=
"phone"
v-model=
"phone"
...
@@ -237,7 +226,7 @@ export default defineComponent({
...
@@ -237,7 +226,7 @@ export default defineComponent({
},
},
setup
(
props
,
context
)
{
setup
(
props
,
context
)
{
const
content
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
content
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
customer
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
phone
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
phone
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
contractTimeFrom
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
contractTimeFrom
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
contractTimeTo
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
contractTimeTo
:
Ref
<
string
|
null
>
=
ref
(
null
);
...
@@ -249,7 +238,6 @@ export default defineComponent({
...
@@ -249,7 +238,6 @@ export default defineComponent({
()
=>
props
.
open
,
()
=>
props
.
open
,
(
value
)
=>
{
(
value
)
=>
{
if
(
value
)
{
if
(
value
)
{
console
.
log
(
props
.
data
,
'1231231231'
);
void
getDataItem
();
void
getDataItem
();
}
}
}
}
...
@@ -257,7 +245,6 @@ export default defineComponent({
...
@@ -257,7 +245,6 @@ export default defineComponent({
const
getDataItem
=
()
=>
{
const
getDataItem
=
()
=>
{
content
.
value
=
props
.
data
.
content
;
content
.
value
=
props
.
data
.
content
;
customer
.
value
=
props
.
data
.
userName
;
phone
.
value
=
props
.
data
.
customerDto
.
phone
;
phone
.
value
=
props
.
data
.
customerDto
.
phone
;
contractTimeFrom
.
value
=
props
.
data
.
fromTime
;
contractTimeFrom
.
value
=
props
.
data
.
fromTime
;
contractTimeTo
.
value
=
props
.
data
.
toTime
;
contractTimeTo
.
value
=
props
.
data
.
toTime
;
...
@@ -275,13 +262,12 @@ export default defineComponent({
...
@@ -275,13 +262,12 @@ export default defineComponent({
id
:
props
.
data
.
id
,
id
:
props
.
data
.
id
,
status
:
1
,
status
:
1
,
address
:
location
.
value
,
address
:
location
.
value
,
content
:
content
.
value
,
content
:
content
.
value
,
expectFee
:
money
.
value
,
expectFee
:
money
.
value
,
fromTime
:
contractTimeFrom
.
value
,
fromTime
:
contractTimeFrom
.
value
,
toTime
:
contractTimeTo
.
value
,
toTime
:
contractTimeTo
.
value
,
email
:
email
.
value
,
phoneCustomer
:
phone
.
value
,
phoneCustomer
:
phone
.
value
,
customerName
:
customer
.
value
,
},
},
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
if
(
browserResult
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
browserResult
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
...
@@ -315,7 +301,7 @@ export default defineComponent({
...
@@ -315,7 +301,7 @@ export default defineComponent({
//
//
money
,
money
,
content
,
content
,
customer
,
phone
,
phone
,
contractTimeFrom
,
contractTimeFrom
,
contractTimeTo
,
contractTimeTo
,
...
...
src/pages/danh-sach-booking/index.vue
View file @
eff70c5c
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
>
>
<
template
v-slot:body-cell-action=
"rowData"
>
<
template
v-slot:body-cell-action=
"rowData"
>
<q-td
style=
"padding: 0; text-align: center"
>
<q-td
style=
"padding: 0; text-align: center"
>
<div
style=
"display: flex
;
"
>
<div
style=
"display: flex"
>
<q-btn
<q-btn
flat
flat
round
round
...
@@ -339,6 +339,7 @@
...
@@ -339,6 +339,7 @@
:open=
"openUpdate"
:open=
"openUpdate"
@
toggle=
"openUpdate = !openUpdate"
@
toggle=
"openUpdate = !openUpdate"
:data=
"detailInfoBooking"
:data=
"detailInfoBooking"
@
success=
"getListBooking"
></update>
></update>
</div>
</div>
</div>
</div>
...
...
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