diff --git a/src/api/MyBrand/index.js b/src/api/MyBrand/index.js index 26ce638..7f72722 100644 --- a/src/api/MyBrand/index.js +++ b/src/api/MyBrand/index.js @@ -40,8 +40,8 @@ export function getList(params) { } // 重点媒体 -export function getWebsite(params) { - let obj = Object.assign({action: 'getWebsite', sType: 'BrandOverview'}, params) +export function getSourceTop(params) { + let obj = Object.assign({action: 'getSourceTop', sType: 'BrandOverview'}, params) return httpService({ url: `/api/v6.ashx`, method: 'post', diff --git a/src/views/MyBrand/brandData/index.vue b/src/views/MyBrand/brandData/index.vue index bb44567..ae693ab 100644 --- a/src/views/MyBrand/brandData/index.vue +++ b/src/views/MyBrand/brandData/index.vue @@ -8,6 +8,7 @@ --> @@ -62,7 +90,8 @@ export default { data() { return { count: 0, - countArr: [], + negCount: 0, + load: false, form: { token: "", @@ -75,6 +104,12 @@ export default { c: 0, z: 0, }, + negObj: { + a: 0, + b: 0, + c: 0, + z: 0, + } }; }, created() { @@ -88,12 +123,16 @@ export default { let obj = Object.assign({}, this.getCtime2, this.form) getHealthIndex(obj).then(res => { let data = res.data; - this.countArr = data.affections || []; this.count = data.affections[0].value + data.affections[1].value + data.affections[2].value; + this.negCount = data.crisis[0].value + data.crisis[1].value + data.crisis[2].value; this.affObj.a = data.affections[0].value || 0; this.affObj.b = data.affections[1].value || 0; this.affObj.c = data.affections[2].value || 0; this.affObj.z = this.count; + this.negObj.a = data.crisis[0].value || 0; + this.negObj.b = data.crisis[1].value || 0; + this.negObj.c = data.crisis[2].value || 0; + this.negObj.z = this.negCount; }) } }, diff --git a/src/views/MyBrand/index.vue b/src/views/MyBrand/index.vue index 60610fa..169f8b6 100644 --- a/src/views/MyBrand/index.vue +++ b/src/views/MyBrand/index.vue @@ -4,7 +4,6 @@
-
@@ -63,7 +62,6 @@ - - - diff --git a/src/views/MyBrand/warningInfo/index.vue b/src/views/MyBrand/warningInfo/index.vue index 38a4270..a402d0c 100644 --- a/src/views/MyBrand/warningInfo/index.vue +++ b/src/views/MyBrand/warningInfo/index.vue @@ -9,7 +9,7 @@