diff --git a/src/views/construction/manage/hoistManage/hoistManage.vue b/src/views/construction/manage/hoistManage/hoistManage.vue index 6e923c6..193796d 100644 --- a/src/views/construction/manage/hoistManage/hoistManage.vue +++ b/src/views/construction/manage/hoistManage/hoistManage.vue @@ -184,10 +184,8 @@ export default { pageNum: 0, pageSize: 10 }, - // 预警信息定时刷新 + // 定时刷新 intervalId: null, - // 选中的吊装设备 - checkDevCode: null }; }, created() { @@ -207,7 +205,7 @@ export default { methods: { startRefresh() { // 每10分钟刷新一次 - this.intervalId = setInterval(this.refreshData, 1000 * 60 * 10); + this.intervalId = setInterval(this.refreshData, 1000 * 60 * 5); }, stopRefresh() { if (this.intervalId) { diff --git a/src/views/construction/manage/personManage/personManage.vue b/src/views/construction/manage/personManage/personManage.vue index a521608..2b05123 100644 --- a/src/views/construction/manage/personManage/personManage.vue +++ b/src/views/construction/manage/personManage/personManage.vue @@ -314,10 +314,10 @@ export default { this.getPersonsTree(); }, mounted(){ - alert('页面初始化完成'); + // alert('页面初始化完成'); }, destroyed(){ - alert('页面销毁了'); + // alert('页面销毁了'); }, methods: { // 当前日期 @@ -440,14 +440,19 @@ export default { } }, // 自动验证配置详情 - getCheckConfigDetail() { - getCheckConfig().then((res) => { + async getCheckConfigDetail() { + let loading = this.$loading({ + lock: true, + text: "数据加载中,请稍候...", + background: 'rgba(0,0,0,0.2)' + }) + await getCheckConfig().then((res) => { if (res.data && res.data.length > 0) { const data = res.data; const configType = data[0].configType + ''; if (configType === '1') { data.forEach((item, index) => { - this.form.times.push({ value: item.time, key: Date.now() }) + this.form.times.push({ value: item.time, key: Date.now() + index }) }) } else if (configType === '2') { this.form.timeNum = parseInt(res.data[0].time); @@ -456,9 +461,11 @@ export default { } else { this.form.configType = '1'; } + }).catch((res) => { }) + loading.close(); this.dialogVisible2 = true; }, // 模式选择为固定时间-添加多个时间 diff --git a/src/views/construction/manage/realTimeManage/realTimeManage.vue b/src/views/construction/manage/realTimeManage/realTimeManage.vue index 76d4efb..f152da4 100644 --- a/src/views/construction/manage/realTimeManage/realTimeManage.vue +++ b/src/views/construction/manage/realTimeManage/realTimeManage.vue @@ -76,7 +76,7 @@