| | |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/animalHeat/animalHeat') |
| | | }] |
| | | }, { |
| | | path: '/alarm', |
| | | component: Layout, |
| | | redirect: '/alarm/alarmPage', |
| | | children: [{ |
| | | path: 'alarmPage', |
| | | name: '实时警情', |
| | | meta: { |
| | | i18n: 'alarm' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/alarm/alarm') |
| | | }] |
| | | } |
| | | |
| | | |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | params = { |
| | | alarmType:this.$route.query |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | params ={ |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | ] |
| | | }, |
| | | { |
| | | label: "行政区", |
| | | searchSpan: 4, |
| | | prop: "addvcd", |
| | | label: '省份', |
| | | prop: 'province', |
| | | search: true, |
| | | type: "tree", |
| | | dicUrl: "/api/blade-jfpts/district/district/selectd", |
| | | searchSpan: 3, |
| | | type: 'select', |
| | | props: { |
| | | label: "addvnm", |
| | | value: "addvcds" |
| | | } |
| | | label: 'name', |
| | | value: 'code' |
| | | }, |
| | | cascaderItem: ['city', 'district'], |
| | | dicUrl: '/api/blade-system/region/select', |
| | | span: 6, |
| | | }, |
| | | { |
| | | label: '地市', |
| | | prop: 'city', |
| | | type: 'select', |
| | | searchSpan: 3, |
| | | search: true, |
| | | props: { |
| | | label: 'name', |
| | | value: 'code' |
| | | }, |
| | | dicUrl: '/api/blade-system/region/select?code={{key}}', |
| | | span: 6, |
| | | }, |
| | | { |
| | | label: '区县', |
| | | searchSpan: 3, |
| | | search: true, |
| | | prop: 'district', |
| | | type: 'select', |
| | | props: { |
| | | label: 'name', |
| | | value: 'code' |
| | | }, |
| | | dicUrl: '/api/blade-system/region/select?code={{key}}', |
| | | span: 6, |
| | | }, |
| | | { |
| | | label: "健康码颜色", |
| | | search: true, |
| | | searchLabelWidth: 120, |
| | | searchLabelWidth:100, |
| | | prop: "type", |
| | | searchSpan: 5, |
| | | width:110, |
| | | searchSpan: 3, |
| | | width:210, |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | | label: "绿色", |
| | | value: 1 |
| | | value: "1" |
| | | }, |
| | | { |
| | | label: "黄色", |
| | | value: 2 |
| | | value: "2" |
| | | }, |
| | | { |
| | | label: "红色", |
| | | value: 3 |
| | | value: "3" |
| | | } |
| | | ], |
| | | } |
| | |
| | | window.handleStartHealthcode = this.handleStartHealthcode; |
| | | }, |
| | | methods: { |
| | | //体温监测分页数据 |
| | | handleStartAnimalHeat(data) { |
| | | this.$router.push({ |
| | | path: `/animalHeat/animalHeatPage`, |
| | | query: data[0] |
| | | }); |
| | | }, |
| | | //健康码分页数据 |
| | | handleStartHealthcode(data){ |
| | | this.$router.push({ |
| | | path: `/healthcode/healthcodePage`, |
| | | query: data[0] |
| | | }); |
| | | }, |
| | | //主动报警(一键求助,电话报警)分页数据 |
| | | handleStartAlarm(data){ |
| | | this.$router.push({ |
| | | path: `/alarm/alarmPage`, |
| | | query: data |
| | | }); |
| | | } |
| | | |
| | | // getData() { |