删除日志

This commit is contained in:
fan 2023-05-20 17:59:37 +08:00
parent 6bc46647d7
commit dea3207c22
30 changed files with 26 additions and 67 deletions

View File

@ -231,7 +231,6 @@ export default {
rcId: this.rcId
};
sendCommandNew(this.group, 'CTC_READ_DIS_COMMAND', data).then((res) => {
console.log(res, '---res');
}).catch(error => {
console.error(error, '---已读命令error');
});

View File

@ -295,7 +295,7 @@ export default {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
}
}).catch(error => {
console.log(error);
console.error(error);
});
},
commit() {

View File

@ -119,7 +119,7 @@ export default {
try {
this.setMap(this.mapData, this.mapDevice);
} catch (error) {
console.log('[ERROR] ', error);
console.error('[ERROR] ', error);
}
},
//

View File

@ -731,7 +731,7 @@ export default {
this.$store.dispatch('trainingNew/next', operate).then(({ valid, response }) => {
this.clearOperate();
}).catch((e) => {
console.log(e, 'error');
console.error(e, 'error');
this.$refs.noticeInfo.doShow();
this.clearOperate();
});

View File

@ -255,7 +255,7 @@ export default {
this.$refs.ConfirmTip.doShow(operate);
}
}).catch(error => {
console.log(error);
console.error(error);
});
},
closeMessage() {
@ -275,7 +275,7 @@ export default {
this.timeCountConfirm = -1; //
this.doClose();
}).catch(error => {
console.log(error);
console.error(error);
});
}
}

View File

@ -161,7 +161,7 @@ export default {
this.queryForm.queryObject.labels.config.data.push({ value: item, label: item });
});
}).catch(err => {
console.log(err);
console.error(err);
});
},
methods: {

View File

@ -135,15 +135,12 @@ export default {
getQuestionInfo() {
if (!this.questionId) { return; }
getQuestionInfo(this.questionId, {random: false}).then(res => {
console.log(res, '---res===');
this.form = res.data;
}).catch(err => {
console.log(err, '---err=====');
this.form.optionList = [];
});
},
submit(val) {
console.log(this.active, this.questionId, this.form, '====');
let data = this.active;
if (!Array.isArray(data)) {
data = [data];
@ -155,7 +152,7 @@ export default {
}
// this.doClose();
}).catch(err => {
console.log(err, '===err====');
console.error(err, '===err====');
});
},
doClose(done) {

View File

@ -101,7 +101,6 @@ export default {
},
create() {
autoCreate().then(res => {
console.log(res);
}).catch(err => {
console.error(err);
});

View File

@ -226,7 +226,7 @@ export default {
await this.loadInitData();
this.inter && clearInterval(this.inter);
} catch (error) {
console.log(error);
console.error(error);
this.$messageBox(`加载运行图数据失败`);
}
},

View File

@ -233,10 +233,8 @@ export default {
},
//
onSelected(em) {
console.log(em);
},
onDblclick(em) {
console.log(em);
},
//
onContextMenu(em) {

View File

@ -176,7 +176,7 @@ export default {
updateMap3dModelData(data).then(netdata => {
console.log(netdata);
}).catch(error => {
console.log(error);
console.error(error);
});
}
// this.successnum = 0;

View File

@ -149,7 +149,7 @@
saveMap3dModelData(data).then(netdata => {
console.log(netdata);
}).catch(error => {
console.log(error);
console.error(error);
});
}
this.successnum = 0;

View File

@ -221,10 +221,10 @@ export default {
this.oldsection = parkSectionCodeList;
this.$emit('mapLoading', false);
}).catch(error => {
console.log(error.message + '根据交路查询交路区段列表失败');
console.error(error.message + '根据交路查询交路区段列表失败');
});
}).catch(error => {
console.log(error.message + '根据交路查询交路区段列表失败');
console.error(error.message + '根据交路查询交路区段列表失败');
});
}

View File

@ -783,7 +783,6 @@ export default {
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
if (valid) {
sendCommandNew(this.group, 'CTC_SIGN_DIS_COMMAND', params).then((res) => {
console.log(res, '---res');
this.$message.success('无线受令代签成功!');
this.searchCmd();
this.initData();
@ -793,7 +792,7 @@ export default {
}
});
}).catch((err) => {
console.log('取消无线受令代签', err);
console.error('取消无线受令代签', err);
});
},
getRcId(val) {
@ -1028,9 +1027,6 @@ export default {
}
});
}
// if (state == 'Signed') {
// console.log(list, 'list');
// }
return list.reverse();
},
findDisCmdObj(obj, val) {
@ -1174,7 +1170,6 @@ export default {
return name;
},
refreshSearch() {
console.log('刷新');
const operate = {
operation: this.getDomObj('refreshSearch').operation,
userOperationType: UserOperationType.LEFTCLICK
@ -1233,7 +1228,6 @@ export default {
this.initData();
this.getSenderName();
sendCommandNew(this.group, 'CTC_NEW_DIS_COMMAND', {}).then((res) => {
console.log(res, '---新建调度命令号');
this.command.cmdCode = res.data.cmdCode;
this.command.cmdId = res.data.cmdId;
}).catch(error => {
@ -1427,7 +1421,6 @@ export default {
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
if (valid) {
sendCommandNew(this.group, 'CTC_SIGN_DIS_COMMAND', params).then((res) => {
console.log(res, '---res');
this.$message.success('代签成功!');
this.searchCmd();
this.initData();
@ -1476,7 +1469,6 @@ export default {
if (valid) {
this.cacheCmd().then(suc => {
sendCommandNew(this.group, 'CTC_SEND_DIS_COMMAND', params).then((res) => {
console.log(res, '---res');
this.$message.success('发送调度命令成功!');
this.searchCmd();
this.initData();
@ -1484,7 +1476,7 @@ export default {
this.$messageBox('发送调度命令失败:' + error.message);
});
}).catch(err => {
console.log('缓存调度命令失败', err);
console.error('缓存调度命令失败', err);
});
}
});
@ -1495,7 +1487,6 @@ export default {
searchCmd() {
return new Promise((resolve, reject) => {
sendCommandNew(this.group, 'CTC_QUERY_DIS_COMMAND', {holderType: 'Dispatcher', holderCode: this.DisStationId}).then((res) => {
console.log(res, '---res----');
this.queryResData = res.data || {};
resolve();
}).catch(error => {

View File

@ -176,7 +176,6 @@ export default {
},
methods: {
loadInitData(map) {
console.log(map, 11111);
},
doShow(operate, selected) {
this.dialogShow = true;

View File

@ -49,7 +49,6 @@ export default {
}
},
mounted() {
console.log('**********');
},
methods: {
setSelected(val) {
@ -59,7 +58,6 @@ export default {
const logicData = {routeData:this.$store.state.map.routeData, autoReentryData: this.$store.state.map.autoReentryData};
const repaint = this.$store.state.map.initJlmapLoadedCount === 1;
this.$jlmap.setMap(this.mapData, this.mapDevice, logicData, repaint);
console.log(this.mapData, this.mapData.pictureList, '************');
if (this.mapData && this.mapData.pictureList) {
const picture = this.$store.state.map.map.pictureList.find(picture => picture.type === 'bigScreen');
if (picture) {

View File

@ -281,7 +281,6 @@ export default {
// this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
// if (valid) {
// sendCommandNew(this.group, 'CONTROL_FLOOD_SIGN_SAVE', obj).then((res) => {
// console.log(res, '---res');
// this.$message.success('');
// this.initFormData();
// }).catch(error => {
@ -305,7 +304,6 @@ export default {
// this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
// if (valid) {
// sendCommandNew(this.group, 'CONTROL_FLOOD_SIGN_UPDATE', obj).then((res) => {
// console.log(res, '---res');
// this.$message.success('');
// this.isEdit = false;
// }).catch(error => {

View File

@ -82,7 +82,7 @@ export default {
sendCommandNew(this.group, 'CONTROL_FLOOD_SIGN_QUERY', params).then((res) => {
this.searchList = res.data;
}).catch(error => {
console.log('查询失败!', error);
console.error('查询失败!', error);
});
}
}

View File

@ -260,7 +260,7 @@ export default {
this.bgSceneObj = {};
this.getStepList(this.editData);
}).catch(err => {
console.log(err, '重置草稿实训失败!');
console.error(err, '重置草稿实训失败!');
});
});
},
@ -382,7 +382,7 @@ export default {
});
resolve(data);
}).catch(err => {
console.log(err, '获取详细信息失败');
console.error(err, '获取详细信息失败');
reject(err);
});
});
@ -395,11 +395,10 @@ export default {
const data = Vue.prototype.$jlmap.$options;
const params = {scale: data.scaleRate, x: data.offsetX, y: data.offsetY};
updateTrainingMaplocation({id: this.editData.id, mapLocationJson: JSON.stringify(params)}).then(res => {
console.log('保存地图定位成功!', res);
this.$message.success('保存地图定位成功!');
this.mapLocationObj = params;
}).catch(err => {
console.log('保存地图定位失败', err);
console.error('保存地图定位失败', err);
this.$message.error('保存地图定位失败');
});
},
@ -418,7 +417,6 @@ export default {
},
saveBg() {
updateTrainingBackgroud({id: this.editData.id, groupId: this.group}).then(res => {
console.log('保存背景', res);
this.$message.success('保存背景成功!');
this.getTrainingAllInfo(this.editData.id).then(suc => {
this.bgSceneObj = suc.bgSceneJson;
@ -426,7 +424,6 @@ export default {
this.bgSceneObj = {};
});
}).catch(err => {
console.log('保存背景失败', err);
this.$message.error('保存背景失败');
});
},
@ -461,7 +458,6 @@ export default {
this.addPlayerIdList(val);
},
addPlayerIdList(playId) {
console.log(this.playerIdList.includes(playId), this.playerIdList, playId);
if (!this.playerIdList.includes(playId)) {
this.playerIdList.push(playId);
}

View File

@ -198,7 +198,6 @@ export default {
const qObj = {...this.$route.query};
qObj.record = true;
this.$router.replace({ query:{...qObj}});
console.log('编辑', qObj, index, row);
this.$store.dispatch('training/changeOperateMode', { mode: OperateMode.NORMAL }); //
getTrainingAll(row.id).then(resp => {
this.$store.dispatch('trainingNew/setTrainingDetail', null);
@ -213,18 +212,15 @@ export default {
this.$message.error('获取实训详情信息失败!');
});
loadTrainingBg(this.$route.query.group, row.id).then(resp => {
console.log('加载草稿实训背景', resp);
}).catch(() => {
this.$message.error('加载草稿实训背景失败!');
});
},
handleModify(index, row) {
console.log('修改', index, row);
if (!row.id) { return; }
this.$emit('editDraftTraining', row);
},
deleteScript(index, row) {
console.log('删除', index, row);
this.$confirm('确定删除该条实训数据?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -232,16 +228,14 @@ export default {
}).then(() => {
if (!row.id) { return; }
deleteTraining([row.id]).then(res => {
console.log('删除实训成功', res);
this.getListData();
}).catch(err => {
console.log('删除实训失败', err);
console.error('删除实训失败', err);
this.getListData();
});
}).catch(e => {});
},
publishScript(index, row) {
console.log('发布', index, row);
this.$prompt('请输入发布后名称', '提示',
{
confirmButtonText: '确定',
@ -258,16 +252,14 @@ export default {
}).then(suc => {
if (!row.id || !suc.value) { return; }
publishTraining({draftId: row.id, reName: suc.value}).then(res => {
console.log('发布实训成功', res);
this.$message.success('发布实训成功!');
}).catch(err => {
console.log('发布实训失败', err);
console.error('发布实训失败', err);
this.$message.error(`发布实训失败!,${err.message}`);
});
});
},
async previewScript(index, data) {
console.log('预览', index, data);
if (this.trainingSwitch) {
this.$message.error('请先结束当前实训后再加载新的实训!');
return;

View File

@ -653,7 +653,6 @@ export default {
leaderId: this.conversationForm.leaderId,
memberIds: this.conversationForm.memberIds
};
console.log('🚀 ~ file: index.vue:584 ~ createConversation ~ obj:', obj);
const conversationMap = { METRO: this.conversationMetroList, RAILWAY: this.conversationRailwayList, EMERGENCY: this.conversationEmergencyList };
if (conversationMap[this.conversationForm.systemType]) {
conversationMap[this.conversationForm.systemType].push(obj);

View File

@ -177,7 +177,6 @@ export default {
},
deleteScript(index, row) {
console.log('删除', index, row);
this.$confirm('确定删除该条实训数据?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -185,16 +184,14 @@ export default {
}).then(() => {
if (!row.id) { return; }
deleteTraining([row.id]).then(res => {
console.log('删除实训成功', res);
this.getListData();
}).catch(err => {
console.log('删除实训失败', err);
console.error('删除实训失败', err);
this.getListData();
});
}).catch(e => {});
},
handleModify(index, row) {
// console.log('', index, row);
// if (!row.id) { return; }
// this.$refs.create.doShow(row);
},

View File

@ -264,7 +264,7 @@ export default {
this.disabled = false;
});
}).catch(()=>{
console.log('获取地图详情失败');
console.error('获取地图详情失败');
});
}
}

View File

@ -265,7 +265,6 @@ export default {
const clientListItem = this.frontTableData.find(item => item.key === 'clientList');
const clientItem = this.frontTableData.find(item => item.key === 'client');
const clientList = [];
console.log(this.clientMap, this.ruleForm.type);
if (this.clientMap[this.ruleForm.type]) {
this.clientMap[this.ruleForm.type].forEach(item => {
clientList.push({ label: item.name, value: item.id });

View File

@ -163,7 +163,7 @@ export default {
this.queryForm.queryObject.operateObject.config.data = this.deviceTypeList;
this.queryForm.queryObject.simulationRole.config.data = this.$ConstSelect.simulationRole;
} catch (error) {
console.log(error);
console.error(error);
}
},

View File

@ -306,7 +306,7 @@ export default {
this.roadData = [];
}
} catch (error) {
console.log(error);
console.error(error);
}
},
handleClose(done) {

View File

@ -95,7 +95,7 @@ export default {
this.queryForm.queryObject.project.config.data = Object.values(this.projectMap);
}
}).catch(error => {
console.log(error);
console.error(error);
});
},
methods:{

View File

@ -32,7 +32,6 @@ export default {
methods: {
doShow(row) {
this.show = true
console.log(row)
this.formData.title = row.title
this.fileId = row.id
},

View File

@ -79,7 +79,7 @@ export default {
});
resolve(res);
}).catch(err => {
console.log(err);
console.error(err);
reject(err);
});
});

View File

@ -16508,7 +16508,6 @@ function getShaderErrors( gl, shader, type ) {
if ( status && log === '' ) return '';
// --enable-privileged-webgl-extension
// console.log( '**' + type + '**', gl.getExtension( 'WEBGL_debug_shaders' ).getTranslatedShaderSource( shader ) );
const source = gl.getShaderSource( shader );
@ -16608,7 +16607,6 @@ function fetchAttributeLocations( gl, program ) {
const info = gl.getActiveAttrib( program, i );
const name = info.name;
// console.log( 'THREE.WebGLProgram: ACTIVE VERTEX ATTRIBUTE:', name, i );
attributes[ name ] = gl.getAttribLocation( program, name );