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
d057850d
Commit
d057850d
authored
Jan 18, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修改
parent
c8a45298
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
50 deletions
+52
-50
addEditVehicle.vue
src/pages/vehicle/addEditVehicle.vue
+52
-50
No files found.
src/pages/vehicle/addEditVehicle.vue
View file @
d057850d
...
...
@@ -42,63 +42,66 @@
:label=
"$t('v102.vehicle.title10')"
/>
<q-input
class=
"q-mr-md"
style=
''
v-model=
"search.TeamName"
dense
standout
:label=
"$t('v102.vehicle.title11')"
/>
<div
class=
"q-my-md"
>
<div
class=
"q-my-md"
style=
"margin-top: 0px;"
>
<q-select
style=
"width: 170px;"
v-model=
"search.BusType"
dense
:options=
"vehicletop"
emit-value
option-label=
"Name"
option-value=
"Id"
map-options
clearable
:label=
"$t('v102.vehicle.title13')"
standout
/>
</div>
</div>
<!-- 表格 -->
<table
width=
"100%"
border=
"1"
style=
"text-align:left;border-collapse:collapse;table-layout:fixed;word-break:break-all;border: 1px solid rgba(0, 0, 0, 0.12);
margin: auto;"
>
<tr>
<th
width=
"15%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th1'
)
}}
</th>
<th
width=
"10%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th2'
)
}}
</th>
<th
width=
"30%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th3'
)
}}
</th>
<th
width=
"45%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th4'
)
}}
</th>
</tr>
<template
v-for=
"(item, i) in search.details"
:key=
"i"
>
<div
style=
"max-height:600px;overflow: auto;"
v-if=
"search.details && search.details.length > 0"
>
<table
width=
"100%"
height=
'100%'
border=
"1"
style=
"text-align:left;border-collapse:collapse;table-layout:fixed;word-break:break-all;border: 1px solid rgba(0, 0, 0, 0.12);
margin: auto;"
>
<tr>
<td>
{{
item
.
UseDate
}}
</td>
<td>
DAY
{{
item
.
DayNum
}}
</td>
<td>
<div
class=
"q-my-md"
>
<q-select
style=
"width: 180px;"
v-model=
"item.UseType"
dense
:options=
"listvehicle"
emit-value
option-label=
"Name"
option-value=
"Id"
map-options
clearable
:label=
"$t('v102.vehicle.tatle.th3')"
standout
/>
</div>
<!-- 用车时间 -->
<div
v-if=
"item.UseType == 3 || item.UseType == 4"
>
<q-input
dense
standout
v-model=
"item.UseTime"
mask=
"time"
:label=
"$t('v102.vehicle.title14')"
style=
"width:180px;"
>
<template
v-slot:append
>
<q-icon
name=
"access_time"
class=
"cursor-pointer"
>
<q-popup-proxy
transition-show=
"scale"
transition-hide=
"scale"
>
<q-time
v-model=
"item.UseTime"
>
<div
class=
"row items-center justify-end"
>
<q-btn
v-close-popup
:label=
"$t('v102.vehicle.add5')"
color=
"primary"
flat
/>
</div>
</q-time>
</q-popup-proxy>
</q-icon>
</
template
>
</q-input>
</div>
</td>
<td>
<div>
<q-input
class=
"q-mr-md"
style=
''
v-model=
"item.TripInfo"
dense
standout
:label=
"$t('v102.vehicle.tatle.th4')"
/>
</div>
</td>
<th
width=
"15%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th1'
)
}}
</th>
<th
width=
"10%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th2'
)
}}
</th>
<th
width=
"30%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th3'
)
}}
</th>
<th
width=
"45%"
align=
"center"
class=
"td-title"
>
{{
$t
(
'v102.vehicle.tatle.th4'
)
}}
</th>
</tr>
</template>
</table>
<template
v-for=
"(item, i) in search.details"
:key=
"i"
>
<tr>
<td>
{{
item
.
UseDate
}}
</td>
<td>
DAY
{{
item
.
DayNum
}}
</td>
<td>
<div
class=
"q-my-md"
>
<q-select
style=
"width: 180px;"
v-model=
"item.UseType"
dense
:options=
"listvehicle"
emit-value
option-label=
"Name"
option-value=
"Id"
map-options
clearable
:label=
"$t('v102.vehicle.tatle.th3')"
standout
/>
</div>
<!-- 用车时间 -->
<div
v-if=
"item.UseType == 3 || item.UseType == 4"
>
<q-input
dense
standout
v-model=
"item.UseTime"
mask=
"time"
:label=
"$t('v102.vehicle.title14')"
style=
"width:180px;"
>
<template
v-slot:append
>
<q-icon
name=
"access_time"
class=
"cursor-pointer"
>
<q-popup-proxy
transition-show=
"scale"
transition-hide=
"scale"
>
<q-time
v-model=
"item.UseTime"
>
<div
class=
"row items-center justify-end"
>
<q-btn
v-close-popup
:label=
"$t('v102.vehicle.add5')"
color=
"primary"
flat
/>
</div>
</q-time>
</q-popup-proxy>
</q-icon>
</
template
>
</q-input>
</div>
</td>
<td>
<div>
<q-input
class=
"q-mr-md"
style=
''
v-model=
"item.TripInfo"
dense
standout
:label=
"$t('v102.vehicle.tatle.th4')"
/>
</div>
</td>
</tr>
</template>
</table>
</div>
<!-- 表格 -->
</q-card-section>
<q-card-actions
align=
"right"
class=
"bg-white"
>
...
...
@@ -179,7 +182,6 @@ export default defineComponent({
methods
.
vehicleinit
()
methods
.
vehicleList
()
if
(
data
.
search
.
Id
&&
data
.
search
.
Id
>
0
)
{
console
.
log
(
'444'
)
methods
.
details
()
}
})
...
...
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