认证参数列表 列表查询请求方式修改

This commit is contained in:
zyx.net
2023-01-04 14:54:39 +08:00
parent 0369369ec4
commit 9f09756fe6
@@ -853,20 +853,23 @@
// userTypes: this.currentPersonRole // userTypes: this.currentPersonRole
} }
let url let url
let action
this.loading = true this.loading = true
this.$emit('listReset', '') this.$emit('listReset', '')
// todo // todo
if (this.$route.query.it === undefined) { if (this.$route.query.it === undefined) {
// 页面跳转 // 页面跳转
url = this.url.tableList url = this.url.tableList
action = postAction
params.paramsManifestId = this.$route.query.id params.paramsManifestId = this.$route.query.id
params.userTypes = this.currentPersonRole params.userTypes = this.currentPersonRole
} else { } else {
// 历史版本 // 历史版本
action = getAction
url = 'params/collectManifestHistory/list' url = 'params/collectManifestHistory/list'
params.paramsManifestId = this.$route.query.it params.paramsManifestId = this.$route.query.it
} }
getAction(url, params).then((res) => { action(url, params).then((res) => {
if (res.success) { if (res.success) {
let tt = [] let tt = []
if (this.currentPersonRole !== 'dre') { if (this.currentPersonRole !== 'dre') {
@@ -915,12 +918,15 @@
getTableList(currentPersonRole) { getTableList(currentPersonRole) {
let paramsManifestid let paramsManifestid
let url let url
let action
if (this.$route.query.it === undefined) { if (this.$route.query.it === undefined) {
// 页面跳转 // 页面跳转
paramsManifestid = this.$route.query.id paramsManifestid = this.$route.query.id
url = this.url.tableList url = this.url.tableList
action = postAction
} else { } else {
// 历史版本 // 历史版本
action = getAction
paramsManifestid = this.$route.query.it paramsManifestid = this.$route.query.it
url = 'params/collectManifestHistory/list' url = 'params/collectManifestHistory/list'
} }
@@ -934,7 +940,7 @@
...this.queryParamQuery ...this.queryParamQuery
} }
this.loading = true this.loading = true
getAction(url, params).then((res) => { action(url, params).then((res) => {
if (res.success) { if (res.success) {
// console.log(res.result,'res.result') // console.log(res.result,'res.result')
// let tt = [] // let tt = []