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

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
}
let url
let action
this.loading = true
this.$emit('listReset', '')
// todo
if (this.$route.query.it === undefined) {
// 页面跳转
url = this.url.tableList
action = postAction
params.paramsManifestId = this.$route.query.id
params.userTypes = this.currentPersonRole
} else {
// 历史版本
action = getAction
url = 'params/collectManifestHistory/list'
params.paramsManifestId = this.$route.query.it
}
getAction(url, params).then((res) => {
action(url, params).then((res) => {
if (res.success) {
let tt = []
if (this.currentPersonRole !== 'dre') {
@@ -915,12 +918,15 @@
getTableList(currentPersonRole) {
let paramsManifestid
let url
let action
if (this.$route.query.it === undefined) {
// 页面跳转
paramsManifestid = this.$route.query.id
url = this.url.tableList
action = postAction
} else {
// 历史版本
action = getAction
paramsManifestid = this.$route.query.it
url = 'params/collectManifestHistory/list'
}
@@ -934,7 +940,7 @@
...this.queryParamQuery
}
this.loading = true
getAction(url, params).then((res) => {
action(url, params).then((res) => {
if (res.success) {
// console.log(res.result,'res.result')
// let tt = []