Skip to content

Commit

Permalink
uses @phila/vue-datafetch which allows group by in http fetch nearby …
Browse files Browse the repository at this point in the history
…queries
  • Loading branch information
ajrothwell committed Sep 27, 2023
1 parent b050a24 commit e6de86b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
41 changes: 20 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lintFix": "vue-cli-service lint --fix"
},
"dependencies": {
"@phila/mapboard": "https://github.com/CityOfPhiladelphia/mapboard#0c2c213",
"@phila/mapboard": "https://github.com/CityOfPhiladelphia/mapboard#7818127",
"accounting": "^0.4.1",
"vue": "^2.7.10"
},
Expand Down
1 change: 1 addition & 0 deletions src/data-sources/nearby-violations.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export default {
dateMinNum: 1,
dateMinType: 'year',
dateField: 'casecreateddate',
groupby: 'casenumber, casecreateddate, caseprioritydesc, casestatus, address',
},
};
9 changes: 5 additions & 4 deletions src/topics/nearby.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default {
return itemRow;
});
let rows2 = rows.filter((datum) => datum.typeofwork == 'NEW CONSTRUCTION');
console.log('data:', data, 'rows2:', rows2, 'rows:', rows);
// console.log('data:', data, 'rows2:', rows2, 'rows:', rows);
return rows2;
},
},
Expand Down Expand Up @@ -622,9 +622,10 @@ export default {
},
},
{
label: 'Type',
label: 'Status',
value: function(state, item) {
return item.typeofwork;
// return item.casestatus;
return '<a target="_blank" href="https://li.phila.gov/property-history/search/violation-detail?address='+ item.address + '&Id=' + item.casenumber + '">'+item.casestatus+'</a>';
// if (item.media_url) {
// return '<a target="_blank" href='+item.media_url+'>'+item.service_name+'</a>';
// }
Expand All @@ -651,7 +652,7 @@ export default {
return itemRow;
});
let rows2 = rows.filter((datum) => datum.caseprioritydesc == 'IMMINENTLY DANGEROUS');
// console.log('data:', data, 'rows2:', rows2, 'rows:', rows);
console.log('violations data:', data, 'rows2:', rows2, 'rows:', rows);
return rows2;
},
},
Expand Down

0 comments on commit e6de86b

Please sign in to comment.