This commit is contained in:
zyy 2020-12-15 14:41:36 +08:00
commit 9e48ca39a8
5 changed files with 17 additions and 18 deletions

View File

@ -113,9 +113,7 @@ export default {
},
mounted() {
this.routes = this.$router.options.routes;
if (this.$route.fullPath.indexOf('design/userlist') >= 0) {
this.activePath = '/design/userlist/home';
} else if (this.$route.fullPath.indexOf('design/usermap') >= 0) {
if (this.$route.fullPath.indexOf('design/usermap') >= 0) {
this.activePath = '/design/usermap/home';
} else if (this.$route.fullPath.includes('design/lesson') || this.$route.fullPath.includes('design/script') || this.$route.fullPath.includes('design/runPlan') || this.$route.fullPath.includes('design/mapPreview')) {
this.activePath = '/design/home';

View File

@ -46,9 +46,8 @@ export default {
async loadInitData() {
//
this.filterOptions = [];
let resp = this.$route.fullPath.includes('design/userlist') ? await this.$Dictionary.cityType() : await publisMapCityList('city_type');
resp = this.$route.fullPath.includes('design/userlist') ? resp : resp.data;
let resp = await publisMapCityList('city_type');
resp = resp.data;
// const cityList = resp.sort((a, b) => {
// return a.code.localeCompare(b.code);
// });

View File

@ -21,7 +21,7 @@
:filter-node-method="filterNode"
:style="{height: height+'px'}"
>
<div slot-scope="{ node, data }" class="list-elem custom-tree-node">
<div slot-scope="{ data }" class="list-elem custom-tree-node">
<span>{{ '['+data.map.name+']'+($t('global.trainingHasStart').replace('{name}', data.creator.nickname)) }}</span>
<el-button
type="text"
@ -52,7 +52,6 @@ export default {
dialogShow: false,
height: 120,
trainingList: [],
group: '',
loading: false,
pageLoading: false
};

View File

@ -9,7 +9,7 @@
:modal="false"
:close-on-click-modal="false"
>
<div style="height: 80px; line-height: 80px; font-size: 16px; padding-left: 10px;">{{ roomName }}{{ $t('global.inviteJoinRoom') }}</div>
<div class="inviteJoinRoom">{{ roomName }}{{ $t('global.inviteJoinRoom') }}</div>
<span slot="footer" class="dialog-footer">
<el-button v-loading="loading" type="primary" @click="handleJoin">{{ $t('global.confirm') }}</el-button>
<el-button @click="dialogShow = false">{{ $t('global.cancel') }}</el-button>
@ -19,7 +19,6 @@
<script>
import { launchFullscreen } from '@/utils/screen';
import { getPublishMapInfo } from '@/api/jmap/map';
// 仿
export default {
name: 'DeomonList',
@ -48,7 +47,6 @@ export default {
async handleJoin() {
try {
this.loading = true;
await getPublishMapInfo(this.mapId);
launchFullscreen();
const query = { lineCode: this.lineCode, mapId: this.mapId, group: this.group};
this.$router.push({path: `/jointTrainingNew`, query: query});
@ -66,6 +64,12 @@ export default {
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.inviteJoinRoom{
height: 80px;
line-height: 80px;
font-size: 16px;
padding-left: 10px;
}
/deep/ {
.el-dialog__body {
padding: 0px 30px !important;

View File

@ -21,7 +21,7 @@
</el-select>
</div>
<div class="button-box">
<el-button type="primary" size="mini" @click="handleScetionStationCode">{{ $t('map.setStationCode') }}</el-button>
<el-button type="primary" size="mini" @click="handleSectionStationCode">{{ $t('map.setStationCode') }}</el-button>
<el-button type="" size="mini" @click="clearList">清空</el-button>
</div>
</div>
@ -82,10 +82,10 @@ export default {
mounted() {
},
methods: {
deviceChange(code) {
this.$emit('setCenter', code);
this.deviceSelect(this.$store.getters['map/getDeviceByCode'](code));
},
// deviceChange(code) {
// this.$emit('setCenter', code);
// this.deviceSelect(this.$store.getters['map/getDeviceByCode'](code));
// },
deviceSelect(selected) {
if (selected && selected._type.toUpperCase() == 'CheckBox'.toUpperCase()) {
this.clearModelList();
@ -130,7 +130,7 @@ export default {
});
},
//
handleScetionStationCode() {
handleSectionStationCode() {
if (this.stationCode && this.seclectDeviceList && this.seclectDeviceList.length > 0) {
const models = [];
this.modelList.forEach(model => { //
@ -155,7 +155,6 @@ export default {
clearList() { //
this.stationCode = '';
this.$store.commit('map/setSeclectDeviceList', []);
this.seclectDeviceList = [];
this.modelList = [
{
type: 'Section',