|
@@ -118,13 +118,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {},
|
|
|
- mounted() {
|
|
|
- this.getPatentNum()
|
|
|
+ async mounted() {
|
|
|
+ await this.getPatentNum()
|
|
|
this.getData()
|
|
|
window.addEventListener('resize',this.refreshChart)
|
|
|
},
|
|
|
methods: {
|
|
|
- getPatentNum(){
|
|
|
+ async getPatentNum(){
|
|
|
if(!this.searchPatentNum){
|
|
|
this.patentNum = this.patentNums
|
|
|
return
|
|
@@ -132,7 +132,7 @@ export default {
|
|
|
let params1 = {
|
|
|
projectId: this.projectId,
|
|
|
}
|
|
|
- this.$api.getAllCountColumns(params1).then(res => {
|
|
|
+ await this.$api.getAllCountColumns(params1).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
var data = []
|
|
|
res.data.data.forEach(item => {
|