修复翻页未重置页码的问题
This commit is contained in:
@@ -208,7 +208,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.initData()
|
||||
this.updateLooper = setInterval(this.initData, 10000)
|
||||
this.updateLooper = setInterval(this.getList, 10000)
|
||||
},
|
||||
destroyed() {
|
||||
this.$destroy('videojs')
|
||||
@@ -216,6 +216,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
initData: function() {
|
||||
this.currentPage = 1
|
||||
this.total = 0
|
||||
this.getList()
|
||||
},
|
||||
currentChange: function(val) {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
placeholder="关键字"
|
||||
prefix-icon="el-icon-search"
|
||||
clearable
|
||||
@input="getPlatformList"
|
||||
@input="queryList"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@@ -292,6 +292,11 @@ export default {
|
||||
this.count = val
|
||||
this.getPlatformList()
|
||||
},
|
||||
queryList: function() {
|
||||
this.currentPage = 1
|
||||
this.total = 0
|
||||
this.getPlatformList()
|
||||
},
|
||||
getPlatformList: function() {
|
||||
this.$store.dispatch('platform/query', {
|
||||
count: this.count,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
placeholder="关键字"
|
||||
prefix-icon="el-icon-search"
|
||||
clearable
|
||||
@input="getStreamProxyList"
|
||||
@input="queryList"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="流媒体">
|
||||
@@ -18,7 +18,7 @@
|
||||
style="margin-right: 1rem;"
|
||||
placeholder="请选择"
|
||||
default-first-option
|
||||
@change="getStreamProxyList"
|
||||
@change="queryList"
|
||||
>
|
||||
<el-option label="全部" value="" />
|
||||
<el-option
|
||||
@@ -35,7 +35,7 @@
|
||||
style="margin-right: 1rem;"
|
||||
placeholder="请选择"
|
||||
default-first-option
|
||||
@change="getStreamProxyList"
|
||||
@change="queryList"
|
||||
>
|
||||
<el-option label="全部" value="" />
|
||||
<el-option label="正在拉流" value="true" />
|
||||
@@ -189,6 +189,11 @@ export default {
|
||||
this.count = val
|
||||
this.getStreamProxyList()
|
||||
},
|
||||
queryList: function() {
|
||||
this.currentPage = 1
|
||||
this.total = 0
|
||||
this.getStreamProxyList()
|
||||
},
|
||||
getStreamProxyList: function() {
|
||||
this.$store.dispatch('streamProxy/queryList', {
|
||||
page: this.currentPage,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
placeholder="关键字"
|
||||
prefix-icon="el-icon-search"
|
||||
clearable
|
||||
@input="getPushList"
|
||||
@input="queryList"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="流媒体">
|
||||
@@ -18,7 +18,7 @@
|
||||
style="margin-right: 1rem;"
|
||||
placeholder="请选择"
|
||||
default-first-option
|
||||
@change="getPushList"
|
||||
@change="queryList"
|
||||
>
|
||||
<el-option label="全部" value="" />
|
||||
<el-option
|
||||
@@ -35,7 +35,7 @@
|
||||
style="margin-right: 1rem;"
|
||||
placeholder="请选择"
|
||||
default-first-option
|
||||
@change="getPushList"
|
||||
@change="queryList"
|
||||
>
|
||||
<el-option label="全部" value="" />
|
||||
<el-option label="推流中" value="true" />
|
||||
@@ -206,6 +206,11 @@ export default {
|
||||
this.count = val
|
||||
this.getPushList()
|
||||
},
|
||||
queryList: function() {
|
||||
this.currentPage = 1
|
||||
this.total = 0
|
||||
this.getPushList()
|
||||
},
|
||||
getPushList: function() {
|
||||
this.$store.dispatch('streamPush/queryList', {
|
||||
page: this.currentPage,
|
||||
|
||||
Reference in New Issue
Block a user