Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
61b982e9b6
@ -1,10 +1,10 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { getBaseUrl } from '@/utils/baseUrl'
|
import { getBaseUrl } from '@/utils/baseUrl';
|
||||||
|
|
||||||
// 创建或者打开数据库
|
// 创建或者打开数据库
|
||||||
export function openIndexedDB() {
|
export function openIndexedDB() {
|
||||||
const baseUrl = getBaseUrl();
|
const baseUrl = getBaseUrl();
|
||||||
const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, "$1");
|
const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, '$1');
|
||||||
const request = window.indexedDB.open(indexedDBName, 1);
|
const request = window.indexedDB.open(indexedDBName, 1);
|
||||||
request.onerror = function (event) {
|
request.onerror = function (event) {
|
||||||
console.log('数据库打开报错');
|
console.log('数据库打开报错');
|
||||||
|
@ -174,6 +174,13 @@ export default {
|
|||||||
if (this.userId) {
|
if (this.userId) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
audioFilesCheckAllSence(this.$route.query.sceneId, this.userId).then(resp => {
|
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 => {
|
(resp.data || []).forEach(elem => {
|
||||||
this.actionList.forEach(item => {
|
this.actionList.forEach(item => {
|
||||||
if (elem.actionId === item.id) {
|
if (elem.actionId === item.id) {
|
||||||
|
@ -54,6 +54,7 @@ import StatusIcon from '@/views/components/StatusIcon/statusIcon';
|
|||||||
import { simulationPause, simulationStart } from '../../../api/rtSimulation';
|
import { simulationPause, simulationStart } from '../../../api/rtSimulation';
|
||||||
// import Vue from 'vue';
|
// import Vue from 'vue';
|
||||||
import { getSessionStorage } from '@/utils/auth';
|
import { getSessionStorage } from '@/utils/auth';
|
||||||
|
import { destroySimulation } from '@/api/rtSimulation';
|
||||||
// import { EventBus } from '@/scripts/event-bus';
|
// import { EventBus } from '@/scripts/event-bus';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -271,7 +272,7 @@ export default {
|
|||||||
async back() {
|
async back() {
|
||||||
this.isGoback = true;
|
this.isGoback = true;
|
||||||
if (this.projectDevice || this.project === 'wjls') {
|
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('training/over').then(() => {
|
||||||
this.$store.dispatch('LogOut').then(() => {
|
this.$store.dispatch('LogOut').then(() => {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
@ -378,6 +378,8 @@ export default {
|
|||||||
message = message + ( index ? '、' : '' ) + '《' + item.name + '》';
|
message = message + ( index ? '、' : '' ) + '《' + item.name + '》';
|
||||||
});
|
});
|
||||||
this.$messageBox(message);
|
this.$messageBox(message);
|
||||||
|
} else {
|
||||||
|
this.$message.success('一键校验地图数据通过!');
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user