ÎļþÃû´Ó src/views/exception/components/FlightInspection1.vue ÐÞ¸Ä |
| | |
| | | import AreaAndmonitorType from '@/sfc/AreaAndmonitorType.vue' |
| | | import ButtonClick from '@/sfc/ButtonClick.vue' |
| | | import index from '@/utils/exception_common_function/index.js' |
| | | |
| | | // å¼å¸¸å¾å½¢å¼æ¥ç»ä»¶ |
| | | const DustLineChart = defineAsyncComponent(() => import('@/views/exception/components/DustLineChart.vue')) |
| | | import exceptionApi from '@/api/exceptionApi.js' |
| | |
| | | import time from '@/utils/time.js' |
| | | import lineChart from '@/utils/chartFunction/lineChart.js' |
| | | import exceptionOption from '@/utils/chartFunction/exceptionOption.js' |
| | | import exception0 from '@/assets/exception/exception0.png' |
| | | import exception1 from '@/assets/exception/exception1.png' |
| | | import exception2 from '@/assets/exception/exception2.png' |
| | | import exception3 from '@/assets/exception/exception3.png' |
| | | import exception4 from '@/assets/exception/exception4.png' |
| | | import exception5 from '@/assets/exception/exception5.png' |
| | | import exception6 from '@/assets/exception/exception6.png' |
| | | import exception7 from '@/assets/exception/exception7.png' |
| | | export default { |
| | | props: { |
| | | // ç¹ä½åå |
| | |
| | | this.getShopNames() |
| | | }, |
| | | month(){ |
| | | this.beginTime = dayjs(this.month).startOf('month') |
| | | this.endTime = dayjs(this.month).endOf('month') |
| | | this.beginTime = dayjs(this.month).startOf('month').format('YYYY-MM-DD HH:mm:ss') |
| | | this.endTime = dayjs(this.month).endOf('month').format('YYYY-MM-DD HH:mm:ss') |
| | | this.backExceptionDataAWeekAgo() |
| | | this.getShopNames() |
| | | } |
| | |
| | | siteName: this.exception.exception4, |
| | | exceptionType: '4', |
| | | exceptionName: 'é级çªå', |
| | | iconSrc: '../../../assets/exception/exception4.png', |
| | | iconSrc: exception4, |
| | | siteNum: this.exception.exception4.length, |
| | | exceptionNum: this.exception.exception4Num, |
| | | isNoDataStatus: this.isNoData.exception4, |
| | |
| | | siteName: this.exception.exception5, |
| | | exceptionType: '5', |
| | | exceptionName: '临è¿è¶
æ å¼å¸¸', |
| | | iconSrc: '@/assets/exception/exception5.png', |
| | | iconSrc: exception5, |
| | | siteNum: this.exception.exception5.length, |
| | | exceptionNum: this.exception.exception5Num, |
| | | isNoDataStatus: this.isNoData.exception5, |
| | | span: 5 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception8, |
| | | exceptionType: '8', |
| | | exceptionName: 'ææçå¼å¸¸', |
| | | iconSrc: exception0, |
| | | siteNum: this.exception.exception8.length, |
| | | exceptionNum: this.exception.exception8Num, |
| | | isNoDataStatus: this.isNoData.exception8, |
| | | span: 5 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception6, |
| | | exceptionType: '6', |
| | | exceptionName: '忥è¶
æ æ¬¡æ°ä¸´çå¼å¸¸', |
| | | iconSrc: '@/assets/exception/exception6.png', |
| | | iconSrc: exception6, |
| | | siteNum: this.exception.exception6.length, |
| | | exceptionNum: this.exception.exception6Num, |
| | | isNoDataStatus: this.isNoData.exception6, |
| | |
| | | siteName: this.exception.exception7, |
| | | exceptionType: '7', |
| | | exceptionName: 'ååè¶å¿å¼å¸¸', |
| | | iconSrc: '@/assets/exception/exception7.png', |
| | | iconSrc: exception7, |
| | | siteNum: this.exception.exception7.length, |
| | | exceptionNum: this.exception.exception7Num, |
| | | isNoDataStatus: this.isNoData.exception7, |
| | | span: 5 |
| | | span: 4 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception0, |
| | | exceptionType: '0', |
| | | exceptionName: 'æ°æ®ç¼ºå¤±å¼å¸¸', |
| | | iconSrc: '@/assets/exception/exception0.png', |
| | | iconSrc: exception0, |
| | | siteNum: this.exception.exception0.length, |
| | | exceptionNum: this.exception.exception0Num, |
| | | isNoDataStatus: this.isNoData.exception0, |
| | | span: 4 |
| | | span: 6 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception1, |
| | | exceptionType: '1', |
| | | exceptionName: 'æ°æ®è¶
ä½', |
| | | iconSrc: '@/assets/exception/exception1.png', |
| | | iconSrc: exception1, |
| | | siteNum: this.exception.exception1.length, |
| | | exceptionNum: this.exception.exception1Num, |
| | | isNoDataStatus: this.isNoData.exception1, |
| | |
| | | siteName: this.exception.exception2, |
| | | exceptionType: '2', |
| | | exceptionName: 'è¶
æ ', |
| | | iconSrc: '@/assets/exception/exception2.png', |
| | | iconSrc: exception2, |
| | | siteNum: this.exception.exception2.length, |
| | | exceptionNum: this.exception.exception2Num, |
| | | isNoDataStatus: this.isNoData.exception2, |
| | |
| | | siteName: this.exception.exception3, |
| | | exceptionType: '3', |
| | | exceptionName: 'æ°æ®é¿æ¶æ®µæ æ³¢å¨', |
| | | iconSrc: '@/assets/exception/exception3.png', |
| | | iconSrc: exception3, |
| | | siteNum: this.exception.exception3.length, |
| | | exceptionNum: this.exception.exception3Num, |
| | | isNoDataStatus: this.isNoData.exception3, |
| | | span: 6 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception8, |
| | | exceptionType: '8', |
| | | exceptionName: 'ææçå¼å¸¸', |
| | | iconSrc: '@/assets/exception/exception3.png', |
| | | siteNum: this.exception.exception8.length, |
| | | exceptionNum: this.exception.exception8Num, |
| | | isNoDataStatus: this.isNoData.exception8, |
| | | span: 6 |
| | | } |
| | | ] |
| | | }, |
| | | cardRow2() { |
| | | return [ |
| | | { |
| | | siteName: this.exception.exception7, |
| | | exceptionType: '7', |
| | | exceptionName: 'ååè¶å¿å¼å¸¸', |
| | | iconSrc: '@/assets/exception/exception7.png', |
| | | siteNum: this.exception.exception7.length, |
| | | exceptionNum: this.exception.exception7Num, |
| | | isNoDataStatus: this.isNoData.exception7 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception0, |
| | | exceptionType: '0', |
| | | exceptionName: 'æ°æ®ç¼ºå¤±å¼å¸¸', |
| | | iconSrc: '@/assets/exception/exception0.png', |
| | | siteNum: this.exception.exception0.length, |
| | | exceptionNum: this.exception.exception0Num, |
| | | isNoDataStatus: this.isNoData.exception0 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception1, |
| | | exceptionType: '1', |
| | | exceptionName: 'æ°æ®è¶
ä½', |
| | | iconSrc: '@/assets/exception/exception1.png', |
| | | siteNum: this.exception.exception1.length, |
| | | exceptionNum: this.exception.exception1Num, |
| | | isNoDataStatus: this.isNoData.exception1 |
| | | } |
| | | ] |
| | | }, |
| | | cardRow3() { |
| | | return [ |
| | | { |
| | | siteName: this.exception.exception2, |
| | | exceptionType: '2', |
| | | exceptionName: 'è¶
æ ', |
| | | iconSrc: '@/assets/exception/exception2.png', |
| | | siteNum: this.exception.exception2.length, |
| | | exceptionNum: this.exception.exception2Num, |
| | | isNoDataStatus: this.isNoData.exception2 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception3, |
| | | exceptionType: '3', |
| | | exceptionName: 'æ°æ®é¿æ¶æ®µæ æ³¢å¨', |
| | | iconSrc: '@/assets/exception/exception3.png', |
| | | siteNum: this.exception.exception3.length, |
| | | exceptionNum: this.exception.exception3Num, |
| | | isNoDataStatus: this.isNoData.exception3 |
| | | }, |
| | | { |
| | | siteName: this.exception.exception8, |
| | | exceptionType: '8', |
| | | exceptionName: 'ææçå¼å¸¸', |
| | | iconSrc: '@/assets/exception/exception3.png', |
| | | siteNum: this.exception.exception8.length, |
| | | exceptionNum: this.exception.exception8Num, |
| | | isNoDataStatus: this.isNoData.exception8 |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.backExceptionDataAWeekAgo() |
| | | // æ¥è¯¢æ¶é´æ®µçåå¼å¸¸çç«ç¹ï¼æ¥è¯¢è¯¥æ¶é´åºé´çåå¼å¸¸æ°é |
| | | |
| | | // this.getShopNames() |
| | | this.getSiteNume() |
| | | }, |
| | | |
| | |
| | | if (this.siteName) { |
| | | params['siteName'] = this.siteName |
| | | } |
| | | if (this.form.exceptionName.length != 0) { |
| | | params['exceptionType'] = this.form.exceptionName.join() |
| | | } |
| | | if (this.form.street.length != 0) { |
| | | params['street'] = this.form.street.join() |
| | | } |
| | |
| | | if (this.siteName) { |
| | | params['siteName'] = this.siteName |
| | | } |
| | | if (this.form.exceptionName) { |
| | | params['exceptionType'] = this.form.exceptionName |
| | | } |
| | | |
| | | params['beginTime'] = this.beginTime |
| | | params['endTime'] = this.endTime |
| | | |
| | | console.log('name',this.siteName) |
| | | this.$http.get('/dust/exceptiondata', { params: params }).then((response) => { |
| | | // ä¿åè¿åç |
| | | // this.tableData = response.data.data.rows; |
| | | this.displayData = response.data.data.rows |
| | | this.loading.tableLoading = false |
| | | |
| | | if (response.data.data.total == 0) { |
| | | ElMessage('è¯¥æ¶æ®µæ æ°æ®') |
| | | this.isTableShow = false |
| | | return |
| | | } |
| | | |
| | | this.isTableShow = true |
| | | this.total = response.data.data.total |
| | | }) |