修复设置参数
This commit is contained in:
@@ -122,7 +122,7 @@ export default {
|
||||
methods: {
|
||||
loadNode(node, resolve) {
|
||||
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) {
|
||||
return resolve([{name: `全国 (${res.data})`}]);
|
||||
}
|
||||
@@ -134,7 +134,9 @@ export default {
|
||||
if (node.level == 1) { //全国
|
||||
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) {
|
||||
res.data.map((item) => {
|
||||
item.name = item.name + `(${item.total})`
|
||||
@@ -161,7 +163,7 @@ export default {
|
||||
this.getTableData()
|
||||
},
|
||||
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) {
|
||||
this.info = res.data || {}
|
||||
}
|
||||
@@ -169,8 +171,7 @@ export default {
|
||||
},
|
||||
getTableData() {
|
||||
this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}&name=${this.name}`, null, {
|
||||
...this.page,
|
||||
...this.globalParams
|
||||
params: {...this.page, ...this.globalParams}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.gropList = res.data.records
|
||||
|
||||
Reference in New Issue
Block a user