2019-07-26 13:32:43 +08:00
|
|
|
<template>
|
2019-08-13 15:54:26 +08:00
|
|
|
<div id="PlanTitleBar">
|
|
|
|
<img class="logo" :src="logoImg">
|
|
|
|
<span> {{ mapName }}  </span>
|
|
|
|
<span v-if="runPlanName">({{ runPlanName }})</span>
|
|
|
|
<span class="system-close el-icon-close" @click="back" />
|
|
|
|
</div>
|
2019-07-26 13:32:43 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-08-13 15:54:26 +08:00
|
|
|
import logo_ from '@/assets/logo_.png';
|
|
|
|
import { getPublishMapInfo } from '@/api/jmap/map';
|
|
|
|
import { UrlConfig } from '@/router/index';
|
2019-07-26 13:32:43 +08:00
|
|
|
|
2019-08-13 15:54:26 +08:00
|
|
|
export default {
|
2019-11-08 14:35:58 +08:00
|
|
|
name: 'PlanTitleBar',
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
mapName: '',
|
|
|
|
logoImg: logo_
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
runPlanName() {
|
|
|
|
return this.$route.query.planName || '';
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
getPublishMapInfo(this.$route.query.mapId).then(resp => {
|
|
|
|
this.mapName = resp.data.name;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
back() {
|
|
|
|
this.$router.push({ path: `${UrlConfig.plan.detail}/${this.$route.query.mapId}` });
|
|
|
|
}
|
|
|
|
}
|
2019-08-13 15:54:26 +08:00
|
|
|
};
|
2019-07-26 13:32:43 +08:00
|
|
|
</script>
|
2019-08-13 15:54:26 +08:00
|
|
|
<style scoped rel="stylesheet/scss" lang="scss">
|
2019-07-26 13:32:43 +08:00
|
|
|
@import "src/styles/mixin.scss";
|
|
|
|
$width: 25px;
|
|
|
|
$height: 25px;
|
|
|
|
|
|
|
|
#PlanTitleBar {
|
|
|
|
z-index: 10;
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: $height;
|
|
|
|
line-height: $height;
|
|
|
|
background: -webkit-linear-gradient(#0055E8, #0099F8);
|
|
|
|
background: -o-linear-gradient(#0055E8, #0099F8);
|
|
|
|
background: -moz-linear-gradient(#0055E8, #0099F8);
|
|
|
|
background: linear-gradient(#0055E8, #0099F8);
|
|
|
|
color: white;
|
|
|
|
font: bold;
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
display: inline-block;
|
|
|
|
width: $width;
|
|
|
|
height: $height;
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.system-close {
|
|
|
|
width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
position: absolute;
|
|
|
|
right: 1px;
|
|
|
|
}
|
|
|
|
}
|
2019-08-13 15:54:26 +08:00
|
|
|
</style>
|