zx-调性分布

prod
张雄 3 years ago
parent 93358ca604
commit c23907146b

@ -41,7 +41,7 @@ export default {
this.load = true;
let obj = Object.assign({}, this.getCtime2, this.form);
getCountTime0528(obj).then(res => {
let data = res.data || [];
let data = res.data || [];
let dx = []; //time
let ds = []; //value
data.forEach(ele => {

@ -17,23 +17,31 @@
</template>
<script>
import {getGraphData} from "@/api/getEchars"
import {getGraphData} from "@/api/getEchars";
//import {getDiffuseZhuTi} from "@/api/WeiboDetails";
import createOpt from "./opt"
export default {
name: "weiboSpreadFission",
data() {
return {
opt: {}
opt: {},
form: {
token:"",
sBrand:""
}
}
},
created() {
this.drawGraph()
this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || this.brand;
this.drawGraph();
},
methods: {
drawGraph() {
getGraphData().then(res => {
let obj = Object.assign({}, this.getCtime2, this.form);
getGraphData(obj).then(res => {
this.opt = createOpt(res.data)
})
});
}
}

@ -34,7 +34,7 @@ export default {
bigV:{positive:0.1,negative:0.1,show:"个人大V"},
media:{positive:0.1,negative:0.1,show:"媒体"},
enterprice:{positive:0.1,negative:0.1,show:"企业"},
goverment:{positive:0.1,negative:0.1,show:"企业"},
goverment:{positive:0.1,negative:0.1,show:"政府"},
famousPerson:{positive:0.1,negative:0.1,show:"名人"},
uncertified:{positive:0.1,negative:0.1,show:"未认证"},
certified:{positive:0.1,negative:0.1,show:"已认证"}

@ -49,11 +49,11 @@ export default {
methods: {
getData() {
this.load = true;
Promise.all([this.getH(),this.getF()]).then(() => {
//
this.handlerTab(0)
this.load = false;
})
Promise.all([this.getH(), this.getF()]).then(() => {
//
this.handlerTab(0);
this.load = false;
});
},
//
getH() {
@ -73,12 +73,14 @@ export default {
getF() {
return new Promise((resolve, reject) => {
let obj = Object.assign({}, this.getCtime2, this.form);
getNegative(obj).then((res) => {
this.negativeData = res.data || {};
resolve(res)
}).catch(() => {
getNegative(obj)
.then((res) => {
this.negativeData = res.data || {};
resolve(res);
})
.catch(() => {
reject(false);
});
});
});
},
//

Loading…
Cancel
Save