Browse Source

当前位置修改

master
aBin 3 years ago
parent
commit
197e528ff5
  1. 35
      src/components/Location/Location.vue
  2. 2
      src/views/CompanyProfile/CompanyProfile.vue
  3. 2
      src/views/NewPages/NewPages.vue
  4. 2
      src/views/OtherPages/Department.vue
  5. 2
      src/views/OtherPages/Information.vue
  6. 2
      src/views/OtherPages/NoticeNotice.vue
  7. 2
      src/views/OtherPages/PartyBuilding.vue
  8. 2
      src/views/OtherPages/SafeProduction.vue
  9. 2
      src/views/OtherPages/System.vue

35
src/components/Location/Location.vue

@ -1,13 +1,25 @@
<template> <template>
<div class="content-nav"> <div class="content-nav d-flex justify-space-between">
<img src="@/assets/location.png" alt="" /> <div clss="content-title">
您当前位置: <span :class="index < 2 ? 'red' : ''" v-for="(item, index) in title.split('')" :key="index">{{ item }}</span>
<span> > {{ title }} </span> </div>
<span> > {{ titleTwo }} </span> <div>
<img src="@/assets/location.png" alt="" />
您当前位置:
<span class="ml-4" style="cursor: pointer;" @click="backFirst"> 首页 </span>
<span> > {{ titleName }} </span>
<span> > {{ titleTwo }} </span>
</div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: {
title: {
default: '首页',
type: String,
},
},
data() { data() {
return { return {
str: '', str: '',
@ -339,7 +351,7 @@ export default {
], ],
}, },
], ],
title: '', titleName: '',
titleTwo: '', titleTwo: '',
}; };
}, },
@ -358,7 +370,7 @@ export default {
for (let i = 0; i < this.tabList.length; i++) { for (let i = 0; i < this.tabList.length; i++) {
const title = this.tabList[i]; const title = this.tabList[i];
if (title.url === path) { if (title.url === path) {
this.title = title.title; this.titleName = title.title;
for (let k = 0; k < title.children.length; k++) { for (let k = 0; k < title.children.length; k++) {
if (query.code && query.code === title.children[k].code) { if (query.code && query.code === title.children[k].code) {
this.titleTwo = title.children[k].title; this.titleTwo = title.children[k].title;
@ -367,10 +379,19 @@ export default {
} }
} }
}, },
backFirst() {
// this.$router.push('/');
},
}, },
}; };
</script> </script>
<style scoped> <style scoped>
.red {
color: #b61412;
}
.content-title {
font-size: 20px;
}
.content-nav { .content-nav {
height: 40px; height: 40px;
margin-bottom: 16px; margin-bottom: 16px;

2
src/views/CompanyProfile/CompanyProfile.vue

@ -3,7 +3,7 @@
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" /> <LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" />
<div class="flex-1 flex-column"> <div class="flex-1 flex-column">
<Location /> <Location :title="list.title" />
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> <div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }">
<RichText :rich-obj="content" /> <RichText :rich-obj="content" />
</div> </div>

2
src/views/NewPages/NewPages.vue

@ -3,7 +3,7 @@
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" /> <LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" />
<div class="flex-1 flex-column"> <div class="flex-1 flex-column">
<Location /> <Location :title="list.title" />
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> <div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }">
<ListPage v-if="!introId" :code="code" @changeYear="changeYear" :content="content" @getData="getData" /> <ListPage v-if="!introId" :code="code" @changeYear="changeYear" :content="content" @getData="getData" />
<RichText v-else :rich-obj="introContent" /> <RichText v-else :rich-obj="introContent" />

2
src/views/OtherPages/Department.vue

@ -3,7 +3,7 @@
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" /> <LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" />
<div class="flex-1 flex-column"> <div class="flex-1 flex-column">
<Location /> <Location :title="list.title" />
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> <div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }">
<RichText :rich-obj="content" /> <RichText :rich-obj="content" />
</div> </div>

2
src/views/OtherPages/Information.vue

@ -3,7 +3,7 @@
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" /> <LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" />
<div class="flex-1 flex-column"> <div class="flex-1 flex-column">
<Location /> <Location :title="list.title" />
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> <div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }">
<RichText :rich-obj="content" /> <RichText :rich-obj="content" />
</div> </div>

2
src/views/OtherPages/NoticeNotice.vue

@ -3,7 +3,7 @@
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" /> <LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" />
<div class="flex-1 flex-column"> <div class="flex-1 flex-column">
<Location /> <Location :title="list.title" />
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> <div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }">
<ListPage v-if="!introId" :code="code" @changeYear="changeYear" :content="content" @getData="getData" /> <ListPage v-if="!introId" :code="code" @changeYear="changeYear" :content="content" @getData="getData" />
<RichText v-else :rich-obj="introContent" /> <RichText v-else :rich-obj="introContent" />

2
src/views/OtherPages/PartyBuilding.vue

@ -3,7 +3,7 @@
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" /> <LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" />
<div class="flex-1 flex-column"> <div class="flex-1 flex-column">
<Location /> <Location :title="list.title" />
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> <div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }">
<ListPage v-if="!introId" :code="code" @changeYear="changeYear" :content="content" @getData="getData" /> <ListPage v-if="!introId" :code="code" @changeYear="changeYear" :content="content" @getData="getData" />
<RichText v-else :rich-obj="introContent" /> <RichText v-else :rich-obj="introContent" />

2
src/views/OtherPages/SafeProduction.vue

@ -3,7 +3,7 @@
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" /> <LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" />
<div class="flex-1 flex-column"> <div class="flex-1 flex-column">
<Location /> <Location :title="list.title" />
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> <div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }">
<ListPage v-if="!introId" :code="code" @changeYear="changeYear" :content="content" @getData="getData" /> <ListPage v-if="!introId" :code="code" @changeYear="changeYear" :content="content" @getData="getData" />
<RichText v-else :rich-obj="introContent" /> <RichText v-else :rich-obj="introContent" />

2
src/views/OtherPages/System.vue

@ -3,7 +3,7 @@
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" /> <LeftNav :code="code" :list="list" class="mr-4" @chanegCode="chanegCode" />
<div class="flex-1 flex-column"> <div class="flex-1 flex-column">
<Location /> <Location :title="list.title" />
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> <div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }">
<RichText :rich-obj="content" /> <RichText :rich-obj="content" />
</div> </div>

Loading…
Cancel
Save