修改禅道已知问题
This commit is contained in:
@@ -196,6 +196,11 @@
|
|||||||
|
|
||||||
getAction(`sys/dictItem/page`, params).then(res => {
|
getAction(`sys/dictItem/page`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.queryParams.pageNo = 1
|
||||||
|
this.loadData()
|
||||||
|
return
|
||||||
|
}
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.tableData = [...res.result.records]
|
this.tableData = [...res.result.records]
|
||||||
this.dataFlag = true
|
this.dataFlag = true
|
||||||
@@ -210,6 +215,11 @@
|
|||||||
sysDictId: this.record.id,
|
sysDictId: this.record.id,
|
||||||
isTagDict: 1
|
isTagDict: 1
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.queryParams.pageNo = 1
|
||||||
|
this.loadData()
|
||||||
|
return
|
||||||
|
}
|
||||||
this.tabletreeDataSource = [...res.result.records]
|
this.tabletreeDataSource = [...res.result.records]
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
let data = this.toTree(this.tabletreeDataSource)
|
let data = this.toTree(this.tabletreeDataSource)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
show-size-changer
|
show-size-changer
|
||||||
:page-size.sync="queryParams.pageSize"
|
:page-size.sync="queryParams.pageSize"
|
||||||
:total="total"
|
:total="total"
|
||||||
:current="pageNo"
|
:current="queryParams.pageNo"
|
||||||
@change="onChangePage"
|
@change="onChangePage"
|
||||||
@showSizeChange="SizeChange"
|
@showSizeChange="SizeChange"
|
||||||
/>
|
/>
|
||||||
@@ -233,12 +233,21 @@
|
|||||||
// sys/dict/page
|
// sys/dict/page
|
||||||
postAction(`sys/dict/tagDictPage`, params).then(res => {
|
postAction(`sys/dict/tagDictPage`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.queryParams.pageNo = 1
|
||||||
|
this.loadData()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.loading = false
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.tableData = [...res.result.records]
|
this.tableData = [...res.result.records]
|
||||||
|
}else{
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
|
||||||
this.loading = false
|
|
||||||
})
|
})
|
||||||
|
// .finally(() => {
|
||||||
|
// this.loading = false
|
||||||
|
//})
|
||||||
},
|
},
|
||||||
//查询
|
//查询
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
@@ -260,7 +269,7 @@
|
|||||||
},
|
},
|
||||||
hideModal() {
|
hideModal() {
|
||||||
this.form.dictName = this.form.dictName.trim()
|
this.form.dictName = this.form.dictName.trim()
|
||||||
if (this.form.description){
|
if (this.form.description) {
|
||||||
this.form.description = this.form.description.trim()
|
this.form.description = this.form.description.trim()
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
|
|||||||
@@ -305,6 +305,16 @@
|
|||||||
}
|
}
|
||||||
postAction(`tag/onlCgformTag/page`, paramsItem).then(res => {
|
postAction(`tag/onlCgformTag/page`, paramsItem).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
if (this.key == 1) {
|
||||||
|
this.queryParamOne.pageNo = 1
|
||||||
|
this.loadData(1)
|
||||||
|
} else if (this.key == 2) {
|
||||||
|
this.queryParamTwo.pageNo = 1
|
||||||
|
this.loadData(0)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.tableData = [...res.result.records]
|
this.tableData = [...res.result.records]
|
||||||
this.spinning = false
|
this.spinning = false
|
||||||
|
|||||||
Reference in New Issue
Block a user