张雄 3 years ago
parent 2d72489035
commit e2c3842480

@ -60,12 +60,12 @@ export default function createWordCloud(data) {
fontWeight: 'bold',
//颜色的回调函数, []
color: function () {
return colors[Math.floor((Math.random() * 8) + 0)];
// return 'rgb(' + [
// Math.round(Math.random() * 255),
// Math.round(Math.random() * 255),
// Math.round(Math.random() * 255)
// ].join(',') + ')';
// return colors[Math.floor((Math.random() * 8) + 0)];
return 'rgb(' + [
Math.round(Math.random() * 255),
Math.round(Math.random() * 255),
Math.round(Math.random() * 255)
].join(',') + ')';
}
},
emphasis: {

@ -182,12 +182,6 @@ export default {
goback() {
this.$router.go(-1);
},
//
refresh() {
for(let i=0;i<this.list.length;i++){
this.handlerDel(i);
};
},
//
modelData() {
let model = this.getModel.name || "";

Loading…
Cancel
Save