|
@@ -50,6 +50,7 @@ import _ from 'lodash';
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ plazaId: 1000423, // 广场id
|
|
incidentList: [], // 事件列表
|
|
incidentList: [], // 事件列表
|
|
oraginIncidentList: [
|
|
oraginIncidentList: [
|
|
{id: 'all', name: '全部'},
|
|
{id: 'all', name: '全部'},
|
|
@@ -72,7 +73,10 @@ export default {
|
|
components: {},
|
|
components: {},
|
|
|
|
|
|
computed: {},
|
|
computed: {},
|
|
-
|
|
|
|
|
|
+ beforeMount() {
|
|
|
|
+ let PLAZAID = localStorage.getItem('PLAZAID');
|
|
|
|
+ this.plazaId = Number(PLAZAID) || 1000423;
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.initTimePicker();
|
|
this.initTimePicker();
|
|
this.getEvenType();
|
|
this.getEvenType();
|
|
@@ -97,7 +101,7 @@ export default {
|
|
objtype: 'objtype'
|
|
objtype: 'objtype'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- queryEventypes(`/data/base/queryOptions?plazaId=1000423`, [query]).then((res) => {
|
|
|
|
|
|
+ queryEventypes(`/data/base/queryOptions?plazaId=${this.plazaId}`, [query]).then((res) => {
|
|
const { result, data } = res;
|
|
const { result, data } = res;
|
|
if (result === 'success') {
|
|
if (result === 'success') {
|
|
let newData = [this.oraginIncidentList[0]];
|
|
let newData = [this.oraginIncidentList[0]];
|
|
@@ -119,7 +123,7 @@ export default {
|
|
let param = {
|
|
let param = {
|
|
page: this.curPage,
|
|
page: this.curPage,
|
|
size: this.pageSize,
|
|
size: this.pageSize,
|
|
- plazaId: 1000423,
|
|
|
|
|
|
+ plazaId: this.plazaId,
|
|
// changeDateStartDate: 20171027000000,
|
|
// changeDateStartDate: 20171027000000,
|
|
// changeDateEndDate: 20171028000000,
|
|
// changeDateEndDate: 20171028000000,
|
|
}
|
|
}
|