Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
c06eb519
Commit
c06eb519
authored
Oct 30, 2023
by
yangxiaolei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加上分页
parent
8ec19730
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
index.vue
src/business/holiday/views/index.vue
+9
-7
No files found.
src/business/holiday/views/index.vue
View file @
c06eb519
...
...
@@ -66,7 +66,6 @@
</el-table-column>
</el-table>
<div
class=
"pagination-box"
>
<el-pagination
style=
"margin-right: 30px;"
@
size-change=
"handleSizeChange"
...
...
@@ -74,10 +73,8 @@
:current-page
.
sync=
"pagination.pageIndex"
:page-sizes=
"[10, 20, 50, 100, 500]"
:page-size=
"pagination.pageSize"
layout=
"sizes, prev, pager, next"
:total=
"pagination.total"
>
</el-pagination>
</div>
</div>
</div>
<el-dialog
title=
"节假日导入"
:visible
.
sync=
"importDialog"
class=
"eContainer-dialog"
center
>
...
...
@@ -106,6 +103,7 @@
}
from
"~/utils/format"
;
import
OperateParams
from
"../model/OperateParams"
import
CodeTable
from
"~/config/CodeTable"
;
import
commonFunctions
from
'~/mixin/commonFunctions.js'
;
// import {
// insertParaApv,
// importParaApvFile
...
...
@@ -113,6 +111,7 @@
export
default
{
name
:
"holiday"
,
mixins
:
[
commonFunctions
],
components
:
{
'm-currency-list'
:
CurrencyList
},
...
...
@@ -129,7 +128,7 @@
//以key-value形式存储数据 发送文件
formData
:
new
FormData
(),
//文件上传进度显示
loading
:
false
,
fileName
:
""
,
columnsConfig
:
[{
type
:
'selection'
,
...
...
@@ -193,12 +192,14 @@
this
.
handleSearch
();
},
async
getList
(){
const
loading
=
this
.
loading
();
const
res
=
await
this
.
$Api
.
post
(
'/service/hol/list'
,
{
...
this
.
searchParams
});
if
(
res
.
data
&&
res
.
data
.
length
)
{
if
(
res
.
respCode
===
"AAAAAA"
)
{
loading
.
close
()
this
.
tableData
=
res
.
data
this
.
pagination
.
total
=
res
.
data
.
length
this
.
pagination
.
total
=
Number
(
res
.
data
.
length
)
}
},
httpRequest
(
params
)
{
...
...
@@ -264,9 +265,10 @@
this
.
holidayList
=
[]
this
.
searchParams
=
{
pageNum
:
this
.
pagination
.
pageIndex
,
pageSize
:
this
.
pagination
.
pageSize
,
...
params
.
data
}
console
.
log
(
"this.searchParams=>"
,
this
.
searchParams
)
this
.
getList
()
},
handleReset
()
{
...
...
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