diff --git a/src/components/parkRecord.vue b/src/components/parkRecord.vue index db2dd58..450a786 100644 --- a/src/components/parkRecord.vue +++ b/src/components/parkRecord.vue @@ -164,8 +164,13 @@ export default { } }, mounted() { + }, created() { + this.$Indicator.open({ + text: '加载中...', + spinnerType: 'fading-circle' + }) this.carNumber = this.$route.query.carNumber // 获取车牌号 this.carColor = this.$route.query.carNumberColor // 获取颜色 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色 this.currentTabActive = this.$route.query.parkFlag ? this.$route.query.parkFlag : 0 @@ -220,6 +225,9 @@ export default { this.checkedAll() } console.log(this.historyList) + + this.$Indicator.close() + }) }, diff --git a/src/main.js b/src/main.js index d39c701..f18f24c 100644 --- a/src/main.js +++ b/src/main.js @@ -18,9 +18,10 @@ Vue.prototype.$utils = utils import 'mint-ui/lib/style.css' import { MessageBox } from 'mint-ui' +import { Indicator } from 'mint-ui'; // Vue.use(MessageBox) Vue.prototype.$msgbox = MessageBox - +Vue.prototype.$Indicator = Indicator import 'swiper/dist/css/swiper.min.css' // 轮播 import 'swiper/dist/js/swiper.min'