[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() { 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 = { let params = {
paramsManifestId: this.paramsManifest.id, paramsManifestId: paramsManifestid,
flag: '7' flag: '7'
} }
getAction(this.url.tableHeader, params).then((res) => { getAction(url, params).then((res) => {
if (res.success) { if (res.success) {
var jsonHead = res.result var jsonHead = res.result
this.columns = [] this.columns = []
@@ -408,6 +419,7 @@ export default {
console.log(pagination,filters,sorter,'iiiiiiiiiiiiiiiii') console.log(pagination,filters,sorter,'iiiiiiiiiiiiiiiii')
}, },
getTableListReset() { getTableListReset() {
console.log('清空')
let params = { let params = {
paramsManifestId: this.paramsManifest.id, paramsManifestId: this.paramsManifest.id,
} }
@@ -423,13 +435,25 @@ export default {
}) })
}, },
getTableList() { 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 = { let params = {
userTypes: this.LoginUserType, userTypes: this.LoginUserType,
paramsManifestId: this.paramsManifest.id, paramsManifestId: paramsManifestid,
...this.formInline ...this.formInline
} }
this.loading = true this.loading = true
getAction(this.url.tableList, params).then((res) => { getAction(url, params).then((res) => {
if (res.success) { if (res.success) {
this.dataSource = res.result this.dataSource = res.result
this.total = res.result.total this.total = res.result.total
@@ -101,21 +101,12 @@ export default {
}, },
// 查看 // 查看
editArea(val) { editArea(val) {
console.log('查看') let newUrl = this.$router.resolve({
path: '/ParameterItemCollection',
query: {it: val}
})
window.open(newUrl.href, '_blank')
} }
// this.title = this.$t('edit')
// this.newVisible = true
// let params = {
// id: val
// }
// getAction(`tag/onlCgformArea/queryById`, params).then((res) => {
// if (res.success) {
// this.form = { ...res.result }
// // this.$emit('updateOk',res.result)
//
// }
// })
// }
}, },
} }
</script> </script>