修复设置参数

This commit is contained in:
aixianling
2024-06-27 15:13:33 +08:00
parent aba3e33e70
commit ece292c45a

View File

@@ -122,7 +122,7 @@ export default {
methods: { methods: {
loadNode(node, resolve) { loadNode(node, resolve) {
if (node.level == 0) { if (node.level == 0) {
this.instance.post(`/api/appcorp2/getCorpStatTotal`, null, {...this.globalParams}).then((res) => { this.instance.post(`/api/appcorp2/getCorpStatTotal`, null, {params: this.globalParams}).then((res) => {
if (res.data) { if (res.data) {
return resolve([{name: `全国 (${res.data})`}]); return resolve([{name: `全国 (${res.data})`}]);
} }
@@ -134,7 +134,9 @@ export default {
if (node.level == 1) { //全国 if (node.level == 1) { //全国
areaId = '' areaId = ''
} }
this.instance.post(`/api/appcorp2/getCorpStatByArea`, null, {areaId, ...this.globalParams}).then((res) => { this.instance.post(`/api/appcorp2/getCorpStatByArea`, null, {
params: {areaId, ...this.globalParams}
}).then((res) => {
if (res.data) { if (res.data) {
res.data.map((item) => { res.data.map((item) => {
item.name = item.name + `(${item.total})` item.name = item.name + `(${item.total})`
@@ -161,7 +163,7 @@ export default {
this.getTableData() this.getTableData()
}, },
getInfo() { getInfo() {
this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`, null, {...this.globalParams}).then(res => { this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`, null, {params: this.globalParams}).then(res => {
if (res?.data) { if (res?.data) {
this.info = res.data || {} this.info = res.data || {}
} }
@@ -169,8 +171,7 @@ export default {
}, },
getTableData() { getTableData() {
this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}&name=${this.name}`, null, { this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}&name=${this.name}`, null, {
...this.page, params: {...this.page, ...this.globalParams}
...this.globalParams
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.gropList = res.data.records this.gropList = res.data.records