|
|
@@ -43,6 +43,7 @@
|
|
|
|
|
|
<script>
|
|
|
import ChooseLits from '../../components/choose-Cade/choose-Cade.vue';
|
|
|
+ // import neilModal from '@/components/neil-modal/neil-modal.vue';
|
|
|
|
|
|
|
|
|
export default {
|
|
|
@@ -63,18 +64,17 @@
|
|
|
},
|
|
|
components: {
|
|
|
ChooseLits,
|
|
|
+ // neilModal,
|
|
|
},
|
|
|
methods: {
|
|
|
filterData(item, index) {
|
|
|
if (item !== 0) {
|
|
|
- console.log(this.arr[index][item]);
|
|
|
this.filteredData(this.arr[index][item]);
|
|
|
}
|
|
|
},
|
|
|
filteredData(nowvalue) {
|
|
|
var nowdata = [];
|
|
|
for (var indiv in this.data) {
|
|
|
- console.log(this.data)
|
|
|
if (this.data[indiv].address == nowvalue || this.data[indiv].type == nowvalue || this.data[indiv].project ==
|
|
|
nowvalue) {
|
|
|
nowdata.push(this.data[indiv]);
|
|
|
@@ -89,7 +89,6 @@
|
|
|
this.data = this.dataorigin;
|
|
|
this.i2.forEach(this.filterData);
|
|
|
};
|
|
|
- console.log(this.i2);
|
|
|
// 我写的果然是垃圾
|
|
|
// this.keys = this.arr.map((item)=>{return item=item[0]});
|
|
|
// this.datakey = this.arr[i1[0]];//每列属性值
|