Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
Project
Project
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
Administrator
web-monitor
Commits
0305343c
Commit
0305343c
authored
Mar 04, 2022
by
neogcg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置管理分页优化
parent
7a8fa80c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
50 deletions
+54
-50
fsuTable.vue
src/views/setting/statistics/comp/fsuTable.vue
+7
-6
leakyTable.vue
src/views/setting/statistics/comp/leakyTable.vue
+26
-18
monitorTable.vue
src/views/setting/statistics/comp/monitorTable.vue
+6
-6
railWayTable.vue
src/views/setting/statistics/comp/railWayTable.vue
+9
-14
stationTable.vue
src/views/setting/statistics/comp/stationTable.vue
+6
-6
No files found.
src/views/setting/statistics/comp/fsuTable.vue
View file @
0305343c
...
...
@@ -182,8 +182,8 @@
</el-table>
<pagination
:limit=
"params.pageS
ize"
:page=
"
params.pageNum
"
:limit=
"FSUForm.s
ize"
:page=
"
FSUForm.current
"
:total=
"total"
class=
"pagination"
@
pagination=
"handlePageChange"
...
...
@@ -191,13 +191,13 @@
</div>
</template>
<
script
>
import
Pagination
from
"@/components/Pagination"
;
import
{
fsulist
,
fsubatchDelete
,
fsudetail
}
from
"../../api"
;
import
{
successAlert
,
warningAlert
}
from
"@/utils/alert"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
export
default
{
props
:
[],
components
:
{
Pagination
},
components
:
{
},
data
()
{
return
{
railWaySelect
:
[],
...
...
@@ -269,6 +269,7 @@ export default {
},
searchQuery
()
{
this
.
getTableData
();
},
reset
()
{
this
.
FSUForm
=
{
...
...
@@ -302,8 +303,8 @@ export default {
});
},
handlePageChange
(
pageData
)
{
this
.
params
.
pageS
ize
=
pageData
.
size
;
this
.
params
.
pageNum
=
pageData
.
page
;
this
.
FSUForm
.
s
ize
=
pageData
.
size
;
this
.
FSUForm
.
current
=
pageData
.
page
;
this
.
getTableData
();
},
getTableData
()
{
...
...
src/views/setting/statistics/comp/leakyTable.vue
View file @
0305343c
...
...
@@ -40,15 +40,15 @@
</el-form-item>
<el-form-item
label=
"漏缆型号:"
>
<el-select
placeholder=
"请
输入
漏缆型号"
placeholder=
"请
选择
漏缆型号"
v-model=
"leakyCableForm.leakyCableMode"
clearable
>
<el-option
v-for=
"item in
leakySelec
t"
:key=
"item.
id
"
:label=
"item.leaky
Nam
e"
:value=
"item.
id
"
v-for=
"item in
equipTypeLis
t"
:key=
"item.
leakyCableMode
"
:label=
"item.leaky
CableMod
e"
:value=
"item.
leakyCableMode
"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -209,8 +209,8 @@
</el-table-column>
</el-table>
<pagination
:limit=
"
params.pageS
ize"
:page=
"
params.pageNum
"
:limit=
"
leakyCableForm.s
ize"
:page=
"
leakyCableForm.current
"
:total=
"total"
class=
"pagination"
@
pagination=
"handlePageChange"
...
...
@@ -218,23 +218,25 @@
</div>
</template>
<
script
>
import
Pagination
from
"@/components/Pagination"
;
import
{
leakyCablelist
,
leakyCablebatchDelete
,
leakyCabledetail
,
}
from
"../../api"
;
import
{
cableTypeEnum
}
from
"../../../maintain/api"
;
import
{
successAlert
,
warningAlert
}
from
"@/utils/alert"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
export
default
{
props
:
[],
components
:
{
Pagination
},
components
:
{
},
data
()
{
return
{
leakySelect
:
[],
railWaySelect
:
[],
stationSelect2
:
[],
fsuSelect2
:
[],
equipTypeList
:[],
monitor2
:
[],
leakyCableForm
:
{
wayId
:
""
,
...
...
@@ -245,7 +247,7 @@ export default {
leakyCableCode
:
""
,
leakyCableDescribe
:
""
,
leakyCableMode
:
""
,
current
:
1
,
current
:
1
,
size
:
10
,
},
tableData
:
[],
...
...
@@ -309,11 +311,12 @@ export default {
});
},
refresh
()
{
this
.
reset
()
this
.
reset
()
;
this
.
getTableData
();
},
searchQuery
()
{
this
.
getTableData
();
this
.
getTableData
();
},
reset
()
{
this
.
leakyCableForm
=
{
...
...
@@ -326,7 +329,7 @@ export default {
leakyCableDescribe
:
""
,
leakyCableMode
:
""
,
current
:
1
,
current
:
1
,
size
:
10
,
};
},
...
...
@@ -350,8 +353,8 @@ export default {
leakyCabledetail
({
id
}).
then
((
res
)
=>
{});
},
handlePageChange
(
pageData
)
{
this
.
params
.
pageS
ize
=
pageData
.
size
;
this
.
params
.
pageNum
=
pageData
.
page
;
this
.
leakyCableForm
.
s
ize
=
pageData
.
size
;
this
.
leakyCableForm
.
current
=
pageData
.
page
;
this
.
getTableData
();
},
getTableData
()
{
...
...
@@ -365,6 +368,12 @@ export default {
this
.
total
=
res
.
total
;
});
},
getLeakyCablel
()
{
cableTypeEnum
().
then
((
res
)
=>
{
let
list
=
res
||
[];
this
.
equipTypeList
=
list
;
});
},
},
mounted
()
{
this
.
getTableData
();
...
...
@@ -372,9 +381,8 @@ export default {
this
.
asyncstationList
();
this
.
asyncfsuList
();
this
.
asyncmonitorList
();
this
.
getLeakyCablel
();
this
.
railWaySelect
=
this
.
railWaylist
;
this
.
monitorSelect
=
this
.
monitorEquiplist
;
},
};
...
...
src/views/setting/statistics/comp/monitorTable.vue
View file @
0305343c
...
...
@@ -175,8 +175,8 @@
</el-table-column>
</el-table>
<pagination
:limit=
"
params.pageS
ize"
:page=
"
params.pageNum
"
:limit=
"
monitorForm.s
ize"
:page=
"
monitorForm.current
"
:total=
"total"
class=
"pagination"
@
pagination=
"handlePageChange"
...
...
@@ -184,7 +184,7 @@
</div>
</template>
<
script
>
import
Pagination
from
"@/components/Pagination"
;
import
{
monitorEquiplist
,
monitorEquipbatchDelete
,
...
...
@@ -194,7 +194,7 @@ import { successAlert, warningAlert } from "@/utils/alert";
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
export
default
{
props
:
[],
components
:
{
Pagination
},
components
:
{
},
data
()
{
return
{
railWaySelect
:
[],
...
...
@@ -306,8 +306,8 @@ export default {
monitorEquipdetail
({
id
}).
then
((
res
)
=>
{});
},
handlePageChange
(
pageData
)
{
this
.
params
.
pageS
ize
=
pageData
.
size
;
this
.
params
.
pageNum
=
pageData
.
page
;
this
.
monitorForm
.
s
ize
=
pageData
.
size
;
this
.
monitorForm
.
current
=
pageData
.
page
;
this
.
getTableData
();
},
getTableData
()
{
...
...
src/views/setting/statistics/comp/railWayTable.vue
View file @
0305343c
...
...
@@ -110,8 +110,8 @@
</el-table>
<pagination
:limit=
"
params.pageS
ize"
:page=
"
params.pageNum
"
:limit=
"
railData.s
ize"
:page=
"
railData.current
"
:total=
"total"
class=
"pagination"
@
pagination=
"handlePageChange"
...
...
@@ -119,7 +119,7 @@
</div>
</template>
<
script
>
import
Pagination
from
"@/components/Pagination"
;
import
{
railWaylist
,
railWaydetail
,
...
...
@@ -130,7 +130,7 @@ import { mapGetters, mapActions } from "vuex";
import
{
successAlert
,
warningAlert
}
from
"@/utils/alert"
;
export
default
{
props
:
[],
components
:
{
Pagination
},
components
:
{
},
data
()
{
return
{
railData
:
{
...
...
@@ -141,7 +141,7 @@ export default {
size
:
10
,
},
visible
:
false
,
Info
:
[],
tableData
:
[],
params
:
{
pageNum
:
1
,
...
...
@@ -183,11 +183,7 @@ export default {
},
searchQuery
()
{
this
.
getTableData
()
// railWaylist( this.railData).then((res) => {
// let list = res.records || [];
// this.tableData = list;
// this.total = res.total;
// });
},
reset
()
{
this
.
railData
=
{
...
...
@@ -217,13 +213,12 @@ export default {
let
id
=
row
.
id
;
railWaydetail
({
id
}).
then
((
res
)
=>
{
// this.visible=true
this
.
Info
=
res
;
});
},
handlePageChange
(
pageData
)
{
this
.
params
.
pageS
ize
=
pageData
.
size
;
this
.
params
.
pageNum
=
pageData
.
page
;
this
.
railData
.
s
ize
=
pageData
.
size
;
this
.
railData
.
current
=
pageData
.
page
;
this
.
getTableData
();
},
getTableData
()
{
...
...
src/views/setting/statistics/comp/stationTable.vue
View file @
0305343c
...
...
@@ -141,8 +141,8 @@
</el-table>
<pagination
:limit=
"
params.pageS
ize"
:page=
"
params.pageNum
"
:limit=
"
siteForm.s
ize"
:page=
"
siteForm.current
"
:total=
"total"
class=
"pagination"
@
pagination=
"handlePageChange"
...
...
@@ -150,13 +150,13 @@
</div>
</template>
<
script
>
import
Pagination
from
"@/components/Pagination"
;
import
{
sitelist
,
sitebatchDelete
,
sitedetail
}
from
"../../api"
;
import
{
successAlert
,
warningAlert
}
from
"@/utils/alert"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
export
default
{
props
:
[],
components
:
{
Pagination
},
components
:
{
},
data
()
{
return
{
siteForm
:
{
...
...
@@ -249,8 +249,8 @@ export default {
sitedetail
({
id
}).
then
((
res
)
=>
{});
},
handlePageChange
(
pageData
)
{
this
.
params
.
pageS
ize
=
pageData
.
size
;
this
.
params
.
pageNum
=
pageData
.
page
;
this
.
siteForm
.
s
ize
=
pageData
.
size
;
this
.
siteForm
.
current
=
pageData
.
page
;
this
.
getTableData
();
},
getTableData
()
{
...
...
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