调整接口
This commit is contained in:
@@ -116,7 +116,7 @@ export default {
|
||||
methods: {
|
||||
loadNode(node, resolve) {
|
||||
if (node.level == 0) {
|
||||
this.instance.post(`/api/appCorpStat/getCorpStatTotal`).then((res) => {
|
||||
this.instance.post(`/api/appcorp2/getCorpStatTotal`).then((res) => {
|
||||
if (res.data) {
|
||||
return resolve([{name: `全国 (${res.data})`}]);
|
||||
}
|
||||
@@ -128,11 +128,11 @@ export default {
|
||||
if (node.level == 1) { //全国
|
||||
areaId = ''
|
||||
}
|
||||
this.instance.post(`/api/appCorpStat/getCorpStatByArea?areaId=${areaId}`).then((res) => {
|
||||
this.instance.post(`/api/appcorp2/getCorpStatByArea?areaId=${areaId}`).then((res) => {
|
||||
if (res.data) {
|
||||
res.data.map((item) => {
|
||||
item.name = item.name + `(${item.total})`
|
||||
item.leaf = !/0{8}$/.test(item.id)
|
||||
item.leaf = !/0{10}$/.test(item.id)
|
||||
})
|
||||
resolve(res.data)
|
||||
}
|
||||
@@ -159,21 +159,18 @@ export default {
|
||||
},
|
||||
|
||||
getInfo() {
|
||||
this.info = {}
|
||||
this.instance.post(`/api/appCorpStat/getLatestInfo?areaId=${this.areaId}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.info = res.data
|
||||
this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`).then(res => {
|
||||
if (res?.data) {
|
||||
this.info = res.data || {}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getTableData() {
|
||||
this.instance.post(`/api/appCorp/page?areaId=${this.areaId}¤t=${this.page.current}&size=${this.page.size}&name=${this.name}`,).then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res.data) {
|
||||
this.gropList = res.data.records
|
||||
this.page.total = res.data.total
|
||||
}
|
||||
this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}¤t=${this.page.current}&size=${this.page.size}&name=${this.name}`,).then(res => {
|
||||
if (res?.data) {
|
||||
this.gropList = res.data.records
|
||||
this.page.total = res.data.total
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -252,7 +249,6 @@ export default {
|
||||
gap: 16px;
|
||||
|
||||
|
||||
|
||||
.title {
|
||||
line-height: 60px;
|
||||
font-size: 18px;
|
||||
|
||||
Reference in New Issue
Block a user