删除暂时无用代码

This commit is contained in:
joylink_cuiweidong 2020-11-30 16:12:24 +08:00
parent 19d1a6e0b1
commit 888001c65e
4 changed files with 8 additions and 28 deletions

View File

@ -10,7 +10,7 @@
<menu-script v-if="isScript" ref="menuScript" :offset-bottom="offsetBottom" :offset="offset" :text-status-height="textStatusHeight" :data-error="dataError" @start="start" @end="end" />
<menu-dispather-contest v-if="isContest" ref="menuDispatherContest" :offset="offset" :offset-bottom="offsetBottom" :data-error="dataError" :text-status-height="textStatusHeight" @start="start" @end="end" />
</template>
<menu-train-list v-if="isDemon||isContest||isScript" @setCenter="setCenter" />
<menu-train-list v-if="isDemon||isContest||isScript" />
<menu-system-time ref="menuSystemTime" :offset="offset" :group="group" />
</div>
</template>
@ -82,9 +82,9 @@ export default {
isScript() {
return this.mode === 'script';
},
isPlan() {
return this.mode === 'plan';
},
// isPlan() {
// return this.mode === 'plan';
// },
mapId() {
return this.$route.query.mapId;
},
@ -157,10 +157,6 @@ export default {
await this.$refs.menuDispatherContest.back();
}
},
//
setCenter(code) {
this.$jlmap.setCenter(code);
},
//
setPosition() {
this.$nextTick(() => {

View File

@ -1,10 +1,6 @@
<template>
<div class="menuTrainListOut" :class="{'xian_01' : lineCode == '11', 'active': drawer}">
<div class="menuTrainListBtn" @click="clickBtn">
<!-- <i class="el-icon-more" /> -->
<p style="margin: 0;"></p>
<p style="margin: 0;"></p>
</div>
<div class="menuTrainListBtn" @click="clickBtn">列车</div>
<div :show-close="false" class="menuTrainList_box" style="height: 100%;">
<div v-if="lineCode=='10'||lineCode=='11'" class="menuTrainList">
<div class="bottomTrainListInfo">下行列车详细信息</div>
@ -113,11 +109,8 @@ export default {
}
},
selectTrain(row, column, event) {
this.setCenter(row.code);
},
//
setCenter(code) {
this.$emit('setCenter', code);
//
this.$jlmap.setCenter(row.code);
},
covert(data) {
const absData = Math.abs(data);
@ -159,6 +152,7 @@ export default {
text-align: center;
justify-content: center;
padding: 7px 4px;
width: 23px;
}
.menuTrainList_box{
height: 100%;

View File

@ -146,7 +146,6 @@ export default {
//
this.mapList = [];
const res = await getPublishMapListOnline();
this.allMapList = res.data;
res.data.forEach(elem => {
this.queryForm.queryObject.mapId.config.data.push({ value: elem.id, label: elem.name });
this.mapList.push({ value: elem.id, label: elem.name });

View File

@ -100,19 +100,11 @@ export default {
currentModel: {}
};
},
created() {
this.loadInitData();
},
methods: {
loadInitData() {
},
//
edit(index, row) {
this.$refs.edit.show(row);
},
//
handleDelete(index, row) {
this.$confirm(this.$t('system.wellDelExamResult'), this.$t('global.tips'), {
@ -129,7 +121,6 @@ export default {
});
});
},
reloadTable() {
this.queryList.reload();
}