remove extra data on the table
This commit is contained in:
parent
78d64a2319
commit
ada54f7b7b
@ -26,9 +26,7 @@ export default {
|
||||
"邮编",
|
||||
"国家",
|
||||
"电话",
|
||||
"传真",
|
||||
"区域",
|
||||
"城市"
|
||||
"传真"
|
||||
],
|
||||
info: [
|
||||
{
|
||||
|
@ -17,6 +17,7 @@ export default {
|
||||
data: function() {
|
||||
return {
|
||||
selectedvaluedown: [],
|
||||
|
||||
selectedindexdown: 0,
|
||||
formateddata: {}
|
||||
};
|
||||
@ -53,12 +54,13 @@ export default {
|
||||
}
|
||||
}
|
||||
for (var company of citychild.children) {
|
||||
var arr = [];
|
||||
|
||||
for (var item of this.usersdata.info) {
|
||||
if (
|
||||
item.city === company.name[0] &&
|
||||
item.state === citychild.name[0]
|
||||
) {
|
||||
var arr = [];
|
||||
for (var x in item) {
|
||||
if (x != "state" && x != "city") arr.push(item[x]);
|
||||
}
|
||||
@ -68,6 +70,7 @@ export default {
|
||||
}
|
||||
}
|
||||
this.formateddata = formateddata;
|
||||
console.log(formateddata)
|
||||
},
|
||||
//// function below is for swap table header uses.
|
||||
getindexvalue: function(index) {
|
||||
|
@ -16,7 +16,7 @@ export default {
|
||||
props: { data: Object },
|
||||
data: function() {
|
||||
return {
|
||||
open: false
|
||||
open: true
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@ -37,8 +37,11 @@ export default {
|
||||
ul {
|
||||
padding-left: 0px;
|
||||
}
|
||||
td {
|
||||
width: 10%;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
width: 60%;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user