[update] 历史版本查看

This commit is contained in:
zhaomeijing
2022-05-31 16:25:37 +08:00
parent 36a0ed400a
commit 9ff43ed755
2 changed files with 33 additions and 18 deletions
@@ -362,11 +362,22 @@ export default {
})
},
getData() {
let paramsManifestid
let url
if(this.$route.query.it === undefined) {
// 页面跳转
paramsManifestid = this.paramsManifest.id
url = this.url.tableHeader
} else {
// 历史版本
paramsManifestid = this.$route.query.it
url = 'params/collectManifestHistory/getHeader'
}
let params = {
paramsManifestId: this.paramsManifest.id,
paramsManifestId: paramsManifestid,
flag: '7'
}
getAction(this.url.tableHeader, params).then((res) => {
getAction(url, params).then((res) => {
if (res.success) {
var jsonHead = res.result
this.columns = []
@@ -408,6 +419,7 @@ export default {
console.log(pagination,filters,sorter,'iiiiiiiiiiiiiiiii')
},
getTableListReset() {
console.log('清空')
let params = {
paramsManifestId: this.paramsManifest.id,
}
@@ -423,13 +435,25 @@ export default {
})
},
getTableList() {
let paramsManifestid
let url
if(this.$route.query.it === undefined) {
// 页面跳转
paramsManifestid = this.paramsManifest.id
url = this.url.tableList
} else {
console.log('历史版本呢')
// 历史版本
paramsManifestid = this.$route.query.it
url = 'params/collectManifestHistory/list'
}
let params = {
userTypes: this.LoginUserType,
paramsManifestId: this.paramsManifest.id,
paramsManifestId: paramsManifestid,
...this.formInline
}
this.loading = true
getAction(this.url.tableList, params).then((res) => {
getAction(url, params).then((res) => {
if (res.success) {
this.dataSource = res.result
this.total = res.result.total