Discover: Remove unnecessary code.
This commit is contained in:
@@ -44,7 +44,6 @@ import LoadingStore from '@/stores/loading.js';
|
||||
import AllMapDataStore from '@/stores/allMapData.js';
|
||||
|
||||
export default {
|
||||
props:['setRule'],
|
||||
setup() {
|
||||
const loadingStore = LoadingStore();
|
||||
const allMapDataStore = AllMapDataStore();
|
||||
|
||||
@@ -92,8 +92,6 @@ export default {
|
||||
return this.traces.map(trace => trace.count).reduce((acc, cur) => acc + cur, 0);
|
||||
},
|
||||
traceList: function() {
|
||||
let sum = this.traces.map(trace => trace.count).reduce((acc, cur) => acc + cur, 0);
|
||||
|
||||
return this.traces.map(trace => {
|
||||
return {
|
||||
id: trace.id,
|
||||
@@ -105,7 +103,6 @@ export default {
|
||||
.slice(this.selectArea[0], this.selectArea[1]);
|
||||
},
|
||||
caseTotalPercent: function() {
|
||||
let countSum = this.traces.map(trace => trace.count).reduce((acc, cur) => acc + cur, 0);
|
||||
let ratioSum = this.traceList.map(trace => trace.count).reduce((acc, cur) => acc + cur, 0) / this.traceCountTotal;
|
||||
return this.getPercentLabel(ratioSum)
|
||||
},
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- header: funnel -->
|
||||
<Funnel v-if="tab === 'funnel'" @submit-all="sumbitAll" :setRule="setRule" ref="filterTrace"></Funnel>
|
||||
<Funnel v-if="tab === 'funnel'" @submit-all="sumbitAll"></Funnel>
|
||||
</Sidebar>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user