diff --git a/src/utils/indexedDb.js b/src/utils/indexedDb.js index 2a882c8a3..1fe60c2b9 100644 --- a/src/utils/indexedDb.js +++ b/src/utils/indexedDb.js @@ -1,10 +1,10 @@ import Vue from 'vue'; -import { getBaseUrl } from '@/utils/baseUrl' +import { getBaseUrl } from '@/utils/baseUrl'; // 创建或者打开数据库 export function openIndexedDB() { - const baseUrl = getBaseUrl(); - const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, "$1"); + const baseUrl = getBaseUrl(); + const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, '$1'); const request = window.indexedDB.open(indexedDBName, 1); request.onerror = function (event) { console.log('数据库打开报错'); diff --git a/src/views/drts/scene/trainingResult.vue b/src/views/drts/scene/trainingResult.vue index 12a7cc174..e9cdf59a3 100644 --- a/src/views/drts/scene/trainingResult.vue +++ b/src/views/drts/scene/trainingResult.vue @@ -174,6 +174,13 @@ export default { if (this.userId) { this.loading = true; audioFilesCheckAllSence(this.$route.query.sceneId, this.userId).then(resp => { + this.actionList.forEach(item => { + item.result = ''; + item.wrongKeyWords = []; + item.wrongTripNumbers = []; + item.recordId = ''; + item.filePath = ''; + }); (resp.data || []).forEach(elem => { this.actionList.forEach(item => { if (elem.actionId === item.id) { diff --git a/src/views/newMap/displayCity/menuDemon.vue b/src/views/newMap/displayCity/menuDemon.vue index 44ace6908..7f35d8f99 100644 --- a/src/views/newMap/displayCity/menuDemon.vue +++ b/src/views/newMap/displayCity/menuDemon.vue @@ -54,6 +54,7 @@ import StatusIcon from '@/views/components/StatusIcon/statusIcon'; import { simulationPause, simulationStart } from '../../../api/rtSimulation'; // import Vue from 'vue'; import { getSessionStorage } from '@/utils/auth'; +import { destroySimulation } from '@/api/rtSimulation'; // import { EventBus } from '@/scripts/event-bus'; export default { @@ -271,7 +272,7 @@ export default { async back() { this.isGoback = true; if (this.projectDevice || this.project === 'wjls') { - clearSimulation(this.group).then(res=>{ + destroySimulation(this.group).then(res=>{ this.$store.dispatch('training/over').then(() => { this.$store.dispatch('LogOut').then(() => { location.reload(); diff --git a/src/views/publish/publishMap/index.vue b/src/views/publish/publishMap/index.vue index a516eb08c..8a6beadc2 100644 --- a/src/views/publish/publishMap/index.vue +++ b/src/views/publish/publishMap/index.vue @@ -378,6 +378,8 @@ export default { message = message + ( index ? '、' : '' ) + '《' + item.name + '》'; }); this.$messageBox(message); + } else { + this.$message.success('一键校验地图数据通过!'); } }).catch(e => { this.loading = false;