增加aiEnable进行情况筛选
This commit is contained in:
@@ -107,6 +107,10 @@ export default {
|
|||||||
{label: 'CORP_ID', prop: "corpId"},
|
{label: 'CORP_ID', prop: "corpId"},
|
||||||
{slot: 'options'}
|
{slot: 'options'}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
globalParams: v => {
|
||||||
|
const {aiEnable} = v.$route.query
|
||||||
|
return {aiEnable}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -116,7 +120,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`).then((res) => {
|
this.instance.post(`/api/appcorp2/getCorpStatTotal`, null, {...this.globalParams}).then((res) => {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
return resolve([{name: `全国 (${res.data})`}]);
|
return resolve([{name: `全国 (${res.data})`}]);
|
||||||
}
|
}
|
||||||
@@ -128,7 +132,7 @@ export default {
|
|||||||
if (node.level == 1) { //全国
|
if (node.level == 1) { //全国
|
||||||
areaId = ''
|
areaId = ''
|
||||||
}
|
}
|
||||||
this.instance.post(`/api/appcorp2/getCorpStatByArea?areaId=${areaId}`).then((res) => {
|
this.instance.post(`/api/appcorp2/getCorpStatByArea`, null, {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})`
|
||||||
@@ -155,14 +159,17 @@ export default {
|
|||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
getInfo() {
|
getInfo() {
|
||||||
this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`).then(res => {
|
this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`, null, {...this.globalParams}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.info = res.data || {}
|
this.info = res.data || {}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getTableData() {
|
getTableData() {
|
||||||
this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}¤t=${this.page.current}&size=${this.page.size}&name=${this.name}`,).then(res => {
|
this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}&name=${this.name}`, null, {
|
||||||
|
...this.page,
|
||||||
|
...this.globalParams
|
||||||
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.gropList = res.data.records
|
this.gropList = res.data.records
|
||||||
this.page.total = res.data.total
|
this.page.total = res.data.total
|
||||||
|
|||||||
Reference in New Issue
Block a user