Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
5efb850b
Commit
5efb850b
authored
Dec 02, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'base-modify'
parents
f17d638f
a6222297
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
21 deletions
+30
-21
index.js
src/router/index.js
+7
-7
vehicleStatistics.vue
src/views/financial/vehicleStatistics.vue
+5
-2
bookInfoViewer.vue
src/views/vehicle/bookInfoViewer.vue
+2
-2
index.vue
src/views/vehicle/vehicleInfo/index.vue
+16
-10
No files found.
src/router/index.js
View file @
5efb850b
...
@@ -729,12 +729,7 @@ export const asyncRouterMap = [{
...
@@ -729,12 +729,7 @@ export const asyncRouterMap = [{
component
:
_import
(
'statistics/orderStatistics'
),
component
:
_import
(
'statistics/orderStatistics'
),
name
:
'订单统计'
,
name
:
'订单统计'
,
authority
:
'orderStatistics'
authority
:
'orderStatistics'
},
{
}
path
:
'vehicleStatistics'
,
component
:
_import
(
'statistics/vehicleStatistics'
),
name
:
'车辆统计'
,
authority
:
'vehicleStatistics'
}
]
]
},
},
{
{
...
@@ -759,7 +754,12 @@ export const asyncRouterMap = [{
...
@@ -759,7 +754,12 @@ export const asyncRouterMap = [{
component
:
_import
(
'financial/branchCompany'
),
component
:
_import
(
'financial/branchCompany'
),
name
:
'总公司报表'
,
name
:
'总公司报表'
,
authority
:
'branchCompany'
authority
:
'branchCompany'
}
},
{
path
:
'vehicleStatistics'
,
component
:
_import
(
'financial/vehicleStatistics'
),
name
:
'车辆统计'
,
authority
:
'vehicleStatistics'
}
]
]
}
}
];
];
src/views/
statistics
/vehicleStatistics.vue
→
src/views/
financial
/vehicleStatistics.vue
View file @
5efb850b
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
filterable
filterable
placeholder=
"请选择"
placeholder=
"请选择"
getAllBranchCompanyChange
getAllBranchCompanyChange
>
>
<el-option
:key=
"undefined"
label=
"无"
:value=
"undefined"
></el-option>
<el-option
:key=
"undefined"
label=
"无"
:value=
"undefined"
></el-option>
<el-option
<el-option
v-for=
"item in allBranchCompany"
v-for=
"item in allBranchCompany"
...
@@ -65,7 +65,10 @@
...
@@ -65,7 +65,10 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"停靠车辆数量"
>
<el-table-column
align=
"center"
label=
"停靠车辆数量"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
vehicleNum
}}
</span>
<!--
<span>
{{
scope
.
row
.
vehicleNum
}}
</span>
-->
<span
v-if=
"listQuery.type==1"
>
{{
scope
.
row
.
vehicleNum
}}
</span>
<span
v-if=
"listQuery.type==2"
>
{{
Math
.
ceil
(
scope
.
row
.
vehicleNum
/
7
)
}}
</span>
<span
v-if=
"listQuery.type==3"
>
{{
Math
.
ceil
(
scope
.
row
.
vehicleNum
/
30
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/vehicle/bookInfoViewer.vue
View file @
5efb850b
...
@@ -26,13 +26,13 @@
...
@@ -26,13 +26,13 @@
<th
style=
"font-size: 30px"
>
五
</th>
<th
style=
"font-size: 30px"
>
五
</th>
<th
style=
"font-size: 30px"
>
六
</th>
<th
style=
"font-size: 30px"
>
六
</th>
</tr>
</tr>
<tr
v-for=
" row in getEevryDayThisMonth "
class=
"el-date-table__row"
>
<
!--
<
tr
v-for=
" row in getEevryDayThisMonth "
class=
"el-date-table__row"
>
<td
v-for=
" col in row "
:class=
"col.class"
:style=
"col.style"
>
<td
v-for=
" col in row "
:class=
"col.class"
:style=
"col.style"
>
{{
col
.
day
}}
{{
col
.
day
}}
<span
v-if=
" col.isBooked === true "
<span
v-if=
" col.isBooked === true "
:style=
"
{position: 'relative', fontSize: 10+'px', color: 'rgba(15, 159, 214, 0.6)', float: 'right'}">订
</span>
:style=
"
{position: 'relative', fontSize: 10+'px', color: 'rgba(15, 159, 214, 0.6)', float: 'right'}">订
</span>
</td>
</td>
</tr>
</tr>
-->
</tbody>
</tbody>
</table>
-->
</table>
-->
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
src/views/vehicle/vehicleInfo/index.vue
View file @
5efb850b
...
@@ -737,7 +737,7 @@
...
@@ -737,7 +737,7 @@
<el-form-item
label=
"行驶证"
prop=
"drivingLicensePath"
:style=
"{display:'block'}"
>
<el-form-item
label=
"行驶证"
prop=
"drivingLicensePath"
:style=
"{display:'block'}"
>
<el-upload
<el-upload
class=
"avatar-uploader"
class=
"avatar-uploader"
:action=
"BASE_API + '/
vehicle/vehicleInfo/upload/drivingLicense
'"
:action=
"BASE_API + '/
api/universal/file/app/unauth/admin/upload
'"
:show-file-list=
"false"
:show-file-list=
"false"
:headers=
"getHeaderWithToken"
:headers=
"getHeaderWithToken"
:on-success=
"handleAvatarSuccess"
:on-success=
"handleAvatarSuccess"
...
@@ -763,7 +763,7 @@
...
@@ -763,7 +763,7 @@
<el-upload
<el-upload
class=
"avatar-uploader"
class=
"avatar-uploader"
:action=
"BASE_API + '/
vehicle/vehicleInfo/upload/drivingLicense
'"
:action=
"BASE_API + '/
api/universal/file/app/unauth/admin/upload
'"
:show-file-list=
"false"
:show-file-list=
"false"
:headers=
"getHeaderWithToken"
:headers=
"getHeaderWithToken"
:on-success=
"handleAvatarSuccessF"
:on-success=
"handleAvatarSuccessF"
...
@@ -798,8 +798,8 @@
...
@@ -798,8 +798,8 @@
</el-row>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancel('form')"
>
取
消
</el-button>
<el-button
@
click=
"cancel('form')"
>
取消
</el-button>
<el-button
v-if=
"dialogStatus=='create'"
type=
"primary"
@
click=
"create('form')"
>
确
定
</el-button>
<el-button
v-if=
"dialogStatus=='create'"
type=
"primary"
@
click=
"create('form')"
>
确定
</el-button>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"update('form')"
@
click=
"update('form')"
...
@@ -1182,7 +1182,8 @@ export default {
...
@@ -1182,7 +1182,8 @@ export default {
}
}
})
})
},
},
trigger
:
'blur'
trigger
:
'blur'
,
required
:
true
}
}
],
],
engineNum
:
[
engineNum
:
[
...
@@ -2448,11 +2449,15 @@ export default {
...
@@ -2448,11 +2449,15 @@ export default {
this
.
dialogForm4LicenceVisible
=
true
this
.
dialogForm4LicenceVisible
=
true
},
},
getDrivingLicenseUrl
(
drivingLicensePath
)
{
getDrivingLicenseUrl
(
drivingLicensePath
)
{
return
(
if
(
drivingLicensePath
.
indexOf
(
'https'
)
>
-
1
)
{
process
.
env
.
BASE_API
+
return
drivingLicensePath
'/vehicle/vehicleInfo/download/drivingLicense?realFileRelPath='
+
}
else
{
encodeURI
(
drivingLicensePath
)
return
(
)
process
.
env
.
BASE_API
+
'/vehicle/vehicleInfo/download/drivingLicense?realFileRelPath='
+
encodeURI
(
drivingLicensePath
)
)
}
},
},
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
this
.
form
.
drivingLicensePath
=
res
.
data
this
.
form
.
drivingLicensePath
=
res
.
data
...
@@ -2901,6 +2906,7 @@ export default {
...
@@ -2901,6 +2906,7 @@ export default {
}
}
})
})
}
else
{
}
else
{
this
.
$message
(
'必填项不能为空'
)
return
false
return
false
}
}
})
})
...
...
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