Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chehuidong
saas-manage
Commits
f5a117bb
Commit
f5a117bb
authored
Jan 04, 2024
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 运输商列表
parent
63b320ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
194 additions
and
0 deletions
+194
-0
src/router/index.js
+6
-0
src/views/home/navMenu.vue
+8
-0
src/views/system/transporters.vue
+180
-0
No files found.
src/router/index.js
View file @
f5a117bb
...
...
@@ -89,6 +89,12 @@ const routes = [
name
:
'system_management'
,
meta
:
{
title
:
'客户管理'
},
},
{
path
:
'/saas/logistics/transporters'
,
component
:
()
=>
import
(
'@/views/system/transporters.vue'
),
name
:
'system_transporters'
,
meta
:
{
title
:
'运输商列表'
},
},
],
},
]
...
...
src/views/home/navMenu.vue
View file @
f5a117bb
...
...
@@ -228,6 +228,14 @@ export default {
index
:
'/saas/management'
,
children
:
[],
},
{
id
:
9
,
path
:
''
,
label
:
'运输商列表'
,
icon
:
'el-icon-s-operation'
,
index
:
'/saas/logistics/transporters'
,
children
:
[],
},
],
},
],
...
...
src/views/system/transporters.vue
0 → 100644
View file @
f5a117bb
<
template
>
<div
class=
"wrap card"
>
<div
class=
"search"
>
<el-form
:model=
"searchForm"
ref=
"form"
:inline=
"true"
size=
"small"
v-enter-submit=
"search"
@
submit
.
native
.
prevent
>
<el-form-item
label=
"名称"
>
<el-input
style=
"width: 300px"
v-model=
"searchForm.name"
placeholder=
"请输入名称&中文名称&英文名称"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"search"
>
查询
</el-button
>
</el-form-item>
</el-form>
</div>
<div
class=
"table_wrap"
>
<table-view
:sourceData=
"sourceData"
:tableColumns=
"tableColumns"
></table-view>
<!--
<vxe-table
border
ref=
"xTable"
height=
"100%"
show-overflow
size=
"mini"
@
scroll=
"scrollChange"
:data=
"sourceData"
>
<vxe-column
v-for=
"(config, index) in tableColumns"
:key=
"index"
:width=
"config.width"
:type=
"config.type"
:field=
"config.key"
:title=
"config.label"
></vxe-column>
</vxe-table>
-->
</div>
<div
class=
"pagination"
>
<el-pagination
layout=
"sizes, total, prev, pager, next, jumper"
background
:total=
"paginationOptions.total"
:page-size=
"paginationOptions.pageSize"
:current-page=
"paginationOptions.currentPage"
@
size-change=
"sizeChange"
@
current-change=
"onCurrentChange"
>
</el-pagination>
</div>
</div>
</
template
>
<
script
>
import
axios
from
'../../common/api/axios'
import
TableView
from
'@/common/components/base/tableView.vue'
export
default
{
name
:
'logistics_transporters'
,
components
:
{
TableView
,
},
data
()
{
return
{
sourceData
:
[],
searchForm
:
{},
isLoad
:
false
,
bodyHeight
:
0
,
currentPage
:
1
,
sourceDataTotal
:
0
,
paginationOptions
:
{
total
:
0
,
pageSize
:
100
,
currentPage
:
1
,
},
}
},
computed
:
{
tableColumns
()
{
return
[
{
label
:
'编码'
,
key
:
'code'
},
{
label
:
'中文名称'
,
key
:
'nameCn'
,
align
:
'left'
},
{
label
:
'英文名称'
,
key
:
'nameEn'
,
align
:
'left'
},
{
label
:
'港澳名称'
,
key
:
'nameHk'
,
align
:
'left'
},
{
label
:
'链接'
,
key
:
'url'
,
align
:
'left'
},
]
},
},
mounted
()
{
this
.
getlist
()
},
methods
:
{
onCurrentChange
(
currentPage
)
{
this
.
paginationOptions
.
currentPage
=
currentPage
this
.
getlist
()
},
sizeChange
(
pageSize
)
{
this
.
paginationOptions
.
pageSize
=
pageSize
this
.
getlist
()
},
search
()
{
this
.
getlist
()
},
scrollChange
({
scrollTop
,
scrollHeight
,
bodyHeight
})
{
if
(
!
this
.
bodyHeight
)
{
this
.
bodyHeight
=
bodyHeight
}
if
(
scrollTop
+
this
.
bodyHeight
>=
scrollHeight
)
{
if
(
!
this
.
isLoad
)
{
this
.
isLoad
=
true
this
.
currentPage
++
if
(
this
.
sourceData
.
length
>=
this
.
sourceDataTotal
)
{
return
}
this
.
getlist
(
true
)
}
}
},
getlist
()
{
const
{
pageSize
,
currentPage
}
=
this
.
paginationOptions
axios
.
post
(
'LogisticsCarrierCode/list_page'
,
{
pageSize
,
currentPage
,
...
this
.
searchForm
,
})
.
then
((
res
)
=>
{
this
.
sourceData
=
res
.
data
.
records
this
.
paginationOptions
.
total
=
res
.
data
.
total
})
},
},
}
</
script
>
<
style
scoped
>
.wrap
{
height
:
100%
;
overflow
:
hidden
;
display
:
flex
;
flex-direction
:
column
;
}
.table-wrap
{
background
:
#fff
;
flex
:
1
;
overflow
:
hidden
;
}
.table_wrap
{
vertical-align
:
middle
;
}
.table_wrap
>>>
.vxe-checkbox--label
{
padding-left
:
0
;
}
.table_wrap
>>>
.vxe-header--column.tablecolgroup
,
.table_wrap
>>>
.vxe-header--column.col--ellipsis.tablecolgroup
{
height
:
22px
!important
;
}
.table_wrap
>>>
.vxe-cell
{
/* max-height: 30px !important; */
padding-left
:
5px
;
padding-right
:
5px
;
}
</
style
>
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