|
@@ -11,6 +11,8 @@
|
|
|
|
|
|
<script>
|
|
|
import lineChart from './lineChart.vue';
|
|
|
+import _forEach from 'lodash/forEach';
|
|
|
+import _filter from 'lodash/filter';
|
|
|
|
|
|
export default{
|
|
|
props:{
|
|
@@ -18,6 +20,17 @@ export default{
|
|
|
},
|
|
|
components:{
|
|
|
lineChart
|
|
|
+ },
|
|
|
+ watch:{
|
|
|
+ 'dt.rows':{
|
|
|
+ handler(val){
|
|
|
+
|
|
|
+ if(val.length === _filter(val,{show:false}).length ){
|
|
|
+ this.dt.show = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep:true
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|