删除日志

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 rcId: this.rcId
}; };
sendCommandNew(this.group, 'CTC_READ_DIS_COMMAND', data).then((res) => { sendCommandNew(this.group, 'CTC_READ_DIS_COMMAND', data).then((res) => {
console.log(res, '---res');
}).catch(error => { }).catch(error => {
console.error(error, '---已读命令error'); console.error(error, '---已读命令error');
}); });

View File

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

View File

@ -119,7 +119,7 @@ export default {
try { try {
this.setMap(this.mapData, this.mapDevice); this.setMap(this.mapData, this.mapDevice);
} catch (error) { } 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.$store.dispatch('trainingNew/next', operate).then(({ valid, response }) => {
this.clearOperate(); this.clearOperate();
}).catch((e) => { }).catch((e) => {
console.log(e, 'error'); console.error(e, 'error');
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
this.clearOperate(); this.clearOperate();
}); });

View File

@ -255,7 +255,7 @@ export default {
this.$refs.ConfirmTip.doShow(operate); this.$refs.ConfirmTip.doShow(operate);
} }
}).catch(error => { }).catch(error => {
console.log(error); console.error(error);
}); });
}, },
closeMessage() { closeMessage() {
@ -275,7 +275,7 @@ export default {
this.timeCountConfirm = -1; // this.timeCountConfirm = -1; //
this.doClose(); this.doClose();
}).catch(error => { }).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 }); this.queryForm.queryObject.labels.config.data.push({ value: item, label: item });
}); });
}).catch(err => { }).catch(err => {
console.log(err); console.error(err);
}); });
}, },
methods: { methods: {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -265,7 +265,6 @@ export default {
const clientListItem = this.frontTableData.find(item => item.key === 'clientList'); const clientListItem = this.frontTableData.find(item => item.key === 'clientList');
const clientItem = this.frontTableData.find(item => item.key === 'client'); const clientItem = this.frontTableData.find(item => item.key === 'client');
const clientList = []; const clientList = [];
console.log(this.clientMap, this.ruleForm.type);
if (this.clientMap[this.ruleForm.type]) { if (this.clientMap[this.ruleForm.type]) {
this.clientMap[this.ruleForm.type].forEach(item => { this.clientMap[this.ruleForm.type].forEach(item => {
clientList.push({ label: item.name, value: item.id }); 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.operateObject.config.data = this.deviceTypeList;
this.queryForm.queryObject.simulationRole.config.data = this.$ConstSelect.simulationRole; this.queryForm.queryObject.simulationRole.config.data = this.$ConstSelect.simulationRole;
} catch (error) { } catch (error) {
console.log(error); console.error(error);
} }
}, },

View File

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

View File

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

View File

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

View File

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

View File

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