diff --git a/src/views/activiti/applyHome.vue b/src/views/activiti/applyHome.vue index d2dd802..420d594 100644 --- a/src/views/activiti/applyHome.vue +++ b/src/views/activiti/applyHome.vue @@ -12,7 +12,7 @@ - +
@@ -148,6 +148,11 @@ if (res.success) { var result = res.result||[]; if (result.length>0){ + console.log("====================",result); + //14种颜色的循环 + for (let i in result){ + this.$set(result[i],'color',this.colors[i%14]) + } let searchProcessKey = this.searchProcessKey; if (searchProcessKey){ //过滤条件 result = _.filter(result, function(o) { return o.name.indexOf(searchProcessKey)>-1; }); @@ -155,14 +160,7 @@ this.processDataMap = _.groupBy(result,'categoryId'); // console.log("111111111111",this.categoryId) // console.log("===================",this.processDataMap,"=====================") - //14种颜色的循环 - let n = 0 - for (let i in this.processDataMap){ - for (let j in this.processDataMap[i]){ - this.$set(this.processDataMap[i][j],'color',this.colors[n%14]) - n++ - } - } + // console.log("=======",this.processDataMap.wuzi) for (const categoryId in this.processDataMap) { this.activeKeyAll.push(categoryId) diff --git a/src/views/waste/ProcessWasteList.vue b/src/views/waste/ProcessWasteList.vue index 00c2b42..bab3e3c 100644 --- a/src/views/waste/ProcessWasteList.vue +++ b/src/views/waste/ProcessWasteList.vue @@ -6,7 +6,7 @@ - + @@ -21,18 +21,18 @@ - - + + - + - - + + @@ -243,13 +243,10 @@ }, }, methods: { - searchReset(){ + searchReset() { + this.queryParam = {} this.createScrapTime = [] - getAction(this.url.list).then((res)=>{ - if(res.success){ - this.dataSource=res.result.records; - } - }); + this.loadData(1); }, handleInto() { this.$router.push(